Magellan Linux

Contents of /trunk/core/iproute2/iproute2-2.6.26-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4148 - (show annotations) (download)
Thu Nov 26 11:45:46 2009 UTC (14 years, 5 months ago) by niro
File size: 1416 byte(s)
-moved to 'core'
1 # $Header: /magellan-cvs/smage/iproute2/iproute2-2.6.26-r1.smage2,v 1.1 2008/08/17 09:53:11 niro Exp $
2
3 PNAME="iproute2"
4 PVER="2.6.26"
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 SRCFILE="${PNAME}-${PVER/_20/-}.tar.bz2"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_20/-}"
21
22 sminclude mbuild
23
24 SRC_URI=(
25 http://developer.osdl.org/dev/${PNAME}/download/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # fix cflags
35 sed -i "s:-O2:${CFLAGS}:" Makefile || die
36
37 # fix iptables location
38 sed -i 's:/usr/local:/usr:' tc/m_ipt.c include/iptables.h || die
39 sed -i "s:/usr/local/lib/iptables:/$(mlibdir)/iptables:g" include/iptables.h || die
40
41 # fix libdir
42 sed -i "s:/usr/lib:/usr/$(mlibdir):g" netem/Makefile || die
43 sed -i "s:/usr/lib:/usr/$(mlibdir):g" tc/{Makefile,tc.c,q_netem.c,m_ipt.c} || die
44 sed -i "s:/usr/lib:/usr/$(mlibdir):g" include/iptables.h || die || die
45 }
46
47 src_compile()
48 {
49 cd ${SRCDIR}
50 mmake SBINDIR=/sbin || die
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56 make DESTDIR=${BINDIR} \
57 DOCDIR=/usr/share/doc/${PNAME}-${PVER} \
58 SBINDIR=/sbin install || die
59 minstalldocs ABOUT-NLS COPYING README* TODO || die
60 }

Properties

Name Value
svn:keywords Id