]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - iproute2/iproute2.nm
python-rrdtool: Update to version 0.1.5
[people/amarx/ipfire-3.x.git] / iproute2 / iproute2.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = iproute2
7 version = 3.14.0
8 release = 2
9
10 groups = Networking/Tools
11 url = http://www.linuxfoundation.org/en/Net:Iproute2
12 license = GPLv2+
13 summary = Advanced IP routing and network device configuration tools.
14
15 description
16 The iproute package contains networking utilities (ip and rtmon, for
17 example) which are designed to use the advanced networking
18 capabilities of the Linux 2.4.x and 2.6.x kernel.
19 end
20
21 source_dl = http://kernel.org/pub/linux/utils/net/iproute2/
22 sources = %{thisapp}.tar.xz
23
24 build
25 requires
26 bison
27 flex
28 libdb-devel
29 libnl-devel
30 linux-atm-devel >= 2.5.1
31 end
32
33 prepare_cmds
34 sed -e "s/^LIBDIR=/LIBDIR?=/" -i Makefile
35 end
36
37 export RPM_OPT_FLAGS = %{CFLAGS}
38 export LIBDIR = %{libdir}
39 export IPT_LIB_DIR = %{libdir}/xtables
40
41 install
42 # The installation routine that comes with that package
43 # is totally unusable for use, so do it manually.
44
45 mkdir -pv \
46 %{BUILDROOT}%{includedir} \
47 %{BUILDROOT}%{sbindir} \
48 %{BUILDROOT}%{mandir}/man{3,8} \
49 %{BUILDROOT}%{datadir}/tc \
50 %{BUILDROOT}%{libdir}/tc \
51 %{BUILDROOT}%{sysconfdir}/iproute2
52
53 # Install binaries.
54 for bin in bridge/bridge genl/genl ip/{ifcfg,ip,routef,routel,rtmon,rtpr} \
55 tc/tc misc/{arpd,ifstat,lnstat,nstat,rtacct,ss}; do
56 install -v -m 755 ${bin} %{BUILDROOT}%{sbindir}
57 done
58 ln -svf lnstat %{BUILDROOT}%{sbindir}/ctstat
59 ln -svf lnstat %{BUILDROOT}%{sbindir}/rtstat
60
61 # Install libs.
62 install -v -m 755 tc/q_atm.so %{BUILDROOT}%{libdir}/tc
63
64 # libnetlink
65 install -v -m 644 include/libnetlink.h %{BUILDROOT}%{includedir}
66 install -v -m 644 lib/libnetlink.a %{BUILDROOT}%{libdir}
67
68 # Install documentation.
69 install -v -m 644 man/man3/*.3 %{BUILDROOT}%{mandir}/man3
70 install -v -m 644 man/man8/*.8 %{BUILDROOT}%{mandir}/man8
71 ln -svf lnstat.8 %{BUILDROOT}%{mandir}/man8/ctstat.8
72 ln -svf lnstat.8 %{BUILDROOT}%{mandir}/man8/rtstat.8
73 ln -svf routel.8 %{BUILDROOT}%{mandir}/man8/routef.8
74
75 for sh in netem/normal.dist netem/pareto.dist netem/paretonormal.dist; do
76 install -v -m 644 ${sh} %{BUILDROOT}%{datadir}/tc
77 done
78
79 # Install configuration.
80 install -v -m 644 etc/iproute2/* %{BUILDROOT}%{sysconfdir}/iproute2
81 end
82
83 # Keep libnetlink.a.
84 keep_libraries
85 %{libdir}/libnetlink.a
86 end
87 end
88
89 packages
90 package %{name}
91 groups += Base
92
93 configfiles = %{sysconfdir}/iproute2
94 end
95
96 package %{name}-devel
97 template DEVEL
98 end
99
100 package %{name}-debuginfo
101 template DEBUGINFO
102 end
103 end