2003-05-26 16:20:53 -04:00
|
|
|
#!/bin/sh
|
2003-07-09 03:17:15 -04:00
|
|
|
# $OpenBSD: DEINSTALL,v 1.3 2003/07/09 07:17:15 pvalchev Exp $
|
2003-05-26 16:20:53 -04:00
|
|
|
#
|
|
|
|
# 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
|
2003-07-09 03:17:15 -04:00
|
|
|
LOG_DIR=/var/consoles
|
|
|
|
SERVICES=/etc/services
|
2003-05-26 16:20:53 -04:00
|
|
|
|
|
|
|
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:"
|
2003-05-26 16:20:53 -04:00
|
|
|
echo "|"
|
|
|
|
echo "| rm -f $CONFIG_FILE"
|
2003-05-27 14:59:17 -04:00
|
|
|
echo "| rm -f $PASSWD_FILE"
|
2003-07-09 03:17:15 -04:00
|
|
|
echo "| rm -rf $LOG_DIR"
|
|
|
|
echo "| and remove the conserver line from $SERVICES."
|
2003-05-26 16:20:53 -04:00
|
|
|
echo "|"
|
|
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
|
|
echo "| at some future time."
|
|
|
|
echo "+---------------"
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|