summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-07-16 20:33:01 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-07-16 20:33:01 +0000
commit02d0732486afd41ef5457ea3d188d1d0784da9db (patch)
tree01b4b3315e930aa157a969d901670ce0843c5a07 /net-analyzer
parentinitial import (diff)
downloadgentoo-2-02d0732486afd41ef5457ea3d188d1d0784da9db.tar.gz
gentoo-2-02d0732486afd41ef5457ea3d188d1d0784da9db.tar.bz2
gentoo-2-02d0732486afd41ef5457ea3d188d1d0784da9db.zip
Revision bump: migrate to autotools-utils eclass, support for ipv6 with apropriate patch for buildsystem, wrt bug #454256
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/bwping/ChangeLog9
-rw-r--r--net-analyzer/bwping/bwping-1.7-r1.ebuild28
-rw-r--r--net-analyzer/bwping/files/bwping-1.7-buildsystem-configurable-ipv6.patch51
3 files changed, 87 insertions, 1 deletions
diff --git a/net-analyzer/bwping/ChangeLog b/net-analyzer/bwping/ChangeLog
index ba72884cbd80..eea5ec841809 100644
--- a/net-analyzer/bwping/ChangeLog
+++ b/net-analyzer/bwping/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/bwping
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwping/ChangeLog,v 1.12 2013/02/19 19:51:47 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwping/ChangeLog,v 1.13 2013/07/16 20:33:00 pinkbyte Exp $
+
+*bwping-1.7-r1 (16 Jul 2013)
+
+ 16 Jul 2013; Sergey Popov <pinkbyte@gentoo.org> +bwping-1.7-r1.ebuild,
+ +files/bwping-1.7-buildsystem-configurable-ipv6.patch:
+ Revision bump: migrate to autotools-utils eclass, support for ipv6 with
+ apropriate patch for buildsystem, wrt bug #454256
19 Feb 2013; Markos Chandras <hwoarang@gentoo.org> -bwping-1.5.ebuild,
-bwping-1.6.ebuild:
diff --git a/net-analyzer/bwping/bwping-1.7-r1.ebuild b/net-analyzer/bwping/bwping-1.7-r1.ebuild
new file mode 100644
index 000000000000..5c4c7dd7d02d
--- /dev/null
+++ b/net-analyzer/bwping/bwping-1.7-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwping/bwping-1.7-r1.ebuild,v 1.1 2013/07/16 20:33:01 pinkbyte Exp $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils
+
+DESCRIPTION="A tool to measure bandwidth and RTT between two hosts using ICMP"
+HOMEPAGE="http://bwping.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86 ~x86-fbsd"
+IUSE="ipv6"
+
+PATCHES=(
+ "${FILESDIR}/${P}-buildsystem-configurable-ipv6.patch" # bug 454256
+)
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable ipv6)
+ )
+ autotools-utils_src_configure
+}
diff --git a/net-analyzer/bwping/files/bwping-1.7-buildsystem-configurable-ipv6.patch b/net-analyzer/bwping/files/bwping-1.7-buildsystem-configurable-ipv6.patch
new file mode 100644
index 000000000000..553303722293
--- /dev/null
+++ b/net-analyzer/bwping/files/bwping-1.7-buildsystem-configurable-ipv6.patch
@@ -0,0 +1,51 @@
+--- configure.in.orig 2012-10-11 14:32:29.000000000 +0400
++++ configure.in 2013-07-17 00:12:52.569550315 +0400
+@@ -32,8 +32,29 @@
+ if test $ac_cv_func_getaddrinfo = no; then
+ AC_SEARCH_LIBS(getaddrinfo, [nsl socket], [], [ echo "getaddrinfo() is required for build"; exit -1 ])
+ fi
+-AC_MSG_CHECKING(for IPv6 support)
+-AC_CACHE_VAL(ac_cv_ipv6,
++
++AC_ARG_ENABLE(ipv6,
++ AC_HELP_STRING([--disable-ipv6],[disable IPv6 support]),
++ [case "${enable_ipv6}" in
++ no)
++ ipv6=no
++ ;;
++ yes)
++ ipv6=yes
++ ;;
++ *)
++ AC_MSG_ERROR([Invalid --enable-ipv6 argument '$enable_ipv6'])
++ ;;
++ esac
++ ], [
++ dnl If nothing is specified, assume auto-detection
++ ipv6=yes
++ ]
++)
++
++if test $ipv6 = yes; then
++ AC_MSG_CHECKING(for IPv6 support)
++ AC_CACHE_VAL(ac_cv_ipv6,
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <sys/socket.h>
+@@ -54,9 +75,12 @@
+ ac_cv_ipv6=yes,
+ ac_cv_ipv6=no,
+ ac_cv_ipv6=no))
+-AC_MSG_RESULT($ac_cv_ipv6)
+-if test $ac_cv_ipv6 = yes ; then
+- AC_DEFINE(IPV6,, "check if system supports IPV6")
++ if test $ac_cv_ipv6 = yes ; then
++ AC_DEFINE(IPV6,, "check if system supports IPV6")
++ else
++ AC_MSG_ERROR([IPv6 support was request, but not found])
++ fi
++ AC_MSG_RESULT($ac_cv_ipv6)
+ fi
+-AM_CONDITIONAL([BUILDIPV6], [ test $ac_cv_ipv6 = yes ])
++AM_CONDITIONAL([BUILDIPV6], [ test $ipv6 = yes ])
+ AC_OUTPUT(Makefile)