aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorak <ak@FreeBSD.org>2013-04-22 23:44:41 +0800
committerak <ak@FreeBSD.org>2013-04-22 23:44:41 +0800
commit0dcb0967159e8ad9d35ff87a6a40ff83f61b550a (patch)
tree106d95f0dc7a17e93d968574016d2bf3b5628723 /net
parentff957446818651c270bf7edf2fda78c551099d76 (diff)
downloadfreebsd-ports-gnome-0dcb0967159e8ad9d35ff87a6a40ff83f61b550a.tar.gz
freebsd-ports-gnome-0dcb0967159e8ad9d35ff87a6a40ff83f61b550a.tar.zst
freebsd-ports-gnome-0dcb0967159e8ad9d35ff87a6a40ff83f61b550a.zip
- 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@eggert.org> [1], Alexandre RAYNAUD <alexandre.raynaud@sallanches.fr> [2] Approved by: Jason Harris <jharris@widomaker.com> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/fping/Makefile19
-rw-r--r--net/fping/distinfo2
-rw-r--r--net/fping/files/patch-fping.c16
3 files changed, 30 insertions, 7 deletions
diff --git a/net/fping/Makefile b/net/fping/Makefile
index 0064e925ff80..89dcf003f04a 100644
--- a/net/fping/Makefile
+++ b/net/fping/Makefile
@@ -1,22 +1,23 @@
-# ex:ts=8
-# Ports collection makefile for: fping
-# Date created: Tue Mar 25, 1997
-# Whom: David O'Brien (obrien@NUXI.com)
-#
+# Created by: David O'Brien (obrien@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@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
diff --git a/net/fping/distinfo b/net/fping/distinfo
index 12b2477c32ed..4b9a6bd25e07 100644
--- a/net/fping/distinfo
+++ b/net/fping/distinfo
@@ -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
diff --git a/net/fping/files/patch-fping.c b/net/fping/files/patch-fping.c
new file mode 100644
index 000000000000..1bd16ad88577
--- /dev/null
+++ b/net/fping/files/patch-fping.c
@@ -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 )
+ {