]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - iptables/iptables.nm
Merge remote-tracking branch 'stevee/systemd-udev-merge'
[people/ms/ipfire-3.x.git] / iptables / iptables.nm
CommitLineData
bbd0133f 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
bbd0133f
MT
4###############################################################################
5
802ea3af 6name = iptables
73b98773 7version = 1.4.14
777cf2ae 8release = 1
bbd0133f 9
802ea3af
MT
10groups = Networking/Tools
11url = http://www.netfilter.org/
12license = GPL+
13summary = Tools for managing Linux kernel packet filtering capabilities.
270e6641 14
802ea3af 15description
bbd0133f
MT
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.
802ea3af
MT
19end
20
55625ae8 21source_dl = http://ftp.netfilter.org/pub/iptables/
802ea3af 22sources = %{thisapp}.tar.bz2
bbd0133f 23
802ea3af
MT
24build
25 requires
26 libnfnetlink-devel
27 libselinux-devel
28 end
bbd0133f 29
802ea3af 30 CFLAGS += -fno-strict-aliasing
67ea67df 31
802ea3af 32 configure_options += \
1ff6c3fd 33 --libexecdir=/%{lib} \
802ea3af 34 --sysconfdir=/etc \
1ff6c3fd 35 --with-pkgconfigdir=%{libdir}/pkgconfig \
802ea3af
MT
36 --mandir=/usr/share/man \
37 --with-kernel=/usr \
38 --with-kbuild=/usr \
39 --with-ksource=/usr \
40 --enable-devel \
41 --enable-libipq
bbd0133f 42
802ea3af
MT
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
bbd0133f 47
802ea3af
MT
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
bbd0133f 57
4bc65841
MT
58 # Remove relative symlinks.
59 ln -svf ../sbin/xtables-multi %{BUILDROOT}/usr/bin/iptables-xml
802ea3af
MT
60 end
61end
901d0591 62
802ea3af
MT
63packages
64 package %{name}
65 groups += Base
66 end
1f9bc2f0 67
802ea3af
MT
68 package %{name}-devel
69 template DEVEL
70 end
1f9bc2f0
MT
71
72 package %{name}-debuginfo
73 template DEBUGINFO
74 end
802ea3af 75end