]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - iptables/iptables.nm
Add a -debuginfo for every package that is not noarch.
[people/amarx/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.12.1
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 --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
45
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
50
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
60
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
68
69 # Replace absolute symlink
70 ln -svf ../sbin/xtables-multi %{BUILDROOT}/bin/iptables-xml
71
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
76 end
77
78 packages
79 package %{name}
80 groups += Base
81 end
82
83 package %{name}-devel
84 template DEVEL
85 end
86
87 package %{name}-debuginfo
88 template DEBUGINFO
89 end
90 end