Magellan Linux

Annotation of /trunk/core/iproute2/iproute2-2.6.29.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4151 - (hide annotations) (download)
Thu Nov 26 12:07:25 2009 UTC (14 years, 5 months ago) by niro
File size: 1607 byte(s)
auto added: ver bump to 2.6.29.1-r1
1 niro 4151 # $Id$
2    
3     PNAME="iproute2"
4     PVER="2.6.29.1"
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-4.6"
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     }

Properties

Name Value
svn:keywords Id