aboutsummaryrefslogtreecommitdiffstats
path: root/net/isc-dhcp3
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-10-01 03:47:32 +0800
committerobrien <obrien@FreeBSD.org>2000-10-01 03:47:32 +0800
commitc54b745d49b05fa2ad9fad08d9c0f3b5a0a32951 (patch)
treea60d1a2cdf766cd5a701178ccfe601a3c8addac3 /net/isc-dhcp3
parent1212420ab467b564831494da0706979d873b60f5 (diff)
downloadfreebsd-ports-gnome-c54b745d49b05fa2ad9fad08d9c0f3b5a0a32951.tar.gz
freebsd-ports-gnome-c54b745d49b05fa2ad9fad08d9c0f3b5a0a32951.tar.zst
freebsd-ports-gnome-c54b745d49b05fa2ad9fad08d9c0f3b5a0a32951.zip
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.
Diffstat (limited to 'net/isc-dhcp3')
-rw-r--r--net/isc-dhcp3/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/isc-dhcp3/Makefile b/net/isc-dhcp3/Makefile
index ac2a7372fd1f..8a3aa5efe80c 100644
--- a/net/isc-dhcp3/Makefile
+++ b/net/isc-dhcp3/Makefile
@@ -27,6 +27,9 @@ 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