summaryrefslogtreecommitdiff
path: root/packaging/freebsd/pkg-plist
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-12 02:40:42 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-12 02:40:42 -0400
commitc4b4cdd87413598ba415ceebba35ed7d9dc0d979 (patch)
treed484dad2c5da459b0ea5c8fe5fe4a2c29bed1e0e /packaging/freebsd/pkg-plist
parent5c3ec72ee2c2f5a0d6d942b0998ba8cc3369f608 (diff)
tweaking installations of config files so that FreeBSD ports do not clobber local sysadmin changes.
Diffstat (limited to 'packaging/freebsd/pkg-plist')
-rw-r--r--packaging/freebsd/pkg-plist8
1 files changed, 6 insertions, 2 deletions
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