From c54b745d49b05fa2ad9fad08d9c0f3b5a0a32951 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 30 Sep 2000 19:47:32 +0000 Subject: 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. --- net/isc-dhcp3-server/Makefile | 3 +++ net/isc-dhcp3/Makefile | 3 +++ net/isc-dhcp30-server/Makefile | 3 +++ net/isc-dhcp31-server/Makefile | 3 +++ net/isc-dhcp40-server/Makefile | 3 +++ 5 files changed, 15 insertions(+) (limited to 'net') diff --git a/net/isc-dhcp3-server/Makefile b/net/isc-dhcp3-server/Makefile index ac2a7372fd1f..8a3aa5efe80c 100644 --- a/net/isc-dhcp3-server/Makefile +++ b/net/isc-dhcp3-server/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 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 diff --git a/net/isc-dhcp30-server/Makefile b/net/isc-dhcp30-server/Makefile index ac2a7372fd1f..8a3aa5efe80c 100644 --- a/net/isc-dhcp30-server/Makefile +++ b/net/isc-dhcp30-server/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 diff --git a/net/isc-dhcp31-server/Makefile b/net/isc-dhcp31-server/Makefile index ac2a7372fd1f..8a3aa5efe80c 100644 --- a/net/isc-dhcp31-server/Makefile +++ b/net/isc-dhcp31-server/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 diff --git a/net/isc-dhcp40-server/Makefile b/net/isc-dhcp40-server/Makefile index ac2a7372fd1f..8a3aa5efe80c 100644 --- a/net/isc-dhcp40-server/Makefile +++ b/net/isc-dhcp40-server/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 -- cgit