aboutsummaryrefslogtreecommitdiffstats
path: root/www/squid27/pkg-deinstall
blob: 7de2277d43520a2b349d85f58505ec7f3b16c85c (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
#!/bin/sh
#
# $FreeBSD$
#

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 msntauth.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