Own unowned -services libexec dirs (#894464, Michael Scherer).
- Fix -services unit file permissions (#732936, Michal Schmidt).
This commit is contained in:
parent
e34d762c5c
commit
1920e0d30a
@ -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ä <ville.skytta@iki.fi> - 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 <twoerner@redhat.com> 1.4.16.2-5
|
||||
- fixed path of ip6tables.init in ip6tables.service
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user