151799673a
- some port cleanup - @extra - remove -web subpackage, will become independent port (maybe ;) from maintainer Willem Dijkstra <wpd at xs4all.nl>
30 lines
699 B
Bash
30 lines
699 B
Bash
#!/bin/sh
|
|
# $OpenBSD: DEINSTALL-mon,v 1.3 2004/02/16 20:09:04 sturm Exp $
|
|
#
|
|
# symon de-installation
|
|
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
CONFIG_FILE=${SYSCONFDIR}/symon.conf
|
|
SYMONUSER=_symon
|
|
SYMONGROUP=_symon
|
|
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To completely deinstall the $1 package you need to perform"
|
|
echo "| this step as root:"
|
|
echo "|"
|
|
echo "| userdel $SYMONUSER"
|
|
echo "| groupdel $SYMONGROUP"
|
|
if [ "$PKG_DELETE_EXTRA" != Yes -a -f ${CONFIG_FILE} ]; then
|
|
echo "| rm -f $CONFIG_FILE"
|
|
fi
|
|
echo "|"
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
echo "| at some future time."
|
|
echo "+---------------"
|
|
echo
|
|
|
|
exit 0
|