]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = iptables |
a175b6bb | 7 | version = 1.4.19.1 |
777cf2ae | 8 | release = 1 |
bbd0133f | 9 | |
802ea3af MT |
10 | groups = Networking/Tools |
11 | url = http://www.netfilter.org/ | |
12 | license = GPL+ | |
13 | summary = Tools for managing Linux kernel packet filtering capabilities. | |
270e6641 | 14 | |
802ea3af | 15 | description |
86aad8b6 EK |
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, | |
bbd0133f | 18 | you should install this package. |
802ea3af MT |
19 | end |
20 | ||
55625ae8 | 21 | source_dl = http://ftp.netfilter.org/pub/iptables/ |
802ea3af | 22 | sources = %{thisapp}.tar.bz2 |
bbd0133f | 23 | |
802ea3af MT |
24 | build |
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. | |
154ced22 MT |
45 | sed -e "s/%-9s/%-18s/g" -i iptables/ip{,6}tables.c |
46 | ||
47 | sed -i extensions/GNUmakefile* \ | |
48 | -e "s@ip6t_NETMAP_LIBADD.*@& -L../libiptc/.libs@" | |
802ea3af | 49 | end |
bbd0133f | 50 | |
802ea3af MT |
51 | install_cmds |
52 | # install ip*tables.h header files | |
53 | mkdir -pv %{BUILDROOT}/usr/include/{iptables,libiptc} | |
54 | install -v -m 644 include/ip{,6}tables.h \ | |
55 | %{BUILDROOT}/usr/include | |
56 | install -v -m 644 include/iptables/internal.h \ | |
57 | %{BUILDROOT}/usr/include/iptables/ | |
58 | install -v -m 644 include/libiptc/*.h \ | |
59 | %{BUILDROOT}/usr/include/libiptc | |
bbd0133f | 60 | |
4bc65841 MT |
61 | # Remove relative symlinks. |
62 | ln -svf ../sbin/xtables-multi %{BUILDROOT}/usr/bin/iptables-xml | |
802ea3af MT |
63 | end |
64 | end | |
901d0591 | 65 | |
802ea3af MT |
66 | packages |
67 | package %{name} | |
68 | groups += Base | |
69 | end | |
1f9bc2f0 | 70 | |
802ea3af MT |
71 | package %{name}-devel |
72 | template DEVEL | |
73 | end | |
1f9bc2f0 MT |
74 | |
75 | package %{name}-debuginfo | |
76 | template DEBUGINFO | |
77 | end | |
802ea3af | 78 | end |