head	1.22;
access;
symbols
	old_RELEASE_6_1_0:1.21
	old_RELEASE_5_5_0:1.21
	old_RELEASE_6_0_0:1.18
	old_RELEASE_5_4_0:1.17
	old_RELEASE_4_11_0:1.17
	old_RELEASE_5_3_0:1.16
	old_RELEASE_4_10_0:1.14
	old_RELEASE_5_2_1:1.8
	old_RELEASE_5_2_0:1.8
	old_RELEASE_4_9_0:1.8
	old_RELEASE_5_1_0:1.7
	old_RELEASE_4_8_0:1.7
	old_RELEASE_5_0_0:1.7
	old_old_RELEASE_4_7_0:1.7
	old_old_RELEASE_4_6_2:1.7
	old_old_RELEASE_4_6_1:1.7
	old_old_RELEASE_4_6_0:1.7
	old_old_RELEASE_5_0_DP1:1.7
	old_old_RELEASE_4_5_0:1.7
	old_old_RELEASE_4_4_0:1.7
	old_old_RELEASE_4_3_0:1.7
	old_old_RELEASE_4_2_0:1.6
	old_old_RELEASE_4_1_1:1.6
	old_old_RELEASE_4_1_0:1.6
	old_old_RELEASE_3_5_0:1.6
	old_old_RELEASE_4_0_0:1.6
	old_old_RELEASE_3_4_0:1.6
	old_old_RELEASE_3_3_0:1.6
	old_old_RELEASE_3_2_0:1.5
	old_old_RELEASE_3_1_0:1.5
	old_old_RELEASE_2_2_8:1.5
	old_old_RELEASE_3_0_0:1.5
	old_old_RELEASE_2_2_7:1.5
	old_old_RELEASE_2_2_6:1.5
	old_old_RELEASE_2_2_5:1.3
	old_old_RELEASE_2_2_1:1.3
	old_old_RELEASE_2_2_2:1.3
	old_old_squid_1_0b11:1.1.1.1
	old_old_SQUID:1.1.1;
locks; strict;
comment	@# @;


1.22
date	2006.03.18.17.11.13;	author pav;	state dead;
branches;
next	1.21;

1.21
date	2006.01.09.13.37.54;	author jylefort;	state Exp;
branches;
next	1.20;

1.20
date	2005.12.25.23.38.47;	author edwin;	state Exp;
branches;
next	1.19;

1.19
date	2005.11.01.14.05.59;	author krion;	state Exp;
branches;
next	1.18;

1.18
date	2005.05.19.14.17.01;	author pav;	state Exp;
branches;
next	1.17;

1.17
date	2004.10.13.09.43.48;	author sergei;	state Exp;
branches;
next	1.16;

1.16
date	2004.09.02.06.44.14;	author sem;	state Exp;
branches;
next	1.15;

1.15
date	2004.06.10.15.40.44;	author krion;	state Exp;
branches;
next	1.14;

1.14
date	2004.04.18.17.04.26;	author krion;	state Exp;
branches;
next	1.13;

1.13
date	2004.04.09.18.54.12;	author krion;	state Exp;
branches;
next	1.12;

1.12
date	2004.04.01.14.12.37;	author pav;	state Exp;
branches;
next	1.11;

1.11
date	2004.03.17.07.06.45;	author sergei;	state Exp;
branches;
next	1.10;

1.10
date	2004.02.17.11.07.18;	author sergei;	state Exp;
branches;
next	1.9;

1.9
date	2004.01.16.21.18.20;	author sergei;	state Exp;
branches;
next	1.8;

1.8
date	2003.07.27.08.45.11;	author adrian;	state Exp;
branches;
next	1.7;

1.7
date	2001.03.27.12.28.47;	author adrian;	state Exp;
branches;
next	1.6;

1.6
date	99.06.22.17.21.59;	author steve;	state Exp;
branches;
next	1.5;

1.5
date	97.12.20.10.34.32;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	97.12.06.12.28.09;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	96.11.06.16.37.23;	author peter;	state Exp;
branches;
next	1.2;

1.2
date	96.07.10.21.50.14;	author asami;	state Exp;
branches;
next	1.1;

1.1
date	96.06.03.02.21.13;	author asami;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.06.03.02.21.13;	author asami;	state Exp;
branches;
next	;


desc
@@


1.22
log
@- Update to 2.5.STABLE13
- Implement a new option WITH_SQUID_SASL_AUTH, off by default
- Update the ICAP core patchset to the latest CVS
- Extensive portlintification and cleanups

