61a08ed116
Take maintainership ok sthen@
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
$OpenBSD: patch-setup_py,v 1.3 2010/03/23 10:19:48 pea Exp $
|
|
--- setup.py.orig Mon Mar 16 15:36:21 2009
|
|
+++ setup.py Thu Feb 11 14:29:01 2010
|
|
@@ -58,6 +58,10 @@ if os.name == 'nt':
|
|
'zipfile': None
|
|
})
|
|
|
|
+LOCALBASE = os.getenv("LOCALBASE", "/usr/local")
|
|
+include_dirs = ["%s/include" % LOCALBASE]
|
|
+library_dirs = ["%s/lib" % LOCALBASE]
|
|
+
|
|
setup(name="rdiff-backup",
|
|
version=version_string,
|
|
description="Local/remote mirroring+incremental backup",
|
|
@@ -68,14 +72,13 @@ setup(name="rdiff-backup",
|
|
ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"]),
|
|
Extension("rdiff_backup._librsync",
|
|
["_librsyncmodule.c"],
|
|
- include_dirs=incdir_list,
|
|
- library_dirs=libdir_list,
|
|
- libraries=libname,
|
|
- extra_link_args=lflags_arg)],
|
|
+ libraries=["rsync"],
|
|
+ include_dirs=include_dirs,
|
|
+ library_dirs=library_dirs)],
|
|
scripts = ['rdiff-backup', 'rdiff-backup-statistics'],
|
|
- data_files = [('share/man/man1', ['rdiff-backup.1',
|
|
+ data_files = [('man/man1', ['rdiff-backup.1',
|
|
'rdiff-backup-statistics.1']),
|
|
- ('share/doc/rdiff-backup-%s' % (version_string,),
|
|
- ['CHANGELOG', 'COPYING', 'README', 'FAQ.html'])],
|
|
+ ('share/doc/rdiff-backup',
|
|
+ ['CHANGELOG', 'FAQ.html'])],
|
|
**extra_options)
|
|
|