/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:
Silvan Calarco 2024-01-05 18:46:48 +01:00
parent 317a76f48d
commit 20715e61be

View File

@ -2,7 +2,7 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: ufw
Version: 0.33
Release: 4mamba
Release: 7mamba
Summary: ufw is Uncomplicated Firewall a cli front end to iptables
Group: System/Libraries/Python
Vendor: openmamba
@ -41,14 +41,13 @@ Ufw stands for Uncomplicated Firewall, and is program for managing a netfilter f
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--root="%{buildroot}"
install -D %{buildroot}/lib/ufw/ufw-init %{buildroot}/etc/init.d/ufw-init
--root="%{buildroot}"
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/ufw.service
%post
%systemd_post ufw
if [ $1 -ge 1 ]; then
if [ $1 -eq 1 ]; then
# workaround
systemctl -q enable ufw
fi
@ -69,7 +68,6 @@ fi
%dir %{_sysconfdir}/ufw
%config(noreplace) %{_sysconfdir}/ufw/*.rules
%config(noreplace) %{_sysconfdir}/ufw/*.conf
%{_sysconfdir}/init.d/ufw-init
%dir %{_sysconfdir}/ufw/applications.d
%{_sysconfdir}/ufw/applications.d/ufw-*
%{_sbindir}/ufw
@ -77,8 +75,8 @@ fi
%dir /lib/ufw
/lib/ufw/ufw-init
/lib/ufw/ufw-init-functions
/lib/ufw/user.rules
/lib/ufw/user6.rules
%config(noreplace) /lib/ufw/user.rules
%config(noreplace) /lib/ufw/user6.rules
%dir %{_datadir}/ufw
%dir %{_datadir}/ufw/iptables
%{_datadir}/ufw/iptables/*.rules
@ -89,6 +87,15 @@ fi
%{_datadir}/ufw/messages/*.mo
%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
- switched to systemd service file