]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - iproute2/iproute2.nm
bison: Update to 3.0.4.
[people/amarx/ipfire-3.x.git] / iproute2 / iproute2.nm
CommitLineData
a9d112c3 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
a9d112c3
MT
4###############################################################################
5
802ea3af 6name = iproute2
094be68a 7version = 3.14.0
aad04cd0 8release = 2
a9d112c3 9
4bfc4e7c 10groups = Networking/Tools
802ea3af
MT
11url = http://www.linuxfoundation.org/en/Net:Iproute2
12license = GPLv2+
13summary = Advanced IP routing and network device configuration tools.
a9d112c3 14
802ea3af 15description
094be68a
MT
16 The iproute package contains networking utilities (ip and rtmon, for
17 example) which are designed to use the advanced networking
a9d112c3 18 capabilities of the Linux 2.4.x and 2.6.x kernel.
802ea3af
MT
19end
20
c33262e9 21source_dl = http://kernel.org/pub/linux/utils/net/iproute2/
d5598cce 22sources = %{thisapp}.tar.xz
802ea3af
MT
23
24build
25 requires
26 bison
802ea3af 27 flex
094be68a 28 libdb-devel
d5598cce
MT
29 libnl-devel
30 linux-atm-devel >= 2.5.1
802ea3af
MT
31 end
32
33 prepare_cmds
094be68a 34 sed -e "s/^LIBDIR=/LIBDIR?=/" -i Makefile
802ea3af
MT
35 end
36
d5598cce
MT
37 export RPM_OPT_FLAGS = %{CFLAGS}
38 export LIBDIR = %{libdir}
39 export IPT_LIB_DIR = %{libdir}/xtables
40
802ea3af 41 install
d5598cce
MT
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.
094be68a
MT
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
d5598cce
MT
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.
aad04cd0 62 install -v -m 755 tc/q_atm.so %{BUILDROOT}%{libdir}/tc
d5598cce
MT
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
802ea3af
MT
86 end
87end
88
89packages
90 package %{name}
4bfc4e7c 91 groups += Base
d5598cce
MT
92
93 configfiles = %{sysconfdir}/iproute2
94 end
95
96 package %{name}-devel
97 template DEVEL
802ea3af 98 end
1f9bc2f0
MT
99
100 package %{name}-debuginfo
101 template DEBUGINFO
102 end
802ea3af 103end