summaryrefslogtreecommitdiff
path: root/net-mgmt/smokeping/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/smokeping/pkg-deinstall')
-rw-r--r--net-mgmt/smokeping/pkg-deinstall55
1 files changed, 0 insertions, 55 deletions
diff --git a/net-mgmt/smokeping/pkg-deinstall b/net-mgmt/smokeping/pkg-deinstall
deleted file mode 100644
index e02852135496..000000000000
--- a/net-mgmt/smokeping/pkg-deinstall
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-echo 'Stopping Smokeping daemon.'
-if [ -f ${PKG_PREFIX}/var/smokeping/smokeping.pid ]; then
- if [ -x ${PKG_PREFIX}/etc/rc.d/smokeping.sh ]; then
- ${PKG_PREFIX}/etc/rc.d/smokeping.sh stop > /dev/null
- fi
- rm ${PKG_PREFIX}/var/smokeping/smokeping.pid
-fi
-
-case $2 in
-POST-DEINSTALL)
-
- if [ ! -n "$BATCH" ]; then
-
- if [ -d ${PKG_PREFIX}/etc/smokeping -o -d ${PKG_PREFIX}/var/smokeping ]; then
- echo '================================================================='
- echo
- echo 'You seem to have some custom config and data.'
- echo 'The "%%USER%%" user and "%%GROUP%%" group were therefore not deleted.'
- echo
- echo 'You may delete them with:'
- echo
- echo ' pw groupdel %%GROUP%%'
- echo ' pw userdel %%USER%%'
- echo
- echo 'The config and data can be deleted with:'
- echo
- echo " rm -R ${PKG_PREFIX}/etc/smokeping"
- echo " rm -R ${PKG_PREFIX}/var/smokeping"
- echo
- echo '================================================================='
- else
- if pw groupdel -n %%GROUP%%; then
- echo 'Removed group "%%GROUP%%".'
- else
- echo 'Removing group "%%GROUP%%" failed...'
- exit 1
- fi
-
- if pw userdel -n %%USER%%; then
- echo 'Removed user "%%USER%%".'
- else
- echo 'Removing user "%%USER%%" failed...'
- exit 1
- fi
- fi
- fi
-
- exit 0
- ;;
-esac