1 Name: iptables |
1 Name: iptables |
2 Summary: Tools for managing Linux kernel packet filtering capabilities |
2 Summary: Tools for managing Linux kernel packet filtering capabilities |
3 Version: 1.4.1.1 |
3 Vendor: Europalab Software |
4 Release: 5.6 |
4 Packager: Michael Schloh von Bennewitz |
|
5 Distribution: MeeGo Thirdparty |
|
6 Version: 1.4.10 |
|
7 Release: 1.0 |
5 Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2 |
8 Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2 |
6 Source1: iptables.init |
9 Source1: iptables.init |
7 Source2: iptables-config |
10 Source2: iptables-config |
8 Patch4: iptables-1.3.8-typo_latter.patch |
11 Patch1: iptables-1.4.10-cloexec.patch |
9 Patch5: iptables-1.4.1.1-cloexec.patch |
12 Patch2: iptables-1.4.10-nf_ext_init.patch |
10 Patch8: iptables-1.4.1-nf_ext_init.patch |
|
11 Patch9: iptables-1.4.1.1-tos_value_mask.patch |
|
12 Group: System/Base |
13 Group: System/Base |
13 URL: http://www.netfilter.org/ |
14 URL: http://www.netfilter.org/ |
14 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
15 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
15 License: GPLv2 |
16 License: GPLv2 |
16 BuildRequires: kernel-headers |
17 BuildRequires: kernel-headers |
23 Linux kernel. If you need to set up firewalls and/or IP masquerading, |
24 Linux kernel. If you need to set up firewalls and/or IP masquerading, |
24 you should install this package. |
25 you should install this package. |
25 |
26 |
26 %package ipv6 |
27 %package ipv6 |
27 Summary: IPv6 support for iptables |
28 Summary: IPv6 support for iptables |
|
29 Vendor: Europalab Software |
|
30 Packager: Michael Schloh von Bennewitz |
|
31 Distribution: MeeGo Thirdparty |
28 Group: System/Base |
32 Group: System/Base |
29 Requires: %{name} = %{version}-%{release} |
33 Requires: %{name} = %{version}-%{release} |
30 Requires(post): chkconfig |
34 Requires(post): chkconfig |
31 Requires(preun): chkconfig |
35 Requires(preun): chkconfig |
32 |
36 |
39 Install iptables-ipv6 if you need to set up firewalling for your |
43 Install iptables-ipv6 if you need to set up firewalling for your |
40 network and you are using ipv6. |
44 network and you are using ipv6. |
41 |
45 |
42 %package devel |
46 %package devel |
43 Summary: Development package for iptables |
47 Summary: Development package for iptables |
|
48 Vendor: Europalab Software |
|
49 Packager: Michael Schloh von Bennewitz |
|
50 Distribution: MeeGo Thirdparty |
44 Group: System/Base |
51 Group: System/Base |
45 Requires: %{name} = %{version}-%{release} |
52 Requires: %{name} = %{version}-%{release} |
|
53 Requires: %{name}-ipv6 = %{version}-%{release} |
46 |
54 |
47 %description devel |
55 %description devel |
48 iptables development headers and libraries. |
56 iptables development headers and libraries. |
49 |
57 |
50 The iptc interface is upstream marked as not public. The interface is not |
58 The iptc interface is upstream marked as not public. The interface is not |
51 stable and may change with every new version. It is therefore unsupported. |
59 stable and may change with every new version. It is therefore unsupported. |
52 |
60 |
53 %prep |
61 %prep |
54 %setup -q |
62 %setup -q |
55 %patch4 -p1 -b .typo_latter |
63 %patch1 -p0 -b .cloexec |
56 %patch5 -p1 -b .cloexec |
64 %patch2 -p0 -b .nf_ext_init |
57 %patch8 -p1 -b .nf_ext_init |
|
58 %patch9 -p1 -b .tos_value_mask |
|
59 |
65 |
60 # fix constructor names, see also nf_ext_init patch |
66 # fix constructor names, see also nf_ext_init patch |
61 perl -pi -e "s/void _init\(/void __attribute\(\(constructor\)\) nf_ext_init\(/g" extensions/*.c |
67 perl -pi -e "s/void _init\(/void __attribute\(\(constructor\)\) nf_ext_init\(/g" extensions/*.c |
62 perl -pi -e "s/^_init\(/__attribute\(\(constructor\)\) nf_ext_init\(/g" extensions/*.c |
68 perl -pi -e "s/^_init\(/__attribute\(\(constructor\)\) nf_ext_init\(/g" extensions/*.c |
63 |
69 |
64 %build |
70 %build |
65 ./configure --enable-devel --enable-libipq --bindir=/bin --sbindir=/sbin --sysconfdir=/etc --libdir=/%{_libdir} --libexecdir=/%{_lib} --mandir=%{_mandir} --includedir=%{_includedir} --with-kernel=/usr --with-kbuild=/usr --with-ksource=/usr |
71 ./configure --bindir=/bin --sbindir=/sbin --sysconfdir=/etc --libdir=/%{_libdir} --libexecdir=/%{_lib} --mandir=%{_mandir} --includedir=%{_includedir} --with-kernel=/usr --with-kbuild=/usr --with-ksource=/usr |
66 make |
72 make |
67 |
73 |
68 %install |
74 %install |
69 rm -rf %{buildroot} |
75 rm -rf %{buildroot} |
70 |
76 |
71 make install DESTDIR=%{buildroot} |
77 make install DESTDIR=%{buildroot} |
72 |
|
73 # install iptc devel library |
|
74 install -m 644 libiptc/libiptc.a %{buildroot}/%{_libdir} |
|
75 |
78 |
76 # install init scripts and configuration files |
79 # install init scripts and configuration files |
77 install -d -m 755 $RPM_BUILD_ROOT/etc/rc.d/init.d |
80 install -d -m 755 $RPM_BUILD_ROOT/etc/rc.d/init.d |
78 install -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/iptables |
81 install -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/iptables |
79 sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE1} > ip6tables.init |
82 sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE1} > ip6tables.init |
94 /sbin/iptables* |
97 /sbin/iptables* |
95 %{_mandir}/man8/iptables* |
98 %{_mandir}/man8/iptables* |
96 %dir /%{_lib}/xtables |
99 %dir /%{_lib}/xtables |
97 /%{_lib}/xtables/libipt* |
100 /%{_lib}/xtables/libipt* |
98 /%{_lib}/xtables/libxt* |
101 /%{_lib}/xtables/libxt* |
|
102 %{_libdir}/libxtables.* |
|
103 %{_libdir}/libip4tc.* |
|
104 %dir %{_libdir}/pkgconfig |
|
105 %{_libdir}/pkgconfig/xtables.pc |
99 |
106 |
100 %files ipv6 |
107 %files ipv6 |
101 %defattr(-,root,root) |
108 %defattr(-,root,root) |
102 %attr(0755,root,root) /etc/rc.d/init.d/ip6tables |
109 %attr(0755,root,root) /etc/rc.d/init.d/ip6tables |
103 %config(noreplace) %attr(0600,root,root) /etc/sysconfig/ip6tables-config |
110 %config(noreplace) %attr(0600,root,root) /etc/sysconfig/ip6tables-config |
104 /sbin/ip6tables* |
111 /sbin/ip6tables* |
105 /bin/iptables-xml |
112 /bin/iptables-xml |
106 %{_mandir}/man8/ip6tables* |
113 %{_mandir}/man8/ip6tables* |
107 /%{_lib}/xtables/libip6t* |
114 /%{_lib}/xtables/libip6t* |
|
115 %{_libdir}/libip6tc.* |
108 |
116 |
109 %files devel |
117 %files devel |
110 %defattr(-,root,root) |
118 %defattr(-,root,root) |
111 %{_includedir}/*.h |
119 %{_includedir}/*.h |
112 %dir %{_includedir}/libiptc |
120 %dir %{_includedir}/libiptc |
113 %{_includedir}/libiptc/*.h |
121 %{_includedir}/libiptc/*.h |
114 %{_libdir}/libipq.a |
122 %{_libdir}/libiptc.* |
115 %{_libdir}/libiptc.a |
123 %dir %{_libdir}/pkgconfig |
116 %{_mandir}/man3/* |
124 %{_libdir}/pkgconfig/libiptc.pc |
117 |
125 |
118 %changelog |
126 %changelog |
|
127 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.4.10 |
|
128 - update to new version 1.4.10 |
119 * Tue Jan 19 2010 Auke Kok <auke-jan.h.kok@intel.com> - 1.4.1.1 |
129 * Tue Jan 19 2010 Auke Kok <auke-jan.h.kok@intel.com> - 1.4.1.1 |
120 - remove startup symlinks, do not start iptables{,6} up by default |
130 - remove startup symlinks, do not start iptables{,6} up by default |
121 * Tue Jan 27 2009 Anas Nashif <anas.nashif@intel.com> 1.4.1.1 |
131 * Tue Jan 27 2009 Anas Nashif <anas.nashif@intel.com> 1.4.1.1 |
122 - Initial import into Moblin |
132 - Initial import into Moblin |
123 * Tue Jul 22 2008 Thomas Woerner <twoerner@redhat.com> 1.4.1.1-2 |
133 * Tue Jul 22 2008 Thomas Woerner <twoerner@redhat.com> 1.4.1.1-2 |