]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - iptables/iptables.nm
Merge remote-tracking branch 'ms/u-boot'
[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
55625ae8 7version = 1.4.12.1
802ea3af 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
MT
32 configure_options += \
33 --bindir=/bin \
34 --sbindir=/sbin \
35 --libdir=/lib \
36 --libexecdir=/lib \
37 --sysconfdir=/etc \
38 --with-pkgconfigdir=/usr/lib/pkgconfig \
39 --mandir=/usr/share/man \
40 --with-kernel=/usr \
41 --with-kbuild=/usr \
42 --with-ksource=/usr \
43 --enable-devel \
44 --enable-libipq
bbd0133f 45
802ea3af
MT
46 prepare_cmds
47 # Make more space for target name on output.
48 cd iptables && sed -e "s/%-9s/%-18s/g" -i ip{,6}tables.c
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
802ea3af
MT
61 mkdir -pv %{BUILDROOT}/usr/lib
62 rm -vf %{BUILDROOT}/lib/libip{tc,4tc,6tc,q}.so %{BUILDROOT}/lib/libxtables.so
63 ln -svf ../../lib/libiptc.so.0 %{BUILDROOT}/usr/lib/libiptc.so
64 ln -svf ../../lib/libip4tc.so.0 %{BUILDROOT}/usr/lib/libip4tc.so
65 ln -svf ../../lib/libip6tc.so.0 %{BUILDROOT}/usr/lib/libip6tc.so
66 ln -svf ../../lib/libipq.so.0 %{BUILDROOT}/usr/lib/libipq.so
67 ln -svf ../../lib/libxtables.so.7 %{BUILDROOT}/usr/lib/libxtables.so
bbd0133f 68
802ea3af
MT
69 # Replace absolute symlink
70 ln -svf ../sbin/xtables-multi %{BUILDROOT}/bin/iptables-xml
51673b9d 71
802ea3af
MT
72 # Move binary which links to /usr/lib to /usr.
73 mkdir -pv %{BUILDROOT}/usr/sbin
74 mv -v %{BUILDROOT}/{,usr/}sbin/nfnl_osf
75 end
76end
901d0591 77
802ea3af
MT
78packages
79 package %{name}
80 groups += Base
81 end
1f9bc2f0 82
802ea3af
MT
83 package %{name}-devel
84 template DEVEL
85 end
1f9bc2f0
MT
86
87 package %{name}-debuginfo
88 template DEBUGINFO
89 end
802ea3af 90end