diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-09-12 03:02:34 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-09-12 03:02:34 -0400 |
commit | 1cb5bc897e2d5fafecd088cd9276701f42901f9f (patch) | |
tree | c16af5e6cec28746238db4d368b6f014436d65e0 /packaging/freebsd | |
parent | c164ea4ea5c881c01f396b3a54b73b38a4e5f1cd (diff) |
fixing up FreeBSD port Makefile to handle post-install config file creation properly.
Diffstat (limited to 'packaging/freebsd')
-rw-r--r-- | packaging/freebsd/Makefile | 8 |
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> |