From: Daniel Kahn Gillmor Date: Fri, 12 Sep 2008 07:02:34 +0000 (-0400) Subject: fixing up FreeBSD port Makefile to handle post-install config file creation properly. X-Git-Tag: monkeysphere_0.16-1~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1cb5bc897e2d5fafecd088cd9276701f42901f9f;p=monkeysphere.git fixing up FreeBSD port Makefile to handle post-install config file creation properly. --- diff --git a/packaging/freebsd/Makefile b/packaging/freebsd/Makefile index 82e3bf8..1381ba4 100644 --- a/packaging/freebsd/Makefile +++ b/packaging/freebsd/Makefile @@ -31,4 +31,12 @@ MANCOMPRESSED= yes MAKE_ARGS= ETCPREFIX=/usr/local MANPREFIX=/usr/local/man ETCSUFFIX=.sample +post-install: + @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \ + ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \ + fi + @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ]; then \ + ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ; \ + fi + .include