aboutsummaryrefslogblamecommitdiff
path: root/net/isc-dhcp31-server/pkg-install
blob: 547e94efc0461c1b19b7078a6b9c6d4ea086b4d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                
                                                        



                                                                

          
                                                        



                                                                  







                                                                                           
#!/bin/sh
#
# $FreeBSD$
#

[ $# != 2 ] && exit 1
[ -z "${PKG_PREFIX}" ] && exit 1
[ -n "${BATCH}" ] && exit 0

case $2 in
POST-INSTALL)
	if [ -x ${PKG_PREFIX}/etc/rc.d/isc-dhcpd ]; then
		${PKG_PREFIX}/etc/rc.d/isc-dhcpd forceinstall
	else
		${PKG_PREFIX}/etc/rc.d/isc-dhcpd.sh forceinstall
	fi
	;;
DEINSTALL)
	if [ -x ${PKG_PREFIX}/etc/rc.d/isc-dhcpd ]; then
		${PKG_PREFIX}/etc/rc.d/isc-dhcpd forceuninstall
	else
		${PKG_PREFIX}/etc/rc.d/isc-dhcpd.sh forceuninstall
	fi
	;;
POST-DEINSTALL|PRE-INSTALL)
	;;
*)
	echo "usage: $0 <PKG_NAME> {PRE-INSTALL|POST-INSTALL|DEINSTALL|POST-DEINSTALL}" >&2
	exit 1
	;;
esac