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