]> git.ipfire.org Git - ipfire-3.x.git/blob - ddns/ddns.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / ddns / ddns.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = ddns
7 version = 014
8 release = 1
9
10 groups = System/Tools
11 url = https://www.ipfire.org
12 license = GPLv3
13 summary = A python based dynamic DNS updater.
14
15 description
16 ddns is a simple, extensible, cross-distribution, cross-platform dynamic DNS updater
17 written in Python.
18 end
19
20 source_dl = https://source.ipfire.org/releases/ddns/
21 sources = %{thisapp}.tar.xz
22
23 build
24 arches = noarch
25
26 requires
27 autoconf
28 automake
29 docbook-xsl
30 gettext-devel
31 intltool
32 m4
33 systemd-devel
34 end
35
36 configure_options += \
37 --enable-manpages \
38 --with-systemd
39
40 prepare_cmds
41 ./autogen.sh
42 end
43
44 install_cmds
45 # Ship an empty configuration file.
46 touch %{BUILDROOT}%{sysconfdir}/%{name}/ddns.conf
47
48 mkdir -pv %{BUILDROOT}%{prefix}/lib/network/triggers
49 install -v -m 755 %{DIR_SOURCE}/10-ddns \
50 %{BUILDROOT}%{prefix}/lib/network/triggers/10-ddns
51 end
52 end
53
54 packages
55 package %{name}
56 requires
57 %{bindir}/nsupdate
58 end
59
60 configfiles
61 %{sysconfdir}/%{name}/ddns.conf
62 end
63
64 datafiles
65 %{localestatedir}/%{name}.db
66 end
67
68 script postin
69 systemctl daemon-reload >/dev/null 2>&1 || :
70 systemctl enable ddns.timer >/dev/null 2>&1 || :
71 end
72
73 script preun
74 systemctl disable ddns.timer >/dev/null 2>&1 || :
75 systemctl stop ddns.service >/dev/null 2>&1 || :
76 end
77
78 script postun
79 systemctl daemon-reload >/dev/null 2>&1 || :
80 end
81
82 script postup
83 systemctl daemon-reload >/dev/null 2>&1 || :
84 end
85 end
86 end