Contents of /trunk/core/iproute2/iproute2-3.2.0-r1.smage2
Parent Directory | Revision Log
Revision 10135 -
(show annotations)
(download)
Tue Jan 17 13:03:08 2012 UTC (12 years, 8 months ago) by niro
File size: 1457 byte(s)
Tue Jan 17 13:03:08 2012 UTC (12 years, 8 months ago) by niro
File size: 1457 byte(s)
-added missing libnl SDEPEND
1 | # $Id$ |
2 | |
3 | PNAME="iproute2" |
4 | PVER="3.2.0" |
5 | PBUILD="r1" |
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 | |
33 | SRC_URI=( |
34 | http://www.kernel.org/pub/linux/utils/net/${PNAME}/${SRCFILE} |
35 | http://devresources.linux-foundation.org/dev/${PNAME}/download/${SRCFILE} |
36 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | ) |
39 | |
40 | UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/utils/net/${PNAME}/?C=M;O=A' | lasttarball xz" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # fix cflags |
48 | sed -i "s:-O2:${CFLAGS}:" Makefile || die |
49 | |
50 | # fix libdir |
51 | sed -i "/^LIBDIR/s:=.*:=/$(mlibdir):" Makefile || die |
52 | } |
53 | |
54 | src_compile() |
55 | { |
56 | cd ${SRCDIR} |
57 | mmake IPT_LIB_DIR=$(pkg-config xtables --variable=xtlibdir) SBINDIR=/sbin || die |
58 | } |
59 | |
60 | src_install() |
61 | { |
62 | cd ${SRCDIR} |
63 | make DESTDIR=${BINDIR} \ |
64 | DOCDIR=/usr/share/doc/${PNAME}-${PVER} \ |
65 | MANDIR=/usr/share/man \ |
66 | SBINDIR=/sbin install || die |
67 | minstalldocs ABOUT-NLS COPYING README* TODO || die |
68 | } |