diff options
author | adrian <adrian@FreeBSD.org> | 2001-06-17 22:24:02 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2001-06-17 22:24:02 +0000 |
commit | 73fe8780aec4c0d79f97f6693c11f7f45dafe67f (patch) | |
tree | 3a2fb139a19998d23bdc410c5041ddce1614e92c /www/squid31 | |
parent | acaf4d3b052d9e7fcbf0145cc857c4c2c7a401be (diff) | |
download | FreeBSD-ports-73fe8780aec4c0d79f97f6693c11f7f45dafe67f.zip FreeBSD-ports-73fe8780aec4c0d79f97f6693c11f7f45dafe67f.tar.gz |
Make sure we don't delete mime.conf and squid.conf at package
uninstallation time if they've been modified.
Diffstat (limited to 'www/squid31')
-rw-r--r-- | www/squid31/Makefile | 2 | ||||
-rw-r--r-- | www/squid31/pkg-plist | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/squid31/Makefile b/www/squid31/Makefile index 5b71dc9..45e0fb0 100644 --- a/www/squid31/Makefile +++ b/www/squid31/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/squid31/pkg-plist b/www/squid31/pkg-plist index 3857222..449d9cc 100644 --- a/www/squid31/pkg-plist +++ b/www/squid31/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 |