aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabber/files/pkg-deinstall.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/jabber/files/pkg-deinstall.in')
-rw-r--r--net-im/jabber/files/pkg-deinstall.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-im/jabber/files/pkg-deinstall.in b/net-im/jabber/files/pkg-deinstall.in
new file mode 100644
index 000000000000..274d53a37749
--- /dev/null
+++ b/net-im/jabber/files/pkg-deinstall.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=%%JABBER_USER%%
+GROUP=%%JABBER_GROUP%%
+RUNDIR="%%JABBER_RUNDIR%%"
+SPOOLDIR="%%JABBER_SPOOLDIR%%"
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete Jabber user permanently, use 'pw userdel ${USER}'"
+fi
+
+if pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
+ echo "To delete Jabber group permanently, use 'pw groupdel ${USER}'"
+fi
+
+echo "You may want to delete the following directories:"
+echo "${RUNDIR}"
+echo "${SPOOLDIR}"
+
+exit 0