diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2001-06-17 22:24:02 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2001-06-17 22:24:02 +0000 |
commit | a0cf24270f352c33812c5e30cd2446bc203eee0d (patch) | |
tree | add7d8091a13cb79516ddfc4c51132d68066d6a5 /www/squid30 | |
parent | 4f9a79176ba440a1346b4f80f912e96d04cec03c (diff) | |
download | ports-a0cf24270f352c33812c5e30cd2446bc203eee0d.tar.gz ports-a0cf24270f352c33812c5e30cd2446bc203eee0d.zip |
Make sure we don't delete mime.conf and squid.conf at package
uninstallation time if they've been modified.
Notes
Notes:
svn path=/head/; revision=44141
Diffstat (limited to 'www/squid30')
-rw-r--r-- | www/squid30/Makefile | 2 | ||||
-rw-r--r-- | www/squid30/pkg-plist | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/squid30/Makefile b/www/squid30/Makefile index 5b71dc952dd7..45e0fb0e9778 100644 --- a/www/squid30/Makefile +++ b/www/squid30/Makefile @@ -7,7 +7,7 @@ PORTNAME= squid PORTVERSION= 2.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= www MASTER_SITES= \ ftp://ftp.squid-cache.org/pub/squid-2/STABLE/ \ diff --git a/www/squid30/pkg-plist b/www/squid30/pkg-plist index 38572224f947..449d9cca3533 100644 --- a/www/squid30/pkg-plist +++ b/www/squid30/pkg-plist @@ -1,9 +1,11 @@ etc/rc.d/squid.sh etc/squid/mib.txt etc/squid/squid.conf.default -etc/squid/squid.conf +@exec [ ! if -f %B/squid.conf ] && cp %B%f %B/squid.conf +@unexec if cmp -s %D/etc/squid/squid.conf %D/etc/squid/squid.conf.default; then rm -f %D/etc/squid/squid.conf.default; fi etc/squid/mime.conf.default -etc/squid/mime.conf +@exec [ ! if -f %B/mime.conf ] && cp %B%f %B/mime.conf +@unexec if cmp -s %D/etc/squid/mime.conf %D/etc/squid/mime.conf.default; then rm -f %D/etc/squid/mime.conf.default; fi etc/squid/icons/anthony-binhex.gif etc/squid/icons/anthony-bomb.gif etc/squid/icons/anthony-box.gif |