From c4b4cdd87413598ba415ceebba35ed7d9dc0d979 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 12 Sep 2008 02:40:42 -0400 Subject: tweaking installations of config files so that FreeBSD ports do not clobber local sysadmin changes. --- packaging/freebsd/pkg-plist | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packaging/freebsd/pkg-plist') diff --git a/packaging/freebsd/pkg-plist b/packaging/freebsd/pkg-plist index 70a9b11..43346c1 100644 --- a/packaging/freebsd/pkg-plist +++ b/packaging/freebsd/pkg-plist @@ -7,8 +7,12 @@ bin/openpgp2ssh bin/monkeysphere-ssh-proxycommand bin/monkeysphere share/monkeysphere/common -etc/monkeysphere/monkeysphere-server.conf -etc/monkeysphere/monkeysphere.conf +@unexec if cmp -s %D/etc/monkeysphere/monkeysphere.conf.sample %D/etc/monkeysphere/monkeysphere.conf; then rm -f %D/etc/monkeysphere/monkeysphere.conf; fi +etc/monkeysphere/monkeysphere.conf.sample +@exec if [ ! -f %D/etc/monkeysphere/monkeysphere.conf ] ; then cp -p %D/%F %B/monkeysphere.conf; fi +@unexec if cmp -s %D/etc/monkeysphere/monkeysphere-server.conf.sample %D/etc/monkeysphere/monkeysphere-server.conf; then rm -f %D/etc/monkeysphere/monkeysphere-server.conf; fi +etc/monkeysphere/monkeysphere-server.conf.sample +@exec if [ ! -f %D/etc/monkeysphere/monkeysphere-server.conf ] ; then cp -p %D/%F %B/monkeysphere-server.conf; fi @dirrm share/doc/monkeysphere @dirrm share/monkeysphere @dirrm etc/monkeysphere -- cgit v1.2.3