From 6ce7c72d01782000ce3236fa25ace2cdc7ad4a79 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Thu, 31 Dec 2015 06:18:46 +0000 Subject: [PATCH] Mark this unbroken on FreeBSD < 1100030. Pointed out by: mat --- net/hping-devel/Makefile | 8 +++++++- .../files/{patch-sendip.c => extra-patch-sendip.c} | 0 net/hping/Makefile | 8 +++++++- net/hping/files/{patch-sendip.c => extra-patch-sendip.c} | 0 4 files changed, 14 insertions(+), 2 deletions(-) rename net/hping-devel/files/{patch-sendip.c => extra-patch-sendip.c} (100%) rename net/hping/files/{patch-sendip.c => extra-patch-sendip.c} (100%) diff --git a/net/hping-devel/Makefile b/net/hping-devel/Makefile index fb98eec711dc..c53e7804c51c 100644 --- a/net/hping-devel/Makefile +++ b/net/hping-devel/Makefile @@ -29,6 +29,12 @@ PORTEXAMPLES= README apd.htcl apd2.htcl ciscoios.htcl ciscoios0.htcl \ passivets.htcl ping.htcl raw.htcl show-tcpseq.htcl \ showled.htcl +.include + +.if (${OSVERSION} >= 1100030) +EXTRA_PATCHES= ${FILESDIR}/extra-patch-sendip.c +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/hping3 ${STAGEDIR}${PREFIX}/sbin/hping ${INSTALL_MAN} ${WRKSRC}/docs/hping3.8 ${STAGEDIR}${PREFIX}/man/man8/hping.8 @@ -43,4 +49,4 @@ do-install: .endfor ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/lib/|} ${STAGEDIR}${EXAMPLESDIR} -.include +.include diff --git a/net/hping-devel/files/patch-sendip.c b/net/hping-devel/files/extra-patch-sendip.c similarity index 100% rename from net/hping-devel/files/patch-sendip.c rename to net/hping-devel/files/extra-patch-sendip.c diff --git a/net/hping/Makefile b/net/hping/Makefile index f8ba56c92fb8..67abd35b0209 100644 --- a/net/hping/Makefile +++ b/net/hping/Makefile @@ -27,6 +27,12 @@ PORTDOCS= AS-BACKDOOR HPING2-HOWTO.txt HPING2-IS-OPEN \ OPTIONS_DEFINE= DOCS +.include + +.if (${OSVERSION} >= 1100030) +EXTRA_PATCHES= ${FILESDIR}/extra-patch-sendip.c +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${STAGEDIR}${PREFIX}/sbin/hping ${INSTALL_MAN} ${WRKSRC}/docs/hping2.8 \ @@ -36,4 +42,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR} .endfor -.include +.include diff --git a/net/hping/files/patch-sendip.c b/net/hping/files/extra-patch-sendip.c similarity index 100% rename from net/hping/files/patch-sendip.c rename to net/hping/files/extra-patch-sendip.c