aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-10-16 00:26:46 +0800
committerpav <pav@FreeBSD.org>2004-10-16 00:26:46 +0800
commit787372387851ae75fff9b430f6fb59570fe953e5 (patch)
tree2df104b2d3a23927956162afd1849cdaedd4ce58 /security
parentd2b5024611855090813754529c8225836ef817d9 (diff)
downloadfreebsd-ports-gnome-787372387851ae75fff9b430f6fb59570fe953e5.tar.gz
freebsd-ports-gnome-787372387851ae75fff9b430f6fb59570fe953e5.tar.zst
freebsd-ports-gnome-787372387851ae75fff9b430f6fb59570fe953e5.zip
- Don't clobber portsentry.ignore on upgrade
PR: ports/72689 Requested by: Alex de Kruijff <freebsd@akruijff.dds.nl>
Diffstat (limited to 'security')
-rw-r--r--security/portsentry/Makefile2
-rw-r--r--security/portsentry/pkg-plist4
2 files changed, 4 insertions, 2 deletions
diff --git a/security/portsentry/Makefile b/security/portsentry/Makefile
index ea1020193ba4..86f0cfc1e5f5 100644
--- a/security/portsentry/Makefile
+++ b/security/portsentry/Makefile
@@ -23,7 +23,7 @@ post-patch:
do-install:
${INSTALL_DATA} ${WRKSRC}/portsentry.conf ${PREFIX}/etc/portsentry.conf.default
- ${INSTALL_DATA} ${WRKSRC}/portsentry.ignore ${PREFIX}/etc
+ ${INSTALL_DATA} ${WRKSRC}/portsentry.ignore ${PREFIX}/etc/portsentry.ignore.default
${INSTALL_PROGRAM} ${WRKSRC}/portsentry ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
diff --git a/security/portsentry/pkg-plist b/security/portsentry/pkg-plist
index 126875101524..85776fa59cbe 100644
--- a/security/portsentry/pkg-plist
+++ b/security/portsentry/pkg-plist
@@ -2,7 +2,9 @@ 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 %B/portsentry.conf %D/etc/portsentry.conf ; fi
-etc/portsentry.ignore
+@unexec if cmp -s %D/etc/portsentry.ignore %D/etc/portsentry.ignore.default; then rm -f %D/etc/portsentry.ignore; fi
+etc/portsentry.ignore.default
+@exec if [ ! -f %D/etc/portsentry.ignore ] ; then cp -p %B/portsentry.ignore %D/etc/portsentry.ignore ; fi
share/doc/portsentry/README.install
share/doc/portsentry/README.methods
share/doc/portsentry/README.stealth