pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/hping3
Module Name: pkgsrc
Committed By: nia
Date: Fri Mar 20 11:04:14 UTC 2026
Modified Files:
pkgsrc/net/hping3: Makefile distinfo
pkgsrc/net/hping3/patches: patch-ars.c patch-sendip.c
Added Files:
pkgsrc/net/hping3/patches: patch-apdutils.c
Log Message:
hping3: Various fixes.
- Update homepage.
- Fix build on FreeBSD. This was failing as a result of bad patches.
- Fix build on SunOS with recent gcc.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/hping3/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/hping3/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/hping3/patches/patch-apdutils.c
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/hping3/patches/patch-ars.c \
pkgsrc/net/hping3/patches/patch-sendip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/hping3/Makefile
diff -u pkgsrc/net/hping3/Makefile:1.13 pkgsrc/net/hping3/Makefile:1.14
--- pkgsrc/net/hping3/Makefile:1.13 Mon Dec 29 10:10:17 2025
+++ pkgsrc/net/hping3/Makefile Fri Mar 20 11:04:14 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2025/12/29 10:10:17 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2026/03/20 11:04:14 nia Exp $
DISTNAME= hping3-alpha-2
PKGNAME= hping3-3a2
@@ -7,7 +7,7 @@ CATEGORIES= net
MASTER_SITES= #
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-#HOMEPAGE= http://wiki.hping.org/
+HOMEPAGE= https://www.hping.org/wiki-sub/index/
COMMENT= Command-line oriented TCP/IP packet assembler/analyzer
LICENSE= gnu-gpl-v2 AND original-bsd
Index: pkgsrc/net/hping3/distinfo
diff -u pkgsrc/net/hping3/distinfo:1.7 pkgsrc/net/hping3/distinfo:1.8
--- pkgsrc/net/hping3/distinfo:1.7 Tue Oct 26 11:05:44 2021
+++ pkgsrc/net/hping3/distinfo Fri Mar 20 11:04:14 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 11:05:44 nia Exp $
+$NetBSD: distinfo,v 1.8 2026/03/20 11:04:14 nia Exp $
BLAKE2s (hping3-alpha-2.tar.gz) = 2506a7f6236ba8dccda25fe3ef3a474ba61c91a46e549365a5bc077915b5db73
SHA512 (hping3-alpha-2.tar.gz) = c01cb443f201e39268790e2bca744e76e0819d29ce6b23e42116fbc30b9f21d4ab7a45cce14dd78bc23b9e0408d9190ded934d0becda21296a712c074ff3d11b
@@ -6,9 +6,10 @@ Size (hping3-alpha-2.tar.gz) = 573396 by
SHA1 (patch-aa) = 00eaef5063c9f6c70604c1aa873529936b854dd9
SHA1 (patch-ab) = c8da38efbf33cc6fba9d32f3742479c4f1c3fb60
SHA1 (patch-ac) = 885e260521b5f38d11e42871629caa9c9085c2d6
-SHA1 (patch-ars.c) = 17c677bdce8f58386eef2d234a37159ff2e87dd7
+SHA1 (patch-apdutils.c) = a2f6d5d277eb06afe99786e5508dede94ac6b580
+SHA1 (patch-ars.c) = bdb41c535dcf401419d967d50d810741f85b5526
SHA1 (patch-ars.h) = b06eaf399631a05acdd5d69f2241d092ed82b8c7
SHA1 (patch-gethostname.c) = ba1fa4747c6001efc794f0b55ab36944abdd8854
SHA1 (patch-libpcap__stuff.c) = 730224fa5d7e242444a112ae53959f3dfdbb35f0
SHA1 (patch-sbignum.c) = 0b2fb0053c7189d1fdf96007f84649ae8fb96884
-SHA1 (patch-sendip.c) = e5cba9b45766b6906279f6351ea936d0768627cf
+SHA1 (patch-sendip.c) = cb9e263f03fb5b296b127b9594d97fe519dd1937
Index: pkgsrc/net/hping3/patches/patch-ars.c
diff -u pkgsrc/net/hping3/patches/patch-ars.c:1.1 pkgsrc/net/hping3/patches/patch-ars.c:1.2
--- pkgsrc/net/hping3/patches/patch-ars.c:1.1 Wed Jun 14 12:17:30 2017
+++ pkgsrc/net/hping3/patches/patch-ars.c Fri Mar 20 11:04:14 2026
@@ -1,15 +1,15 @@
-$NetBSD: patch-ars.c,v 1.1 2017/06/14 12:17:30 jperkin Exp $
+$NetBSD: patch-ars.c,v 1.2 2026/03/20 11:04:14 nia Exp $
Darwin compatibility, from Homebrew.
--- ars.c.orig 2004-04-14 12:30:18.000000000 +0000
+++ ars.c
-@@ -914,7 +914,7 @@ int ars_bsd_fix(struct ars_packet *pkt,
+@@ -914,7 +914,7 @@ int ars_bsd_fix(struct ars_packet *pkt,
return -ARS_INVALID;
}
ip = (struct ars_iphdr*) packet;
-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
-+#if defined OSTYPE_DARWIN || OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
ip->tot_len = ntohs(ip->tot_len);
ip->frag_off = ntohs(ip->frag_off);
#endif
Index: pkgsrc/net/hping3/patches/patch-sendip.c
diff -u pkgsrc/net/hping3/patches/patch-sendip.c:1.1 pkgsrc/net/hping3/patches/patch-sendip.c:1.2
--- pkgsrc/net/hping3/patches/patch-sendip.c:1.1 Wed Jun 14 12:17:30 2017
+++ pkgsrc/net/hping3/patches/patch-sendip.c Fri Mar 20 11:04:14 2026
@@ -1,4 +1,4 @@
-$NetBSD: patch-sendip.c,v 1.1 2017/06/14 12:17:30 jperkin Exp $
+$NetBSD: patch-sendip.c,v 1.2 2026/03/20 11:04:14 nia Exp $
Darwin compatibility, from Homebrew.
@@ -9,7 +9,7 @@ Darwin compatibility, from Homebrew.
ip->tos = ip_tos;
-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
-+#if defined OSTYPE_DARWIN || OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
/* FreeBSD */
/* NetBSD */
ip->tot_len = packetsize;
@@ -18,7 +18,7 @@ Darwin compatibility, from Homebrew.
}
-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
-+#if defined OSTYPE_DARWIN || OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
/* FreeBSD */
/* NetBSD */
ip->frag_off |= more_fragments;
Added files:
Index: pkgsrc/net/hping3/patches/patch-apdutils.c
diff -u /dev/null pkgsrc/net/hping3/patches/patch-apdutils.c:1.1
--- /dev/null Fri Mar 20 11:04:14 2026
+++ pkgsrc/net/hping3/patches/patch-apdutils.c Fri Mar 20 11:04:14 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-apdutils.c,v 1.1 2026/03/20 11:04:14 nia Exp $
+
+SunOS requires alloca.h
+
+--- apdutils.c.orig 2003-09-01 00:22:06.000000000 +0000
++++ apdutils.c
+@@ -3,4 +3,7 @@
+ */
+
++#ifdef __sun
++#include <alloca.h>
++#endif
+ #include <stdio.h>
+ #include <string.h>
Home |
Main Index |
Thread Index |
Old Index