diff options
author | linimon <linimon@FreeBSD.org> | 2004-12-19 10:21:06 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2004-12-19 10:21:06 +0800 |
commit | 400d085f9b70e9a966565daee9e49e534bcb1704 (patch) | |
tree | 380aa53d0834f7d9786c277a0c1f7775796316d0 /www | |
parent | 9c401331dabf3fa7e0a63fc0bca199551682e454 (diff) | |
download | freebsd-ports-gnome-400d085f9b70e9a966565daee9e49e534bcb1704.tar.gz freebsd-ports-gnome-400d085f9b70e9a966565daee9e49e534bcb1704.tar.zst freebsd-ports-gnome-400d085f9b70e9a966565daee9e49e534bcb1704.zip |
As previously announced, remove www/squid24. It is obsolete, no longer
supported, and has security problems.
Approved by: former maintainer
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/squid24/Makefile | 292 | ||||
-rw-r--r-- | www/squid24/distinfo | 6 | ||||
-rw-r--r-- | www/squid24/files/patch-auth_modules_LDAP_Makefile.in | 11 | ||||
-rw-r--r-- | www/squid24/files/patch-lib::strerror.c | 11 | ||||
-rw-r--r-- | www/squid24/files/patch-lib::util.c | 11 | ||||
-rw-r--r-- | www/squid24/files/squid.sh | 69 | ||||
-rw-r--r-- | www/squid24/pkg-deinstall | 36 | ||||
-rw-r--r-- | www/squid24/pkg-descr | 24 | ||||
-rw-r--r-- | www/squid24/pkg-install | 172 | ||||
-rw-r--r-- | www/squid24/pkg-plist | 59 |
11 files changed, 0 insertions, 692 deletions
diff --git a/www/Makefile b/www/Makefile index a3e4b7be8512..1baea6e3995b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -657,7 +657,6 @@ SUBDIR += snarf SUBDIR += snownews SUBDIR += squid - SUBDIR += squid24 SUBDIR += squidclients SUBDIR += squidguard SUBDIR += squidpurge diff --git a/www/squid24/Makefile b/www/squid24/Makefile deleted file mode 100644 index 48a946994660..000000000000 --- a/www/squid24/Makefile +++ /dev/null @@ -1,292 +0,0 @@ -# New ports collection makefile for: squid24 -# Date created: Tue Mar 27 14:56:08 CEST 2001 -# Whom: Adrian Chadd <adrian@FreeBSD.org> -# -# $FreeBSD$ -# -# Tunables not (yet) configurable via 'make config': -# SQUID_{U,G}ID -# Which user/group squid should run as (default: squid/squid). -# The user and group will be created if they do not already exist using -# a uid:gid of 100:100. -# NOTE: before version 2.4.7_11, these settings defaulted to -# nobody/nogroup. -# If you wish to keep these settings, please define SQUID_UID=nobody and -# SQUID_GID=nogroup in your make environment before you start the update. -# NOTE2: -# Before version 2.4_12 the numerical id chosen for SQUID_UID (and -# SQUID_GID respectively) was the first free id greater than or equal 3128. -# If you wish to move your squid user to id 100:100, run "make changeuser", -# please see the changeuser target's definition for further information. -# -# SQUID_LANGUAGE -# The set of error pages to be installed. Valid values are: -# Bulgarian Czech Danish Dutch English Estonian Finnish -# French German Hungarian Italian Japanese Korean Polish -# Portuguese Romanian Russian-1251 Russian-koi8-r Serbian -# Simplify_Chinese Slovak Spanish Swedish Traditional_Chinese -# Turkish -# (default: English) -# -# SQUID_CONFIGURE_ARGS -# Additional configuration options, see below for a list - -PORTNAME= squid -PORTVERSION= 2.4 -PORTREVISION= 13 -CATEGORIES= www -MASTER_SITES= \ - ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ - ftp://ftp.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \ - ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \ - ftp://ftp.leo.org/pub/comp/general/infosys/www/servers/squid/%SUBDIR%/ \ - ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} -MASTER_SITE_SUBDIR= squid-2/STABLE -DISTNAME= squid-2.4.STABLE7 -EXTRACT_SUFX= -src.tar.gz -DIST_SUBDIR= squid2.4 - -DEPRECATED= This version no longer supported and contains vulnerabilities -EXPIRATION_DATE=2004-11-31 - -PATCH_SITES= http://www.squid-cache.org/Versions/v2/2.4/bugs/ -PATCHFILES= squid-2.4.STABLE7-url_port.patch \ - squid-2.4.STABLE7-url_escape.patch -PATCH_DIST_STRIP= -p1 - -MAINTAINER= tmseck@netcologne.de -COMMENT= The successful WWW proxy cache and accelerator - -CONFLICTS= squid-2.[^4]* - -GNU_CONFIGURE= yes -STRIP= # we need to strip the binaries manually -MAKEFILE= makefile -USE_PERL5= yes -USE_REINPLACE= yes - -LATEST_LINK= squid24 - -SQUID_UID?= squid -SQUID_GID?= squid -SQUID_LANGUAGE?= English - -docs= QUICKSTART README doc/debug-sections.txt -sbin= RunAccel RunCache client squid \ - getpwnam_auth ncsa_auth yp_auth -libexec= cachemgr.cgi diskd unlinkd msnt_auth pam_auth \ - smb_auth smb_auth.sh - -OPTIONS= SQUID_LDAP_AUTH "Install LDAP authentication helpers" off \ - SQUID_DELAY_POOLS "Enable delay pools" off \ - SQUID_SNMP "Enable SNMP support" off \ - SQUID_CARP "Enable CARP support" off \ - SQUID_PINGER "Install the icmp helper" off \ - SQUID_DNS_HELPER "Use the old 'dnsserver' helper" off \ - SQUID_HTCP "Enable HTCP support" off \ - SQUID_VIA_DB "Enable forward/via database" off \ - SQUID_CACHE_DIGESTS "Enable cache digests" off \ - SQUID_WCCP "Enable Web Cache Coordination Protocol" on \ - SQUID_STRICT_HTTP "Be strictly HTTP compliant" off \ - SQUID_UNDERSCORES "Allow underscores in hostnames" on \ - SQUID_IDENT "Enable ident (RFC 931) lookups" on \ - SQUID_USERAGENT_LOG "Enable User-Agent-header logging" off - -CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ - --datadir=${PREFIX}/etc/squid \ - --libexecdir=${PREFIX}/libexec/squid \ - --localstatedir=${PREFIX}/squid \ - --enable-storeio="ufs diskd null" \ - --enable-removal-policies="lru heap" \ - --enable-err-language=${SQUID_LANGUAGE} - -.include <bsd.port.pre.mk> - -# Authentication methods and modules: - -auth_modules= MSNT NCSA PAM SMB YP getpwnam -.if defined(WITH_SQUID_LDAP_AUTH) -USE_OPENLDAP= yes -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -auth_modules+= LDAP -libexec+= squid_ldap_auth -.endif - -CONFIGURE_ARGS+= --enable-auth-modules="${auth_modules}" - -# Other options set via 'make config': - -.if defined(WITH_SQUID_DELAY_POOLS) -CONFIGURE_ARGS+= --enable-delay-pools -.endif -.if defined(WITH_SQUID_SNMP) -CONFIGURE_ARGS+= --enable-snmp -.endif -.if defined(WITH_SQUID_CARP) -CONFIGURE_ARGS+= --enable-carp -.endif -.if defined(WITH_SQUID_PINGER) -CONFIGURE_ARGS+= --enable-icmp -libexec+= pinger -.endif -.if defined(WITH_SQUID_DNS_HELPER) -CONFIGURE_ARGS+= --disable-internal-dns -libexec+= dnsserver -.endif -.if defined(WITH_SQUID_HTCP) -CONFIGURE_ARGS+= --enable-htcp -.endif -.if defined(WITH_SQUID_VIA_DB) -CONFIGURE_ARGS+= --enable-forw-via-db -.endif -.if defined(WITH_SQUID_CACHE_DIGESTS) -CONFIGURE_ARGS+= --enable-cache-digests -.endif -.if defined(WITHOUT_SQUID_WCCP) -CONFIGURE_ARGS+= --disable-wccp -.endif -.if !defined(WITHOUT_SQUID_UNDERSCORES) -CONFIGURE_ARGS+= --enable-underscores -.endif -.if defined(WITH_SQUID_STRICT_HTTP) -CONFIGURE_ARGS+= --disable-http-violations -.endif -.if defined(WITHOUT_SQUID_IDENT) -CONFIGURE_ARGS+= --disable-ident-lookups -.endif -.if defined(WITH_SQUID_USERAGENT_LOG) -CONFIGURE_ARGS+= --enable-useragent-log -.endif - -.if !defined(NOPORTDOCS) -PORTDOCS= ${docs:T} -.endif -PLIST_DIRS= libexec/squid -PLIST_FILES= etc/rc.d/squid.sh etc/squid/mib.txt \ - etc/squid/mime.conf.default etc/squid/squid.conf.default -PLIST_FILES+= ${libexec:S/^/libexec\/squid\//} ${sbin:S/^/sbin\//} - -# Other not so common configure options you can set via SQUID_CONFIGURE_ARGS: -# Please see the configure script in the squid source distribution for a -# complete list. -# -# --enable-dlmalloc -# Compile and use the malloc package from Doug Lea -# --enable-gnuregex -# Compile and use the supplied GNUregex routines instead of BSD regex. -# --enable-xmalloc-debug -# Enable simple malloc debugging -# --enable-xmalloc-debug-count -# Detailed trace of memory allocations -# --enable-xmalloc-statistics -# Show malloc statistics in cachemgr status pages -# --enable-mem-gen-trace -# Enable generic memory use tracing -# --enable-kill-parent-hack -# Kill parent (eg: RunCache) on shutdown (use with great care!!) -# --enable-time-hack -# Optimize time updates to one per second rather than calling gettimeofday() -# --enable-cachemgr-hostname=some.hostname -# Set an explicit hostname in cachemgr.cgi -# --enable-truncate -# Use truncate() rather than unlink() -# -# This option does not yet work on FreeBSD: -# -# --enable-ipf-transparent -# Enable Transparent Proxy support for IP-Filter systems (incl 3.0) -# (IPFilter headers are not currently installed to the base system, -# PRs ports/60700 and misc/44148 describe the problem; see -# http://www.squid-cache.org/Doc/FAQ/FAQ-17.html for information -# about how to do transparent proxying with ipfw) -# -# --enable-ssl -# This does not build anymore with recent OpenSSL versions - -CONFIGURE_ARGS+= ${SQUID_CONFIGURE_ARGS} - -CONFIGURE_ENV+= CFLAGS="${CFLAGS}" \ - LDFLAGS="${LDFLAGS}" -post-patch: - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure - -pre-configure: - @${REINPLACE_CMD} -e 's|%%SQUID_UID%%|${SQUID_UID}|g' \ - -e 's|%%SQUID_GID%%|${SQUID_GID}|g' ${WRKSRC}/src/cf.data.pre - -pre-install: -# Prevent installation of .orig files by deleting them. - @${FIND} ${WRKSRC} -name '*.bak' -delete - @${FIND} ${WRKSRC} -name '*.orig' -delete - @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ - -e 's|%%SQUID_UID%%|${SQUID_UID}|g' ${FILESDIR}/squid.sh \ - >${WRKDIR}/squid.sh - -pre-su-install: - @${SETENV} squid_user=${SQUID_UID} squid_group=${SQUID_GID} \ - PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - -post-install: -.if defined(WITH_SQUID_PINGER) - cd ${WRKSRC}/src && make install-pinger - ${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger - ${CHGRP} ${SQUID_GID} ${PREFIX}/libexec/squid/pinger -.endif - ${INSTALL_SCRIPT} ${WRKDIR}/squid.sh ${PREFIX}/etc/rc.d -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${DOCSDIR} -.endif - -cd ${PREFIX}/libexec/squid && ${STRIP_CMD} ${libexec} - -cd ${PREFIX}/sbin && ${STRIP_CMD} ${sbin} - @${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - -changeuser: -# Recover from the problem that earlier versions of this port created the -# squid pseudo-user with an id greater than 999 which is not allowed in -# FreeBSD's ports system. The port now uses id 100:100. -# NOTE: -# This target assumes that SQUID_GID is the primary group of SQUID_UID. If you -# have a different setup, do not run this target! -.if ${SQUID_UID:L} == nobody - @${ECHO_CMD} "'nobody' is a system user, you do not need to execute"; \ - ${ECHO_CMD} "this target!" - exit 1 -.endif - @if [ `${ID} -u` -ne 0 ]; \ - then ${ECHO_CMD} "Sorry, you must be root to use this target."; exit 1; fi; \ - current_uid=`id -u ${SQUID_UID}`; \ - current_gid=`pw groupshow ${SQUID_GID}|cut -f 3 -d :`; \ - ${ECHO_CMD} "I will remove this user:"; \ - ${ID} -P $${current_uid}; \ - ${ECHO_CMD} "and this group:"; \ - pw groupshow ${SQUID_GID}; \ - ${ECHO_CMD} "I will then re-create them with a user and group id of 100."; \ - ${ECHO_CMD} "Then all files and directories under ${PREFIX} and /var that"; \ - ${ECHO_CMD} "are owned by uid $${current_uid} will be chown(1)'ed."; \ - ${ECHO_CMD} "After that, all files and directories that were accessible"; \ - ${ECHO_CMD} "by group $${current_gid} will chgrp(1)'ed respectively."; \ - ${ECHO_CMD} "Note that this assumes group '${SQUID_GID}' to be the primary"; \ - ${ECHO_CMD} "group of user '${SQUID_UID}'. If you have a different setup"; \ - ${ECHO_CMD} "please abort this target now."; \ - read -p "Press RETURN to continue or CTRL-C to abort:" dummy ; \ - ${ECHO_CMD} "OK, here we go:"; \ - ${ECHO_CMD} "deleting user $${current_uid} and his primary group..."; \ - pw userdel -u $${current_uid}; \ - ${ECHO_CMD} "adding user ${SQUID_UID} with id 100..."; \ - pw groupadd -n ${SQUID_GID} -g 100; \ - pw useradd -n ${SQUID_UID} -u 100 -c "squid caching-proxy pseudo user" \ - -d ${PREFIX}/squid -s /sbin/nologin -h - ; \ - ${ECHO_CMD} "chown(1)'ing everything under ${PREFIX} from $${current_uid} to 100..."; \ - ${FIND} -H ${PREFIX} -user $${current_uid} -exec ${CHOWN} 100 {} \; ; \ - ${ECHO_CMD} "chgrp(1)'ing everything under ${PREFIX} from $${current_gid} to 100..."; \ - ${FIND} -H ${PREFIX} -group $${current_gid} -exec ${CHOWN} :100 {} \; ; \ - ${ECHO_CMD} "chown(1)'ing everything under /var from $${current_uid} to 100..."; \ - ${FIND} -H /var -user $${current_uid} -exec ${CHOWN} 100 {} \; ; \ - ${ECHO_CMD} "chgrp(1)'ing everything under /var from $${current_gid} to 100..."; \ - ${FIND} -H /var -group $${current_gid} -exec ${CHOWN} :100 {} \; ; \ - ${ECHO_CMD} "Finished." - -.include <bsd.port.post.mk> diff --git a/www/squid24/distinfo b/www/squid24/distinfo deleted file mode 100644 index 08c4490dbe3a..000000000000 --- a/www/squid24/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -MD5 (squid2.4/squid-2.4.STABLE7-src.tar.gz) = 3b91136b8ddcc37196716fa6e85a14b2 -SIZE (squid2.4/squid-2.4.STABLE7-src.tar.gz) = 1087532 -MD5 (squid2.4/squid-2.4.STABLE7-url_port.patch) = 06c240335e8624f509ba09bbb3da9e0e -SIZE (squid2.4/squid-2.4.STABLE7-url_port.patch) = 796 -MD5 (squid2.4/squid-2.4.STABLE7-url_escape.patch) = e638eb8fadf1c66adcc808cc9f253286 -SIZE (squid2.4/squid-2.4.STABLE7-url_escape.patch) = 821 diff --git a/www/squid24/files/patch-auth_modules_LDAP_Makefile.in b/www/squid24/files/patch-auth_modules_LDAP_Makefile.in deleted file mode 100644 index a1f0a75d5289..000000000000 --- a/www/squid24/files/patch-auth_modules_LDAP_Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- auth_modules/LDAP/Makefile.in.orig Tue Feb 3 10:27:52 2004 -+++ auth_modules/LDAP/Makefile.in Tue Feb 3 10:29:08 2004 -@@ -36,6 +36,8 @@ - RM = @RM@ - SHELL = /bin/sh - -+INCLUDE = -I. -I../../include -I$(top_srcdir)/include -+CFLAGS = $(AC_CFLAGS) $(INCLUDE) $(DEFINES) - - all: $(LDAP_EXE) - diff --git a/www/squid24/files/patch-lib::strerror.c b/www/squid24/files/patch-lib::strerror.c deleted file mode 100644 index f2aad05b643e..000000000000 --- a/www/squid24/files/patch-lib::strerror.c +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/strerror.c.orig Sat Dec 14 17:04:03 2002 -+++ lib/strerror.c Sat Dec 14 17:04:19 2002 -@@ -38,7 +38,7 @@ - #include <errno.h> - #endif - --extern int sys_nerr; -+extern const int sys_nerr; - #if NEED_SYS_ERRLIST && !defined(_SQUID_NETBSD_) - extern char *sys_errlist[]; - #endif diff --git a/www/squid24/files/patch-lib::util.c b/www/squid24/files/patch-lib::util.c deleted file mode 100644 index 36ceb6747395..000000000000 --- a/www/squid24/files/patch-lib::util.c +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/util.c.orig Sat Dec 14 17:04:56 2002 -+++ lib/util.c Sat Dec 14 17:05:04 2002 -@@ -76,7 +76,7 @@ - static char msg[128]; - - #if !defined(__CYGWIN__) --extern int sys_nerr; -+extern const int sys_nerr; - #else - #define sys_nerr _sys_nerr - #endif diff --git a/www/squid24/files/squid.sh b/www/squid24/files/squid.sh deleted file mode 100644 index 0c6f73a1adb4..000000000000 --- a/www/squid24/files/squid.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: /tmp/pcvs/ports/www/squid24/files/Attic/squid.sh,v 1.6 2004-05-02 22:38:36 pav Exp $ -# -# PROVIDE: squid -# REQUIRE: NETWORKING SERVERS -# BEFORE: DAEMON -# KEYWORD: FreeBSD -# -# Note: -# If you are running an rcNG-System (i.e. FreeBSD 5 and later) you need to set -# "squid_enable=YES" in either /etc/rc.conf, /etc/rc.conf.local or -# /etc/rc.conf.d/squid to make this script actually do something. There -# you can also set squid_chdir, squid_user, and squid_flags. -# -# Please see squid(8), rc.conf(5) and rc(8) for further details. - -name="squid" -command=%%PREFIX%%/sbin/squid -extra_commands=reload -reload_cmd="${command} -k reconfigure" -stop_cmd="${command} -k shutdown" -: ${squid_chdir:=%%PREFIX%%/squid/logs} -: ${squid_user:=%%SQUID_UID%%} -: ${squid_flags:="-D"} -default_config=%%PREFIX%%/etc/squid/squid.conf - -if [ -f /etc/rc.subr ]; then - # make use of rcNG features: - . /etc/rc.subr - rcvar=`set_rcvar` - load_rc_config ${name} - # squid(8) will not start if ${default_config} is not present so try - # to catch that beforehand via ${required_files} rather than make - # squid(8) crash. - # If you remove the default configuration file make sure to add - # '-f /path/to/your/squid.conf' to squid_flags - if [ -z "${squid_flags}" ]; then - required_files=${default_config} - fi - required_dirs=${squid_chdir} - run_rc_command "$1" -else - # implement the startup using the "old style" for non-rcNG-systems: - case $1 in - start) - if [ -x "${command}" -a \ - \( -f "${default_config}" -o "${squid_flags}" \) ]; then - echo -n ' squid' - (cd ${squid_chdir} && exec su -fm ${squid_user} -c \ - "${command} ${squid_flags}") - fi - ;; - stop) - if [ -x "${command}" ]; then - echo -n ' squid' - ${stop_cmd} - while ps -xcU ${squid_user} | grep -q squid; do - sleep 2 - done - fi - ;; - *) - echo "usage: ${0##*/} {start|stop}" >&2 - exit 64 - ;; - esac - exit 0 -fi diff --git a/www/squid24/pkg-deinstall b/www/squid24/pkg-deinstall deleted file mode 100644 index 2162b413736e..000000000000 --- a/www/squid24/pkg-deinstall +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: /tmp/pcvs/ports/www/squid24/Attic/pkg-deinstall,v 1.2 2004-05-02 22:38:35 pav Exp $ -# - -PATH=/bin:/usr/bin:/usr/sbin - -case $2 in -DEINSTALL) - cd ${PKG_PREFIX}/etc/squid || exit 1 - for f in squid.conf mime.conf ; do - cmp -s -z ${f} ${f}.default && rm ${f} - done - ;; -POST-DEINSTALL) - rmdir ${PKG_PREFIX}/etc/squid 2>/dev/null - rmdir ${PKG_PREFIX}/squid/cache 2>/dev/null - rmdir ${PKG_PREFIX}/squid/logs 2>/dev/null - rmdir ${PKG_PREFIX}/squid 2>/dev/null - echo "===> post-deinstallation information for $1" - echo "" - echo " Please note that $1 was not completely removed" - echo " from this system." - echo "" - echo " The cache and log directories, squid's user account," - echo " and any modified configuration files have been preserved" - echo " in case you want to install an updated version of squid" - echo " on this system. You must remove them manually if you do" - echo " not want to use squid any longer." - echo "" - ;; -*) - exit 64 - ;; -esac -exit 0 diff --git a/www/squid24/pkg-descr b/www/squid24/pkg-descr deleted file mode 100644 index ab082ef11e4a..000000000000 --- a/www/squid24/pkg-descr +++ /dev/null @@ -1,24 +0,0 @@ -This is the Squid Internet Object Cache developed by the National -Laboratory for Applied Networking Research (NLANR) and Internet -volunteers. This software is freely available for anyone to use. - -This software is based on the Harvest Object Cache developed by -the University of Colorado and the University of Southern California. -The Harvest home page is http://harvest.cs.colorado.edu/. - -ARPA funding for the Harvest project has ended, the squid project has -continued development of the cache where Harvest finished. - -* This version of squid is no longer officially supported. * - -Please see this port's Makefile for a list of compilation options. - -*** UPDATE NOTICE *** -Starting with Version 2.4.7_11 the default user:group changed from -nobody:nogroup to squid:squid. You can restore the old behavior -of this port by specifying SQUID_UID=nobody SQUID_GID=nogroup in -your make environment. Helper applications are now installed to -$PREFIX/libexec/squid instead of $PREFIX/libexec, too. - -You can find further information on the project's website at -WWW: http://www.squid-cache.org/ diff --git a/www/squid24/pkg-install b/www/squid24/pkg-install deleted file mode 100644 index 9eee82933af4..000000000000 --- a/www/squid24/pkg-install +++ /dev/null @@ -1,172 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: /tmp/pcvs/ports/www/squid24/Attic/pkg-install,v 1.10 2004-05-02 22:38:35 pav Exp $ -# - -PATH=/bin:/usr/bin:/usr/sbin -pkgname=$1 -squid_base=${PKG_PREFIX:-/usr/local}/squid -squid_confdir=${PKG_PREFIX:-/usr/local}/etc/squid -if [ -x /usr/sbin/nologin ]; then - nologin=/usr/sbin/nologin -else - nologin=/sbin/nologin -fi -: ${squid_user:=squid} -: ${squid_group:=squid} -squid_gid=100 -squid_uid=100 -# Try to catch the case where the $squid_user might have been created with an -# id greater than or equal 3128. The valid exception is "nobody". -nobody_uid=65534 -nobody_gid=65534 -squid_oldgid=3128 -squid_olduid=3128 -unset wrong_id -case $2 in -PRE-INSTALL) - echo "===> Pre-installation configuration for ${pkgname}" - if ! pw groupshow ${squid_group} -q >/dev/null ; then - echo "There is no group '${squid_group}' on this system, so I will try to create it:" - if ! pw groupadd ${squid_group} -g ${squid_gid} -q ; then - echo "Failed to create group \"${squid_group}\"!" >&2 - echo "Please create it manually." >&2 - exit 1 - else - echo "Group '${squid_group}' created successfully:" - fi - else - echo "I will use the existing group '${squid_group}':" - current_gid=`pw groupshow ${squid_group}|cut -f 3 -d :` - if [ ${current_gid} -ge ${squid_oldgid} \ - -a ${current_gid} -ne ${nobody_gid} ]; then - wrong_id=1 - fi - fi - pw groupshow ${squid_group} - - if ! pw usershow ${squid_user} -q >/dev/null ; then - echo "There is no account '${squid_user}' on this system, so I will try to create it:" - if ! pw useradd -q -n ${squid_user} \ - -u ${squid_uid} -g ${squid_group} \ - -c "squid caching-proxy pseudo user" \ - -d "${squid_base}" -s "${nologin}" \ - -h - ; then - echo "Failed to create user '${squid_user}'!" >&2 - echo "Please create it manually." >&2 - exit 1 - else - echo "User '${squid_user}' created successfully:" - fi - else - echo "I will use the existing user '${squid_user}':" - current_uid=`id -u ${squid_user}` - if [ ${current_uid} -ge ${squid_olduid} \ - -a ${current_uid} -ne ${nobody_uid} ]; - then - wrong_id=1 - fi - fi - pw usershow ${squid_user} - if [ "${wrong_id}" ]; then - echo "" - echo " * NOTICE *" - echo "" - echo "The squid pseudo-user's uid and/or gid have been found" - echo "to be greater than or equal 3128." - echo "" - echo "This is not a problem as such, but violates the FreeBSD" - echo "ports' principle that a ports must not claim a uid greater" - echo "than 999." - echo "" - echo "Since version 2.5.4_11, the squid user is thus created" - echo "with an id of ${squid_uid}:${squid_gid} while earlier versions of this" - echo "port used the first unused uid/gid greater than or" - echo "equal 3128." - echo "" - echo "If you want to change the existing squid user's id, run" - echo "'make changeuser' after the installation has completed." - echo "If you installed this port via a package, issue the" - echo "following commands as root:" - echo "" - echo "pw userdel -u ${current_uid}" - echo "pw groupadd -n ${squid_group} -g ${squid_gid}" - echo "pw useradd -n ${squid_user} -u ${squid_uid} \\" - echo " -c \"squid caching-proxy pseudo user\" \\" - echo " -g ${squid_group} -d ${squid_base} -s /sbin/nologin \\" - echo " -h -" - echo "find -H ${PKG_PREFIX} -user ${current_uid} -exec chown ${squid_user} {} \\;" - echo "find -H ${PKG_PREFIX} -group ${current_gid} -exec chgrp ${squid_group} {} \\;" - echo "" - echo "In case you have installed third party software for squid" - echo "like squidGuard, you should additionally run:" - echo "find -H /var -user ${current_uid} -exec chown ${squid_user} {} \\;" - echo "find -H /var -group ${current_gid} -exec chgrp ${squid_group} {} \\;" - echo "" - if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then - sleep 30 - fi - fi - for dir in cache logs; do - if [ ! -d ${squid_base}/${dir} ]; then - echo "Creating ${squid_base}/${dir}..." - install -d -o ${squid_user} -g ${squid_group} \ - -m 0750 ${squid_base}/${dir} - fi - done - if [ ! -d ${squid_confdir} ]; then - echo "Creating ${squid_confdir}..." - install -d -o root -g ${squid_group} \ - -m 0750 ${squid_confdir} - fi - ;; -POST-INSTALL) - for file in mime.conf squid.conf; do - if [ ! -f ${squid_confdir}/${file} \ - -a -f ${squid_confdir}/${file}.default ]; then - echo "Creating ${file} from default..." - install -c -o root -g ${squid_group} -m 0640 \ - ${squid_confdir}/${file}.default ${squid_confdir}/${file} - fi - done - - echo "===> Post-installation informations for ${pkgname}" - echo "" - echo " o You can find the configuration files for this package" - echo " in the directory ${squid_confdir}." - echo "" - echo " o A cache directory has been created in ${squid_base}/cache." - echo " Log files will be written to ${squid_base}/logs." - echo "" - echo " o The default configuration will deny everyone access to the" - echo " proxy service. Edit the \"http_access\" directives in" - echo " ${squid_confdir}/squid.conf to suit your needs." - echo "" - echo " o If you never ran squid on this system before, you need to" - echo " initialize the cache directory by running \"squid -z\"" - echo " as 'root' or '${squid_user}' before starting squid." - echo "" - tput md - echo " *** UPDATE NOTICE ***" - echo "" - echo " Starting with version 2.4.7_11, all helper applications are" - echo " installed to ${PKG_PREFIX}/libexec/squid instead of" - echo " ${PKG_PREFIX}/libexec." - echo " Please check your squid.conf and update it if necessary." - tput me - echo "" - if [ -f /etc/rc.subr ]; then - echo " Please note that ${PKG_PREFIX}/etc/rc.d/squid.sh" - echo " will not start squid automatically on this system." - echo " You need to set squid_enable=yes in either" - echo " /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/squid" - echo " See ${PKG_PREFIX}/etc/rc.d/squid.sh for more" - echo " configuration options." - echo "" - fi - ;; -*) - exit 64 - ;; -esac -exit 0 diff --git a/www/squid24/pkg-plist b/www/squid24/pkg-plist deleted file mode 100644 index 1a2318947861..000000000000 --- a/www/squid24/pkg-plist +++ /dev/null @@ -1,59 +0,0 @@ -@comment $FreeBSD$ -etc/squid/errors/ERR_ACCESS_DENIED -etc/squid/errors/ERR_CACHE_ACCESS_DENIED -etc/squid/errors/ERR_CACHE_MGR_ACCESS_DENIED -etc/squid/errors/ERR_CANNOT_FORWARD -etc/squid/errors/ERR_CONNECT_FAIL -etc/squid/errors/ERR_DNS_FAIL -etc/squid/errors/ERR_FORWARDING_DENIED -etc/squid/errors/ERR_FTP_DISABLED -etc/squid/errors/ERR_FTP_FAILURE -etc/squid/errors/ERR_FTP_FORBIDDEN -etc/squid/errors/ERR_FTP_NOT_FOUND -etc/squid/errors/ERR_FTP_PUT_CREATED -etc/squid/errors/ERR_FTP_PUT_ERROR -etc/squid/errors/ERR_FTP_PUT_MODIFIED -etc/squid/errors/ERR_FTP_UNAVAILABLE -etc/squid/errors/ERR_INVALID_REQ -etc/squid/errors/ERR_INVALID_URL -etc/squid/errors/ERR_LIFETIME_EXP -etc/squid/errors/ERR_NO_RELAY -etc/squid/errors/ERR_ONLY_IF_CACHED_MISS -etc/squid/errors/ERR_READ_ERROR -etc/squid/errors/ERR_READ_TIMEOUT -etc/squid/errors/ERR_SHUTTING_DOWN -etc/squid/errors/ERR_SOCKET_FAILURE -etc/squid/errors/ERR_TOO_BIG -etc/squid/errors/ERR_UNSUP_REQ -etc/squid/errors/ERR_URN_RESOLVE -etc/squid/errors/ERR_WRITE_ERROR -etc/squid/errors/ERR_ZERO_SIZE_OBJECT -etc/squid/icons/anthony-binhex.gif -etc/squid/icons/anthony-bomb.gif -etc/squid/icons/anthony-box.gif -etc/squid/icons/anthony-box2.gif -etc/squid/icons/anthony-c.gif -etc/squid/icons/anthony-compressed.gif -etc/squid/icons/anthony-dir.gif -etc/squid/icons/anthony-dirup.gif -etc/squid/icons/anthony-dvi.gif -etc/squid/icons/anthony-f.gif -etc/squid/icons/anthony-image.gif -etc/squid/icons/anthony-image2.gif -etc/squid/icons/anthony-layout.gif -etc/squid/icons/anthony-link.gif -etc/squid/icons/anthony-movie.gif -etc/squid/icons/anthony-pdf.gif -etc/squid/icons/anthony-portal.gif -etc/squid/icons/anthony-ps.gif -etc/squid/icons/anthony-quill.gif -etc/squid/icons/anthony-script.gif -etc/squid/icons/anthony-sound.gif -etc/squid/icons/anthony-tar.gif -etc/squid/icons/anthony-tex.gif -etc/squid/icons/anthony-text.gif -etc/squid/icons/anthony-unknown.gif -etc/squid/icons/anthony-xbm.gif -etc/squid/icons/anthony-xpm.gif -@dirrm etc/squid/icons -@unexec rmdir -p %D/etc/squid/errors 2>/dev/null || true |