freebsd-ports/net/isc-dhcp41-server/pkg-deinstall
Wesley Shields 541cf69201 Welcome net/isc-dhcp41-server, net/isc-dhcp41-client and net/isc-dhcp41-relay
to the tree.

There's still a small bit of work to do including adding conflicts for the
existing DHCP ports (which should have been conflicting with each other
already) and add a 41-devel port so people can use the headers and libraries.
2010-05-06 20:24:01 +00:00

23 lines
341 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
[ $# != 2 ] && exit 1
[ -z "${PKG_PREFIX}" ] && exit 1
[ -n "${BATCH}" ] && exit 0
case $2 in
DEINSTALL)
if [ -x ${PKG_PREFIX}/etc/rc.d/isc-dhcpd ]; then
${PKG_PREFIX}/etc/rc.d/isc-dhcpd forceuninstall
fi
;;
POST-DEINSTALL)
;;
*)
echo "usage: $0 <PKG_NAME> {DEINSTALL|POST-DEINSTALL}" >&2
exit 1
;;
esac