diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-08-25 16:22:07 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-08-25 16:22:07 +0000 |
commit | 363797f730b2a7a7100cadedb5dfe372a8c80938 (patch) | |
tree | 5bc3029e6227d49ab079bfed95fedc7b8aa6f077 /net-analyzer/fping | |
parent | Fix build with GCC-4.5 wrt bug 334415. Thanks to Diego for report. (diff) | |
download | gentoo-2-363797f730b2a7a7100cadedb5dfe372a8c80938.tar.gz gentoo-2-363797f730b2a7a7100cadedb5dfe372a8c80938.tar.bz2 gentoo-2-363797f730b2a7a7100cadedb5dfe372a8c80938.zip |
Fix -Q60 minimum ping response time bug by Alex Ghoth.
(Portage version: 2.2_rc68/cvs/Linux i686)
Diffstat (limited to 'net-analyzer/fping')
-rw-r--r-- | net-analyzer/fping/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch | 47 | ||||
-rw-r--r-- | net-analyzer/fping/fping-2.4_beta2_p161-r1.ebuild | 59 |
3 files changed, 114 insertions, 1 deletions
diff --git a/net-analyzer/fping/ChangeLog b/net-analyzer/fping/ChangeLog index 92e8e9a03f9c..1a6a4c0ee39e 100644 --- a/net-analyzer/fping/ChangeLog +++ b/net-analyzer/fping/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-analyzer/fping # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fping/ChangeLog,v 1.29 2010/07/12 18:39:32 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fping/ChangeLog,v 1.30 2010/08/25 16:22:07 jer Exp $ + +*fping-2.4_beta2_p161-r1 (25 Aug 2010) + + 25 Aug 2010; Jeroen Roovers <jer@gentoo.org> + +fping-2.4_beta2_p161-r1.ebuild, + +files/fping-2.4_beta2_p161-min-time.patch: + Fix -Q60 minimum ping response time bug by Alex Ghoth. *fping-2.4_beta2_p161 (12 Jul 2010) diff --git a/net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch b/net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch new file mode 100644 index 000000000000..5e5ccd40fc2a --- /dev/null +++ b/net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch @@ -0,0 +1,47 @@ +--- old/fping.c 2010-08-24 16:59:38.947000447 +0100 ++++ new/fping.c 2010-08-24 16:55:52.101000443 +0100 +@@ -25,6 +25,7 @@ + * Original author: Roland Schemers <schemers@stanford.edu> + * IPv6 Support: Jeroen Massar <jeroen@unfix.org / jeroen@ipng.nl> + * Bugfixes, byte order & senseful seq.-numbers: Stephan Fuhrmann (stephan.fuhrmann AT 1und1.de) ++ * Fixes: min_reply_i in splits and compiler warning. Alex Ghoth (alex AT ghoth.net) + * + * + * RCS header information no longer used. It has been moved to the +@@ -743,7 +744,7 @@ + + if( ( ping_data_size > MAX_PING_DATA ) || ( ping_data_size < MIN_PING_DATA ) ) + { +- fprintf( stderr, "%s: data size %u not valid, must be between %u and %u\n", ++ fprintf( stderr, "%s: data size %u not valid, must be between %lu and %u\n", + prog, ping_data_size, MIN_PING_DATA, MAX_PING_DATA ); + usage(); + +@@ -1112,7 +1113,7 @@ + ht = timeval_diff( ¤t_time, &cursor->last_send_time ); + + if( report_interval && ( loop_flag || count_flag ) && +- ( timeval_diff ( ¤t_time, &last_report_time ) > report_interval ) ) ++ ( timeval_diff ( ¤t_time, &last_report_time ) >= report_interval ) ) + { + print_per_system_splits(); + gettimeofday( ¤t_time, &tz ); +@@ -1487,8 +1488,8 @@ + }/* IF */ + + fprintf( stderr, "\n" ); +- h->num_sent_i = h->num_recv_i = h->max_reply_i = +- h->min_reply_i = h->total_time_i = 0; ++ h->num_sent_i = h->num_recv_i = h->max_reply_i = h->total_time_i = 0; ++ h->min_reply_i = 10000000; + + }/* FOR */ + +@@ -2377,6 +2378,7 @@ + p->timeout = timeout; + p->running = 1; + p->min_reply = 10000000; ++ p->min_reply_i = 10000000; + + if( strlen( p->host ) > max_hostname_len ) + max_hostname_len = strlen( p->host ); diff --git a/net-analyzer/fping/fping-2.4_beta2_p161-r1.ebuild b/net-analyzer/fping/fping-2.4_beta2_p161-r1.ebuild new file mode 100644 index 000000000000..b56bcf0e7f74 --- /dev/null +++ b/net-analyzer/fping/fping-2.4_beta2_p161-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fping/fping-2.4_beta2_p161-r1.ebuild,v 1.1 2010/08/25 16:22:07 jer Exp $ + +EAPI="2" + +inherit autotools eutils flag-o-matic + +DESCRIPTION="A utility to ping multiple hosts at once" +SRC_URI=" + mirror://debian/pool/main/f/${PN}/${PN}_2.4b2-to-ipv6.orig.tar.gz + mirror://debian/pool/main/f/${PN}/${PN}_2.4b2-to-ipv6-16.1.diff.gz + " +HOMEPAGE="http://www.fping.com/" + +SLOT="0" +LICENSE="fping" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos" +IUSE="ipv6" + +S="${WORKDIR}/fping-2.4b2_to-ipv6" + +src_prepare() { + epatch \ + "${WORKDIR}"/fping_2.4b2-to-ipv6-16.1.diff \ + "${FILESDIR}"/${P}-min-time.patch + eautoreconf + + if use ipv6; then + cp -a "${S}" "${S}-6" + fi +} + +src_configure() { + econf || die "econf failed" + if use ipv6; then + cd "${S}-6" + append-flags -DIPV6 + econf || die "econf failed" + fi +} + +src_compile() { + emake || die "econf failed" + if use ipv6; then + cd "${S}-6" + emake || die "econf failed" + fi +} + +src_install () { + dosbin "${S}"/${PN} || die "Failed to install fping." + if use ipv6; then + newsbin "${S}"-6/fping fping6 || die "Failed to install fping." + fi + fperms 4555 /usr/sbin/fping /usr/sbin/fping6 #241930 + doman fping.8 + dodoc ChangeLog README +} |