#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2004/06/15 18:32:22 sturm Exp $

PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CRYPT=/crypt
NULL=/null

echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "|           revert changes to /etc/exports and /etc/rc.conf"
if [ "$PKG_DELETE_EXTRA" != Yes ]; then
    echo "|           umount $CRYPT"
    echo "|           rm -r $CRYPT"
    echo "|           rm -r $NULL"
fi
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo

exit 0
