diff options
author | miwi <miwi@FreeBSD.org> | 2010-05-02 18:51:08 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2010-05-02 18:51:08 +0800 |
commit | d900ce67044edd0820721dc6001edcd9c13508a4 (patch) | |
tree | 3de351b1b326d26a061d8aad23459d1f6029dbb4 | |
parent | 6d31df780384884d75f711e5cf88c803baab86ec (diff) | |
download | freebsd-ports-gnome-d900ce67044edd0820721dc6001edcd9c13508a4.tar.gz freebsd-ports-gnome-d900ce67044edd0820721dc6001edcd9c13508a4.tar.zst freebsd-ports-gnome-d900ce67044edd0820721dc6001edcd9c13508a4.zip |
- Update to 2.7.STABLE9
- Update MASTER_SITES
- Move default cache and log directories from $PREFIX/squid/ to /var/squid/
PR: 145674
Submitted by: Thomas-Martin Seck <tmseck@web.de> (maintainer)
-rw-r--r-- | www/squid/Makefile | 37 | ||||
-rw-r--r-- | www/squid/distinfo | 6 | ||||
-rw-r--r-- | www/squid/files/pkg-deinstall.in | 12 | ||||
-rw-r--r-- | www/squid/files/pkg-install.in | 2 | ||||
-rw-r--r-- | www/squid/files/pkg-message.in | 9 | ||||
-rw-r--r-- | www/squid/files/squid.in | 8 |
6 files changed, 42 insertions, 32 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile index d29c8edd9872..c2bef1511bf6 100644 --- a/www/squid/Makefile +++ b/www/squid/Makefile @@ -73,24 +73,25 @@ # Enable experimental forward_log directive. # --enable-multicast-miss # Enable experimental multicast notification of cachemisses. +# PORTNAME= squid PORTVERSION= 2.7.${SQUID_STABLE_VER} CATEGORIES= www MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ - ftp://mirrors.24-7-solutions.net/pub/squid/%SUBDIR%/ \ - ftp://ftp.belnet.be/packages/squid/pub/%SUBDIR%/ \ - ftp://ftp.nl.uu.net/pub/unix/www/squid/%SUBDIR%/ \ - ftp://ftp.mirrorservice.org/sites/ftp.squid-cache.org/pub/%SUBDIR%/ \ - ftp://ftp.ntua.gr/pub/www/Squid/%SUBDIR%/ \ - ftp://ftp.ccs.neu.edu/pub/mirrors/squid.nlanr.net/pub/%SUBDIR%/ \ - ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} \ + http://mirrors.ccs.neu.edu/Squid/ \ + ftp://ftp.fu-berlin.de/unix/www/squid/squid/ \ + ftp://ftp.nl.uu.net/pub/unix/www/squid/ \ + ftp://ftp.solnet.ch/mirror/squid/ \ + ftp://ftp.ntua.gr/pub/www/Squid/squid/ \ + http://mirror.aarnet.edu.au/pub/squid/squid/ \ + ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid,} \ http://www.squid-cache.org/Versions/v2/2.7/ \ - http://www3.us.squid-cache.org/Versions/v2/2.7/ \ + http://www2.us.squid-cache.org/Versions/v2/2.7/ \ http://www1.at.squid-cache.org/Versions/v2/2.7/ \ - http://www2.nl.squid-cache.org/Versions/v2/2.7/ \ - http://www1.ru.squid-cache.org/Versions/v2/2.7/ \ - http://www1.uk.squid-cache.org/Versions/v2/2.7/ \ + http://www2.de.squid-cache.org/Versions/v2/2.7/ \ + http://www.eu.squid-cache.org/Versions/v2/2.7/ \ + http://www1.ie.squid-cache.org/Versions/v2/2.7/ \ http://www1.jp.squid-cache.org/Versions/v2/2.7/ \ http://www2.tw.squid-cache.org/Versions/v2/2.7/ MASTER_SITE_SUBDIR= squid @@ -98,11 +99,11 @@ DISTNAME= squid-2.7.STABLE${SQUID_STABLE_VER} DIST_SUBDIR= squid2.7 PATCH_SITES= http://www.squid-cache.org/%SUBDIR%/ \ - http://www3.us.squid-cache.org/%SUBDIR%/ \ + http://www2.us.squid-cache.org/%SUBDIR%/ \ http://www1.at.squid-cache.org/%SUBDIR%/ \ - http://www2.nl.squid-cache.org/%SUBDIR%/ \ - http://www1.ru.squid-cache.org/%SUBDIR%/ \ - http://www1.uk.squid-cache.org/%SUBDIR%/ \ + http://www2.de.squid-cache.org/%SUBDIR%/ \ + http://www.eu.squid-cache.org/%SUBDIR%/ \ + http://www1.ie.squid-cache.org/%SUBDIR%/ \ http://www1.jp.squid-cache.org/%SUBDIR%/ \ http://www2.tw.squid-cache.org/%SUBDIR%/ PATCH_SITE_SUBDIR= Versions/v2/2.7/changesets @@ -112,7 +113,7 @@ PATCH_DIST_STRIP= -p1 MAINTAINER= tmseck@web.de COMMENT= HTTP Caching Proxy -SQUID_STABLE_VER= 8 +SQUID_STABLE_VER= 9 CONFLICTS= squid-2.[^7]* squid-3.* cacheboy-[0-9]* lusca-head-[0-9]* GNU_CONFIGURE= yes @@ -200,7 +201,7 @@ CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \ --sbindir=${PREFIX}/sbin \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ - --localstatedir=${PREFIX}/squid \ + --localstatedir=/var/squid \ --sysconfdir=${PREFIX}/etc/squid \ --enable-removal-policies="lru heap" \ --disable-linux-netfilter \ @@ -395,7 +396,7 @@ PLIST_FILES= ${etc_files:S,^,etc/,} ${icon_files:S,^,etc/squid/icons/,} \ PLIST_DIRS+= etc/squid/errors/${d} PLIST_FILES+= ${error_files:S,^,etc/squid/errors/${d}/,} .endfor -PLIST_DIRS+= etc/squid/errors etc/squid squid/logs squid/cache squid +PLIST_DIRS+= etc/squid/errors etc/squid post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ diff --git a/www/squid/distinfo b/www/squid/distinfo index 3ca9e8be3308..085439af3049 100644 --- a/www/squid/distinfo +++ b/www/squid/distinfo @@ -1,3 +1,3 @@ -MD5 (squid2.7/squid-2.7.STABLE8.tar.bz2) = c061ba1c9ae39d0aaa8eca137f7dd18b -SHA256 (squid2.7/squid-2.7.STABLE8.tar.bz2) = 9409b02fc53518e334395df803a1ae30f4ed385b0f041fb310b4c75e2a49138c -SIZE (squid2.7/squid-2.7.STABLE8.tar.bz2) = 1348473 +MD5 (squid2.7/squid-2.7.STABLE9.tar.bz2) = 3c6642c85470b1079207d43bba25a819 +SHA256 (squid2.7/squid-2.7.STABLE9.tar.bz2) = c0bdfcb5bb68debc1c9441308178bf148c67979b824c892a4710dc80a5b05d5e +SIZE (squid2.7/squid-2.7.STABLE9.tar.bz2) = 1351366 diff --git a/www/squid/files/pkg-deinstall.in b/www/squid/files/pkg-deinstall.in index c775ba284cc2..464332da881b 100644 --- a/www/squid/files/pkg-deinstall.in +++ b/www/squid/files/pkg-deinstall.in @@ -4,13 +4,21 @@ # PATH=/bin:/usr/bin:/usr/sbin +squid_base="/var/squid" +squid_cachedir="${squid_base}/cache" +squid_confdir=${PKG_PREFIX}/etc/squid +squid_logdir="${squid_base}/logs" case $2 in DEINSTALL) - cd ${PKG_PREFIX}/etc/squid || exit 1 + cd ${squid_confdir} || exit 1 for f in cachemgr.conf mime.conf msntauth.conf squid.conf; do cmp -s -z ${f} ${f}.default && rm ${f} done + # try to cleanup directories in /var: + for d in ${squid_cachedir} ${squid_logdir} ${squid_base} ; do + rmdir ${d} 2>/dev/null + done ;; POST-DEINSTALL) echo "===> post-deinstallation information for $1:" @@ -22,7 +30,7 @@ POST-DEINSTALL) echo " created by a default installation of this package, run" echo "" echo " pw userdel -n %%SQUID_UID%% -u 100" - if [ -d ${PKG_PREFIX}/squid -o -d ${PKG_PREFIX}/etc/squid ] ; then + if [ -d ${squid_base} -o -d ${squid_confdir} ] ; then echo "" echo " In order to ease updates the cache and log directories" echo " and all configuration files modified by you were preserved." diff --git a/www/squid/files/pkg-install.in b/www/squid/files/pkg-install.in index 4ab78f0a2ab5..b4807bf82776 100644 --- a/www/squid/files/pkg-install.in +++ b/www/squid/files/pkg-install.in @@ -5,7 +5,7 @@ PATH=/bin:/usr/bin:/usr/sbin pkgname=$1 -squid_base="${PKG_PREFIX:-%%PREFIX%%}/squid" +squid_base="/var/squid" squid_confdir="${PKG_PREFIX:-%%PREFIX%%}/etc/squid" if [ -x /usr/sbin/nologin ]; then nologin=/usr/sbin/nologin diff --git a/www/squid/files/pkg-message.in b/www/squid/files/pkg-message.in index 39c874be134b..e68b917544bb 100644 --- a/www/squid/files/pkg-message.in +++ b/www/squid/files/pkg-message.in @@ -1,8 +1,8 @@ o You can find the configuration files for this package in the directory %%PREFIX%%/etc/squid. - o A cache directory has been created in %%PREFIX%%/squid/cache. - Log files will be written to %%PREFIX%%/squid/logs. + o The default cache directory is /var/squid/cache. + The default log directory is /var/squid/logs. Note: You must initialize new cache directories before you can start @@ -10,8 +10,9 @@ If your cache directories are already initialized (e.g. after an upgrade of squid) you do not need to initialize them again. - o The default configuration will deny everyone access to the - proxy service. Edit the "http_access" directives in + o The default configuration will deny everyone but local networks + as defined in RFC 1918 access to the proxy service. + Edit the "http_access allow/deny" directives in %%PREFIX%%/etc/squid/squid.conf to suit your needs. To enable Squid, set squid_enable=yes in either diff --git a/www/squid/files/squid.in b/www/squid/files/squid.in index 4b7e6c805a70..25ae857ae28e 100644 --- a/www/squid/files/squid.in +++ b/www/squid/files/squid.in @@ -13,7 +13,7 @@ # Additional variables you can define in one of these files: # # squid_chdir: the directory into which the rc system moves into before -# starting Squid. Default: %%PREFIX%%/squid +# starting Squid. Default: /var/squid/logs # # squid_conf: The configuration file that Squid should use. # Default: %%PREFIX%%/etc/squid/squid.conf @@ -32,7 +32,7 @@ # squid_pidfile: # The name (including the full path) of the Squid # master process' PID file. -# Default: %%PREFIX%%/logs/squid/squid.pid. +# Default: /var/squid/logs/squid.pid. # You only need to change this if you changed the # corresponding entry in your Squid configuration. # @@ -73,12 +73,12 @@ stop_cmd="squid_stop" load_rc_config ${name} -squid_chdir=${squid_chdir:-"%%PREFIX%%/squid/logs"} +squid_chdir=${squid_chdir:-"/var/squid/logs"} squid_conf=${squid_conf:-"%%PREFIX%%/etc/squid/squid.conf"} squid_enable=${squid_enable:-"NO"} squid_fib=${squid_fib:-"NONE"} squid_flags=${squid_flags-"-D"} -squid_pidfile=${squid_pidfile:-"%%PREFIX%%/squid/logs/squid.pid"} +squid_pidfile=${squid_pidfile:-"/var/squid/logs/squid.pid"} squid_user=${squid_user:-%%SQUID_UID%%} pidfile=${squid_pidfile} |