Description: Improve installation
 Upstream installs configuration files directly in the home user directory
 but we can't / don't do that in packages.
 Add a data_files in setup to manage the installation of config files in
 /etc/osrframework. These files will be copied in the user directory at the
 first launch.
Author: Sophie Brun <sophie@freexian.com>
Last-Update: 2017-09-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,8 @@
 
 import os
 import sys
+import glob
+
 from setuptools import setup
 
 # Checking if obsolete versions are installed in the machine
@@ -179,6 +181,11 @@ setup(
         "osrframework.searchengines",
         "osrframework.domains",
     ],
+    data_files=[
+        ("/etc/osrframework/default", glob.glob("config/*.cfg")),
+        ("/etc/osrframework/plugins/patterns", ["config/plugins/pattern.py.sample"]),
+        ("/etc/osrframework/plugins/wrappers", ["config/plugins/wrapper.py.sample"]),
+    ],
     long_description=long_description,
     install_requires=[
         "setuptools",
