Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2013 11:47:11 +0100 (CET)
From:      Lars Eggert <lars@eggert.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        jharris@widomaker.com, toke@toke.dk
Subject:   ports/177368: [PATCH] net/fping: Add option to compile in timestamps patch
Message-ID:  <201303251047.r2PAlBQm049030@stanley.muccbc.hq.netapp.com>
Resent-Message-ID: <201303251050.r2PAo0Pp002413@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177368
>Category:       ports
>Synopsis:       [PATCH] net/fping: Add option to compile in timestamps patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 25 10:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Lars Eggert
>Release:        FreeBSD 9.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD stanley.muccbc.hq.netapp.com 9.1-STABLE FreeBSD 9.1-STABLE #3: Mon Mar  4 19:19:40 CET
>Description:
This patch adds an option to compile in Toke Hoiland-Jorgensen's patch
that enables timestamps for fping. This is needed by his netperf-wrapper
benchmarking tool (https://github.com/tohojo/netperf-wrapper)

Port maintainer (jharris@widomaker.com) is cc'd.

Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- fping-3.4_1.patch begins here ---
diff -ruN ../fping.orig/Makefile ./Makefile
--- ../fping.orig/Makefile	2012-11-17 07:00:00.000000000 +0100
+++ ./Makefile	2013-03-25 11:33:08.000000000 +0100
@@ -1,15 +1,14 @@
-# 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: ports/net/fping/Makefile,v 1.27 2012/11/17 06:00:00 svnexp Exp $
-#
 
 PORTNAME=	fping
 PORTVERSION=	3.4
+PORTREVISION=	1
 CATEGORIES=	net ipv6
-MASTER_SITES=   http://fping.org/dist/
+MASTER_SITES=	http://fping.org/dist/
+
+PATCH_SITES=	http://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
@@ -18,6 +17,9 @@
 OPTIONS_MULTI_NET=	IPV4 IPV6
 OPTIONS_DEFAULT=	IPV4
 
+OPTIONS_DEFINE=		TIMESTAMPS
+TIMESTAMPS_DESC=	Enable timestamps patch
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--bindir="${PREFIX}/sbin"
 
@@ -39,6 +41,10 @@
 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 -ruN ../fping.orig/distinfo ./distinfo
--- ../fping.orig/distinfo	2012-09-24 11:15:59.000000000 +0200
+++ ./distinfo	2013-03-25 11:13:12.000000000 +0100
@@ -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
--- fping-3.4_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303251047.r2PAlBQm049030>