fix up notes about how to prepare a release
[monkeysphere.git] / packaging / freebsd / security / monkeysphere / pkg-deinstall
1 #!/bin/sh
2
3 # a package removal script for monkeysphere (borrowing from
4 # monkeysphere's debian/monkeysphere.postrm)
5
6 # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
7 # Copyright 2008,2009
8
9 # FIXME: is /var/monkeysphere the right place for this stuff on
10 # FreeBSD?
11 VARLIB="/var/monkeysphere"
12
13
14 case $2 in
15 POST-DEINSTALL)
16         USER=monkeysphere
17 # FIXME: This doesn't do anything!  Under what circumstances do we
18 # want to actually automatically purge all of /var/monkeysphere?
19
20 # (note: FreeBSD does not seem to want the package-specific user to be
21 # purged at package removal)
22         if pw user show "${USER}" 2>/dev/null >/dev/null; then
23             echo "Warning: If you will *NOT* use this package anymore, please remove the monkeysphere user manually."
24         fi
25         if [ -d "$VARLIB" ] ; then
26             echo "Warning: You may want to remove monkeysphere's cached authentication data and keyrings in $VARLIB"
27         fi
28 ;;
29 esac