]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - iptables/iptables.nm
Merge remote-tracking branch 'ummeegge/cairo-update'
[people/ms/ipfire-3.x.git] / iptables / iptables.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = iptables
7 version = 1.4.16.2
8 release = 1
9
10 groups = Networking/Tools
11 url = http://www.netfilter.org/
12 license = GPL+
13 summary = Tools for managing Linux kernel packet filtering capabilities.
14
15 description
16 The iptables utility controls the network packet filtering code in the
17 Linux kernel. If you need to set up firewalls and/or IP masquerading,
18 you should install this package.
19 end
20
21 source_dl = http://ftp.netfilter.org/pub/iptables/
22 sources = %{thisapp}.tar.bz2
23
24 build
25 requires
26 libnfnetlink-devel
27 libselinux-devel
28 end
29
30 CFLAGS += -fno-strict-aliasing
31
32 configure_options += \
33 --libexecdir=/%{lib} \
34 --sysconfdir=/etc \
35 --with-pkgconfigdir=%{libdir}/pkgconfig \
36 --mandir=/usr/share/man \
37 --with-kernel=/usr \
38 --with-kbuild=/usr \
39 --with-ksource=/usr \
40 --enable-devel \
41 --enable-libipq
42
43 prepare_cmds
44 # Make more space for target name on output.
45 cd iptables && sed -e "s/%-9s/%-18s/g" -i ip{,6}tables.c
46 end
47
48 install_cmds
49 # install ip*tables.h header files
50 mkdir -pv %{BUILDROOT}/usr/include/{iptables,libiptc}
51 install -v -m 644 include/ip{,6}tables.h \
52 %{BUILDROOT}/usr/include
53 install -v -m 644 include/iptables/internal.h \
54 %{BUILDROOT}/usr/include/iptables/
55 install -v -m 644 include/libiptc/*.h \
56 %{BUILDROOT}/usr/include/libiptc
57
58 # Remove relative symlinks.
59 ln -svf ../sbin/xtables-multi %{BUILDROOT}/usr/bin/iptables-xml
60 end
61 end
62
63 packages
64 package %{name}
65 groups += Base
66 end
67
68 package %{name}-devel
69 template DEVEL
70 end
71
72 package %{name}-debuginfo
73 template DEBUGINFO
74 end
75 end