freebsd-ports/security/monkeysphere/pkg-deinstall
Martin Wilke c041c07d22 SSH key-based authentication is tried-and-true, but it lacks a true
Public Key Infrastructure for key certification, revocation and
expiration.  Monkeysphere is a framework that uses the OpenPGP web of
trust for these PKI functions.  It can be used in both directions: for
users to get validated host keys, and for hosts to authenticate users.

WWW: http://web.monkeysphere.info/

PR:		ports/128406
Submitted by:	Daniel Kahn Gillmor <dkg at fifthhorseman.net>
2009-03-10 07:45:27 +00:00

30 lines
905 B
Bash

#!/bin/sh
# a package removal script for monkeysphere (borrowing from
# monkeysphere's debian/monkeysphere.postrm)
# Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
# Copyright 2008,2009
# FIXME: is /var/monkeysphere the right place for this stuff on
# FreeBSD?
VARLIB="/var/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