pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/fping Changes 4.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c51bca7eb9f
branches:  trunk
changeset: 362630:9c51bca7eb9f
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat May 20 11:25:50 2017 +0000

description:
Changes 4.0:

Incompatible Changes
- fping and fping6 unification
- Option -n, not the same as -d anymore
- Discarding of late packets
- No restrictions by default
- Default interval (-i) changed from 25ms to 10ms

New features
- Unified 'fping' and 'fping6' into one binary
- Long option names for all options
- IPv6 enabled by default
- New option -4 to force IPv4
- New option -6 to force IPv6
- Keep original name if a hostname is given with -n/--name
- Option -d/--rdns now always does a rdns-lookup, even for names, as '-n' was doing until now
- Enforce -t timeout on reply packets, by discarding late packets
- Auto-adjust timeout for -c/-C/-l mode to value of -p

Bugfixes and other changes
- -i/-p restrictions disabled by default (enable with --enable-safe-limits)
- Default interval -i changed from 25ms to 10ms
- Fix compatibility issue with GNU Hurd
- A C99 compiler is now required
- Option parsing with optparse (https://github.com/skeeto/optparse)
- New changelog file format

diffstat:

 net/fping/Makefile                    |   6 ++----
 net/fping/PLIST                       |   4 +---
 net/fping/distinfo                    |  14 +++++++-------
 net/fping/options.mk                  |   5 +----
 net/fping/patches/patch-aa            |  18 ------------------
 net/fping/patches/patch-configure     |  14 ++++++++++++++
 net/fping/patches/patch-src_fping.c   |  15 +++++++++++++++
 net/fping/patches/patch-src_socket4.c |  16 ----------------
 8 files changed, 40 insertions(+), 52 deletions(-)

diffs (153 lines):

diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/Makefile
--- a/net/fping/Makefile        Sat May 20 06:56:29 2017 +0000
+++ b/net/fping/Makefile        Sat May 20 11:25:50 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2016/12/10 23:18:54 wiedi Exp $
+# $NetBSD: Makefile,v 1.17 2017/05/20 11:25:50 adam Exp $
 
-DISTNAME=      fping-3.13
+DISTNAME=      fping-4.0
 CATEGORIES=    net
 MASTER_SITES=  http://fping.org/dist/
 
@@ -8,11 +8,9 @@
 HOMEPAGE=      http://www.fping.org/
 COMMENT=       Quickly ping many hosts w/o flooding the network
 
-CONFIGURE_ARGS+=       --enable-ipv4
 GNU_CONFIGURE=         yes
 
 SPECIAL_PERMS+=                sbin/fping ${SETUID_ROOT_PERMS}
-SPECIAL_PERMS+=                sbin/fping6 ${SETUID_ROOT_PERMS}
 
 CPPFLAGS.SunOS+=       -Dn_time=uint32_t
 
diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/PLIST
--- a/net/fping/PLIST   Sat May 20 06:56:29 2017 +0000
+++ b/net/fping/PLIST   Sat May 20 11:25:50 2017 +0000
@@ -1,5 +1,3 @@
-@comment $NetBSD: PLIST,v 1.2 2016/11/01 14:53:29 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2017/05/20 11:25:50 adam Exp $
 man/man8/fping.8
-${PLIST.ipv6}man/man8/fping6.8
 sbin/fping
-${PLIST.ipv6}sbin/fping6
diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/distinfo
--- a/net/fping/distinfo        Sat May 20 06:56:29 2017 +0000
+++ b/net/fping/distinfo        Sat May 20 11:25:50 2017 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.11 2016/12/29 15:04:29 he Exp $
+$NetBSD: distinfo,v 1.12 2017/05/20 11:25:50 adam Exp $
 
-SHA1 (fping-3.13.tar.gz) = cf38041613a5afaf614130dd79ebbcc5a121d196
-RMD160 (fping-3.13.tar.gz) = 8014495b2665d44dcd942e6b772d2bcdc94dc104
-SHA512 (fping-3.13.tar.gz) = d6c1c5b9edb97ef59cfb6d22f74f6a055e52465d3ba0f93be35b6fc9615ee08490ee927f3cf9efd087e18279519292f353abe6152061985ee166ba5f7e95e29d
-Size (fping-3.13.tar.gz) = 155976 bytes
-SHA1 (patch-aa) = b6f1470e21efe9adaa9dee1e870b2887c506ec08
-SHA1 (patch-src_socket4.c) = fc7ea74b7aee1e468318b9385c90a4d5b465d778
+SHA1 (fping-4.0.tar.gz) = a8f636d08bd3356b79e9cae14ce3f10a3fc5907d
+RMD160 (fping-4.0.tar.gz) = 313e61d4a57669ceeb5544ae62a63972d7dbde22
+SHA512 (fping-4.0.tar.gz) = 5dca650e9c34dd2e1bdbb981df61cf092230f07a15c4ccef105b9f58aaaa43e0d85dc9665db89631feded503ecc6f6be86446719de18e59349adb7c2f3e9757e
+Size (fping-4.0.tar.gz) = 170060 bytes
+SHA1 (patch-configure) = 636ad756f815bcab7e5817a3e339d196cd4c3e8d
+SHA1 (patch-src_fping.c) = c8047e60ed9693c2ad9d7f016854ca76933ea4c7
diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/options.mk
--- a/net/fping/options.mk      Sat May 20 06:56:29 2017 +0000
+++ b/net/fping/options.mk      Sat May 20 11:25:50 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2016/11/01 14:53:29 adam Exp $
+# $NetBSD: options.mk,v 1.2 2017/05/20 11:25:50 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.fping
 PKG_SUPPORTED_OPTIONS= inet6
@@ -9,11 +9,8 @@
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=   ipv6
-
 .if !empty(PKG_OPTIONS:Minet6)
 CONFIGURE_ARGS+=       --enable-ipv6
-PLIST.ipv6=            yes
 .else
 CONFIGURE_ARGS+=       --disable-ipv6
 .endif
diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/patches/patch-aa
--- a/net/fping/patches/patch-aa        Sat May 20 06:56:29 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-aa,v 1.8 2016/11/01 14:53:29 adam Exp $
-
-Fix for NetBSD-alpha.
-
---- src/fping.c.orig   2015-10-21 19:02:56.000000000 +0000
-+++ src/fping.c
-@@ -1493,8 +1493,10 @@ int wait_for_reply(long wait_time)
-     ip = ( struct ip* )buffer;
- 
- #ifndef IPV6
--#if defined( __alpha__ ) && __STDC__ && !defined( __GLIBC__ )
-+#if defined( __alpha__ ) && __STDC__ && !defined( __GLIBC__ ) && !defined( __NetBSD__ )
-     /* The alpha headers are decidedly broken.
-+     * XXX _WHAT_ 'alpha'? OSF? True64? Linux?... Certainly not NetBSD
-+     * XXX If defining for a particular broken OS then _include the OS_.
-      * Using an ANSI compiler, it provides ip_vhl instead of ip_hl and
-      * ip_v.  So, to get ip_hl, we mask off the bottom four bits.
-      */
diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fping/patches/patch-configure Sat May 20 11:25:50 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-configure,v 1.1 2017/05/20 11:25:50 adam Exp $
+
+Include missing header.
+
+--- configure.orig     2017-05-20 10:15:54.000000000 +0000
++++ configure
+@@ -3098,6 +3098,7 @@ if test "x$enable_ipv6" != "xno"; then :
+            for ac_header in netinet/icmp6.h
+ do :
+   ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "
++      #include <sys/types.h>
+       #include <netinet/in.h>
+ 
+ "
diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/patches/patch-src_fping.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fping/patches/patch-src_fping.c       Sat May 20 11:25:50 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_fping.c,v 1.1 2017/05/20 11:25:50 adam Exp $
+
+Fix for NetBSD-alpha.
+
+--- src/fping.c.orig   2017-04-23 16:03:08.000000000 +0000
++++ src/fping.c
+@@ -1787,7 +1787,7 @@ int decode_icmp_ipv4(
+     struct icmp* icp;
+     int hlen = 0;
+ 
+-#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__)
++#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__) && !defined(__NetBSD__)
+     /* The alpha headers are decidedly broken.
+      * Using an ANSI compiler, it provides ip_vhl instead of ip_hl and
+      * ip_v.  So, to get ip_hl, we mask off the bottom four bits.
diff -r e5eb27369f42 -r 9c51bca7eb9f net/fping/patches/patch-src_socket4.c
--- a/net/fping/patches/patch-src_socket4.c     Sat May 20 06:56:29 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-src_socket4.c,v 1.1 2016/12/29 15:04:29 he Exp $
-
-Fix for building on NetBSD 6.0, also works on 7.0.
-
---- src/socket4.c.orig 2015-10-21 19:02:56.000000000 +0000
-+++ src/socket4.c
-@@ -35,6 +35,9 @@
- 
- #include <sys/socket.h>
- #include <netinet/in.h>
-+#ifdef __NetBSD__
-+#include <netinet/in_systm.h> /* for n_time */
-+#endif /* __NetBSD__ */
- #include <netinet/ip.h>
- #include <netinet/ip_icmp.h>
- #include <netdb.h>



Home | Main Index | Thread Index | Old Index