PR:		ports/94642
Submitted by:	Thomas-Martin Seck <tmseck@@netcologne.de> (maintainer)
@
text
@#!/bin/sh
#
# $FreeBSD: ports/www/squid/pkg-install,v 1.21 2006/01/09 13:37:54 jylefort 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_user:-squid}
squid_group=${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 cachemgr.conf 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 ""
	echo "     Please note that ${PKG_PREFIX}/etc/rc.d/squid.sh is a"
	echo "     new style rc script. This means that squid will not"
	echo "     start automatically at boot time."
	echo ""
	echo "     To enable squid, 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 ""
	echo "     If you want the port to install an old style rc script, run"
	echo "     'make config' and deselect the option to install an"
	echo "     rcNG script."
	echo ""
	;;
*)
	exit 64
	;;
esac
exit 0
@


1.21
log
@Rename the rc script back to squid.sh, since some versions of
/etc/rc.d/localpkg only run scripts ending in .sh

PR:		ports/91387
Submitted by:	Tsurutani Naoki <turutani@@scphys.kyoto-u.ac.jp>, maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.20 2005/12/25 23:38:47 edwin Exp $
@


1.20
log
@[Maintainer] www/squid: rc(8) related fixups

	- Fix rc(8) preamble in the squid run script
	- Use the .sh suffix only for the old style script
	- Do not refer to "rcNG" in pkg-install anymore, rcNG is the default
	  rc style by now
	- Bump PORTREVISION (to mark this change and because the package content
	  changes)

PR:		ports/90858
Submitted by:	Thomas-Martin Seck <tmseck@@netcologne.de>
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.19 2005/11/01 14:05:59 krion Exp $
d150 1
a150 1
	echo "     Please note that ${PKG_PREFIX}/etc/rc.d/squid is a"
d156 1
a156 1
	echo "     See ${PKG_PREFIX}/etc/rc.d/squid for more"
@


1.19
log
@Update to 2.5.STABLE12

PR:		ports/88327
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.18 2005/05/19 14:17:01 pav Exp $
d150 2
a151 2
	echo "     Please note that ${PKG_PREFIX}/etc/rc.d/squid.sh is now"
	echo "     an rcNG script by default. This means that squid will not"
d156 1
a156 1
	echo "     See ${PKG_PREFIX}/etc/rc.d/squid.sh for more"
@


1.18
log
@- Update Squid to 2.5.STABLE10

PR:		ports/81213
Submitted by:	Thomas-Martin Seck <tmseck@@netcologne.de> (maintainer)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.17 2004/10/13 09:43:48 sergei Exp $
d159 1
a159 1
	echo "     If you want to install an old style rc script, run"
@


1.17
log
@- Update to 2.5-STABLE7; this release fixes a security issue regarding
  the SNMP module
- Remove a patch that is now part of the distribution
- Miscellaneuous small fixes:
  + in squid.sh, make stop_command poll for the squid processes' exit in
    the rcNG case too; this eliminates the need to do this in restart_command
  + make the information regarding rcNG'ness in pkg-install easier to read
  + install unstripped binaries if WITH_SQUID_STACKTRACES is defined

PR:		ports/72581
Submitted by:	Thomas-Martin Seck (maintainer)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.16 2004/09/02 06:44:14 sem Exp $
d124 1
a124 1
	for file in mime.conf squid.conf; do
d127 5
a131 4
		echo "Creating ${file} from default..."
		install -c -o root -g ${squid_group} -m 0640 \
		    ${squid_confdir}/${file}.default ${squid_confdir}/${file}
	fi
@


