From 1cb5bc897e2d5fafecd088cd9276701f42901f9f Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 12 Sep 2008 03:02:34 -0400 Subject: [PATCH] fixing up FreeBSD port Makefile to handle post-install config file creation properly. --- packaging/freebsd/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.25.1