summaryrefslogtreecommitdiff
path: root/packaging/macports/Makefile
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-04-04 23:37:15 -0700
committerJameson Graef Rollins <jrollins@finestructure.net>2009-04-04 23:37:15 -0700
commit0e2af948ab640cd4865d41951c7b8c2a35437f59 (patch)
tree174ef89e363ecac55659bbf8ae94566ed0aa8684 /packaging/macports/Makefile
parent1682f86cc61aa8ba57e1897d3968c5620e8dc278 (diff)
macports: attempt at something that would 'patch' in the correct SYS..DIR variables
Diffstat (limited to 'packaging/macports/Makefile')
-rw-r--r--packaging/macports/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging/macports/Makefile b/packaging/macports/Makefile
new file mode 100644
index 0000000..10d9547
--- /dev/null
+++ b/packaging/macports/Makefile
@@ -0,0 +1,23 @@
+# use proper system paths for MacPorts instead of Debian's:
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc/monkeysphere|'$(SYSETCDIR)'|g' \
+ ${WRKSRC}/src/share/defaultenv \
+ ${WRKSRC}/src/transitions/0.23 \
+ ${WRKSRC}/man/man1/monkeysphere.1 \
+ ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
+ ${WRKSRC}/man/man8/monkeysphere-host.8 \
+ ${WRKSRC}/etc/monkeysphere-authentication.conf
+ @${REINPLACE_CMD} -e 's|/var/lib/monkeysphere|'$(SYSDATADIR)'|g' \
+ ${WRKSRC}/src/transitions/0.23 \
+ ${WRKSRC}/man/man1/monkeysphere.1 \
+ ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
+ ${WRKSRC}/man/man8/monkeysphere-host.8 \
+ ${WRKSRC}/src/monkeysphere-host \
+ ${WRKSRC}/src/monkeysphere-authentication \
+ ${WRKSRC}/doc/getting-started-admin.mdwn
+ @${REINPLACE_CMD} -e 's|/usr/share/monkeysphere|'$(SYSSHAREDIR)'|g' \
+ ${WRKSRC}/src/monkeysphere-host \
+ ${WRKSRC}/src/monkeysphere-authentication \
+ ${WRKSRC}/src/monkeysphere
+ # and clean up cruft from the sed replacements:
+ ${FIND} ${WRKSRC} -name '*.bak' -delete