aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2001-06-18 06:24:02 +0800
committeradrian <adrian@FreeBSD.org>2001-06-18 06:24:02 +0800
commit73fe8780aec4c0d79f97f6693c11f7f45dafe67f (patch)
tree3a2fb139a19998d23bdc410c5041ddce1614e92c /www
parentacaf4d3b052d9e7fcbf0145cc857c4c2c7a401be (diff)
downloadfreebsd-ports-graphics-73fe8780aec4c0d79f97f6693c11f7f45dafe67f.tar.gz
freebsd-ports-graphics-73fe8780aec4c0d79f97f6693c11f7f45dafe67f.tar.zst
freebsd-ports-graphics-73fe8780aec4c0d79f97f6693c11f7f45dafe67f.zip
Make sure we don't delete mime.conf and squid.conf at package
uninstallation time if they've been modified.
Diffstat (limited to 'www')
-rw-r--r--www/squid/Makefile2
-rw-r--r--www/squid/pkg-plist6
-rw-r--r--www/squid24/Makefile2
-rw-r--r--www/squid24/pkg-plist6
-rw-r--r--www/squid25/Makefile2
-rw-r--r--www/squid25/pkg-plist6
-rw-r--r--www/squid26/Makefile2
-rw-r--r--www/squid26/pkg-plist6
-rw-r--r--www/squid27/Makefile2
-rw-r--r--www/squid27/pkg-plist6
-rw-r--r--www/squid30/Makefile2
-rw-r--r--www/squid30/pkg-plist6
-rw-r--r--www/squid31/Makefile2
-rw-r--r--www/squid31/pkg-plist6
14 files changed, 35 insertions, 21 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile
index 5b71dc952dd..45e0fb0e977 100644
--- a/www/squid/Makefile
+++ b/www/squid/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/squid/pkg-plist b/www/squid/pkg-plist
index 38572224f94..449d9cca353 100644
--- a/www/squid/pkg-plist
+++ b/www/squid/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
diff --git a/www/squid24/Makefile b/www/squid24/Makefile
index 5b71dc952dd..45e0fb0e977 100644
--- a/www/squid24/Makefile
+++ b/www/squid24/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/squid24/pkg-plist b/www/squid24/pkg-plist
index 38572224f94..449d9cca353 100644
--- a/www/squid24/pkg-plist
+++ b/www/squid24/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
diff --git a/www/squid25/Makefile b/www/squid25/Makefile
index 5b71dc952dd..45e0fb0e977 100644
--- a/www/squid25/Makefile
+++ b/www/squid25/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/squid25/pkg-plist b/www/squid25/pkg-plist
index 38572224f94..449d9cca353 100644
--- a/www/squid25/pkg-plist
+++ b/www/squid25/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
diff --git a/www/squid26/Makefile b/www/squid26/Makefile
index 5b71dc952dd..45e0fb0e977 100644
--- a/www/squid26/Makefile
+++ b/www/squid26/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/squid26/pkg-plist b/www/squid26/pkg-plist
index 38572224f94..449d9cca353 100644
--- a/www/squid26/pkg-plist
+++ b/www/squid26/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
diff --git a/www/squid27/Makefile b/www/squid27/Makefile
index 5b71dc952dd..45e0fb0e977 100644
--- a/www/squid27/Makefile
+++ b/www/squid27/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/squid27/pkg-plist b/www/squid27/pkg-plist
index 38572224f94..449d9cca353 100644
--- a/www/squid27/pkg-plist
+++ b/www/squid27/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
diff --git a/www/squid30/Makefile b/www/squid30/Makefile
index 5b71dc952dd..45e0fb0e977 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 38572224f94..449d9cca353 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
diff --git a/www/squid31/Makefile b/www/squid31/Makefile
index 5b71dc952dd..45e0fb0e977 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 38572224f94..449d9cca353 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