]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
ddns: Update to 008.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 9 Aug 2015 18:35:57 +0000 (20:35 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Aug 2015 10:44:46 +0000 (11:44 +0100)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
ddns/ddns.nm

index cf5f94f4d3e6169f202c00b3935e6d349b073a2d..5386ce71163e20803f95c0afb28bd25d104c51f5 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = ddns
 ###############################################################################
 
 name       = ddns
-version    = 005
+version    = 008
 release    = 1
 arch       = noarch
 
 release    = 1
 arch       = noarch
 
@@ -25,14 +25,18 @@ build
        requires
                autoconf
                automake
        requires
                autoconf
                automake
+               docbook-xsl
                gettext-devel
                intltool
                m4
                gettext-devel
                intltool
                m4
+               systemd-devel
        end
 
        configure_options += \
                --prefix=%{prefix} \
        end
 
        configure_options += \
                --prefix=%{prefix} \
-               --sysconfdir=%{sysconfdir}
+               --sysconfdir=%{sysconfdir} \
+               --enable-manpages \
+               --with-systemd
 
        prepare_cmds
                ./autogen.sh
 
        prepare_cmds
                ./autogen.sh
@@ -53,5 +57,27 @@ packages
                configfiles
                        %{sysconfdir}/%{name}/ddns.conf
                end
                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
        end
 end