svn commit: r316242 - in head/net/fping: . files
Alex Kozlov
ak at FreeBSD.org
Mon Apr 22 15:44:42 UTC 2013
Author: ak
Date: Mon Apr 22 15:44:41 2013
New Revision: 316242
URL: http://svnweb.freebsd.org/changeset/ports/316242
Log:
- Add timestamps option (used by netperf-wrapper) [1]
- Fix fping issue with the unreachable ip in the arp cache [2]
- Convert Makefile headers to new style
PR: ports/177368 [1]
PR: ports/176439 [2]
Submitted by: Lars Eggert <lars at eggert.org> [1], Alexandre RAYNAUD <alexandre.raynaud at sallanches.fr> [2]
Approved by: Jason Harris <jharris at widomaker.com> (maintainer)
Added:
head/net/fping/files/
head/net/fping/files/patch-fping.c (contents, props changed)
Modified:
head/net/fping/Makefile (contents, props changed)
head/net/fping/distinfo (contents, props changed)
Modified: head/net/fping/Makefile
==============================================================================
--- head/net/fping/Makefile Mon Apr 22 15:37:34 2013 (r316241)
+++ head/net/fping/Makefile Mon Apr 22 15:44:41 2013 (r316242)
@@ -1,22 +1,23 @@
-# ex:ts=8
-# Ports collection makefile for: fping
-# Date created: Tue Mar 25, 1997
-# Whom: David O'Brien (obrien at NUXI.com)
-#
+# Created by: David O'Brien (obrien at NUXI.com)
# $FreeBSD$
-#
PORTNAME= fping
PORTVERSION= 3.4
+PORTREVISION= 1
CATEGORIES= net ipv6
-MASTER_SITES= http://fping.org/dist/
+MASTER_SITES= http://fping.org/dist/
+
+PATCH_SITES= https://raw.github.com/tohojo/netperf-wrapper/master/misc/
+PATCH_DIST_STRIP= -p1
MAINTAINER= jharris at widomaker.com
COMMENT= Quickly ping N hosts w/o flooding the network
+OPTIONS_DEFINE= TIMESTAMPS
OPTIONS_MULTI= NET
OPTIONS_MULTI_NET= IPV4 IPV6
OPTIONS_DEFAULT= IPV4
+TIMESTAMPS_DESC= Enable timestamps
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --bindir="${PREFIX}/sbin"
@@ -39,6 +40,10 @@ MAN8+= fping6.8
CONFIGURE_ARGS+=--disable-ipv6
.endif
+.if ${PORT_OPTIONS:MTIMESTAMPS}
+PATCHFILES+= fping_timestamps.patch
+.endif
+
post-install:
.if ${PORT_OPTIONS:MIPV4}
@${STRIP_CMD} ${PREFIX}/sbin/fping
Modified: head/net/fping/distinfo
==============================================================================
--- head/net/fping/distinfo Mon Apr 22 15:37:34 2013 (r316241)
+++ head/net/fping/distinfo Mon Apr 22 15:44:41 2013 (r316242)
@@ -1,2 +1,4 @@
SHA256 (fping-3.4.tar.gz) = d42528af4931f16a8e3438bd4a45cfdd72163ad8835a3c95351c336a26e56afe
SIZE (fping-3.4.tar.gz) = 142986
+SHA256 (fping_timestamps.patch) = 5e07b36e2029a042de79536c30d852a7ee65d90216747ca68fe54eba94798f3a
+SIZE (fping_timestamps.patch) = 2211
Added: head/net/fping/files/patch-fping.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/fping/files/patch-fping.c Mon Apr 22 15:44:41 2013 (r316242)
@@ -0,0 +1,16 @@
+diff -r c564b3055165 src/fping.c
+--- src/fping.c Tue Mar 05 08:13:11 2013 -0400
++++ src/fping.c Tue Mar 05 08:45:33 2013 -0400
+@@ -1572,7 +1572,11 @@
+ n = sendto( s, buffer, ping_pkt_size, 0,
+ ( struct sockaddr* )&h->saddr, sizeof( FPING_SOCKADDR ) );
+
+- if( n < 0 || n != ping_pkt_size )
++ if(( n < 0 || n != ping_pkt_size)
++#if defined( EHOSTDOWN )
++ && errno != EHOSTDOWN
++#endif
++ )
+ {
+ if( verbose_flag || unreachable_flag )
+ {
More information about the svn-ports-all
mailing list