freebsd-ports/net/isc-dhcp31-server/pkg-install
Oliver Eikemeier bf45d386a1 new paranoia and jail options handled by rc variables to easy they use.
PR:		68357
Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net> (maintainer)
2004-06-26 14:32:41 +00:00

24 lines
394 B
Bash

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