1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/www/squid24/pkg-deinstall
SADA Kenji 093f420733 PR: ports/63652
Synchronize with www/squid.
2004-03-23 17:12:47 +00:00

37 lines
990 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/www/squid24/Attic/pkg-deinstall,v 1.1 2004-03-23 17:12:47 sada Exp $
#
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 ; 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