Contents of /trunk/core/iproute2/iproute2-3.2.0-r1.smage2
Parent Directory | Revision Log
Revision 10136 -
(show annotations)
(download)
Tue Jan 17 13:04:45 2012 UTC (12 years, 4 months ago) by niro
File size: 1478 byte(s)
Tue Jan 17 13:04:45 2012 UTC (12 years, 4 months ago) by niro
File size: 1478 byte(s)
-no check target in Makefile
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 | 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 | mmake IPT_LIB_DIR=$(pkg-config xtables --variable=xtlibdir) SBINDIR=/sbin || die |
59 | } |
60 | |
61 | src_install() |
62 | { |
63 | cd ${SRCDIR} |
64 | make DESTDIR=${BINDIR} \ |
65 | DOCDIR=/usr/share/doc/${PNAME}-${PVER} \ |
66 | MANDIR=/usr/share/man \ |
67 | SBINDIR=/sbin install || die |
68 | minstalldocs ABOUT-NLS COPYING README* TODO || die |
69 | } |