summaryrefslogtreecommitdiff
path: root/packaging/freebsd/pkg-deinstall
blob: 966f25247466e83ac33e7c5aa7abb28e216c927e (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; 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