Accepting request 140315 from home:jluce2:branches:security
parceque OBS-URL: https://build.opensuse.org/request/show/140315 OBS-URL: https://build.opensuse.org/package/show/security/ufw?expand=0&rev=10
This commit is contained in:
parent
b037bfdecf
commit
aef197f8bd
9
ufw.spec
9
ufw.spec
@ -31,8 +31,11 @@ BuildArch: noarch
|
||||
BuildRequires: iptables
|
||||
BuildRequires: python-base >= 2.7
|
||||
BuildRequires: python-devel
|
||||
|
||||
%if 0%{?suse_version} > 1140
|
||||
BuildRequires: systemd
|
||||
%systemd_requires
|
||||
%endif
|
||||
|
||||
#Requires:
|
||||
%description
|
||||
@ -74,9 +77,10 @@ install -m 644 $RPM_SOURCE_DIR/ufw.service $RPM_BUILD_ROOT/lib/systemd/system/uf
|
||||
%endif
|
||||
|
||||
%post
|
||||
#insserv /etc/init.d/ufw
|
||||
%if 0%{?suse_version} > 1140
|
||||
%service_add_post ufw.service
|
||||
%else
|
||||
insserv /etc/init.d/ufw
|
||||
%endif
|
||||
|
||||
%preun
|
||||
@ -86,10 +90,11 @@ install -m 644 $RPM_SOURCE_DIR/ufw.service $RPM_BUILD_ROOT/lib/systemd/system/uf
|
||||
%endif
|
||||
|
||||
%postun
|
||||
#%insserv_cleanup /etc/init.d/ufw
|
||||
%restart_on_update
|
||||
%if 0%{?suse_version} > 1140
|
||||
%service_del_postun ufw.service
|
||||
%else
|
||||
%insserv_cleanup /etc/init.d/ufw
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
Loading…
Reference in New Issue
Block a user