39 lines
863 B
Makefile
39 lines
863 B
Makefile
# Ports collection makefile for: dhcp
|
|
# Date created: 7 Mar 1996
|
|
# Whom: se
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= isc-dhcp
|
|
PORTVERSION= 2.0.5
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/ \
|
|
ftp://ftp.isc.org/isc/dhcp/dhcp-2.0-history/
|
|
DISTNAME= dhcp-2.0pl5
|
|
|
|
MAINTAINER= jseger@FreeBSD.org
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
STARTUP_SCRIPT= isc-dhcpd.sh.sample
|
|
PLIST_SUB= STARTUP_SCRIPT=${STARTUP_SCRIPT}
|
|
|
|
MAN5= dhcp-options.5 dhcpd.conf.5 dhcpd.leases.5
|
|
MAN8= dhcpd.8 dhcrelay.8
|
|
|
|
post-patch:
|
|
@${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' ${WRKSRC}/includes/dhcpd.h
|
|
|
|
post-install:
|
|
${TOUCH} /var/db/dhcpd.leases
|
|
.for file in dhcpd dhcrelay
|
|
if [ -f ${PREFIX}/sbin/${file} ]; then \
|
|
strip ${PREFIX}/sbin/${file}; \
|
|
fi
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${FILESDIR}/${STARTUP_SCRIPT} \
|
|
${PREFIX}/etc/rc.d/${STARTUP_SCRIPT}
|
|
|
|
.include <bsd.port.mk>
|