1.16
log
@Implement vendor patches for the following issues:
- try to prevent crashes of the digest helper (squid bug #1031)
- correct parsing of the acl_time directive when multiple time specifications
  are given (squid bug #1060)
- correct "cachemgr config" output for http_header_* directives
  (squid bug #1056)
- recognize the Content-Disposition header to be able to specify
  http_header_access directives using it (squid bug #961)

See <http://www.squid-cache.org/Versions/v2/2.5/bugs/> for further
information.

Reimplement the rcNG support. See UPDATING for details.

PR:		ports/71260
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.15 2004/06/10 15:40:44 krion Exp $
d149 3
a151 4
	echo "     Please note that ${PKG_PREFIX}/etc/rc.d/squid.sh"
	echo "     will not start squid automatically anymore unless you"
	echo "     explicitly configured the port not to install an rcNG"
	echo "     style startup script via 'make config'."
d157 4
@


1.15
log
@- Support systems where pf(4) must be installed from ports (see
  ports/67724, submitted by Michal F. Hanula)
- Change ": foo=${foo:=bar}" into "foo=${foo:-bar}" to make the
  shell scripts easier to read and understand
- Correct credits for the recently published NTLM auth
  vulnerability and fix a nearby braino, too
- Bump PORTREVISION

PR:		ports/67797
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.14 2004/04/18 17:04:26 krion Exp $
d149 9
a157 2
	tput md
	echo "     *** UPDATE NOTICE ***"
a158 15
	echo "     Starting with version 2.5.4_6, 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
@


1.14
log
@- integrate a vendor patch to fix a segfault that occured when
  submitting a blank username in digest authentication (squid bug #954)
  and bump PORTREVISION
- follow Duane Wessel's squid book and use "storage scheme"
  instead of "store type"
- remove trailing whitespace
- no longer hardcode the path of the nologin binary in
  pkg-install and re-wrap pw(8)'s arguments for better readability

PR:		ports/65723
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.13 2004/04/09 18:54:12 krion Exp $
d15 2
a16 2
: ${squid_user:=squid}
: ${squid_group:=squid}
@


1.13
log
@- Integrate two new vendor patches, please see
  <http://www.squid-cache.org/Versions/v2/2.5/bugs/> for details
- Correct OpenSSL support and, while at it, clean up CFLAGS and
  LDFLAGS handling (thanks to dinoex for lots of helpful advice!).
- better be safe than sorry and pass PTHREAD_CFLAGS through in
  case we are compiling with threads
- try to remove the errorpages directory silently since user
  defined directories might legitimately be present
- clean up shell scripting:
  + do not use too many variables
  + use /bin/sh's features instead of external commands

PR:		ports/65356
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.12 2004/04/01 14:12:37 pav Exp $
d10 5
d50 5
a54 3
		if ! pw useradd ${squid_user} -u ${squid_uid} -q \
	  	    -c "squid caching-proxy pseudo user" -g ${squid_group} \
		    -d "${squid_base}" -s "/sbin/nologin" -h - ; then
@


1.12
log
@- Integrate four new vendor patches applicable to FreeBSD, see
  http://www.squid-cache.org/Versions/v2/2.5/bugs/ for details
- Fix OPTIONS parser to handle a default-to-on option correctly
  when either the portoptions file does not exist and/or is not read
  (i.e. the PACKAGE_BUILDING and BATCH cases)
- use IGNORE instead of .error to abort
- use ${ID} consistently
- inform the user of squid.sh's rcNG-ness when /etc/rc.subr is present
  at installation time
- bump PORTREVISION

PR:		ports/64946
Submitted by:	Thomas-Martin Seck <tmseck@@netcologne.de> (maintainer)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.11 2004/03/17 07:06:45 sergei Exp $
d10 2
a11 2
squid_user=${SQUID_USER:=squid}
squid_group=${SQUID_GROUP:=squid}
@


1.11
log
@- update to squid-2.5.STABLE5, including two vendor patches issued so far
- provide more OPTIONS, including (untested) support for pf(4)
- integrate the follow-XFF-patch from devel.squid-cache.org (submitted by
  Michael Ranner), this should improve interaction with dansguardian
- use id 100 for the squid pseudo user instead of choosing the first free
  id greater than 3127, a behaviour introduced with PORTVERSION 2.5.4_6.
  Provide a 'changeuser' target to make migration from a high id to id 100
  possible (requested by Kris Kennaway)
- don't let the port CONFLICT with itself (criticized by Oliver Eikemeier)
- provide rcNG support in squid.sh only on systems with /etc/rc.subr

PR:		ports/64061
Submitted by:	Thomas-Martin Seck (maintainer)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.10 2004/02/17 11:07:18 sergei Exp $
d151 9
@


1.10
log
@- integrate a new patch from squid-cache.org, see
  http://www.squid-cache.org/Versions/v2/2.5/bugs/#squid-2.5.STABLE4-ftp_telnet
  for details
- integrate a patch by Glen Gibb to enable ARP based ACLs and make this an
  OPTION; see also http://www.squid-cache.org/bugs/show_bug.cgi?id=909
  for his original bug report
- integrate additional vendor patches
- make --enable-underscores an OPTION
- set a tighter ACL on libexec/pinger
- use $SQUID_USER and $SQUID_GROUP in pkg-install
- wordsmith comments
- bump PORTREVISION

PR:		ports/62442
Submitted by:	maintainer

- Fix checksum for updated errorpages patch

PR:		ports/62923
Submitted by:	Michal Pasternak <dotz@@irc.pl>
Approved by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-install,v 1.9 2004/01/16 21:18:20 sergei Exp $
d12 9
a20 3
squid_gid=3128
squid_uid=3128

a24 3
		while pw groupshow -g ${squid_gid} -q >/dev/null; do
			squid_gid=`expr ${squid_gid} + 1`
		done
d35 5
d42 1
a43 3
		while pw usershow -u ${squid_uid} -q >/dev/null; do
			squid_uid=`expr ${squid_uid} + 1`
		done
d56 6
d64 39
@


1.9
log
@- configure squid to run under a dedicated "squid" user by default; make use
  of SQUID_{UID,GID} which other squid-related ports already implemented.
  The user/group will be created on the fly if they do not already exist.
- introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and
  use the ldap_auth helper
- install some more authentication helper applications by default
- install helper applications to ${PREFIX}/libexec/squid instead of
  ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr
- cleanup the pre-installation tasks and move them from Makefile and pkg-plist
  into the pkg-install script; make 'make install' and 'pkg_add' actually do
  the same thing
- introduce a pkg-deinstall script
- make squid.sh rcNG compatible (when either /etc/rc_subr or
  ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the
  script will work as a "rc classic" script so no additional dependency on
  the rc_subr port should be needed)
- some Makefile cleanups:
  + the squid installation procedure now correctly strips binaries, so there
    is no need to do this manually anymore
  + generate those parts of pkg-plist dynamically that may be affected by user
    set tunables (currently the localized error pages and helper applications)
  + document the available configuration options in a slightly different style
  + remove some obsolete variable declarations and comments
  + honor NOPORTDOCS
- add CONFLICTS
- add another vendor patch, see
  http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough
  explanation of what has been fixed.
- since we can no longer take the presence of Lithuanian error pages for
  granted, wrap the workaround for the errorpages.patch with '.if exists()'
- bump PORTREVISION

PR:		61315
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD$
d10 2
a11 2
squid_user=${SQUID_UID:=squid}
squid_group=${SQUID_GID:=squid}
@


1.8
log
@Massive upgrade to 2.5-stable3. Thanks!

PR:		ports/54153
Submitted by:	Jon Noack <noackjr@@alumni.rice.edu>
@
text
@d2 3
d6 8
a13 1
PKGNAME=$1
d16 48
a63 1
    PRE-INSTALL)
d65 14
a78 2
    POST-INSTALL)
	echo "==> Post-installation configuration of ${PKGNAME}"
d80 2
a81 1
	echo "    o you DO need running nameservice to start and run ${PKGNAME}"
d83 3
a85 3
	echo "    o use the ${PKGNAME} proxy and caching WWW Server by"
	echo "      configuring your WWW Navigator (Netscape, Mosaic,...)"
	echo "      to use it as a proxy server."
d87 3
a89 3
	echo "    o Note that before you can run ${PKGNAME} you will"
	echo "      need to initialise the cache directory."
	echo "      You can do this by typing \"squid -z\"."
a90 2
	echo "==> Press Enter to edit the ${PKGNAME} config file."
	echo "    (The defaults are reasonable; and the file is well commented)"
d92 6
a97 2
	echo "    You'd certainly like to pay attention to the"
	echo "    ACTUAL locations of cache \"spool\", logfiles, pidfile!"
d99 1
a99 11
	if [ -z "${PACKAGE_BUILDING}" ]; then read skip; fi
	chown root:wheel ${PREFIX}/etc/squid/squid.conf*
	chmod 644 ${PREFIX}/etc/squid/squid.conf*
	[ -f ${PREFIX}/etc/squid/squid.conf ] || \
		cp -fp	${PREFIX}/etc/squid/squid.conf.default \
			${PREFIX}/etc/squid/squid.conf
	[ -f ${PREFIX}/etc/squid/mime.conf ] || \
		cp -fp	${PREFIX}/etc/squid/mime.conf.default \
			${PREFIX}/etc/squid/mime.conf
	${EDITOR:-vi} ${PREFIX}/etc/squid/squid.conf \
		      ${PREFIX}/etc/squid/mime.conf
d101 2
a102 3
    *)
	echo "Unexpected Argument $2!!!"
	exit 1
@


1.7
log
@PR:		26059

Update the squid-2.4 port to actually _be_ squid-2.4 . Phew.
This port builds, installs, packages, pkg_delete's cleanly.

I'm going to run it through some more linting and tidying up before
I'm completely done with it.

Differences from squid22/squid23 :

* install-pinger isn't built. I'll tackle this later, possibly by creating
  a squid user/group. I don't like having suid binaries installed,
  even more so when 99% of the users of this port won't even enable
  ICMP pinging.

* I've enabled the lru and heap replacement policies. LRU is used by
  default, the beauty here is that the user can choose one or the other
  without needing a recompile.

* I've enabled ufs (sync), diskd (async) and null (no caching, only proxying).
  This again lets users choose what they want without needing a recompile.
  The default is still a 100mb cache in /usr/local/squid/cache/ running
  ufs. I would change it to diskd but if the user hasn't tweaked their
  sysV shm/msg parameters sufficiently they'll just be puzzled when squid
  gives mysterious sysV errors (and if they load it up enough to have UFS
  become an issue, they'd be better off reading the squid FAQ anyhow..)
@
text
@d28 10
a37 10
	chown root:wheel ${PREFIX:-/usr/local}/etc/squid/squid.conf*
	chmod 644 ${PREFIX:-/usr/local}/etc/squid/squid.conf*
	[ -f ${PREFIX:-/usr/local}/etc/squid/squid.conf ] || \
		cp -fp	${PREFIX:-/usr/local}/etc/squid/squid.conf.default \
			${PREFIX:-/usr/local}/etc/squid/squid.conf
	[ -f ${PREFIX:-/usr/local}/etc/squid/mime.conf ] || \
		cp -fp	${PREFIX:-/usr/local}/etc/squid/mime.conf.default \
			${PREFIX:-/usr/local}/etc/squid/mime.conf
	${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid/squid.conf \
		      ${PREFIX:-/usr/local}/etc/squid/mime.conf
a44 1

@


1.6
log
@Don't require interaction on install while PACKAGE_BUILDING.
@
text
@d17 4
@


1.5
log
@Unteach pkg/INSTALL about the fictitious mib.txt.default too. :-]
@
text
@d23 1
a23 1
	read skip
@


1.4
log
@Initial squid 1.2beta8 port.  As the squid www page says:
"We are currently in a beta-test period for Squid-1.2. If you like
seeing Squid coredump frequently, please join us!"

"This is BETA software. Do not run this on your production systems.
Logfile formats are subject (and likely) to change at any time without
warning.

Here is a brief list of the major features of this version:
   HTTP/1.1 persisitent connections.
   Lower VM usage; in-transit objects are not held fully in memory.
   Totally independent swap directories.
   Customizable error texts.
   FTP supported internally; no more ftpget.
   Asynchronous disk operations (optional, requires pthreads library).
   Internal icons for FTP and gopher directories.
   snprintf() used everywhere instead of sprintf().
   ...and many more!
"
As well, there is support for using MD5 or SHA hashes of URL's in the
cache index for space (and speed?) savings, SNMP support, poll(2) is
used by default, etc.

Please see  http://squid.nlanr.net/Squid/1.2.beta/  before using.
@
text
@d32 2
a33 4
	[ -f ${PREFIX:-/usr/local}/etc/squid/mib.txt ] || \
		cp -fp	${PREFIX:-/usr/local}/etc/squid/mib.txt.default \
			${PREFIX:-/usr/local}/etc/squid/mib.txt
	${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid/squid.conf
@


1.3
log
@Update from squid-1.0.0 to 1.0.20.  There are a large number of bug fixes
and stability measures.

This port installs in a "FreeBSD-native" tree (like apache) rather than
with a mini hierarchy under /usr/local/squid/{bin,etc,cache,logs,...}

(the default behavior seems to have changed between 1.0.0 and 1.0.20)

Also, build a rc.d/squid.sh script.
@
text
@d29 6
@


1.2
log
@Upgrade from 1.0 beta11 to 1.0 release.

Submitted by:	Andrew Stesin <stesin@@elvisti.kiev.ua>
@
text
@a11 4
	echo "    o add the following line to /etc/rc.local to start"
	echo "      ${PKGNAME} automatically:"
	echo ""
	echo "		(cd /tmp; exec ${PREFIX:-/usr/local}/bin/RunCache) &"
d24 6
a29 6
	chown root:wheel ${PREFIX:-/usr/local}/etc/squid.conf*
	chmod 644 ${PREFIX:-/usr/local}/etc/squid.conf*
	[ -f ${PREFIX:-/usr/local}/etc/squid.conf ] || \
		cp -fp	${PREFIX:-/usr/local}/etc/squid.conf.default \
			${PREFIX:-/usr/local}/etc/squid.conf
	${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid.conf
@


1.1
log
@Initial revision
@
text
@d23 4
a26 2
	echo "    You'd probably like to pay attention to the"
	echo "    ACTUAL locations of BOTH cache \"spool\" AND logfiles."
d30 3
@


1.1.1.1
log
@A post-harvest www cache proxy.

Submitted by:	Andrew V. Stesin <stesin@@elvisti.kiev.ua> and Peter Stubbs <PETERS@@staidan.qld.edu.au>
@
text
@@
