1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/Tools
11 url = http://www.netfilter.org/
13 summary = Tools for managing Linux kernel packet filtering capabilities.
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.
21 source_dl = http://ftp.netfilter.org/pub/iptables/
22 sources = %{thisapp}.tar.bz2
30 CFLAGS += -fno-strict-aliasing
32 configure_options += \
33 --libexecdir=/%{lib} \
35 --with-pkgconfigdir=%{libdir}/pkgconfig \
36 --mandir=/usr/share/man \
44 # Make more space for target name on output.
45 cd iptables && sed -e "s/%-9s/%-18s/g" -i ip{,6}tables.c
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
58 # Remove relative symlinks.
59 ln -svf ../sbin/xtables-multi %{BUILDROOT}/usr/bin/iptables-xml
72 package %{name}-debuginfo