Annotation of /trunk/core/iproute2/iproute2-3.4.0-r2.smage2
Parent Directory | Revision Log
Revision 12845 -
(hide annotations)
(download)
Wed Jul 4 08:53:55 2012 UTC (12 years, 2 months ago) by niro
File size: 1556 byte(s)
Wed Jul 4 08:53:55 2012 UTC (12 years, 2 months ago) by niro
File size: 1556 byte(s)
-marked stable
1 | niro | 12676 | # $Id$ |
2 | |||
3 | PNAME="iproute2" | ||
4 | PVER="3.4.0" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="sys-apps" | ||
8 | |||
9 | DESCRIPTION="Collection of utilities for controlling TCP/IP networking and Traffic Control." | ||
10 | HOMEPAGE="http://linux-net.osdl.org/index.php/Iproute2" | ||
11 | |||
12 | # arpd needs db | ||
13 | DEPEND=">= dev-db/db-5.3 | ||
14 | >= net-misc/iptables-1.4" | ||
15 | |||
16 | SDEPEND=">= virtual/kernel-headers | ||
17 | >= dev-libs/libnl-1.1 | ||
18 | >= sys-apps/sed-4" | ||
19 | |||
20 | # get the right pver | ||
21 | if [[ ${PVER} != ${PVER%.*.*.*} ]] | ||
22 | then | ||
23 | MYPVER="${PVER%.*}-${PVER##*.}" | ||
24 | else | ||
25 | MYPVER="${PVER}" | ||
26 | fi | ||
27 | |||
28 | SRCFILE="${PNAME}-${MYPVER}.tar.xz" | ||
29 | SRCDIR="${BUILDDIR}/${PNAME}-${MYPVER}" | ||
30 | |||
31 | sminclude mbuild | ||
32 | msetfeature "!check" | ||
33 | |||
34 | SRC_URI=( | ||
35 | http://www.kernel.org/pub/linux/utils/net/${PNAME}/${SRCFILE} | ||
36 | http://devresources.linux-foundation.org/dev/${PNAME}/download/${SRCFILE} | ||
37 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} | ||
38 | mirror://${PNAME}/${SRCFILE} | ||
39 | ) | ||
40 | |||
41 | UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/utils/net/${PNAME}/?C=M;O=A' | lasttarball xz" | ||
42 | |||
43 | src_prepare() | ||
44 | { | ||
45 | munpack ${SRCFILE} || die | ||
46 | cd ${SRCDIR} | ||
47 | |||
48 | # fix cflags | ||
49 | sed -i "s:-O2:${CFLAGS}:" Makefile || die | ||
50 | |||
51 | # fix libdir | ||
52 | sed -i "/^LIBDIR/s:=.*:=/$(mlibdir):" Makefile || die | ||
53 | } | ||
54 | |||
55 | src_compile() | ||
56 | { | ||
57 | cd ${SRCDIR} | ||
58 | niro | 12677 | mmake \ |
59 | IPT_LIB_DIR=$(pkg-config xtables --variable=xtlibdir) \ | ||
60 | SBINDIR=/usr/sbin \ | ||
61 | LIBDIR=/usr/$(mlibdir) \ | ||
62 | || die | ||
63 | niro | 12676 | } |
64 | |||
65 | src_install() | ||
66 | { | ||
67 | cd ${SRCDIR} | ||
68 | make DESTDIR=${BINDIR} \ | ||
69 | DOCDIR=/usr/share/doc/${PNAME}-${PVER} \ | ||
70 | MANDIR=/usr/share/man \ | ||
71 | niro | 12677 | SBINDIR=/usr/sbin \ |
72 | LIBDIR=/usr/$(mlibdir) \ | ||
73 | niro | 12676 | install || die |
74 | minstalldocs ABOUT-NLS COPYING README* TODO || die | ||
75 | } |