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