aboutsummaryrefslogtreecommitdiffstats
path: root/net/jabberd/pkg-deinstall
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2003-12-31 00:18:46 +0800
committerdemon <demon@FreeBSD.org>2003-12-31 00:18:46 +0800
commit8b143735231388d06bf78f04e77e3b2f5c41035e (patch)
treea3d40a4ccf1795a7d800b5b831b66d196c85dc19 /net/jabberd/pkg-deinstall
parentd21660280505d358581c278c4d9a604a658ea845 (diff)
downloadfreebsd-ports-gnome-8b143735231388d06bf78f04e77e3b2f5c41035e.tar.gz
freebsd-ports-gnome-8b143735231388d06bf78f04e77e3b2f5c41035e.tar.zst
freebsd-ports-gnome-8b143735231388d06bf78f04e77e3b2f5c41035e.zip
Install startup script jabberd.sh.
Create user/group for jabberd on install.
Diffstat (limited to 'net/jabberd/pkg-deinstall')
-rw-r--r--net/jabberd/pkg-deinstall15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/jabberd/pkg-deinstall b/net/jabberd/pkg-deinstall
new file mode 100644
index 000000000000..400091411f19
--- /dev/null
+++ b/net/jabberd/pkg-deinstall
@@ -0,0 +1,15 @@
+#!/bin/sh
+# $FreeBSD$
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=jabber
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete Jabber user permanently, use 'pw userdel ${USER}'"
+fi
+
+exit 0