summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-02 22:24:35 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-02 22:24:35 +0000
commit6489c61885a7778b56cc7eb5258a2ada3687bd39 (patch)
treed402e8da7e3dc802906de224903793786f716916 /sys-apps/iproute2
parentadd missing gdk-pixbuf and glib dependencies. Stable on amd64. Bug #391613 (diff)
downloadhistorical-6489c61885a7778b56cc7eb5258a2ada3687bd39.tar.gz
historical-6489c61885a7778b56cc7eb5258a2ada3687bd39.tar.bz2
historical-6489c61885a7778b56cc7eb5258a2ada3687bd39.zip
Version bump.
Package-Manager: portage-2.2.0_alpha75/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/iproute2')
-rw-r--r--sys-apps/iproute2/ChangeLog8
-rw-r--r--sys-apps/iproute2/Manifest13
-rw-r--r--sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch48
-rw-r--r--sys-apps/iproute2/iproute2-3.1.0.ebuild98
-rw-r--r--sys-apps/iproute2/iproute2-9999.ebuild38
5 files changed, 180 insertions, 25 deletions
diff --git a/sys-apps/iproute2/ChangeLog b/sys-apps/iproute2/ChangeLog
index 63f70f3b5bc9..81a9b43689ab 100644
--- a/sys-apps/iproute2/ChangeLog
+++ b/sys-apps/iproute2/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/iproute2
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v 1.174 2011/10/18 21:41:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v 1.175 2011/12/02 22:24:35 vapier Exp $
+
+*iproute2-3.1.0 (02 Dec 2011)
+
+ 02 Dec 2011; Mike Frysinger <vapier@gentoo.org> +iproute2-3.1.0.ebuild,
+ +files/iproute2-3.1.0-mtu.patch, iproute2-9999.ebuild:
+ Version bump.
18 Oct 2011; Mike Frysinger <vapier@gentoo.org> iproute2-2.6.38.ebuild,
+files/iproute2-2.6.38-parallel-build.patch:
diff --git a/sys-apps/iproute2/Manifest b/sys-apps/iproute2/Manifest
index c32ac559d112..f5f53d279748 100644
--- a/sys-apps/iproute2/Manifest
+++ b/sys-apps/iproute2/Manifest
@@ -9,20 +9,23 @@ AUX iproute2-2.6.35-no-iptables.patch 320 RMD160 9e009b47a903a4977e63dd0d95962b3
AUX iproute2-2.6.35-no-ipv6.patch 859 RMD160 5e3760d4a9cbd9a74be4b66fbd08e272f49e86b3 SHA1 7c5c1e5e3ead449dd99ad00bf5725d3e785dc213 SHA256 643429d9dca71e505bf3ab5a8e35a89b1014cd4ffec2f77e0abc1fd3997579d3
AUX iproute2-2.6.35-xtables.patch 1027 RMD160 ba09b7f3fc7d6b38c1321ec6f43089679e6e3ebe SHA1 985aba3c19d085230e97c3e7aee64eff5c86d9b3 SHA256 4f2227b31407002dcad8d547fe61e8b5aaba7b70a11ea20b9bfb9583ac105801
AUX iproute2-2.6.38-parallel-build.patch 1191 RMD160 d007fece03f344dc0a1901482a815507d4c24f56 SHA1 56d810756f09696997871c0fb44778f12da6cdba SHA256 fe3cb7e51398c6f6929e93ea03a822ed404d0e1cb302f4ca9e8fcb350b1abf18
+AUX iproute2-3.1.0-mtu.patch 1649 RMD160 bd3be1f242f8e0c56b30538ef6c6decc5247c668 SHA1 81aee5e83a04fa1aba10c516a47b31ba22543b1b SHA256 d8d1d3b81a3fd5674e6c9e202bce9e84f41b579ba2c6a554df3346f4642715af
DIST iproute2-2.6.29-1.tar.bz2 367905 RMD160 f96c3ec0877c9d5a2dcba582b399a80ed71a4a8b SHA1 b6a43799bf5e8131307cf88b855031317af90eb4 SHA256 13ffb0ffe5404c9dcc8bed8c692f07d934aa3fd44661df79dd1efbb37f83fb9b
DIST iproute2-2.6.35.tar.bz2 387193 RMD160 39a4eb0b07fa5b1ddbfc9f31f4053a5e777e8b97 SHA1 862b86ac73ea696867675765d119654553a22aeb SHA256 8ab2f47e129925fb8acb09421008d07aeafa01b2ddd1fcba4a056de079f090a3
DIST iproute2-2.6.38.tar.bz2 390166 RMD160 7c59dab852cd4c6eb685ac778c1e27d7e59d9b6f SHA1 e9f6d457a06866a2a20a6cba6b3a039b2ec3e14a SHA256 47629a4f547f21d94d8e823a87dd8e13042cadecefea2e2dc433e4134fa9aec4
+DIST iproute2-3.1.0.tar.bz2 404147 RMD160 8ec8fdb6aabad462a70a33b6e915281fe6558036 SHA1 dbafdf6fdfc6c8cd2e9bb704da9110f310b03c37 SHA256 c9d6366a3835a244008170e6d7752ca08414270175fce575e4f516f057688df1
EBUILD iproute2-2.6.29.1-r1.ebuild 2737 RMD160 390ab7a08c245e50b6ce69766a812225b52c4bb5 SHA1 417f0dcb0720eb0d878ffe583a391512cefb887f SHA256 3652c262e52359e898b74f3eb428ceb9690c3d6b08c76654c7b35a5933695e40
EBUILD iproute2-2.6.35-r2.ebuild 2611 RMD160 d35ca09dedb9eaff75703cbd1f15c0eaabb3b9e1 SHA1 9938aa61a7ba97cce8007502cf183d95cf60b62d SHA256 5f14ab7b77672d49df8e9648975613cde048220c915670cdc4adb0610b54fcd8
EBUILD iproute2-2.6.35-r3.ebuild 2881 RMD160 32368f70d63f5675681df3fcb405d141b20d7272 SHA1 479bded179abf64ba1dae27c8cef1b38ea8dc7a9 SHA256 de74bd52f5e4c975030e74072f8651b12d91af7076e111b44cc399097fdfb1b9
EBUILD iproute2-2.6.38.ebuild 2463 RMD160 a02158a4b773dcd43dfc888405b0531bfc613ebe SHA1 d28c9051a48b4614100addd4bfe2b5eb5bf6f82b SHA256 d7ec4a6b3c6ce80fa6520c95450d5d0592099103692c97bc0f3d16c5a918a660
-EBUILD iproute2-9999.ebuild 2415 RMD160 062ab30a53b38a88611df2d19448c6836f50f241 SHA1 e61653bfed9573eebf0886847213b691f5981a75 SHA256 fafe36398968cb44d8de8172484255b0cda22574e2c7cdc35c3cebf55ffbe4d3
-MISC ChangeLog 30837 RMD160 9bb807146fa581b8f0d02ffccc0f4a66abfef127 SHA1 fb510878b53b136197b6314ae5945e22df676623 SHA256 103e9b5580bec8165d5da5bfd7a6ded88a58bbcf57fb0ef1b721711e493476c7
+EBUILD iproute2-3.1.0.ebuild 2539 RMD160 ad2d1622b88af9811ecf1e34c232993283043b98 SHA1 d0e37c0c46684aafe89f38aeac48de2d475724d1 SHA256 e806e34ff5432f02e350182d309b01a2eccc1f06874349b0fe9f071a379c3bee
+EBUILD iproute2-9999.ebuild 2539 RMD160 4258fd5c9f1c054955fd8a50d4218b8719524eb7 SHA1 1993719f15eca2d5279fa24678696330d72bd823 SHA256 5365435a47132c8ae02574c8814a5b8e6881d094d404dd658745462813cc1050
+MISC ChangeLog 31016 RMD160 0033a52286a1af899a37722f73b3e69528aadf81 SHA1 9428daeeed762f1c7c942215b6daff0de7a94ed4 SHA256 e73eb81028054c088ad793991d24b09561553e4013b13ac62c0a7216fe638c1c
MISC metadata.xml 246 RMD160 f577c668ed7c33423595f7d3db200a5868749b60 SHA1 7727cd7938065c32bef28eee0e3ef096125217e1 SHA256 f081ffa604caba81f8229deeec7b8d4694d83c059564d7c941f7b942b8385012
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iF4EAREIAAYFAk6d8qoACgkQaC/OocHi7JY/AwD+PepJ4waC4CbTPBAyxk2DUdg5
-XVuvvMwb0WwLp5yKIr8BAJnjUr67icwkFutGeGjHmnwbumG6w1UJVtu42T6lAkGW
-=Auxs
+iF4EAREIAAYFAk7ZUCoACgkQaC/OocHi7JYTqAD9FqO00iw6S7iGohsb8r+3L8jD
+YveTM8mS0K52DsAMl84BAJ/LWYa6k1hRAZ5DX7Vpbf8Hgs7QC5tSeytSvCVSFKZA
+=NaYK
-----END PGP SIGNATURE-----
diff --git a/sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch b/sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch
new file mode 100644
index 000000000000..fa12dad2d79e
--- /dev/null
+++ b/sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch
@@ -0,0 +1,48 @@
+http://bugs.gentoo.org/291907
+
+This patch was merged from two patches extracted from this thread:
+http://markmail.org/thread/qkd76gpdgefpjlfn
+
+tc_stab.c: small fixes to commandline help
+
+
+tc_core.c:
+As kernel part of things relies on cell align which is always set to -1,
+I also added it to userspace computation stage. This way if someone
+specified e.g. 2048 and 512 for mtu and tsize respectively, one wouldn't
+end with tsize supporting mtu 4096 suddenly, New default mtu is also set
+to 2048 (disregarding weirdness of setting mtu to such values).
+
+
+Unless I missed something, this is harmless and feels cleaner, but if it's
+not allowed, documentation will have to be changed back to 2047 + extra
+explanation as well.
+
+--- iproute2/tc/tc_core.c
++++ iproute2/tc/tc_core.c
+@@ -155,12 +155,12 @@
+ }
+
+ if (s->mtu == 0)
+- s->mtu = 2047;
++ s->mtu = 2048;
+ if (s->tsize == 0)
+ s->tsize = 512;
+
+ s->cell_log = 0;
+- while ((s->mtu >> s->cell_log) > s->tsize - 1)
++ while ((s->mtu - 1 >> s->cell_log) > s->tsize - 1)
+ s->cell_log++;
+
+ *stab = malloc(s->tsize * sizeof(__u16));
+--- iproute2/tc/tc_stab.c
++++ iproute2/tc/tc_stab.c
+@@ -32,7 +32,7 @@
+ fprintf(stderr,
+ "Usage: ... stab [ mtu BYTES ] [ tsize SLOTS ] [ mpu BYTES ] \n"
+ " [ overhead BYTES ] [ linklayer TYPE ] ...\n"
+- " mtu : max packet size we create rate map for {2047}\n"
++ " mtu : max packet size we create size table for {2048}\n"
+ " tsize : how many slots should size table have {512}\n"
+ " mpu : minimum packet size used in rate computations\n"
+ " overhead : per-packet size overhead used in rate computations\n"
diff --git a/sys-apps/iproute2/iproute2-3.1.0.ebuild b/sys-apps/iproute2/iproute2-3.1.0.ebuild
new file mode 100644
index 000000000000..ffef23a607ea
--- /dev/null
+++ b/sys-apps/iproute2/iproute2-3.1.0.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-3.1.0.ebuild,v 1.1 2011/12/02 22:24:35 vapier Exp $
+
+EAPI=4
+
+EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git"
+
+if [[ ${PV} == *.*.*.* ]] ; then
+ MY_PV=${PV%.*}-${PV##*.}
+else
+ MY_PV=${PV}
+fi
+MY_P="${PN}-${MY_PV}"
+
+inherit eutils toolchain-funcs flag-o-matic
+[[ ${PV} == "9999" ]] && inherit git-2
+
+DESCRIPTION="kernel routing and traffic control utilities"
+HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
+[[ ${PV} == "9999" ]] || SRC_URI="mirror://kernel/linux/utils/networking/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+[[ ${PV} == "9999" ]] || KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="atm berkdb minimal"
+
+RDEPEND="!net-misc/arpd
+ !minimal? ( berkdb? ( sys-libs/db ) )
+ atm? ( net-dialup/linux-atm )"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ >=sys-kernel/linux-headers-2.6.27
+ elibc_glibc? ( >=sys-libs/glibc-2.7 )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907
+
+ sed -i \
+ -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
+ -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
+ Makefile || die
+
+ # build against system headers
+ rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc
+
+ # don't build arpd if USE=-berkdb #81660
+ use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile
+
+ use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile
+}
+
+src_configure() {
+ tc-export AR CC PKG_CONFIG
+
+ # This sure is ugly. Should probably move into toolchain-funcs at some point.
+ local setns
+ pushd "${T}" >/dev/null
+ echo 'main(){return setns();};' > test.c
+ ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n
+ popd >/dev/null
+
+ cat <<-EOF > Config
+ TC_CONFIG_ATM := $(usex atm y n)
+ IP_CONFIG_SETNS := ${setns}
+ # Use correct iptables dir, #144265 #293709
+ IPT_LIB_DIR := $(${PKG_CONFIG} xtables --variable=xtlibdir)
+ EOF
+}
+
+src_install() {
+ if use minimal ; then
+ into /
+ dosbin tc/tc
+ return 0
+ fi
+
+ emake \
+ DESTDIR="${D}" \
+ SBINDIR=/sbin \
+ DOCDIR=/usr/share/doc/${PF} \
+ MANDIR=/usr/share/man \
+ install
+
+ dolib.a lib/libnetlink.a
+ insinto /usr/include
+ doins include/libnetlink.h
+
+ if use berkdb ; then
+ dodir /var/lib/arpd
+ # bug 47482, arpd doesn't need to be in /sbin
+ dodir /usr/sbin
+ mv "${ED}"/sbin/arpd "${ED}"/usr/sbin/
+ fi
+}
diff --git a/sys-apps/iproute2/iproute2-9999.ebuild b/sys-apps/iproute2/iproute2-9999.ebuild
index 902063f5c7b7..a78a2d5ec4a2 100644
--- a/sys-apps/iproute2/iproute2-9999.ebuild
+++ b/sys-apps/iproute2/iproute2-9999.ebuild
@@ -1,11 +1,10 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild,v 1.16 2011/07/31 18:33:22 mattst88 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild,v 1.17 2011/12/02 22:24:35 vapier Exp $
EAPI=4
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git"
-[[ ${PV} == "9999" ]] && SCM_ECLASS="git-2"
if [[ ${PV} == *.*.*.* ]] ; then
MY_PV=${PV%.*}-${PV##*.}
@@ -14,12 +13,12 @@ else
fi
MY_P="${PN}-${MY_PV}"
-inherit eutils toolchain-funcs flag-o-matic base ${SCM_ECLASS}
-unset SCM_ECLASS
+inherit eutils toolchain-funcs flag-o-matic
+[[ ${PV} == "9999" ]] && inherit git-2
DESCRIPTION="kernel routing and traffic control utilities"
HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
-[[ ${PV} == "9999" ]] || SRC_URI="http://developer.osdl.org/dev/iproute2/download/${MY_P}.tar.bz2"
+[[ ${PV} == "9999" ]] || SRC_URI="mirror://kernel/linux/utils/networking/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
@@ -37,12 +36,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
-PATCHES=(
- "${FILESDIR}/${PN}-2.6.29.1-hfsc.patch" #291907
-)
-
src_prepare() {
- base_src_prepare
+ epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907
sed -i \
-e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
@@ -59,16 +54,21 @@ src_prepare() {
}
src_configure() {
- echo "TC_CONFIG_ATM:=$(use atm && echo "y" || echo "n")" > Config
-
+ tc-export AR CC PKG_CONFIG
+
+ # This sure is ugly. Should probably move into toolchain-funcs at some point.
+ local setns
+ pushd "${T}" >/dev/null
+ echo 'main(){return setns();};' > test.c
+ ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n
+ popd >/dev/null
+
+ cat <<-EOF > Config
+ TC_CONFIG_ATM := $(usex atm y n)
+ IP_CONFIG_SETNS := ${setns}
# Use correct iptables dir, #144265 #293709
- append-cppflags -DIPT_LIB_DIR=\\\"`$(tc-getPKG_CONFIG) xtables --variable=xtlibdir`\\\"
-}
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- AR="$(tc-getAR)"
+ IPT_LIB_DIR := $(${PKG_CONFIG} xtables --variable=xtlibdir)
+ EOF
}
src_install() {