public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] ddns: Update to 008.
Date: Sun, 09 Aug 2015 20:35:57 +0200	[thread overview]
Message-ID: <1439145357-3884-1-git-send-email-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <1439144672.2264.5.camel@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]

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(a)ipfire.org>
---
 ddns/ddns.nm | 30 ++++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/ddns/ddns.nm b/ddns/ddns.nm
index cf5f94f..5386ce7 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,27 @@ 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 || :
+		end
 	end
 end
-- 
2.1.0


      parent reply	other threads:[~2015-08-09 18:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09 20:10 Stefan Schantl
2015-07-09 20:13 ` Michael Tremer
2015-08-09 18:09   ` Stefan Schantl
2015-08-09 18:24     ` Michael Tremer
2015-08-09 18:33       ` Stefan Schantl
2015-08-09 18:35         ` Michael Tremer
2015-08-09 18:35       ` Stefan Schantl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439145357-3884-1-git-send-email-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox