aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/smokeping/pkg-deinstall
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-04-01 10:46:58 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-04-01 10:46:58 +0000
commite28e7b07f32c8de6ac188a9363d351ad3773f5a6 (patch)
treeca5685dd9de38327a4c14950821b4e7ae1795921 /net-mgmt/smokeping/pkg-deinstall
parent3ec81d2f4a6738fb164ee49ced400e0c570f525a (diff)
downloadports-e28e7b07f32c8de6ac188a9363d351ad3773f5a6.tar.gz
ports-e28e7b07f32c8de6ac188a9363d351ad3773f5a6.zip
Notes
Diffstat (limited to 'net-mgmt/smokeping/pkg-deinstall')
-rw-r--r--net-mgmt/smokeping/pkg-deinstall23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-mgmt/smokeping/pkg-deinstall b/net-mgmt/smokeping/pkg-deinstall
new file mode 100644
index 000000000000..65f707cb86d5
--- /dev/null
+++ b/net-mgmt/smokeping/pkg-deinstall
@@ -0,0 +1,23 @@
+#!/bin/sh
+# $FreeBSD$
+#
+
+if [ -f /var/run/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 /var/run/smokeping.pid
+fi
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+if [ -d ${PKG_PREFIX}/smokeping ]; then
+ echo "----------------------------------------------------------------"
+ echo "To delete your custom SmokePing configuration and all collected"
+ echo "data permanently, use 'rm -R ${PKG_PREFIX}/smokeping'"
+ echo "----------------------------------------------------------------"
+fi
+
+exit 0