/lib/ufw/user[6].rules are config files, don't overwrite on update! [release 0.33-7mamba;Thu Jan 01 2015]
This commit is contained in:
parent
317a76f48d
commit
20715e61be
21
ufw.spec
21
ufw.spec
@ -2,7 +2,7 @@
|
|||||||
%define majver %(echo %version | cut -d. -f1-2)
|
%define majver %(echo %version | cut -d. -f1-2)
|
||||||
Name: ufw
|
Name: ufw
|
||||||
Version: 0.33
|
Version: 0.33
|
||||||
Release: 4mamba
|
Release: 7mamba
|
||||||
Summary: ufw is Uncomplicated Firewall a cli front end to iptables
|
Summary: ufw is Uncomplicated Firewall a cli front end to iptables
|
||||||
Group: System/Libraries/Python
|
Group: System/Libraries/Python
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -41,14 +41,13 @@ Ufw stands for Uncomplicated Firewall, and is program for managing a netfilter f
|
|||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%{__python} setup.py install \
|
%{__python} setup.py install \
|
||||||
--root="%{buildroot}"
|
--root="%{buildroot}"
|
||||||
install -D %{buildroot}/lib/ufw/ufw-init %{buildroot}/etc/init.d/ufw-init
|
|
||||||
|
|
||||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/ufw.service
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/ufw.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post ufw
|
%systemd_post ufw
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
# workaround
|
# workaround
|
||||||
systemctl -q enable ufw
|
systemctl -q enable ufw
|
||||||
fi
|
fi
|
||||||
@ -69,7 +68,6 @@ fi
|
|||||||
%dir %{_sysconfdir}/ufw
|
%dir %{_sysconfdir}/ufw
|
||||||
%config(noreplace) %{_sysconfdir}/ufw/*.rules
|
%config(noreplace) %{_sysconfdir}/ufw/*.rules
|
||||||
%config(noreplace) %{_sysconfdir}/ufw/*.conf
|
%config(noreplace) %{_sysconfdir}/ufw/*.conf
|
||||||
%{_sysconfdir}/init.d/ufw-init
|
|
||||||
%dir %{_sysconfdir}/ufw/applications.d
|
%dir %{_sysconfdir}/ufw/applications.d
|
||||||
%{_sysconfdir}/ufw/applications.d/ufw-*
|
%{_sysconfdir}/ufw/applications.d/ufw-*
|
||||||
%{_sbindir}/ufw
|
%{_sbindir}/ufw
|
||||||
@ -77,8 +75,8 @@ fi
|
|||||||
%dir /lib/ufw
|
%dir /lib/ufw
|
||||||
/lib/ufw/ufw-init
|
/lib/ufw/ufw-init
|
||||||
/lib/ufw/ufw-init-functions
|
/lib/ufw/ufw-init-functions
|
||||||
/lib/ufw/user.rules
|
%config(noreplace) /lib/ufw/user.rules
|
||||||
/lib/ufw/user6.rules
|
%config(noreplace) /lib/ufw/user6.rules
|
||||||
%dir %{_datadir}/ufw
|
%dir %{_datadir}/ufw
|
||||||
%dir %{_datadir}/ufw/iptables
|
%dir %{_datadir}/ufw/iptables
|
||||||
%{_datadir}/ufw/iptables/*.rules
|
%{_datadir}/ufw/iptables/*.rules
|
||||||
@ -89,6 +87,15 @@ fi
|
|||||||
%{_datadir}/ufw/messages/*.mo
|
%{_datadir}/ufw/messages/*.mo
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 01 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.33-7mamba
|
||||||
|
- /lib/ufw/user[6].rules are config files, don't overwrite on update!
|
||||||
|
|
||||||
|
* Wed Dec 31 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.33-6mamba
|
||||||
|
- enable service on install only, not on upgrade
|
||||||
|
|
||||||
|
* Mon Dec 29 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.33-5mamba
|
||||||
|
- don't install ufw-init sysv initscript
|
||||||
|
|
||||||
* Tue Sep 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.33-4mamba
|
* Tue Sep 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.33-4mamba
|
||||||
- switched to systemd service file
|
- switched to systemd service file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user