summaryrefslogtreecommitdiff
path: root/packaging/freebsd
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-12 03:02:34 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-12 03:02:34 -0400
commit1cb5bc897e2d5fafecd088cd9276701f42901f9f (patch)
treec16af5e6cec28746238db4d368b6f014436d65e0 /packaging/freebsd
parentc164ea4ea5c881c01f396b3a54b73b38a4e5f1cd (diff)
fixing up FreeBSD port Makefile to handle post-install config file creation properly.
Diffstat (limited to 'packaging/freebsd')
-rw-r--r--packaging/freebsd/Makefile8
1 files changed, 8 insertions, 0 deletions
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 <bsd.port.mk>