summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-misc/iputils/Manifest12
-rw-r--r--net-misc/iputils/files/iputils-20070202-no-open-max.patch16
-rw-r--r--net-misc/iputils/iputils-20070202.ebuild79
3 files changed, 107 insertions, 0 deletions
diff --git a/net-misc/iputils/Manifest b/net-misc/iputils/Manifest
index fdcabe3a..06b3bdc9 100644
--- a/net-misc/iputils/Manifest
+++ b/net-misc/iputils/Manifest
@@ -58,11 +58,23 @@ AUX iputils-20070202-makefile.patch 982 RMD160 1b245b116eb9ede2698e7a37122cd1e6f
MD5 4dd8c06c9c06338359f7efe5b1791288 files/iputils-20070202-makefile.patch 982
RMD160 1b245b116eb9ede2698e7a37122cd1e6fb4c4dfd files/iputils-20070202-makefile.patch 982
SHA256 10da0ffbbf0d3df72f0a7218cd94a2668eff318e12f402ae3279fec090462b4a files/iputils-20070202-makefile.patch 982
+AUX iputils-20070202-no-open-max.patch 367 RMD160 e69a4be1e3ff09a7a5c77a5aee871bf9887919fd SHA1 5505cc56d715b459549d6f227d5d29087fd23e5d SHA256 e10fe24e5d07511ec6f1ee0822d314282952510d1b1e30b70f83d70542f7e513
+MD5 a2cbc0174dd883f68297aa7f3e7c4f5c files/iputils-20070202-no-open-max.patch 367
+RMD160 e69a4be1e3ff09a7a5c77a5aee871bf9887919fd files/iputils-20070202-no-open-max.patch 367
+SHA256 e10fe24e5d07511ec6f1ee0822d314282952510d1b1e30b70f83d70542f7e513 files/iputils-20070202-no-open-max.patch 367
DIST iputils-s20060512.tar.bz2 88091 RMD160 7fedbf48a0899e81f9e9d8b4902c0ab3d7b66db7 SHA1 daa7fd4efb9ac0c8800c46325faf487298025412 SHA256 61d5adff80ebe0530c8f4b9933cc8e08d8528012f8a96a788e638b411f369e8e
+DIST iputils-s20070202.tar.bz2 88678 RMD160 f6c3600a350537210d6ca43d1b82806bc0fa88f7 SHA1 44a299db16543a68fb80b06d5e6c88760af2aa6e SHA256 86f9f9970b4e2258e5e985d4d74b6ba9145410006c73b6482170525deb0c1957
EBUILD iputils-20060512.ebuild 2097 RMD160 a5e64c3f68a33879b982e9380a1901a9b70da9a7 SHA1 2bd46acdf2eb41b7d43fbf72f4d22b51faea198c SHA256 18d89a09db0323f44d720c700384439e17189f45def6dc0f422b1737af1d231b
MD5 74030c63b54025aadc230480bef936fa iputils-20060512.ebuild 2097
RMD160 a5e64c3f68a33879b982e9380a1901a9b70da9a7 iputils-20060512.ebuild 2097
SHA256 18d89a09db0323f44d720c700384439e17189f45def6dc0f422b1737af1d231b iputils-20060512.ebuild 2097
+EBUILD iputils-20070202.ebuild 2061 RMD160 aa6b83b75b67b37c5b71a683331b8709a7fb9f18 SHA1 f71137904b2a18728e83369a505c848280a52f74 SHA256 0dfbd10e511d7d29df6057f1e5ccd782eb3e894db152fb8221002ff69dafb064
+MD5 76f392a4973432ecf423403a7cf93485 iputils-20070202.ebuild 2061
+RMD160 aa6b83b75b67b37c5b71a683331b8709a7fb9f18 iputils-20070202.ebuild 2061
+SHA256 0dfbd10e511d7d29df6057f1e5ccd782eb3e894db152fb8221002ff69dafb064 iputils-20070202.ebuild 2061
MD5 d1a03b4e8b248518bfbdb595e328f009 files/digest-iputils-20060512 253
RMD160 3af2bac60b9609d76247499078f8beb978cedea4 files/digest-iputils-20060512 253
SHA256 cc03114cb4292c3e01b341a32fe72f00b3f736f2af9cd00c6ed6480510dcee35 files/digest-iputils-20060512 253
+MD5 0d7703492a09135b18232f913f7c0c91 files/digest-iputils-20070202 253
+RMD160 943120408b3d693678ded7cd76091f0655102051 files/digest-iputils-20070202 253
+SHA256 cc79f04ebf9d4939fe1d64fd769cd1c8d0fbc6bc17d5bbb36163c8f319e98113 files/digest-iputils-20070202 253
diff --git a/net-misc/iputils/files/iputils-20070202-no-open-max.patch b/net-misc/iputils/files/iputils-20070202-no-open-max.patch
new file mode 100644
index 00000000..5013ba4f
--- /dev/null
+++ b/net-misc/iputils/files/iputils-20070202-no-open-max.patch
@@ -0,0 +1,16 @@
+the OPEN_MAX define has been removed in newer kernel headers so use the
+proper method of getting the value dynamically
+
+http://bugs.gentoo.org/195861
+
+--- a/rdisc.c
++++ b/rdisc.c
+@@ -247,7 +247,7 @@ void do_fork(void)
+ if ((pid=fork()) != 0)
+ exit(0);
+
+- for (t = 0; t < OPEN_MAX; t++)
++ for (t = 0; t < sysconf(_SC_OPEN_MAX); t++)
+ if (t != s)
+ close(t);
+
diff --git a/net-misc/iputils/iputils-20070202.ebuild b/net-misc/iputils/iputils-20070202.ebuild
new file mode 100644
index 00000000..ffce02fb
--- /dev/null
+++ b/net-misc/iputils/iputils-20070202.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-20070202.ebuild,v 1.7 2007/10/16 14:22:49 angelos Exp $
+
+inherit flag-o-matic eutils toolchain-funcs
+
+DESCRIPTION="Network monitoring tools including ping and ping6"
+HOMEPAGE="http://www.skbuff.net/iputils/"
+SRC_URI="http://www.skbuff.net/iputils/iputils-s${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86"
+IUSE="static ipv6 doc minimal"
+
+DEPEND="virtual/os-headers
+ doc? (
+ app-text/openjade
+ dev-perl/SGMLSpm
+ app-text/docbook-sgml-dtd
+ app-text/docbook-sgml-utils
+ )"
+RDEPEND=""
+
+S=${WORKDIR}/${PN}-s${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-021109-gcc34.patch
+ epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch
+ epatch "${FILESDIR}"/${PN}-20070202-makefile.patch
+ epatch "${FILESDIR}"/${PN}-20060512-kernel-ifaddr.patch
+ epatch "${FILESDIR}"/${PN}-20060512-linux-headers.patch
+ epatch "${FILESDIR}"/${PN}-20070202-no-open-max.patch #195861
+
+ use static && append-ldflags -static
+ use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "make main failed"
+
+ # We include the extra check for docbook2html
+ # because when we emerge from a stage1/stage2,
+ # it may not exist #23156
+ if use doc && type -p docbook2html ; then
+ emake -j1 html man || die
+ fi
+}
+
+src_install() {
+ into /
+ dobin ping || die "ping"
+ use ipv6 && dobin ping6
+ dosbin arping || die "arping"
+ into /usr
+ dosbin tracepath || die "tracepath"
+ use ipv6 && dosbin trace{path,route}6
+ # X-MW: minimal
+ use minimal && rm rarpd ipg tftpd
+ dosbin clockdiff rdisc || die "misc sbin"
+
+ fperms 4711 /bin/ping
+ use ipv6 && fperms 4711 /bin/ping6 /usr/sbin/traceroute6
+
+ dodoc INSTALL RELNOTES
+
+ if use doc ; then
+ rm -f doc/setkey.8
+ use ipv6 \
+ && dosym ping.8 /usr/share/man/man8/ping6.8 \
+ || rm -f doc/*6.8
+ doman doc/*.8
+
+ dohtml doc/*.html
+ fi
+}