streamlined pkg-install and pkg-deinstall, based on mysql and postgresql ports
[monkeysphere.git] / packaging / freebsd / pkg-deinstall
index 84217d57d3e2c165c387c46dbdc13125e1bf6539..03db8e8a6d3c418fdcd10bf95a8ce779b64034b3 100755 (executable)
@@ -8,11 +8,17 @@
 
 # FIXME: is /var/lib/monkeysphere the right place for this stuff on
 # FreeBSD?
-VARLIB="/var/lib/monkeysphere"
+VARLIB="/var/monkeysphere"
 
 
+case $2 in
+POST-DEINSTALL)
 # FIXME: This needs to be filled in!  Under what circumstances do we
-# want to actually purge all of /var/lib/monkeysphere?
+# want to actually purge all of /var/monkeysphere?
 
 # (note: FreeBSD does not seem to want the package-specific user to be
 # purged at package removal)
+       echo "Warning: If you will *NOT* use this package anymore, please remove the monkeysphere user manually."
+       echo "         You may also want to remove the cached authentication data and keyrings in $VARLIB"
+;;
+esac