aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/ejabberd/pkg-deinstall
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2004-08-19 18:11:13 +0800
committersobomax <sobomax@FreeBSD.org>2004-08-19 18:11:13 +0800
commit426d6f1c1fe45e5c58f1aec32a8629bacd791d77 (patch)
tree84d166ab3b903b1a3e6acc38a0f32576768db675 /net-im/ejabberd/pkg-deinstall
parent4a9a9c89683f5c3d142a345d768e13f5f082394a (diff)
downloadfreebsd-ports-gnome-426d6f1c1fe45e5c58f1aec32a8629bacd791d77.tar.gz
freebsd-ports-gnome-426d6f1c1fe45e5c58f1aec32a8629bacd791d77.tar.zst
freebsd-ports-gnome-426d6f1c1fe45e5c58f1aec32a8629bacd791d77.zip
Add ejabberd 0.7, free and Open Source distributed fault-tolerant Jabber
server. PR: ports/69339 Submitted by: Alexander Timoshenko <gonzo@univ.kiev.ua>
Diffstat (limited to 'net-im/ejabberd/pkg-deinstall')
-rw-r--r--net-im/ejabberd/pkg-deinstall22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-im/ejabberd/pkg-deinstall b/net-im/ejabberd/pkg-deinstall
new file mode 100644
index 000000000000..e5637444dc59
--- /dev/null
+++ b/net-im/ejabberd/pkg-deinstall
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=ejabberd
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete ejabberd user permanently, use 'pw userdel ${USER}'"
+fi
+
+if pw groupshow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete ejabberd group permanently, use 'pw groupdel ${USER}'"
+fi
+
+rm -Rf /var/run/ejabberd
+
+echo "If you wish to delete ejabberd data and log files, remove"
+echo "'/var/spool/ejabberd' and '/var/log/ejabberd' directories."
+
+exit 0