macports: attempt at something that would 'patch' in the correct SYS..DIR variables
[monkeysphere.git] / packaging / macports / Makefile
1 # use proper system paths for MacPorts instead of Debian's:
2 post-patch:
3         @${REINPLACE_CMD} -e 's|/etc/monkeysphere|'$(SYSETCDIR)'|g' \
4           ${WRKSRC}/src/share/defaultenv \
5           ${WRKSRC}/src/transitions/0.23 \
6           ${WRKSRC}/man/man1/monkeysphere.1 \
7           ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
8           ${WRKSRC}/man/man8/monkeysphere-host.8 \
9           ${WRKSRC}/etc/monkeysphere-authentication.conf
10         @${REINPLACE_CMD} -e 's|/var/lib/monkeysphere|'$(SYSDATADIR)'|g' \
11           ${WRKSRC}/src/transitions/0.23 \
12           ${WRKSRC}/man/man1/monkeysphere.1 \
13           ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
14           ${WRKSRC}/man/man8/monkeysphere-host.8 \
15           ${WRKSRC}/src/monkeysphere-host \
16           ${WRKSRC}/src/monkeysphere-authentication \
17           ${WRKSRC}/doc/getting-started-admin.mdwn
18         @${REINPLACE_CMD} -e 's|/usr/share/monkeysphere|'$(SYSSHAREDIR)'|g' \
19           ${WRKSRC}/src/monkeysphere-host \
20           ${WRKSRC}/src/monkeysphere-authentication \
21           ${WRKSRC}/src/monkeysphere
22         # and clean up cruft from the sed replacements:
23         ${FIND} ${WRKSRC} -name '*.bak' -delete