summaryrefslogtreecommitdiff
path: root/mail/simscan/files/pkg-deinstall.in
blob: 8f7467628f10dbffacea49805d1f57f28ad44c79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# $FreeBSD$

USER=simscan
GROUP=${USER}

if [ x$2 != xDEINSTALL ]; then
    exit
fi

pw groupdel -n ${GROUP} || true
pw userdel -n ${GROUP} || true

rmdir %%QMAIL_PREFIX%%/%%SIMSCAN_DIR%% || true

echo ""
echo "If you're not updating this port, you can delete %%QMAIL_PREFIX%%/%%SIMSCAN_DIR%% directory"
echo ""