head	1.7;
access;
symbols
	old_RELEASE_6_1_0:1.6
	old_RELEASE_5_5_0:1.6
	old_RELEASE_6_0_0:1.5
	old_RELEASE_5_4_0:1.4
	old_RELEASE_4_11_0:1.3
	old_RELEASE_5_3_0:1.3
	old_RELEASE_4_10_0:1.2;
locks; strict;
comment	@# @;


1.7
date	2006.03.18.17.11.13;	author pav;	state dead;
branches;
next	1.6;

1.6
date	2005.11.01.14.05.59;	author krion;	state Exp;
branches;
next	1.5;

1.5
date	2005.05.19.14.17.01;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2005.01.26.17.56.25;	author sem;	state Exp;
branches;
next	1.3;

1.3
date	2004.04.28.19.49.18;	author krion;	state Exp;
branches;
next	1.2;

1.2
date	2004.02.02.15.28.16;	author sergei;	state Exp;
branches;
next	1.1;

1.1
date	2004.01.16.21.18.20;	author sergei;	state Exp;
branches;
next	;


desc
@@


1.7
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-deinstall,v 1.6 2005/11/01 14:05:59 krion Exp $
#

PATH=/bin:/usr/bin:/usr/sbin

case $2 in
DEINSTALL)
	cd ${PKG_PREFIX}/etc/squid || exit 1
	for f in cachemgr.conf mime.conf msntauth.conf squid.conf; do
		cmp -s -z ${f} ${f}.default && rm ${f}
	done
	;;
POST-DEINSTALL)
	echo "===> post-deinstallation information for $1"
	echo ""
	echo "     Note:"
	echo "     squid related user accounts and groups were not removed."
	echo ""
	echo "     To remove the 'squid' user and the 'squid' group which were"
	echo "     created by a default installation of this package, run"
	echo ""
	echo "     pw userdel -r -n squid -u 100"
	echo ""
	if  [ -d ${PKG_PREFIX}/squid -o -d ${PKG_PREFIX}/etc/squid ] ; then
		echo ""
		echo "     To ease updates, the cache and log directories and"
		echo "     all configuration files modified by you were preserved."
		echo ""
		echo "     Please remove them manually if you do not want to use"
	       	echo "     squid any longer."
	fi
	echo ""
	;;
*)
	exit 64
	;;
esac
exit 0
@


1.6
log
@Update to 2.5.STABLE12

PR:		ports/88327
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-deinstall,v 1.5 2005/05/19 14:17:01 pav Exp $
@


1.5
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-deinstall,v 1.4 2005/01/26 17:56:25 sem Exp $
d18 7
a24 2
	echo "     Please note that squid was not completely removed"
	echo "     from this system:"
a25 1
	echo "     Any squid related user accounts were kept."
d28 5
a32 5
		echo "     Additionally, cache and log directories as well as"
		echo "     configuration files modified by you were preserved"
		echo "     too, in case you want to install an updated version"
		echo "     of squid. You need to remove them manually if you do"
		echo "     not want to use it any longer."
@


1.4
log
@- Integrate vendor patches as published on
  <http://www.squid-cache.org/Versions/v2/2.5/bugs/>:
  + Reject malformed HTTP requests and responses that conflict with the HTTP
    specifications
    This issue is qualified as a security issue by the vendor.
  + PURGE is allowed to delete internal objects (squid bug #1112)
  + Disable Path-MTU discovery on intercepted requests (squid bug #1154)

  (VuXML vid=b4d94fa0-6e38-11d9-9e1e-c296ac722cb3)

- Clean up and correct package list generation. Now installed files
  and directories are visible via PLIST_FILES and PLIST_DIRS.
- Don't claim that squid related files or directories are still present
  after deinstallation when in fact they are not.
- Add "-g" to CFLAGS when WITH_SQUID_STACKTRACES is defined to make this
  option actually useful.

PR:		ports/76628
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-deinstall,v 1.3 2004/04/28 19:49:18 krion Exp $
d11 1
a11 1
	for f in squid.conf mime.conf msntauth.conf; do
@


1.3
log
@- Fix plist
- Bump PORTREVISION
- Clean up pkg-deinstall:
  + remove an unnecessary variable
  + replace rmdir -p with two distinct rmdir calls since we
    do not want to delete $PKG_PREFIX too if it happens to be empty

PR:		ports/65918
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-deinstall,v 1.2 2004/02/02 15:28:16 sergei Exp $
a15 4
	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
d18 2
a19 2
	echo "     Please note that $1 was not completely removed"
	echo "     from this system."
d21 9
a29 5
	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."
@


1.2
log
@- Update distinfo for the http_workarounds patch (again)
  Please see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for details.
  Bump PORTREVISION
- Update to use new ports collection features:
  + USE_SIZE
  + use PORTDOCS and PLIST_FILES and extend the dynamic package list creation
    to include squid's icon files, too
  + move file and directory cleanup on deinstallation to pkg-deinstall
  + get rid of pkg-plist
  + use OPTIONS for the most commonly used options,
    leave SQUID_CONFIGURE_OPTIONS for more obscure options
- document known non-working features
- use lowercase for local variables
- other minor cleanups

PR:		ports/62222
Submitted by:	maintainer
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid/pkg-deinstall,v 1.1 2004/01/16 21:18:20 sergei Exp $
a6 1
pkgname=$1
d18 3
a20 2
	rmdir -p ${PKG_PREFIX}/squid/logs 2>/dev/null
	echo "===> post-deinstallation information for ${pkgname}"
d22 1
a22 1
	echo "     Please note that ${pkgname} was not completely removed"
@


1.1
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$
d11 4
d17 3
@

