aboutsummaryrefslogtreecommitdiff
path: root/net/fping
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2013-04-22 15:44:41 +0000
committerAlex Kozlov <ak@FreeBSD.org>2013-04-22 15:44:41 +0000
commit6abb3ce3f8d79a09f9ce6034cf2ec650b193970c (patch)
tree106d95f0dc7a17e93d968574016d2bf3b5628723 /net/fping
parent0ef2b592d1b65fc4aac1f1764f5c813051202fb1 (diff)
downloadports-6abb3ce3f8d79a09f9ce6034cf2ec650b193970c.tar.gz
ports-6abb3ce3f8d79a09f9ce6034cf2ec650b193970c.zip
Notes
Diffstat (limited to 'net/fping')
-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 )
+ {