c208dc5df3
Notable changes to the port: - creates opennap user/group to run as - tons of bugfixes, improved performance - no longer hardcodes SYSCONFDIR to /etc/opennap Submitted by Jolan Luff <jolan@pellaeon.com>.
30 lines
706 B
Bash
30 lines
706 B
Bash
#!/bin/sh
|
|
# $OpenBSD: DEINSTALL,v 1.2 2002/08/10 01:14:04 naddy Exp $
|
|
#
|
|
# opennap de-installation
|
|
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
CONFIG_DIR=${SYSCONFDIR}/opennap
|
|
OPENNAPUSER=opennap
|
|
OPENNAPGROUP=opennap
|
|
|
|
if [ -d $CONFIG_DIR ]; then
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To completely deinstall the $1 package you need to perform"
|
|
echo "| this step as root:"
|
|
echo "|"
|
|
echo "| userdel $OPENNAPUSER"
|
|
echo "| groupdel $OPENNAPGROUP"
|
|
echo "| rm -rf $CONFIG_DIR"
|
|
echo "|"
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
echo "| at some future time."
|
|
echo "+---------------"
|
|
echo
|
|
fi
|
|
|
|
exit 0
|