2004-01-16 22:18:20 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin
|
|
|
|
|
|
|
|
case $2 in
|
|
|
|
DEINSTALL)
|
2004-02-02 16:28:16 +01:00
|
|
|
cd ${PKG_PREFIX}/etc/squid || exit 1
|
2005-05-19 16:17:01 +02:00
|
|
|
for f in cachemgr.conf mime.conf msntauth.conf squid.conf; do
|
2004-02-02 16:28:16 +01:00
|
|
|
cmp -s -z ${f} ${f}.default && rm ${f}
|
|
|
|
done
|
2004-01-16 22:18:20 +01:00
|
|
|
;;
|
|
|
|
POST-DEINSTALL)
|
2004-04-28 21:49:18 +02:00
|
|
|
echo "===> post-deinstallation information for $1"
|
2004-01-16 22:18:20 +01:00
|
|
|
echo ""
|
2005-11-01 15:05:59 +01:00
|
|
|
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"
|
2004-01-16 22:18:20 +01:00
|
|
|
echo ""
|
2005-01-26 18:56:25 +01:00
|
|
|
if [ -d ${PKG_PREFIX}/squid -o -d ${PKG_PREFIX}/etc/squid ] ; then
|
|
|
|
echo ""
|
2005-11-01 15:05:59 +01:00
|
|
|
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."
|
2005-01-26 18:56:25 +01:00
|
|
|
fi
|
2004-01-16 22:18:20 +01:00
|
|
|
echo ""
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 64
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
exit 0
|