aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/apcupsd
diff options
context:
space:
mode:
authorlkoeller <lkoeller@FreeBSD.org>2004-12-13 03:53:36 +0800
committerlkoeller <lkoeller@FreeBSD.org>2004-12-13 03:53:36 +0800
commita6cedafa2b8405ca75328481f72effb4bdabc981 (patch)
tree0f3489776f5f164e97bc5b2d193155de365d47cf /sysutils/apcupsd
parentabd4701d96e5ee89fa5c044269f7048b273a2347 (diff)
downloadfreebsd-ports-gnome-a6cedafa2b8405ca75328481f72effb4bdabc981.tar.gz
freebsd-ports-gnome-a6cedafa2b8405ca75328481f72effb4bdabc981.tar.zst
freebsd-ports-gnome-a6cedafa2b8405ca75328481f72effb4bdabc981.zip
o) Fix correct deletion of apcupsd.conf file if it's identical with sample
file after fresh install. PR: - Submitted by: Kris Kennaway <kris@obsecurity.org>
Diffstat (limited to 'sysutils/apcupsd')
-rw-r--r--sysutils/apcupsd/pkg-plist1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysutils/apcupsd/pkg-plist b/sysutils/apcupsd/pkg-plist
index d58e5c3149d6..165b5bf155e1 100644
--- a/sysutils/apcupsd/pkg-plist
+++ b/sysutils/apcupsd/pkg-plist
@@ -5,6 +5,7 @@ sbin/apctest
%%POWERFL%%sbin/powerflute
etc/apcupsd/apcupsd.conf.net-master.sample
etc/apcupsd/apcupsd.conf.net-slave.sample
+@unexec if cmp -s %D/etc/apcupsd/apcupsd.conf.sample %D/etc/apcupsd/apcupsd.conf; then rm -f %D/etc/apcupsd/apcupsd.conf; fi
etc/apcupsd/apcupsd.conf.sample
etc/apcupsd/apccontrol
etc/apcupsd/changeme