aboutsummaryrefslogtreecommitdiffstats
path: root/www/squid31/files/pkg-deinstall.in
blob: e96398a3925fb8b471dde43eefd0b0a4f9ea0afc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/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 "     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 -r -n %%SQUID_UID%% -u 100"
    echo ""
    if  [ -d ${PKG_PREFIX}/squid -o -d ${PKG_PREFIX}/etc/squid ] ; then
        echo ""
        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."
    fi
    echo ""
    ;;
*)
    exit 64
    ;;
esac
exit 0