23 |
Requires(preun): systemd |
Requires(preun): systemd |
24 |
Requires(postun): systemd |
Requires(postun): systemd |
25 |
|
|
26 |
#Requires: perl(Data::Validate::IP) |
Requires: perl(Data::Validate::IP) |
27 |
Requires: perl(Digest::SHA1) |
Requires: perl(Digest::SHA1) |
28 |
Requires: perl(IO::Socket::INET6) |
Requires: perl(IO::Socket::INET6) |
29 |
Requires: perl(IO::Socket::SSL) |
Requires: perl(IO::Socket::SSL) |
30 |
Requires: perl(JSON::PP) |
Requires: perl(JSON::PP) |
31 |
|
|
32 |
|
AutoReq: no |
33 |
|
|
34 |
# Old NetworkManager expects the dispatcher scripts in a different place |
# Old NetworkManager expects the dispatcher scripts in a different place |
35 |
Conflicts: NetworkManager < 1.20 |
Conflicts: NetworkManager < 1.20 |
36 |
|
|
45 |
%setup -q |
%setup -q |
46 |
# Move pid file location for running as non-root. |
# Move pid file location for running as non-root. |
47 |
sed -e 's|/var/run/ddclient.pid|%{rundir}/%{name}.pid|' \ |
sed -e 's|/var/run/ddclient.pid|%{rundir}/%{name}.pid|' \ |
48 |
-i sample-etc_ddclient.conf |
-i ddclient.conf.in |
49 |
# Send less mail by default, eg. not on every shutdown. |
# Send less mail by default, eg. not on every shutdown. |
50 |
sed -e 's|^mail=|#mail=|' -i sample-etc_ddclient.conf |
sed -e 's|^mail=|#mail=|' -i ddclient.conf.in |
51 |
# Backwards compatibility from pre-3.6.6-1 |
# Backwards compatibility from pre-3.6.6-1 |
52 |
sed -e 's|/etc/ddclient/|%{_sysconfdir}/|' -i %{name} |
sed -e 's|/etc/ddclient/|%{_sysconfdir}/|' -i %{name}.in |
53 |
|
|
54 |
|
|
55 |
%build |
%build |
57 |
|
|
58 |
|
|
59 |
%install |
%install |
60 |
install -D -p -m 755 %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} |
install -D -p -m 755 %{name}.in $RPM_BUILD_ROOT%{_sbindir}/%{name} |
61 |
install -D -p -m 600 sample-etc_ddclient.conf \ |
install -D -p -m 600 ddclient.conf.in \ |
62 |
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
63 |
install -D -p -m 644 %{SOURCE1} \ |
install -D -p -m 644 %{SOURCE1} \ |
64 |
$RPM_BUILD_ROOT%{_sysconfdir}/rwtab.d/%{name} |
$RPM_BUILD_ROOT%{_sysconfdir}/rwtab.d/%{name} |
101 |
|
|
102 |
%files |
%files |
103 |
%license COPYING COPYRIGHT |
%license COPYING COPYRIGHT |
104 |
%doc README* RELEASENOTE ChangeLog Changelog.old sample-etc_ppp_ip-up.local |
%doc README* ChangeLog.md sample-etc_ppp_ip-up.local |
105 |
%doc sample-etc_dhclient-exit-hooks sample-etc_cron.d_ddclient |
%doc sample-etc_dhclient-exit-hooks sample-etc_cron.d_ddclient |
106 |
%doc sample-ddclient-wrapper.sh sample-etc_dhcpc_dhcpcd-eth0.exe |
%doc sample-ddclient-wrapper.sh sample-etc_dhcpc_dhcpcd-eth0.exe |
107 |
|
|