summaryrefslogtreecommitdiff
path: root/packaging/freebsd/security/monkeysphere/pkg-deinstall
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-30 17:25:40 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-30 17:25:40 -0400
commit846174da30ba5e96c6537a1a5c88666b3120177b (patch)
tree14d3c35b4e7a317c0e776e1c5f1009df331b5e88 /packaging/freebsd/security/monkeysphere/pkg-deinstall
parent46cb105f343f7e9e97be60dcf32fae50a1463c29 (diff)
reorganizing FreeBSD port to make it clearer where it in /usr/ports and to make it easier to rebuild the port
Diffstat (limited to 'packaging/freebsd/security/monkeysphere/pkg-deinstall')
-rwxr-xr-xpackaging/freebsd/security/monkeysphere/pkg-deinstall29
1 files changed, 29 insertions, 0 deletions
diff --git a/packaging/freebsd/security/monkeysphere/pkg-deinstall b/packaging/freebsd/security/monkeysphere/pkg-deinstall
new file mode 100755
index 0000000..3000878
--- /dev/null
+++ b/packaging/freebsd/security/monkeysphere/pkg-deinstall
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# a package removal script for monkeysphere (borrowing from
+# monkeysphere's debian/monkeysphere.postrm)
+
+# Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+# Copyright 2008
+
+# FIXME: is /var/lib/monkeysphere the right place for this stuff on
+# FreeBSD?
+VARLIB="/var/monkeysphere"
+
+
+case $2 in
+POST-DEINSTALL)
+ USER=monkeysphere
+# FIXME: This doesn't do anything! Under what circumstances do we
+# want to actually automatically purge all of /var/monkeysphere?
+
+# (note: FreeBSD does not seem to want the package-specific user to be
+# purged at package removal)
+ if pw user show "${USER}" 2>/dev/null >/dev/null; then
+ echo "Warning: If you will *NOT* use this package anymore, please remove the monkeysphere user manually."
+ fi
+ if [ -d "$VARLIB" ] ; then
+ echo "Warning: You may want to remove monkeysphere's cached authentication data and keyrings in $VARLIB"
+ fi
+;;
+esac