head	1.3;
access;
symbols
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2004.12.19.02.21.05;	author linimon;	state dead;
branches;
next	1.2;

1.2
date	2004.05.02.22.38.35;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2004.03.23.17.12.47;	author sada;	state Exp;
branches;
next	;


desc
@@


1.3
log
@As previously announced, remove www/squid24.  It is obsolete, no longer
supported, and has security problems.

Approved by:	former maintainer
@
text
@#!/bin/sh
#
# $FreeBSD: ports/www/squid24/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
@


1.2
log
@Infrastructural synchronization with www/squid and misc fixes:
- fix CONFLICTS glob
- reinstate LATEST_LINK and name it squid24
- correct CFLAGS/LDFLAGS handling
- remove SQUID_SSL, it does no longer compile
- prefer /bin/sh's features over external programs
- reduce the number of variables in pkg-{de,}install
- no longer hardcode the path to nologin(8)
- inform about squid.sh's rcNG-ness when /etc/rc.subr is present
  at installation time
- other miscellaneous fixes
- schedule removal for the 31st October 2004
- bump PORTREVISION

PR:		ports/66142
Submitted by:	Thomas-Martin Seck <tmseck@@netcologne.de> (maintainer)
@
text
@d3 1
a3 1
# $FreeBSD: ports/www/squid24/pkg-deinstall,v 1.1 2004/03/23 17:12:47 sada Exp $
@


1.1
log
@PR: ports/63652
Synchronize with www/squid.
@
text
@d3 1
a3 1
# $FreeBSD:$
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"
@

