summaryrefslogtreecommitdiff
path: root/net/hping
diff options
context:
space:
mode:
Diffstat (limited to 'net/hping')
-rw-r--r--net/hping/Makefile8
-rw-r--r--net/hping/files/extra-patch-sendip.c (renamed from net/hping/files/patch-sendip.c)0
2 files changed, 7 insertions, 1 deletions
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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/hping/files/patch-sendip.c b/net/hping/files/extra-patch-sendip.c
index 872861983e5a..872861983e5a 100644
--- a/net/hping/files/patch-sendip.c
+++ b/net/hping/files/extra-patch-sendip.c