SHA256
1
0
forked from pool/ufw

Accepting request 140746 from home:jluce2:branches:security

Ufw stands for Uncomplicated Firewall, and is program for managing a netfilter firewall. It provides a command line interface and aims to be uncomplicated and easy to use.

OBS-URL: https://build.opensuse.org/request/show/140746
OBS-URL: https://build.opensuse.org/package/show/security/ufw?expand=0&rev=11
This commit is contained in:
luce johann 2012-11-09 14:47:17 +00:00 committed by Git OBS Bridge
parent aef197f8bd
commit c654565e82
2 changed files with 17 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 9 12:28:27 UTC 2012 - johann.luce@wanadoo.fr
-fix problem systemd move in /usr
fix various warning OBS
-------------------------------------------------------------------
Tue Oct 16 14:53:10 UTC 2012 - johann.luce@wanadoo.fr

View File

@ -63,13 +63,15 @@ ln -s /etc/init.d/ufw $RPM_BUILD_ROOT/usr/sbin/rcufw
ln -s /usr/share/man/man8/ufw.8.gz $RPM_BUILD_ROOT/usr/share/man/man8/rcufw.8.gz
mkdir -p $RPM_BUILD_ROOT/usr/bin/
ln -s /usr/sbin/ufw $RPM_BUILD_ROOT/usr/bin/ufw
%if 0%{?suse_version} > 1220
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system
install -m 644 $RPM_SOURCE_DIR/ufw.service $RPM_BUILD_ROOT/usr/lib/systemd/system/ufw.service
%else
mkdir -p $RPM_BUILD_ROOT/lib/systemd/
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
install -m 644 $RPM_SOURCE_DIR/ufw.service $RPM_BUILD_ROOT/lib/systemd/system/ufw.service
#mkdir -p $RPM_BUILD_ROOT/etc/systemd/
#mkdir -p $RPM_BUILD_ROOT/etc/systemd/system/
#mkdir -p $RPM_BUILD_ROOT/etc/systemd/system/multi-user.target.wants
#ln -s /lib/systemd/system/ufw.service $RPM_BUILD_ROOT/etc/systemd/system/multi-user.target.wants/ufw.service
%endif
%pre
%if 0%{?suse_version} > 1140
@ -79,8 +81,6 @@ install -m 644 $RPM_SOURCE_DIR/ufw.service $RPM_BUILD_ROOT/lib/systemd/system/uf
%post
%if 0%{?suse_version} > 1140
%service_add_post ufw.service
%else
insserv /etc/init.d/ufw
%endif
%preun
@ -91,10 +91,9 @@ insserv /etc/init.d/ufw
%postun
%restart_on_update
%insserv_cleanup /etc/init.d/ufw
%if 0%{?suse_version} > 1140
%service_del_postun ufw.service
%else
%insserv_cleanup /etc/init.d/ufw
%endif
%files
@ -114,7 +113,11 @@ insserv /etc/init.d/ufw
%config/etc/ufw
%config/etc/ufw/applications.d
%config/etc/default/ufw
%if 0%{?suse_version} > 1220
/usr/lib/systemd/system/ufw.service
%else
/lib/systemd/system/ufw.service
%endif
/lib/ufw
/usr/lib/python%python_version/site-packages/ufw
/usr/share/ufw