aboutsummaryrefslogtreecommitdiff
path: root/net/spread4/pkg-deinstall
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-28 18:30:58 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-28 18:30:58 +0000
commit9466619af647e1c8f52e04ed7cd6aeef5f989a9c (patch)
tree81d905af2e448049ecb80dda5d7fe91158d4f2e8 /net/spread4/pkg-deinstall
parentc23d3562ac3bc3ad3c3494c139db6c623767976f (diff)
downloadports-9466619af647e1c8f52e04ed7cd6aeef5f989a9c.tar.gz
ports-9466619af647e1c8f52e04ed7cd6aeef5f989a9c.zip
Notes
Diffstat (limited to 'net/spread4/pkg-deinstall')
-rw-r--r--net/spread4/pkg-deinstall29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/spread4/pkg-deinstall b/net/spread4/pkg-deinstall
new file mode 100644
index 000000000000..1bc2206605ca
--- /dev/null
+++ b/net/spread4/pkg-deinstall
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=spread
+GROUP=spread
+
+echo "===> deinstall note:"
+echo " Please note that user ${USER} and group ${GROUP} was not removed"
+echo " from this system:"
+echo ""
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ echo " To delete spread user permanently"
+ echo " $ pw userdel ${USER}"
+ echo ""
+fi
+
+if pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
+ echo " To delete spread group permanently"
+ echo " $ pw groupdel ${GROUP}"
+ echo ""
+fi
+
+exit 0