summaryrefslogtreecommitdiffstats
path: root/dns/powerdns-devel/pkg-deinstall
blob: ff77eb95919b08a116057e858b9852d55e012706 (plain)
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
#!/bin/sh
# $OpenBSD$
#
# powerdns de-installation

set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
CONFIG_FILE=$CONFIG_DIR/pdns.conf

if [ -f ${CONFIG_FILE} ]; then
    echo
    echo "+---------------"
    echo "| To completely deinstall the $1 package you need"
    echo "| to perform these steps as root:"
    echo "|"
    echo "|           rm -rf $CONFIG_FILE"
    echo "|"
    echo "| Do not do this if you plan on re-installing $1"
    echo "| at some future time."
    echo "+---------------"
    echo
fi

exit 0
OpenPOWER on IntegriCloud