32 |
Summary: Tools for managing Linux kernel packet filtering capabilities |
Summary: Tools for managing Linux kernel packet filtering capabilities |
33 |
Name: iptables |
Name: iptables |
34 |
Version: 1.4.12.1 |
Version: 1.4.12.1 |
35 |
Release: %mkrel 6 |
Release: %mkrel 7 |
36 |
License: GPLv2+ |
License: GPLv2+ |
37 |
Group: System/Kernel and hardware |
Group: System/Kernel and hardware |
38 |
URL: http://netfilter.org/ |
URL: http://netfilter.org/ |
314 |
install -m0755 ip6tables.init %{buildroot}%{script_path}/ip6tables |
install -m0755 ip6tables.init %{buildroot}%{script_path}/ip6tables |
315 |
|
|
316 |
# (tmb) add compat symlinks for ip(6)tbles-multi |
# (tmb) add compat symlinks for ip(6)tbles-multi |
317 |
ln -snf xtables-multi %{buildroot}/sbin/iptables-multi |
ln -snf xtables-multi iptables-multi |
318 |
ln -snf xtables-multi %{buildroot}/sbin/ip6tables-multi |
ln -snf xtables-multi ip6tables-multi |
319 |
|
|
320 |
%if %{with systemd} |
%if %{with systemd} |
321 |
# install systemd service files |
# install systemd service files |
322 |
install -d -m 755 %{buildroot}/lib/systemd/system |
install -d -m 755 %{buildroot}/lib/systemd/system |
323 |
install -c -m 755 %{SOURCE5} %{buildroot}/lib/systemd/system/ |
install -c -m 644 %{SOURCE5} %{buildroot}/lib/systemd/system/ |
324 |
sed -e 's;iptables;ip6tables;g' -e 's;IPv4;IPv6;g' < %{SOURCE5} > ip6tables.service |
sed -e 's;iptables;ip6tables;g' -e 's;IPv4;IPv6;g' < %{SOURCE5} > ip6tables.service |
325 |
install -c -m 755 ip6tables.service %{buildroot}/lib/systemd/system/ |
install -c -m 644 ip6tables.service %{buildroot}/lib/systemd/system/ |
326 |
sed -i 's!@LIBDIR@!%{_libdir}!' %{buildroot}/lib/systemd/system/ip6tables.service |
sed -i 's!@LIBDIR@!%{_libdir}!' %{buildroot}/lib/systemd/system/ip6tables.service |
327 |
sed -i 's!@LIBDIR@!%{_libdir}!' %{buildroot}/lib/systemd/system/iptables.service |
sed -i 's!@LIBDIR@!%{_libdir}!' %{buildroot}/lib/systemd/system/iptables.service |
328 |
%endif |
%endif |