summaryrefslogtreecommitdiff
path: root/sysutils/duplicity05/files/patch-setup.py
blob: 3d30bb209e08d7eff7325b3aa1ad9111809bd7ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- setup.py.orig	2009-09-05 20:36:52.972675012 +0200
+++ setup.py	2009-09-05 20:36:55.996611410 +0200
@@ -31,6 +31,10 @@
 
 incdir_list = libdir_list = None
 
+LOCALBASE = os.environ.get("LOCALBASE", "/usr/local")
+incdir_list = ['%s/include' % LOCALBASE]
+libdir_list = ['%s/lib/' % LOCALBASE]
+
 if os.name == 'posix':
     LIBRSYNC_DIR = os.environ.get('LIBRSYNC_DIR', '')
     args = sys.argv[:]
@@ -42,16 +46,9 @@
         incdir_list = [os.path.join(LIBRSYNC_DIR, 'include')]
         libdir_list = [os.path.join(LIBRSYNC_DIR, 'lib')]
 
-data_files = [('share/man/man1',
+data_files = [('man/man1',
                ['duplicity.1',
                 'rdiffdir.1']),
-              ('share/doc/duplicity-%s' % version_string,
-               ['COPYING',
-                'REPO-README',
-                'LOG-README',
-                'README',
-                'tarfile-LICENSE',
-                'CHANGELOG']),
               ]
 
 assert os.path.exists("po"), "Missing 'po' directory."