79605cf0a3
- mention the need for an entry to be added to /etc/services manually - create (empty) log file directory - add proper deinstall steps for above based on a diff from wilfried
32 lines
829 B
Bash
32 lines
829 B
Bash
#!/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
|
|
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"
|
|
echo "| these steps as root:"
|
|
echo "|"
|
|
echo "| rm -f $CONFIG_FILE"
|
|
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
|