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