openbsd-ports/net/silc-server/pkg/DEINSTALL
2004-02-12 06:34:22 +00:00

33 lines
781 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.5 2004/02/12 06:34:22 brad Exp $
#
# silc-server de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${CONFDIR}
LOG_DIR=/var/log/silcd
SILCDUSER=_silcd
SILCDGROUP=_silcd
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| userdel $SILCDUSER"
echo "| groupdel $SILCDGROUP"
if [ "$PKG_DELETE_EXTRA" != Yes -a -d $CONFIG_DIR ]; then
echo "| rm -rf $CONFIG_DIR"
fi
if [ "$PKG_DELETE_EXTRA" != Yes -a -d $LOG_DIR ]; then
echo "| rm -rf $LOG_DIR"
fi
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
exit 0