aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-12-21 19:42:04 +0000
committerWill Andrews <will@FreeBSD.org>2000-12-21 19:42:04 +0000
commite816a00130063164591437dc11890b81262dd0d1 (patch)
treede1bcbde18f9575817d2dd289a70dddf7b9b97ed /security
parentcd3604440efa805410fd57c1510b28e2539c7b29 (diff)
downloadports-e816a00130063164591437dc11890b81262dd0d1.tar.gz
ports-e816a00130063164591437dc11890b81262dd0d1.zip
Detect of portsentry.conf hasn't changed and delete on uninstall if true.
PR: 23659 Submitted by: David W. Chapman, Jr. <dwcjr@inethouston.net> Approved by: Dan Langille <dan@langille.org> (MAINTAINER)
Notes
Notes: svn path=/head/; revision=36206
Diffstat (limited to 'security')
-rw-r--r--security/portsentry/pkg-plist1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/portsentry/pkg-plist b/security/portsentry/pkg-plist
index bdea2fd1c390..5ecc8a262caf 100644
--- a/security/portsentry/pkg-plist
+++ b/security/portsentry/pkg-plist
@@ -1,4 +1,5 @@
bin/portsentry
+@unexec if cmp -s %D/etc/portsentry.conf %D/etc/portsentry.conf.default; then rm -f %D/etc/portsentry.conf; fi
etc/portsentry.conf.default
@exec if [ ! -f %D/etc/portsentry.conf ] ; then cp -p %D/%F %B/portsentry.conf; fi
etc/portsentry.ignore