]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = iproute2 |
2ea14ff4 MT |
7 | version = 4.12.0 |
8 | release = 1 | |
a9d112c3 | 9 | |
4bfc4e7c | 10 | groups = Networking/Tools |
802ea3af MT |
11 | url = http://www.linuxfoundation.org/en/Net:Iproute2 |
12 | license = GPLv2+ | |
13 | summary = Advanced IP routing and network device configuration tools. | |
a9d112c3 | 14 | |
802ea3af | 15 | description |
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 |
19 | end |
20 | ||
c33262e9 | 21 | source_dl = http://kernel.org/pub/linux/utils/net/iproute2/ |
d5598cce | 22 | sources = %{thisapp}.tar.xz |
802ea3af MT |
23 | |
24 | build | |
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 | ||
f569a8ef | 37 | export RPM_OPT_FLAGS = %{CFLAGS} %{LDFLAGS} |
d5598cce | 38 | export LIBDIR = %{libdir} |
2ea14ff4 | 39 | export SBINDIR = %{sbindir} |
d5598cce MT |
40 | export IPT_LIB_DIR = %{libdir}/xtables |
41 | ||
2ea14ff4 | 42 | install_cmds |
d5598cce MT |
43 | # libnetlink |
44 | install -v -m 644 include/libnetlink.h %{BUILDROOT}%{includedir} | |
45 | install -v -m 644 lib/libnetlink.a %{BUILDROOT}%{libdir} | |
d5598cce MT |
46 | end |
47 | ||
48 | # Keep libnetlink.a. | |
49 | keep_libraries | |
50 | %{libdir}/libnetlink.a | |
802ea3af MT |
51 | end |
52 | end | |
53 | ||
54 | packages | |
55 | package %{name} | |
4bfc4e7c | 56 | groups += Base |
d5598cce MT |
57 | |
58 | configfiles = %{sysconfdir}/iproute2 | |
59 | end | |
60 | ||
61 | package %{name}-devel | |
62 | template DEVEL | |
802ea3af | 63 | end |
1f9bc2f0 MT |
64 | |
65 | package %{name}-debuginfo | |
66 | template DEBUGINFO | |
67 | end | |
802ea3af | 68 | end |