Index: head/net/hping/Makefile =================================================================== --- head/net/hping/Makefile (revision 404908) +++ head/net/hping/Makefile (revision 404909) @@ -1,39 +1,45 @@ # Created by: Roman Shterenzon # $FreeBSD$ PORTNAME= hping PORTVERSION= 2.0.0r3 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net security MASTER_SITES= http://www.hping.org/ \ http://200ok.org/distfiles/hping/ DISTNAME= hping2.0.0-rc3 MAINTAINER= ecu@200ok.org COMMENT= Network auditing tool CONFLICTS= hping-devel-[0-9]* WRKSRC= ${WRKDIR}/hping2-rc3 USES= gmake GNU_CONFIGURE= yes CONFIGURE_ARGS+= --force-libpcap PLIST_FILES= sbin/hping man/man8/hping.8.gz PORTDOCS= AS-BACKDOOR HPING2-HOWTO.txt HPING2-IS-OPEN \ MORE-FUN-WITH-IPID SPOOFED_SCAN.txt APD.txt 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 \ ${STAGEDIR}${MANPREFIX}/man/man8/hping.8 @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR} .endfor -.include +.include Index: head/net/hping/files/patch-sendip.c =================================================================== --- head/net/hping/files/patch-sendip.c (revision 404908) +++ head/net/hping/files/patch-sendip.c (nonexistent) @@ -1,33 +0,0 @@ ---- sendip.c.orig 2003-08-01 21:28:07.000000000 +0800 -+++ sendip.c 2015-12-22 23:16:39.296072000 +0800 -@@ -48,12 +48,12 @@ - ip->ihl = (IPHDR_SIZE + optlen + 3) >> 2; - ip->tos = ip_tos; - --#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI --/* FreeBSD */ -+#if defined OSTYPE_NETBSD || defined OSTYPE_BSDI - /* NetBSD */ - ip->tot_len = packetsize; - #else - /* Linux */ -+/* FreeBSD */ - /* OpenBSD */ - ip->tot_len = htons(packetsize); - #endif -@@ -73,13 +73,13 @@ - htons((unsigned short) src_id); - } - --#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI --/* FreeBSD */ -+#if defined OSTYPE_NETBSD | defined OSTYPE_BSDI - /* NetBSD */ - ip->frag_off |= more_fragments; - ip->frag_off |= fragoff >> 3; - #else - /* Linux */ -+/* FreeBSD */ - /* OpenBSD */ - ip->frag_off |= htons(more_fragments); - ip->frag_off |= htons(fragoff >> 3); /* shift three flags bit */ Property changes on: head/net/hping/files/patch-sendip.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/hping/files/extra-patch-sendip.c =================================================================== --- head/net/hping/files/extra-patch-sendip.c (nonexistent) +++ head/net/hping/files/extra-patch-sendip.c (revision 404909) @@ -0,0 +1,33 @@ +--- sendip.c.orig 2003-08-01 21:28:07.000000000 +0800 ++++ sendip.c 2015-12-22 23:16:39.296072000 +0800 +@@ -48,12 +48,12 @@ + ip->ihl = (IPHDR_SIZE + optlen + 3) >> 2; + ip->tos = ip_tos; + +-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI +-/* FreeBSD */ ++#if defined OSTYPE_NETBSD || defined OSTYPE_BSDI + /* NetBSD */ + ip->tot_len = packetsize; + #else + /* Linux */ ++/* FreeBSD */ + /* OpenBSD */ + ip->tot_len = htons(packetsize); + #endif +@@ -73,13 +73,13 @@ + htons((unsigned short) src_id); + } + +-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI +-/* FreeBSD */ ++#if defined OSTYPE_NETBSD | defined OSTYPE_BSDI + /* NetBSD */ + ip->frag_off |= more_fragments; + ip->frag_off |= fragoff >> 3; + #else + /* Linux */ ++/* FreeBSD */ + /* OpenBSD */ + ip->frag_off |= htons(more_fragments); + ip->frag_off |= htons(fragoff >> 3); /* shift three flags bit */ Property changes on: head/net/hping/files/extra-patch-sendip.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/hping-devel/Makefile =================================================================== --- head/net/hping-devel/Makefile (revision 404908) +++ head/net/hping-devel/Makefile (revision 404909) @@ -1,46 +1,52 @@ # $FreeBSD$ PORTNAME= hping PORTVERSION= 3.0.20051105 PORTREVISION= 1 CATEGORIES= net security MASTER_SITES= http://www.hping.org/ \ http://200ok.org/distfiles/hping/ PKGNAMESUFFIX= -devel DISTNAME= hping3-20051105 MAINTAINER= ecu@200ok.org COMMENT= Network auditing tool LIB_DEPENDS= libtcl84.so:${PORTSDIR}/lang/tcl84 CONFLICTS= hping-[0-9]* GNU_CONFIGURE= yes USES= alias gmake PLIST_FILES= sbin/hping lib/hping/hpingstdlib.htcl man/man8/hping.8.gz PORTDOCS= AS-BACKDOOR HPING2-HOWTO.txt HPING2-IS-OPEN \ MORE-FUN-WITH-IPID SPOOFED_SCAN.txt APD.txt \ API.txt HPING3.txt PORTEXAMPLES= README apd.htcl apd2.htcl ciscoios.htcl ciscoios0.htcl \ cloner.htcl igrp.htcl isn-spectrogram.htcl nat-noise.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 ${MKDIR} ${STAGEDIR}${PREFIX}/lib/hping ${INSTALL_DATA} ${WRKSRC}/lib/hpingstdlib.htcl ${STAGEDIR}${PREFIX}/lib/hping/ ${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR} .for i in ${PORTEXAMPLES} ${REINPLACE_CMD} -e \ 's|hpingstdlib.htcl|${PREFIX}/lib/hping/hpingstdlib.htcl|' \ ${WRKSRC}/lib/${i} .endfor ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/lib/|} ${STAGEDIR}${EXAMPLESDIR} -.include +.include Index: head/net/hping-devel/files/patch-sendip.c =================================================================== --- head/net/hping-devel/files/patch-sendip.c (revision 404908) +++ head/net/hping-devel/files/patch-sendip.c (nonexistent) @@ -1,33 +0,0 @@ ---- sendip.c.orig 2003-08-01 21:28:07.000000000 +0800 -+++ sendip.c 2015-12-22 23:16:39.296072000 +0800 -@@ -48,12 +48,12 @@ - ip->ihl = (IPHDR_SIZE + optlen + 3) >> 2; - ip->tos = ip_tos; - --#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI --/* FreeBSD */ -+#if defined OSTYPE_NETBSD || defined OSTYPE_BSDI - /* NetBSD */ - ip->tot_len = packetsize; - #else - /* Linux */ -+/* FreeBSD */ - /* OpenBSD */ - ip->tot_len = htons(packetsize); - #endif -@@ -73,13 +73,13 @@ - htons((unsigned short) src_id); - } - --#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI --/* FreeBSD */ -+#if defined OSTYPE_NETBSD | defined OSTYPE_BSDI - /* NetBSD */ - ip->frag_off |= more_fragments; - ip->frag_off |= fragoff >> 3; - #else - /* Linux */ -+/* FreeBSD */ - /* OpenBSD */ - ip->frag_off |= htons(more_fragments); - ip->frag_off |= htons(fragoff >> 3); /* shift three flags bit */ Property changes on: head/net/hping-devel/files/patch-sendip.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/hping-devel/files/extra-patch-sendip.c =================================================================== --- head/net/hping-devel/files/extra-patch-sendip.c (nonexistent) +++ head/net/hping-devel/files/extra-patch-sendip.c (revision 404909) @@ -0,0 +1,33 @@ +--- sendip.c.orig 2003-08-01 21:28:07.000000000 +0800 ++++ sendip.c 2015-12-22 23:16:39.296072000 +0800 +@@ -48,12 +48,12 @@ + ip->ihl = (IPHDR_SIZE + optlen + 3) >> 2; + ip->tos = ip_tos; + +-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI +-/* FreeBSD */ ++#if defined OSTYPE_NETBSD || defined OSTYPE_BSDI + /* NetBSD */ + ip->tot_len = packetsize; + #else + /* Linux */ ++/* FreeBSD */ + /* OpenBSD */ + ip->tot_len = htons(packetsize); + #endif +@@ -73,13 +73,13 @@ + htons((unsigned short) src_id); + } + +-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI +-/* FreeBSD */ ++#if defined OSTYPE_NETBSD | defined OSTYPE_BSDI + /* NetBSD */ + ip->frag_off |= more_fragments; + ip->frag_off |= fragoff >> 3; + #else + /* Linux */ ++/* FreeBSD */ + /* OpenBSD */ + ip->frag_off |= htons(more_fragments); + ip->frag_off |= htons(fragoff >> 3); /* shift three flags bit */ Property changes on: head/net/hping-devel/files/extra-patch-sendip.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property