1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/net/isc-dhcp3/Makefile
David E. O'Brien e3598f746e Use Perl's in-place editing to do the simple search and replace that the
Makefile.dist patches were doing.  This approach will reduce the patch
breakage with each new ISC-DHCP version.
2000-09-30 19:47:32 +00:00

43 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: dhcp
# Date created: 7 Mar 1996
# Whom: se
#
# $FreeBSD$
#
PORTNAME= isc-dhcp3
PORTVERSION= 3.0.b2.5
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/
DISTNAME= dhcp-3.0b2pl5
MAINTAINER= obrien@FreeBSD.org
Y2K= http://www.isc.org/y2k.html
HAS_CONFIGURE= yes
MAN3= dhcpctl.3 omapi.3
MAN5= dhclient.conf.5 dhclient.leases.5 dhcp-contrib.5 \
dhcp-eval.5 dhcp-options.5 dhcpd.conf.5 \
dhcpd.leases.5
MAN8= dhclient.8 dhclient-script.8 dhcpd.8 dhcrelay.8
post-patch:
@${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' ${WRKSRC}/includes/dhcpd.h
@${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' ${WRKSRC}/client/scripts/freebsd
.for MF in relay/Makefile.dist server/Makefile.dist client/Makefile.dist common/Makefile.dist dhcpctl/Makefile.dist minires/Makefile.dist omapip/Makefile.dist
@${PERL} -pi.fbsd -e 's|^DEBUG[ ]*=|DEBUG ?=|g ; s|^CFLAGS[ ]*=|CFLAGS +=|g' ${WRKSRC}/${MF}
.endfor
post-install:
${TOUCH} /var/db/dhcpd.leases
.for file in dhclient dhcpd dhcrelay
if [ -f ${PREFIX}/sbin/${file} ]; then \
strip ${PREFIX}/sbin/${file}; \
fi
.endfor
.include <bsd.port.mk>