openbsd-ports/net/ucd-snmp/pkg/DEINSTALL
jakob 8924f7ee74 cleanup
rename patches to new naming scheme
(from maintainer; Dan Harnett <danh@nfol.com>)
2000-06-29 21:20:03 +00:00

29 lines
513 B
Bash

#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.2 2000/06/29 21:20:05 jakob Exp $
#
# de-installation of ucd-snmp
PERSISTENT_DIR=/var/ucd-snmp
remove_persistent()
{
rm -rf ${1}
}
do_deinstall()
{
if [ -d ${PERSISTENT_DIR} ]; then
remove_persistent ${PERSISTENT_DIR}
fi
if [ -f /etc/snmpd.conf ]; then
echo "+------------"
echo "| If you do not plan on re-installing or upgrading this"
echo "| package, it is safe to remove /etc/snmpd.conf"
echo "+------------"
fi
}
do_deinstall ${PERSISTENT_DIR}
exit 0