openbsd-ports/comms/conserver/pkg/DEINSTALL

32 lines
829 B
Plaintext
Raw Normal View History

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2003/07/09 07:17:15 pvalchev Exp $
#
# conserver de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/conserver.cf
2003-05-27 14:59:17 -04:00
PASSWD_FILE=${SYSCONFDIR}/conserver.passwd
LOG_DIR=/var/consoles
SERVICES=/etc/services
if [ -f $CONFIG_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
2003-05-27 14:59:17 -04:00
echo "| these steps as root:"
echo "|"
echo "| rm -f $CONFIG_FILE"
2003-05-27 14:59:17 -04:00
echo "| rm -f $PASSWD_FILE"
echo "| rm -rf $LOG_DIR"
echo "| and remove the conserver line from $SERVICES."
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0