mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
33ad773d04
PR: ports/81213 Submitted by: Thomas-Martin Seck <tmseck@netcologne.de> (maintainer)
37 lines
899 B
Bash
37 lines
899 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
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 " Please note that squid was not completely removed"
|
|
echo " from this system:"
|
|
echo ""
|
|
echo " Any squid related user accounts were kept."
|
|
if [ -d ${PKG_PREFIX}/squid -o -d ${PKG_PREFIX}/etc/squid ] ; then
|
|
echo ""
|
|
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."
|
|
fi
|
|
echo ""
|
|
;;
|
|
*)
|
|
exit 64
|
|
;;
|
|
esac
|
|
exit 0
|