diff options
author | itetcu <itetcu@FreeBSD.org> | 2009-10-18 14:17:50 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2009-10-18 14:17:50 +0800 |
commit | bb243b838f9b2568dce9a7e23f59ea301e6047a6 (patch) | |
tree | ff9a56f9c37200d943986522d8bc40034d042e07 /mail/py-apolicy | |
parent | 6444e4048bbe62c79c4b1d3802504f1be9f2bd28 (diff) | |
download | freebsd-ports-gnome-bb243b838f9b2568dce9a7e23f59ea301e6047a6.tar.gz freebsd-ports-gnome-bb243b838f9b2568dce9a7e23f59ea301e6047a6.tar.zst freebsd-ports-gnome-bb243b838f9b2568dce9a7e23f59ea301e6047a6.zip |
- remove files/patch-setup.py
- replace the above with a ${REINPLACE_CMD} in the Makefile that uses the
environment PREFIX
Thus fix install the port when custom PREFIX is used.
PR: 139539
Submitted by: Sahil Tandon
Approved by: maintainer
Diffstat (limited to 'mail/py-apolicy')
-rw-r--r-- | mail/py-apolicy/Makefile | 3 | ||||
-rw-r--r-- | mail/py-apolicy/files/patch-setup.py | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/mail/py-apolicy/Makefile b/mail/py-apolicy/Makefile index cb0dc5d5b7c9..92a904ca0729 100644 --- a/mail/py-apolicy/Makefile +++ b/mail/py-apolicy/Makefile @@ -29,6 +29,9 @@ SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \ PYTHON_CMD=${PYTHON_CMD} SUB_FILES= pkg-message +post-patch: + @${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/setup.py + post-install: @${CAT} ${PKGMESSAGE} diff --git a/mail/py-apolicy/files/patch-setup.py b/mail/py-apolicy/files/patch-setup.py deleted file mode 100644 index 0fa976f3dbe5..000000000000 --- a/mail/py-apolicy/files/patch-setup.py +++ /dev/null @@ -1,8 +0,0 @@ ---- setup.py.orig 2008-11-24 06:35:54.000000000 +0000 -+++ setup.py 2008-11-24 06:36:11.000000000 +0000 -@@ -28,4 +28,4 @@ - author_email="miguel.filho@gmail.com", packages=["apolicy"], - package_dir={"apolicy": "src/apolicy"}, - url="http://www.apolicy.org", -- data_files=[("/etc/apolicy", data_files)]) -+ data_files=[("/usr/local/etc/apolicy", data_files)]) |