ddns: Update to 008.
Message ID | 1439143778-2506-1-git-send-email-stefan.schantl@ipfire.org |
---|---|
State | Superseded |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id 692AA61FE4 for <patchwork@ipfire.org>; Sun, 9 Aug 2015 20:09:53 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 28722236; Sun, 9 Aug 2015 20:09:53 +0200 (CEST) Received: from acer.stevee (host228-133-28-81.hiway.at [81.28.133.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id E0566144; Sun, 9 Aug 2015 20:09:51 +0200 (CEST) From: Stefan Schantl <stefan.schantl@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] ddns: Update to 008. Date: Sun, 9 Aug 2015 20:09:38 +0200 Message-Id: <1439143778-2506-1-git-send-email-stefan.schantl@ipfire.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1436472794.30037.5.camel@ipfire.org> References: <1436472794.30037.5.camel@ipfire.org> X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Stefan Schantl
Aug. 10, 2015, 4:09 a.m. UTC
Update to the latest version of ddns - including a lot of upstream patches,
with various improvements and new providers, systemd support and generate the manpages.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
ddns/ddns.nm | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
Comments
Hello Stefan, this looks good except one small thing below. On Sun, 2015-08-09 at 20:09 +0200, Stefan Schantl wrote: > Update to the latest version of ddns - including a lot of upstream > patches, > with various improvements and new providers, systemd support and > generate the manpages. > > Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> > --- > ddns/ddns.nm | 31 +++++++++++++++++++++++++++++-- > 1 file changed, 29 insertions(+), 2 deletions(-) > > diff --git a/ddns/ddns.nm b/ddns/ddns.nm > index cf5f94f..2fc4612 100644 > --- a/ddns/ddns.nm > +++ b/ddns/ddns.nm > @@ -4,7 +4,7 @@ > #################################################################### > ########### > > name = ddns > -version = 005 > +version = 008 > release = 1 > arch = noarch > > @@ -25,14 +25,18 @@ build > requires > autoconf > automake > + docbook-xsl > gettext-devel > intltool > m4 > + systemd-devel > end > > configure_options += \ > --prefix=%{prefix} \ > - --sysconfdir=%{sysconfdir} > + --sysconfdir=%{sysconfdir} \ > + --enable-manpages \ > + --with-systemd > > prepare_cmds > ./autogen.sh > @@ -53,5 +57,28 @@ packages > configfiles > %{sysconfdir}/%{name}/ddns.conf > end > + > + datafiles > + %{localestatedir}/%{name}.db > + end > + > + script postin > + systemctl daemon-reload >/dev/null 2>&1 || : > + systemctl enable ddns.timer >/dev/null 2>&1 > || : > + end > + > + script preun > + systemctl disable ddns.timer >/dev/null 2>&1 > || : > + systemctl stop ddns.service >/dev/null 2>&1 > || : > + end > + > + script postun > + systemctl daemon-reload >/dev/null 2>&1 || : > + end > + > + script postup > + systemctl daemon-reload >/dev/null 2>&1 || : > + systemctl enable ddns.timer >/dev/null 2>&1 I do not think that the timer should be enabled after an update. When a user chooses to disable ddns for some reason, the update should not re -enable this. > || : > + end > end > end Best, -Michael
Hello Michael, thanks for your feedback. My basic thought was to enable the timer for those who already had installed an older version of ddns. But your argument with a possible re-enable of the service after a user has disabled it, is a very important one. I will update the patch and drop those line from the postup scriptlet. -Stefan > Hello Stefan, > > this looks good except one small thing below. > > On Sun, 2015-08-09 at 20:09 +0200, Stefan Schantl wrote: > > Update to the latest version of ddns - including a lot of upstream > > patches, > > with various improvements and new providers, systemd support and > > generate the manpages. > > > > Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> > > --- > > ddns/ddns.nm | 31 +++++++++++++++++++++++++++++-- > > 1 file changed, 29 insertions(+), 2 deletions(-) > > > > diff --git a/ddns/ddns.nm b/ddns/ddns.nm > > index cf5f94f..2fc4612 100644 > > --- a/ddns/ddns.nm > > +++ b/ddns/ddns.nm > > @@ -4,7 +4,7 @@ > > #################################################################### > > ########### > > > > name = ddns > > -version = 005 > > +version = 008 > > release = 1 > > arch = noarch > > > > @@ -25,14 +25,18 @@ build > > requires > > autoconf > > automake > > + docbook-xsl > > gettext-devel > > intltool > > m4 > > + systemd-devel > > end > > > > configure_options += \ > > --prefix=%{prefix} \ > > - --sysconfdir=%{sysconfdir} > > + --sysconfdir=%{sysconfdir} \ > > + --enable-manpages \ > > + --with-systemd > > > > prepare_cmds > > ./autogen.sh > > @@ -53,5 +57,28 @@ packages > > configfiles > > %{sysconfdir}/%{name}/ddns.conf > > end > > + > > + datafiles > > + %{localestatedir}/%{name}.db > > + end > > + > > + script postin > > + systemctl daemon-reload >/dev/null 2>&1 || : > > + systemctl enable ddns.timer >/dev/null 2>&1 > > || : > > + end > > + > > + script preun > > + systemctl disable ddns.timer >/dev/null 2>&1 > > || : > > + systemctl stop ddns.service >/dev/null 2>&1 > > || : > > + end > > + > > + script postun > > + systemctl daemon-reload >/dev/null 2>&1 || : > > + end > > + > > + script postup > > + systemctl daemon-reload >/dev/null 2>&1 || : > > + systemctl enable ddns.timer >/dev/null 2>&1 > > > I do not think that the timer should be enabled after an update. When a > user chooses to disable ddns for some reason, the update should not re > -enable this. > > > || : > > + end > > end > > end > > Best, > -Michael
On Sun, 2015-08-09 at 20:33 +0200, Stefan Schantl wrote: > Hello Michael, > > thanks for your feedback. My basic thought was to enable the timer > for > those who already had installed an older version of ddns. These are lost then :) They could still run "pakfire reinstall ddns" and that will reset that at any time. > But your argument with a possible re-enable of the service after a > user > has disabled it, is a very important one. > > I will update the patch and drop those line from the postup > scriptlet. Okay. > > -Stefan > > Hello Stefan, > > > > this looks good except one small thing below. > > > > On Sun, 2015-08-09 at 20:09 +0200, Stefan Schantl wrote: > > > Update to the latest version of ddns - including a lot of > > > upstream > > > patches, > > > with various improvements and new providers, systemd support and > > > generate the manpages. > > > > > > Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> > > > --- > > > ddns/ddns.nm | 31 +++++++++++++++++++++++++++++-- > > > 1 file changed, 29 insertions(+), 2 deletions(-) > > > > > > diff --git a/ddns/ddns.nm b/ddns/ddns.nm > > > index cf5f94f..2fc4612 100644 > > > --- a/ddns/ddns.nm > > > +++ b/ddns/ddns.nm > > > @@ -4,7 +4,7 @@ > > > ################################################################ > > > #### > > > ########### > > > > > > name = ddns > > > -version = 005 > > > +version = 008 > > > release = 1 > > > arch = noarch > > > > > > @@ -25,14 +25,18 @@ build > > > requires > > > autoconf > > > automake > > > + docbook-xsl > > > gettext-devel > > > intltool > > > m4 > > > + systemd-devel > > > end > > > > > > configure_options += \ > > > --prefix=%{prefix} \ > > > - --sysconfdir=%{sysconfdir} > > > + --sysconfdir=%{sysconfdir} \ > > > + --enable-manpages \ > > > + --with-systemd > > > > > > prepare_cmds > > > ./autogen.sh > > > @@ -53,5 +57,28 @@ packages > > > configfiles > > > %{sysconfdir}/%{name}/ddns.conf > > > end > > > + > > > + datafiles > > > + %{localestatedir}/%{name}.db > > > + end > > > + > > > + script postin > > > + systemctl daemon-reload >/dev/null 2>&1 > > > || : > > > + systemctl enable ddns.timer >/dev/null > > > 2>&1 > > > > > : > > > + end > > > + > > > + script preun > > > + systemctl disable ddns.timer >/dev/null > > > 2>&1 > > > > > : > > > + systemctl stop ddns.service >/dev/null > > > 2>&1 > > > > > : > > > + end > > > + > > > + script postun > > > + systemctl daemon-reload >/dev/null 2>&1 > > > || : > > > + end > > > + > > > + script postup > > > + systemctl daemon-reload >/dev/null 2>&1 > > > || : > > > + systemctl enable ddns.timer >/dev/null > > > 2>&1 > > > > > > I do not think that the timer should be enabled after an update. > > When a > > user chooses to disable ddns for some reason, the update should not > > re > > -enable this. > > > > > > > : > > > + end > > > end > > > end > > > > Best, > > -Michael >