]> git.ipfire.org Git - ipfire-3.x.git/blob - iproute2/iproute2.nm
pcengines-apu-firmware: New package
[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 = 4.18.0
8 release = 1
9
10 groups = Networking/Tools
11 url = https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
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 = https://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 export RPM_OPT_FLAGS = %{CFLAGS} %{LDFLAGS}
34 export LIBDIR = %{libdir}
35 export SBINDIR = %{sbindir}
36 export IPT_LIB_DIR = %{libdir}/xtables
37
38 install_cmds
39 # libnetlink
40 install -v -m 644 include/libnetlink.h %{BUILDROOT}%{includedir}
41 install -v -m 644 lib/libnetlink.a %{BUILDROOT}%{libdir}
42 end
43
44 # Keep libnetlink.a
45 keep_libraries
46 %{libdir}/libnetlink.a
47 end
48 end
49
50 packages
51 package %{name}
52 groups += Base
53
54 configfiles = %{sysconfdir}/iproute2
55 end
56
57 package %{name}-devel
58 template DEVEL
59 end
60
61 package %{name}-debuginfo
62 template DEBUGINFO
63 end
64 end