Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/iproute2: ChangeLog iproute2-3.5.0.ebuild
Date: Thu, 02 Aug 2012 03:03:00
Message-Id: 20120802030245.1FFB72004B@flycatcher.gentoo.org
1 radhermit 12/08/02 03:02:45
2
3 Modified: ChangeLog
4 Added: iproute2-3.5.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.199 sys-apps/iproute2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/ChangeLog?rev=1.199&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/ChangeLog?rev=1.199&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/ChangeLog?r1=1.198&r2=1.199
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v
20 retrieving revision 1.198
21 retrieving revision 1.199
22 diff -u -r1.198 -r1.199
23 --- ChangeLog 16 Jul 2012 08:48:44 -0000 1.198
24 +++ ChangeLog 2 Aug 2012 03:02:44 -0000 1.199
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/iproute2
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v 1.198 2012/07/16 08:48:44 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v 1.199 2012/08/02 03:02:44 radhermit Exp $
30 +
31 +*iproute2-3.5.0 (02 Aug 2012)
32 +
33 + 02 Aug 2012; Tim Harder <radhermit@g.o> +iproute2-3.5.0.ebuild:
34 + Version bump.
35
36 *iproute2-3.4.0 (16 Jul 2012)
37
38
39
40
41 1.1 sys-apps/iproute2/iproute2-3.5.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/iproute2-3.5.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/iproute2-3.5.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: iproute2-3.5.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-3.5.0.ebuild,v 1.1 2012/08/02 03:02:44 radhermit Exp $
51
52 EAPI="4"
53
54 inherit eutils toolchain-funcs flag-o-matic multilib
55
56 if [[ ${PV} == "9999" ]] ; then
57 EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git"
58 inherit git-2
59 SRC_URI=""
60 #KEYWORDS=""
61 else
62 SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
64 fi
65
66 DESCRIPTION="kernel routing and traffic control utilities"
67 HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 IUSE="atm berkdb +iptables ipv6 minimal"
72
73 RDEPEND="!net-misc/arpd
74 iptables? ( >=net-firewall/iptables-1.4.5 )
75 !minimal? ( berkdb? ( sys-libs/db ) )
76 atm? ( net-dialup/linux-atm )"
77 DEPEND="${RDEPEND}
78 app-arch/xz-utils
79 iptables? ( virtual/pkgconfig )
80 sys-devel/bison
81 sys-devel/flex
82 >=sys-kernel/linux-headers-2.6.27
83 elibc_glibc? ( >=sys-libs/glibc-2.7 )"
84
85 src_prepare() {
86 epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907
87 use ipv6 || epatch "${FILESDIR}"/${PN}-3.1.0-no-ipv6.patch #326849
88
89 sed -i \
90 -e '/^CC =/d' \
91 -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
92 -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
93 Makefile || die
94
95 # build against system headers
96 rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc
97 sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die
98
99 # don't build arpd if USE=-berkdb #81660
100 use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile
101
102 use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile
103 }
104
105 src_configure() {
106 tc-export AR CC PKG_CONFIG
107
108 # This sure is ugly. Should probably move into toolchain-funcs at some point.
109 local setns
110 pushd "${T}" >/dev/null
111 echo 'main(){return setns();};' > test.c
112 ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n
113 echo 'main(){};' > test.c
114 ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile
115 popd >/dev/null
116
117 cat <<-EOF > Config
118 TC_CONFIG_ATM := $(usex atm y n)
119 TC_CONFIG_XT := $(usex iptables y n)
120 IP_CONFIG_SETNS := ${setns}
121 # Use correct iptables dir, #144265 #293709
122 IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir)
123 EOF
124 }
125
126 src_install() {
127 if use minimal ; then
128 into /
129 dosbin tc/tc
130 return 0
131 fi
132
133 emake \
134 DESTDIR="${D}" \
135 LIBDIR="${EPREFIX}"/$(get_libdir) \
136 SBINDIR="${EPREFIX}"/sbin \
137 CONFDIR="${EPREFIX}"/etc/iproute2 \
138 DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
139 MANDIR="${EPREFIX}"/usr/share/man \
140 ARPDDIR="${EPREFIX}"/var/lib/arpd \
141 install
142
143 dolib.a lib/libnetlink.a
144 insinto /usr/include
145 doins include/libnetlink.h
146
147 if use berkdb ; then
148 dodir /var/lib/arpd
149 # bug 47482, arpd doesn't need to be in /sbin
150 dodir /usr/sbin
151 mv "${ED}"/sbin/arpd "${ED}"/usr/sbin/
152 fi
153 }