1 |
brianr |
1.2 |
%global cachedir %{_localstatedir}/cache/ddclient |
2 |
|
|
%global rundir %{_localstatedir}/run/ddclient |
3 |
|
|
|
4 |
|
|
Summary: Client to update dynamic DNS host entries |
5 |
|
|
Name: ddclient |
6 |
brianr |
1.3 |
Version: 3.10.0 |
7 |
|
|
Release: 1%{?dist} |
8 |
brianr |
1.2 |
License: GPLv2+ |
9 |
|
|
URL: https://ddclient.net/ |
10 |
|
|
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
11 |
|
|
Source1: ddclient.rwtab |
12 |
|
|
Source2: ddclient.service |
13 |
|
|
Source3: ddclient.sysconfig |
14 |
|
|
Source4: ddclient.NetworkManager |
15 |
|
|
Source5: ddclient-tmpfiles.conf |
16 |
|
|
|
17 |
|
|
BuildArch: noarch |
18 |
|
|
|
19 |
|
|
#BuildRequires: perl-generators |
20 |
|
|
BuildRequires: systemd |
21 |
|
|
Requires(pre): shadow-utils |
22 |
|
|
Requires(post): systemd |
23 |
|
|
Requires(preun): systemd |
24 |
|
|
Requires(postun): systemd |
25 |
|
|
|
26 |
brianr |
1.3 |
#Requires: perl(Data::Validate::IP) |
27 |
brianr |
1.2 |
Requires: perl(Digest::SHA1) |
28 |
|
|
Requires: perl(IO::Socket::INET6) |
29 |
|
|
Requires: perl(IO::Socket::SSL) |
30 |
|
|
Requires: perl(JSON::PP) |
31 |
|
|
|
32 |
|
|
# Old NetworkManager expects the dispatcher scripts in a different place |
33 |
|
|
Conflicts: NetworkManager < 1.20 |
34 |
|
|
|
35 |
brianr |
1.1 |
%description |
36 |
brianr |
1.2 |
ddclient is a Perl client used to update dynamic DNS entries for accounts |
37 |
|
|
on many different dynamic DNS services. Features include: Operating as a |
38 |
|
|
daemon, manual and automatic updates, static and dynamic updates, optimized |
39 |
|
|
updates for multiple addresses, MX, wildcards, abuse avoidance, retrying |
40 |
|
|
the failed updates and sending update status to syslog and through e-mail. |
41 |
brianr |
1.1 |
|
42 |
|
|
%prep |
43 |
|
|
%setup -q |
44 |
brianr |
1.2 |
# Move pid file location for running as non-root. |
45 |
|
|
sed -e 's|/var/run/ddclient.pid|%{rundir}/%{name}.pid|' \ |
46 |
|
|
-i sample-etc_ddclient.conf |
47 |
|
|
# Send less mail by default, eg. not on every shutdown. |
48 |
|
|
sed -e 's|^mail=|#mail=|' -i sample-etc_ddclient.conf |
49 |
|
|
# Backwards compatibility from pre-3.6.6-1 |
50 |
|
|
sed -e 's|/etc/ddclient/|%{_sysconfdir}/|' -i %{name} |
51 |
|
|
|
52 |
brianr |
1.1 |
|
53 |
|
|
%build |
54 |
brianr |
1.2 |
#nothing to do |
55 |
|
|
|
56 |
brianr |
1.1 |
|
57 |
|
|
%install |
58 |
brianr |
1.2 |
install -D -p -m 755 %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} |
59 |
|
|
install -D -p -m 600 sample-etc_ddclient.conf \ |
60 |
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
61 |
|
|
install -D -p -m 644 %{SOURCE1} \ |
62 |
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/rwtab.d/%{name} |
63 |
|
|
|
64 |
|
|
install -D -p -m 644 %{SOURCE2} \ |
65 |
|
|
$RPM_BUILD_ROOT%{_unitdir}/%{name}.service |
66 |
|
|
install -D -p -m 644 %{SOURCE3} \ |
67 |
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} |
68 |
|
|
install -D -p -m 755 %{SOURCE4} \ |
69 |
|
|
$RPM_BUILD_ROOT%{_prefix}/lib/NetworkManager/dispatcher.d/50-%{name} |
70 |
|
|
install -D -p -m 644 %{SOURCE5} \ |
71 |
|
|
$RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf |
72 |
|
|
|
73 |
|
|
mkdir -p $RPM_BUILD_ROOT%{cachedir} |
74 |
|
|
mkdir -p $RPM_BUILD_ROOT%{rundir} |
75 |
|
|
touch $RPM_BUILD_ROOT%{cachedir}/%{name}.cache |
76 |
|
|
|
77 |
|
|
# Correct permissions for later usage in %doc |
78 |
|
|
chmod 644 sample-* |
79 |
|
|
|
80 |
|
|
|
81 |
|
|
%pre |
82 |
|
|
getent group %{name} > /dev/null || %{_sbindir}/groupadd -r %{name} |
83 |
|
|
getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin -c "Dynamic DNS Client" %{name} |
84 |
|
|
exit 0 |
85 |
brianr |
1.1 |
|
86 |
|
|
%post |
87 |
brianr |
1.2 |
%systemd_post %{name}.service |
88 |
|
|
if [ $1 == 1 ]; then |
89 |
|
|
mkdir -p %{rundir} |
90 |
|
|
chown %{name}:%{name} %{rundir} |
91 |
|
|
fi |
92 |
brianr |
1.1 |
|
93 |
|
|
%preun |
94 |
brianr |
1.2 |
%systemd_preun %{name}.service |
95 |
|
|
|
96 |
|
|
%postun |
97 |
|
|
%systemd_postun_with_restart %{name}.service |
98 |
|
|
|
99 |
brianr |
1.1 |
|
100 |
|
|
%files |
101 |
brianr |
1.2 |
%license COPYING COPYRIGHT |
102 |
|
|
%doc README* RELEASENOTE ChangeLog Changelog.old sample-etc_ppp_ip-up.local |
103 |
|
|
%doc sample-etc_dhclient-exit-hooks sample-etc_cron.d_ddclient |
104 |
|
|
%doc sample-ddclient-wrapper.sh sample-etc_dhcpc_dhcpcd-eth0.exe |
105 |
|
|
|
106 |
|
|
%{_sbindir}/%{name} |
107 |
|
|
%{_tmpfilesdir}/%{name}.conf |
108 |
|
|
%{_unitdir}/%{name}.service |
109 |
|
|
|
110 |
|
|
# sysconfdir |
111 |
|
|
%config(noreplace) %{_sysconfdir}/rwtab.d/%{name} |
112 |
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name} |
113 |
|
|
%attr(600,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}.conf |
114 |
|
|
%{_prefix}/lib/NetworkManager/dispatcher.d/50-%{name} |
115 |
|
|
|
116 |
|
|
# localstatedir |
117 |
|
|
%attr(0700,%{name},%{name}) %dir %{cachedir} |
118 |
|
|
%attr(0600,%{name},%{name}) %ghost %{cachedir}/%{name}.cache |
119 |
|
|
%ghost %attr(0755,%{name},%{name}) %dir %{rundir} |
120 |
|
|
|
121 |
brianr |
1.1 |
|
122 |
|
|
%changelog |
123 |
brianr |
1.3 |
* Mon Nov 07 2022 Brian Read <brianr@bjsystems.co.uk> - 3.10.0-1 |
124 |
|
|
- Update to release 3.10.0 [SME:12217] |
125 |
|
|
|
126 |
brianr |
1.2 |
* Tue Jun 30 2020 Brian Read <brianr@bjsystems.co.uk> - 3.9.1-2 |
127 |
|
|
- Change service options to delete PID spec and add -file option to run [SME:10942] |
128 |
|
|
- Delete buildrequires perl-generators in spec (no idea what or why - it works though!) |
129 |
|
|
|
130 |
|
|
* Fri Jan 31 2020 Scott Talbert <swt@techie.net> - 3.9.1-1 |
131 |
|
|
- Update to new upstream release 3.9.1 (#1796923) |
132 |
|
|
|
133 |
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-5 |
134 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
135 |
|
|
|
136 |
|
|
* Thu Aug 22 2019 Lubomir Rintel <lkundrak@v3.sk> - 3.9.0-4 |
137 |
|
|
- Move the NetworkManager dispatcher script out of /etc |
138 |
|
|
|
139 |
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-3 |
140 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
141 |
|
|
|
142 |
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-2 |
143 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
144 |
|
|
|
145 |
|
|
* Fri Aug 10 2018 Scott Talbert <swt@techie.net> - 3.9.0-1 |
146 |
|
|
- New upstream release 3.9.0 |
147 |
|
|
|
148 |
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.3-7 |
149 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
150 |
|
|
|
151 |
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.3-6 |
152 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
153 |
|
|
|
154 |
|
|
* Sat Sep 09 2017 Scott Talbert <swt@techie.net> - 3.8.3-5 |
155 |
|
|
- Start after network-online.target rather than network.target (#1476999) |
156 |
|
|
|
157 |
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.3-4 |
158 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
159 |
|
|
|
160 |
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.3-3 |
161 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
162 |
|
|
|
163 |
|
|
* Fri Dec 30 2016 Scott Talbert <swt@techie.net> - 3.8.3-2 |
164 |
|
|
- Prevent NetworkManager from starting ddclient if it is disabled (#1409178) |
165 |
|
|
|
166 |
|
|
* Mon Mar 28 2016 Scott Talbert <swt@techie.net> - 3.8.3-1 |
167 |
|
|
- New upstream release 3.8.3 (#1226537) |
168 |
|
|
- Change NetworkManager dispatcher to look for PID file (#1316149) |
169 |
|
|
|
170 |
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-2 |
171 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
172 |
|
|
|
173 |
|
|
* Mon Apr 21 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.8.2-1 |
174 |
|
|
- update to upstream release 3.8.2 |
175 |
|
|
- remove old EPEL 6 related macros |
176 |
|
|
- remove all logic for older versions of Fedora/EPEL |
177 |
|
|
- make spec more readable |
178 |
|
|
|
179 |
|
|
* Wed Dec 25 2013 Robert Scheck <robert@fedoraproject.org> 3.8.1-9 |
180 |
|
|
- Use the new systemd macros (#850084, thanks to Lukáš Nykrýn) |
181 |
|
|
- Adapted the spec file to handle systemd and SysV initscripts |
182 |
|
|
|
183 |
|
|
* Sat Aug 10 2013 Paul Howarth <paul@city-fan.org> - 3.8.1-8 |
184 |
|
|
- BR: systemd-units for %%{_unitdir} macro definition (fixes FTBFS #992118) |
185 |
|
|
- Put tmpfiles config in %%{_tmpfilesdir}, not under /etc |
186 |
|
|
- Package installation creates %%{_localstatedir}/run/%%{name} (#909272, #957355) |
187 |
|
|
- Service files are not executable |
188 |
|
|
- Require perl(Digest::SHA1) (#909258) |
189 |
|
|
- Wait for name resolution to be available before starting (#905553) |
190 |
|
|
|
191 |
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-7 |
192 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
193 |
|
|
|
194 |
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.8.1-6 |
195 |
|
|
- Perl 5.18 rebuild |
196 |
|
|
|
197 |
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-5 |
198 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
199 |
|
|
|
200 |
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-4 |
201 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
202 |
|
|
|
203 |
|
|
* Tue May 15 2012 Jon Ciesla <limburgher@gmail.com> - 3.8.1-3 |
204 |
|
|
- Add ghost to /var/run/ddclient |
205 |
|
|
|
206 |
|
|
* Mon May 14 2012 Jon Ciesla <limburgher@gmail.com> - 3.8.1-2 |
207 |
|
|
- Add tmpfiles.d. |
208 |
|
|
|
209 |
|
|
* Thu Mar 29 2012 Jon Ciesla <limburgher@gmail.com> - 3.8.1-1 |
210 |
|
|
- Latest upstream. |
211 |
|
|
- Migrate to systemd, 718756. |
212 |
|
|
|
213 |
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.0-5 |
214 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
215 |
|
|
|
216 |
|
|
* Thu Feb 10 2011 Robert Scheck <robert@fedoraproject.org> 3.8.0-4 |
217 |
|
|
- Replaced Requires(hint) by Requires as RPM 4.9 dropped support |
218 |
|
|
|
219 |
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> |
220 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
221 |
|
|
|
222 |
|
|
* Sat May 29 2010 Robert Scheck <robert@fedoraproject.org> 3.8.0-2 |
223 |
|
|
- Fixed wrong permissions at NetworkManager dispatcher (#506286) |
224 |
|
|
- Updated %%description to be more verbose and detailed (#588053) |
225 |
|
|
|
226 |
|
|
* Sat May 01 2010 Robert Scheck <robert@fedoraproject.org> 3.8.0-1 |
227 |
|
|
- Upgrade to 3.8.0 and several spec file cleanups (#551906) |
228 |
|
|
- Rewrote initscript to match LSB standards and headers (#246903) |
229 |
|
|
- Added dispatcher to NetworkManager to avoid failures (#506286) |
230 |
|
|
|
231 |
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-3 |
232 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
233 |
brianr |
1.1 |
|
234 |
brianr |
1.2 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-2 |
235 |
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
236 |
brianr |
1.1 |
|
237 |
brianr |
1.2 |
* Wed Jan 23 2008 Robert Scheck <robert@fedoraproject.org> 3.7.3-1 |
238 |
|
|
- Upgrade to 3.7.3 (#429438) |
239 |
|
|
- Updated the license tag according to the guidelines |
240 |
brianr |
1.1 |
|
241 |
brianr |
1.2 |
* Thu Jun 14 2007 Ville Skyttä <ville.skytta at iki.fi> - 3.7.2-1 |
242 |
|
|
- 3.7.2. |
243 |
|
|
- Tweak default config to send less mail (eg. not on every shutdown). |
244 |
brianr |
1.1 |
|
245 |
brianr |
1.2 |
* Fri Mar 2 2007 Ville Skyttä <ville.skytta at iki.fi> - 3.7.1-1 |
246 |
|
|
- 3.7.1, cache file moved to /var/cache/ddclient. |
247 |
|
|
- Run as a dedicated ddclient user (#220539). |
248 |
|
|
- Add read only root/temporary state config (#220540). |
249 |
|
|
- Create/chmod cache in init script instead of %%post. |
250 |
|
|
- Add scriptlet dependencies, try-restart action and other minor tweaks. |
251 |
brianr |
1.1 |
|
252 |
brianr |
1.2 |
* Sat Jul 30 2005 Ville Skyttä <ville.skytta at iki.fi> - 3.6.6-1 |
253 |
|
|
- 3.6.6, update URLs (#165272). |
254 |
|
|
- Restart service on future package upgrades (still manually needed this time). |
255 |
|
|
- Don't set service to autostart on "chkconfig --add". |
256 |
|
|
- Fix sysconfig/ddclient permissions. |
257 |
|
|
- Drop non-useful samples. |
258 |
brianr |
1.1 |
|
259 |
brianr |
1.2 |
* Wed Apr 6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 3.6.3-5 |
260 |
|
|
- rebuilt |
261 |
brianr |
1.1 |
|
262 |
brianr |
1.2 |
* Mon Apr 05 2004 Toshio Kuratomi <toshio[+]tiki-lounge.com> - 0:3.6.3-0.fdr.4.fc1 |
263 |
|
|
- Fix %%doc %%attr ownership |
264 |
|
|
- Touch the cache file in %%post |
265 |
brianr |
1.1 |
|
266 |
brianr |
1.2 |
* Mon Sep 08 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:3.6.3-0.fdr.3 |
267 |
|
|
- Add own Fedora-style initscript and /etc/sysconfig/ddclient file. |
268 |
|
|
- Fix file permissions of config file and example files. |
269 |
|
|
- Since ddclient.cache.patch uses hardcoded /var, don't use |
270 |
|
|
%%_localstatedir in spec file either. |
271 |
brianr |
1.1 |
|
272 |
brianr |
1.2 |
* Sun Sep 07 2003 Thomas Vander Stichele <thomas at apestaart dot org> |
273 |
|
|
- 0:3.6.3-0.fdr.2: fixed ghostness of cache file |