summaryrefslogtreecommitdiff
path: root/security/sfs/pkg-deinstall
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2002-07-12 02:52:31 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2002-07-12 02:52:31 +0000
commit02f34c6f5f2e9a778ae3cede9acdb17244ffc856 (patch)
tree059af0a71d3a82118d8d6cce05ea88588da813e6 /security/sfs/pkg-deinstall
parentFix MASTER_SITES (diff)
A secure global network file system. SFS names FSs by public keys
PR: ports/40455 Submitted by: Michael Handler <handler@grendel.net>
Notes
Notes: svn path=/head/; revision=62840
Diffstat (limited to 'security/sfs/pkg-deinstall')
-rw-r--r--security/sfs/pkg-deinstall29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/sfs/pkg-deinstall b/security/sfs/pkg-deinstall
new file mode 100644
index 000000000000..cf61b7097f18
--- /dev/null
+++ b/security/sfs/pkg-deinstall
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=sfs
+GROUP=sfs
+
+SFSDIR=/var/spool/sfs
+
+if pw groupshow "${GROUP}" >/dev/null 2>&1; then
+ echo "If you're done with SFS permanently, delete the sfs group manually: pw groupdel ${GROUP}" | fmt
+fi
+
+if pw usershow "${USER}" >/dev/null 2>&1; then
+ echo
+ echo "If you're done with SFS permanently, delete the sfs user manually: pw userdel ${USER}" | fmt
+fi
+
+if [ -d "$PKG_PREFIX/etc/sfs" ] && ! rmdir $PKG_PREFIX/etc/sfs 2>/dev/null; then
+ echo
+ echo "You may wish to investigate the contents of $PKG_PREFIX/etc/sfs and delete the directory if you're done with SFS permanently." | fmt
+fi
+
+if [ -d "$SFSDIR" ] && ! rmdir $SFSDIR 2>/dev/null; then
+ echo
+ echo "You may wish to investigate the contents of $SFSDIR and delete the directory if you're done with SFS permanently." | fmt
+fi