1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/www/squid25/pkg-deinstall
Sergei Kolobov f7a539c509 - 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
2004-02-02 15:28:16 +00:00

37 lines
918 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
PATH=/bin:/usr/bin:/usr/sbin
pkgname=$1
case $2 in
DEINSTALL)
cd ${PKG_PREFIX}/etc/squid || exit 1
for f in squid.conf mime.conf msntauth.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 -p ${PKG_PREFIX}/squid/logs 2>/dev/null
echo "===> post-deinstallation information for ${pkgname}"
echo ""
echo " Please note that ${pkgname} 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