[packages/iproute2] restore modified configs after defaults were moved to %{_libdir}; rel 2

atler atler at pld-linux.org
Wed Dec 13 13:18:49 CET 2023


commit bb5be3d85e795e8c01adfe06b900bf1ce4c942b6
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Dec 13 10:03:25 2023 +0100

    restore modified configs after defaults were moved to %{_libdir}; rel 2
    
    as pointed out by arekm after 6.5.0 moved default configs to
    %{_libdir}/iproute2, the old customized configs will be stored as
    *.rpmsave possibly breaking existing configurations

 iproute2.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/iproute2.spec b/iproute2.spec
index fde69bb..729c9a3 100644
--- a/iproute2.spec
+++ b/iproute2.spec
@@ -15,7 +15,7 @@ Summary(pl.UTF-8):	Narzędzie do konfigurowania sieci
 Summary(pt_BR.UTF-8):	Ferramentas para roteamento avançado e configuração de interfaces de rede
 Name:		iproute2
 Version:	6.6.0
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Networking/Admin
 Source0:	https://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
@@ -212,6 +212,13 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerpostun -- iproute2 < 6.6.0-2
+for c in bpf_pinning ematch_map group nl_protos rt_dsfield rt_protos rt_realms rt_scopes rt_tables; do
+	if [ -f /etc/iproute2/$c.rpmsave ] && [ ! -e /etc/iproute2/$c ]; then
+		%{__mv} -f /etc/iproute2/$c.rpmsave /etc/iproute2/$c
+	fi
+done
+
 %files
 %defattr(644,root,root,755)
 %doc README doc/actions examples
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iproute2.git/commitdiff/02397d99e762aab6f9db07c1d734dd789dd0d406



More information about the pld-cvs-commit mailing list