Contents of /branches/magellan-next/core/iproute2/iproute2-2.6.35-r1.smage2
Parent Directory | Revision Log
Revision 5952 -
(show annotations)
(download)
Tue Aug 17 19:17:54 2010 UTC (14 years, 1 month ago) by niro
File size: 1666 byte(s)
Tue Aug 17 19:17:54 2010 UTC (14 years, 1 month ago) by niro
File size: 1666 byte(s)
auto added: ver bump to 2.6.35-r1
1 | # $Id: iproute2-2.6.29.1-r1.smage2 4320 2009-12-01 17:29:32Z niro $ |
2 | |
3 | PNAME="iproute2" |
4 | PVER="2.6.35" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Collection of utilities for controlling TCP/IP networking and Traffic Control." |
11 | HOMEPAGE="http://linux-net.osdl.org/index.php/Iproute2" |
12 | |
13 | # arpd needs db |
14 | DEPEND=">= dev-db/db-5.0" |
15 | |
16 | SDEPEND=">= virtual/kernel-headers |
17 | >= sys-apps/sed-4" |
18 | |
19 | # get the right pver |
20 | if [[ ${PVER} != ${PVER%.*.*.*} ]] |
21 | then |
22 | MYPVER="${PVER%.*}-${PVER##*.}" |
23 | else |
24 | MYPVER="${PVER}" |
25 | fi |
26 | |
27 | SRCFILE="${PNAME}-${MYPVER}.tar.bz2" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${MYPVER}" |
29 | |
30 | sminclude mbuild |
31 | |
32 | SRC_URI=( |
33 | http://devresources.linux-foundation.org/dev/${PNAME}/download/${SRCFILE} |
34 | mirror://${PNAME}/${SRCFILE} |
35 | ) |
36 | |
37 | UP2DATE="updatecmd 'http://devresources.linux-foundation.org/dev/${PNAME}/download/?C=M;O=A' | sed -e 's:-:.:g' -e 's:iproute2.:iproute2-:g' | lasttarball" |
38 | |
39 | src_prepare() |
40 | { |
41 | munpack ${SRCFILE} || die |
42 | cd ${SRCDIR} |
43 | |
44 | # fix cflags |
45 | sed -i "s:-O2:${CFLAGS}:" Makefile || die |
46 | |
47 | # fix iptables location |
48 | sed -i 's:/usr/local:/usr:' tc/m_ipt.c include/iptables.h || die |
49 | sed -i "s:/usr/local/lib/iptables:/$(mlibdir)/iptables:g" include/iptables.h || die |
50 | |
51 | # fix libdir |
52 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" netem/Makefile || die |
53 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" tc/{Makefile,tc.c,q_netem.c,m_ipt.c} || die |
54 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" include/iptables.h || die || die |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | cd ${SRCDIR} |
60 | mmake SBINDIR=/sbin || die |
61 | } |
62 | |
63 | src_install() |
64 | { |
65 | cd ${SRCDIR} |
66 | make DESTDIR=${BINDIR} \ |
67 | DOCDIR=/usr/share/doc/${PNAME}-${PVER} \ |
68 | SBINDIR=/sbin install || die |
69 | minstalldocs ABOUT-NLS COPYING README* TODO || die |
70 | } |