[packages/ddclient] try-restart service after perl-base upgrade; rel 2

atler atler at pld-linux.org
Tue Dec 12 22:00:22 CET 2023


commit ff0ebb6c880b2d54c409a133745d594e7a00c5f7
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Dec 10 22:47:34 2023 +0100

    try-restart service after perl-base upgrade; rel 2

 ddclient.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/ddclient.spec b/ddclient.spec
index 3da793a..0d45e60 100644
--- a/ddclient.spec
+++ b/ddclient.spec
@@ -7,7 +7,7 @@ Summary(pl.UTF-8):	Narzędzie do dynamicznych adresów IP
 Summary(pt_BR.UTF-8):	Cliente para atualizar entradas DNS dinâmicas no DynDNS.org
 Name:		ddclient
 Version:	3.9.1
-Release:	1
+Release:	2
 Epoch:		1
 License:	GPL v2
 Group:		Networking
@@ -138,6 +138,11 @@ if [ -f /etc/ddclient.conf.rpmsave ]; then
 fi
 %{?with_systemd:%systemd_trigger %{name}.service}
 
+%triggerin -- perl-base
+[ "$2" = "2" ] || exit 0
+%service %{name} try-restart "%{name} daemon"
+%{?with_systemd:%systemd_service_restart %{name}.service}
+
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog Changelog.old README*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ddclient.git/commitdiff/86fae1c3767f78475470c8310fa3e29bb50faa2b



More information about the pld-cvs-commit mailing list