#!/bin/sh # # $FreeBSD$ # PATH=/bin:/usr/bin:/usr/sbin squid_base="/var/squid" squid_cachedir="${squid_base}/cache" squid_confdir=${PKG_PREFIX}/etc/squid squid_logdir="${squid_base}/logs" case $2 in DEINSTALL) cd ${squid_confdir} || exit 1 for f in cachemgr.conf mime.conf msntauth.conf squid.conf; do cmp -s -z ${f} ${f}.default && rm ${f} done # try to cleanup directories in /var: for d in ${squid_cachedir} ${squid_logdir} ${squid_base} ; do rmdir ${d} 2>/dev/null done ;; POST-DEINSTALL) echo "===> post-deinstallation information for $1:" echo "" echo " Note:" echo " Squid related user accounts and groups were not removed." echo "" echo " To remove the '%%SQUID_UID%%' user and the '%%SQUID_GID%%' group which were" echo " created by a default installation of this package, run" echo "" echo " pw userdel -n %%SQUID_UID%% -u 100" if [ -d ${squid_base} -o -d ${squid_confdir} ] ; then echo "" echo " In order to ease updates the cache and log directories" echo " and 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." fi echo "" ;; *) exit 64 ;; esac exit 0