From 1920e0d30a0800c4bc56e90f4ec7719af1b20846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 16 Jan 2013 18:38:19 +0200 Subject: [PATCH] Own unowned -services libexec dirs (#894464, Michael Scherer). - Fix -services unit file permissions (#732936, Michal Schmidt). --- iptables.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/iptables.spec b/iptables.spec index 6858466..729b4ed 100644 --- a/iptables.spec +++ b/iptables.spec @@ -25,7 +25,7 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities Version: 1.4.16.2 -Release: 5%{?dist} +Release: 6%{?dist} Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config @@ -151,9 +151,9 @@ install -c -m 755 ip6tables-config %{buildroot}/etc/sysconfig/ip6tables-config %if %{with systemd} # install systemd service files install -d -m 755 %{buildroot}/%{_unitdir} -install -c -m 755 %{SOURCE3} %{buildroot}/%{_unitdir} +install -c -m 644 %{SOURCE3} %{buildroot}/%{_unitdir} sed -e 's;iptables;ip6tables;g' -e 's;IPv4;IPv6;g' -e 's;/usr/libexec/ip6tables;/usr/libexec/iptables;g' < %{SOURCE3} > ip6tables.service -install -c -m 755 ip6tables.service %{buildroot}/%{_unitdir} +install -c -m 644 ip6tables.service %{buildroot}/%{_unitdir} %endif # install legacy actions for service command @@ -282,10 +282,13 @@ fi %attr(0755,root,root) %{script_path}/iptables.init %attr(0755,root,root) %{script_path}/ip6tables.init %if %{with systemd} +%dir %{script_path} %{_unitdir}/iptables.service %{_unitdir}/ip6tables.service %endif +%dir %{legacy_actions}/iptables %{legacy_actions}/iptables/save +%dir %{legacy_actions}/ip6tables %{legacy_actions}/ip6tables/save %files utils @@ -295,6 +298,10 @@ fi %changelog +* Wed Jan 16 2013 Ville Skyttä - 1.4.16.2-6 +- Own unowned -services libexec dirs (#894464, Michael Scherer). +- Fix -services unit file permissions (#732936, Michal Schmidt). + * Thu Nov 8 2012 Thomas Woerner 1.4.16.2-5 - fixed path of ip6tables.init in ip6tables.service