Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/iproute2: ChangeLog iproute2-9999.ebuild iproute2-3.1.0.ebuild
Date: Fri, 02 Dec 2011 22:24:50
Message-Id: 20111202222435.EADAE2004B@flycatcher.gentoo.org
1 vapier 11/12/02 22:24:35
2
3 Modified: ChangeLog iproute2-9999.ebuild
4 Added: iproute2-3.1.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.175 sys-apps/iproute2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/ChangeLog?rev=1.175&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/ChangeLog?rev=1.175&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/ChangeLog?r1=1.174&r2=1.175
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v
20 retrieving revision 1.174
21 retrieving revision 1.175
22 diff -u -r1.174 -r1.175
23 --- ChangeLog 18 Oct 2011 21:41:55 -0000 1.174
24 +++ ChangeLog 2 Dec 2011 22:24:35 -0000 1.175
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-apps/iproute2
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v 1.174 2011/10/18 21:41:55 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/ChangeLog,v 1.175 2011/12/02 22:24:35 vapier Exp $
30 +
31 +*iproute2-3.1.0 (02 Dec 2011)
32 +
33 + 02 Dec 2011; Mike Frysinger <vapier@g.o> +iproute2-3.1.0.ebuild,
34 + +files/iproute2-3.1.0-mtu.patch, iproute2-9999.ebuild:
35 + Version bump.
36
37 18 Oct 2011; Mike Frysinger <vapier@g.o> iproute2-2.6.38.ebuild,
38 +files/iproute2-2.6.38-parallel-build.patch:
39
40
41
42 1.17 sys-apps/iproute2/iproute2-9999.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild?rev=1.17&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild?rev=1.17&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild?r1=1.16&r2=1.17
47
48 Index: iproute2-9999.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild,v
51 retrieving revision 1.16
52 retrieving revision 1.17
53 diff -u -r1.16 -r1.17
54 --- iproute2-9999.ebuild 31 Jul 2011 18:33:22 -0000 1.16
55 +++ iproute2-9999.ebuild 2 Dec 2011 22:24:35 -0000 1.17
56 @@ -1,11 +1,10 @@
57 # Copyright 1999-2011 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild,v 1.16 2011/07/31 18:33:22 mattst88 Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-9999.ebuild,v 1.17 2011/12/02 22:24:35 vapier Exp $
61
62 EAPI=4
63
64 EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git"
65 -[[ ${PV} == "9999" ]] && SCM_ECLASS="git-2"
66
67 if [[ ${PV} == *.*.*.* ]] ; then
68 MY_PV=${PV%.*}-${PV##*.}
69 @@ -14,12 +13,12 @@
70 fi
71 MY_P="${PN}-${MY_PV}"
72
73 -inherit eutils toolchain-funcs flag-o-matic base ${SCM_ECLASS}
74 -unset SCM_ECLASS
75 +inherit eutils toolchain-funcs flag-o-matic
76 +[[ ${PV} == "9999" ]] && inherit git-2
77
78 DESCRIPTION="kernel routing and traffic control utilities"
79 HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
80 -[[ ${PV} == "9999" ]] || SRC_URI="http://developer.osdl.org/dev/iproute2/download/${MY_P}.tar.bz2"
81 +[[ ${PV} == "9999" ]] || SRC_URI="mirror://kernel/linux/utils/networking/${PN}/${P}.tar.bz2"
82
83 LICENSE="GPL-2"
84 SLOT="0"
85 @@ -37,12 +36,8 @@
86
87 S=${WORKDIR}/${MY_P}
88
89 -PATCHES=(
90 - "${FILESDIR}/${PN}-2.6.29.1-hfsc.patch" #291907
91 -)
92 -
93 src_prepare() {
94 - base_src_prepare
95 + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907
96
97 sed -i \
98 -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
99 @@ -59,16 +54,21 @@
100 }
101
102 src_configure() {
103 - echo "TC_CONFIG_ATM:=$(use atm && echo "y" || echo "n")" > Config
104 + tc-export AR CC PKG_CONFIG
105
106 + # This sure is ugly. Should probably move into toolchain-funcs at some point.
107 + local setns
108 + pushd "${T}" >/dev/null
109 + echo 'main(){return setns();};' > test.c
110 + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n
111 + popd >/dev/null
112 +
113 + cat <<-EOF > Config
114 + TC_CONFIG_ATM := $(usex atm y n)
115 + IP_CONFIG_SETNS := ${setns}
116 # Use correct iptables dir, #144265 #293709
117 - append-cppflags -DIPT_LIB_DIR=\\\"`$(tc-getPKG_CONFIG) xtables --variable=xtlibdir`\\\"
118 -}
119 -
120 -src_compile() {
121 - emake \
122 - CC="$(tc-getCC)" \
123 - AR="$(tc-getAR)"
124 + IPT_LIB_DIR := $(${PKG_CONFIG} xtables --variable=xtlibdir)
125 + EOF
126 }
127
128 src_install() {
129
130
131
132 1.1 sys-apps/iproute2/iproute2-3.1.0.ebuild
133
134 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/iproute2-3.1.0.ebuild?rev=1.1&view=markup
135 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/iproute2/iproute2-3.1.0.ebuild?rev=1.1&content-type=text/plain
136
137 Index: iproute2-3.1.0.ebuild
138 ===================================================================
139 # Copyright 1999-2011 Gentoo Foundation
140 # Distributed under the terms of the GNU General Public License v2
141 # $Header: /var/cvsroot/gentoo-x86/sys-apps/iproute2/iproute2-3.1.0.ebuild,v 1.1 2011/12/02 22:24:35 vapier Exp $
142
143 EAPI=4
144
145 EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git"
146
147 if [[ ${PV} == *.*.*.* ]] ; then
148 MY_PV=${PV%.*}-${PV##*.}
149 else
150 MY_PV=${PV}
151 fi
152 MY_P="${PN}-${MY_PV}"
153
154 inherit eutils toolchain-funcs flag-o-matic
155 [[ ${PV} == "9999" ]] && inherit git-2
156
157 DESCRIPTION="kernel routing and traffic control utilities"
158 HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
159 [[ ${PV} == "9999" ]] || SRC_URI="mirror://kernel/linux/utils/networking/${PN}/${P}.tar.bz2"
160
161 LICENSE="GPL-2"
162 SLOT="0"
163 [[ ${PV} == "9999" ]] || KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
164 IUSE="atm berkdb minimal"
165
166 RDEPEND="!net-misc/arpd
167 !minimal? ( berkdb? ( sys-libs/db ) )
168 atm? ( net-dialup/linux-atm )"
169 DEPEND="${RDEPEND}
170 sys-devel/bison
171 sys-devel/flex
172 >=sys-kernel/linux-headers-2.6.27
173 elibc_glibc? ( >=sys-libs/glibc-2.7 )"
174
175 S=${WORKDIR}/${MY_P}
176
177 src_prepare() {
178 epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907
179
180 sed -i \
181 -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
182 -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
183 Makefile || die
184
185 # build against system headers
186 rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc
187
188 # don't build arpd if USE=-berkdb #81660
189 use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile
190
191 use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile
192 }
193
194 src_configure() {
195 tc-export AR CC PKG_CONFIG
196
197 # This sure is ugly. Should probably move into toolchain-funcs at some point.
198 local setns
199 pushd "${T}" >/dev/null
200 echo 'main(){return setns();};' > test.c
201 ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n
202 popd >/dev/null
203
204 cat <<-EOF > Config
205 TC_CONFIG_ATM := $(usex atm y n)
206 IP_CONFIG_SETNS := ${setns}
207 # Use correct iptables dir, #144265 #293709
208 IPT_LIB_DIR := $(${PKG_CONFIG} xtables --variable=xtlibdir)
209 EOF
210 }
211
212 src_install() {
213 if use minimal ; then
214 into /
215 dosbin tc/tc
216 return 0
217 fi
218
219 emake \
220 DESTDIR="${D}" \
221 SBINDIR=/sbin \
222 DOCDIR=/usr/share/doc/${PF} \
223 MANDIR=/usr/share/man \
224 install
225
226 dolib.a lib/libnetlink.a
227 insinto /usr/include
228 doins include/libnetlink.h
229
230 if use berkdb ; then
231 dodir /var/lib/arpd
232 # bug 47482, arpd doesn't need to be in /sbin
233 dodir /usr/sbin
234 mv "${ED}"/sbin/arpd "${ED}"/usr/sbin/
235 fi
236 }