X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Ffreebsd%2Fpkg-deinstall;h=30008784182a835c800541d5e7f9a33617c750d1;hb=4885662fcaaad9a065a5ef43e0e243609ee8ac60;hp=84217d57d3e2c165c387c46dbdc13125e1bf6539;hpb=e18b89b0214c423d3a3c118190aab6549e461d7f;p=monkeysphere.git diff --git a/packaging/freebsd/pkg-deinstall b/packaging/freebsd/pkg-deinstall index 84217d5..3000878 100755 --- a/packaging/freebsd/pkg-deinstall +++ b/packaging/freebsd/pkg-deinstall @@ -8,11 +8,22 @@ # FIXME: is /var/lib/monkeysphere the right place for this stuff on # FreeBSD? -VARLIB="/var/lib/monkeysphere" +VARLIB="/var/monkeysphere" -# FIXME: This needs to be filled in! Under what circumstances do we -# want to actually purge all of /var/lib/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