2007-01-08 13:54:53 +01:00
|
|
|
#
|
2011-09-01 16:04:56 +02:00
|
|
|
# spec file for package ddclient
|
2007-01-08 13:54:53 +01:00
|
|
|
#
|
2023-12-03 19:53:52 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-08 13:54:53 +01:00
|
|
|
#
|
2009-01-28 12:45:55 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2022-12-30 00:47:37 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-08 13:54:53 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ddclient
|
2023-12-03 19:53:52 +01:00
|
|
|
Version: 3.11.2
|
2020-02-03 15:29:29 +01:00
|
|
|
Release: 0
|
2010-02-19 16:49:21 +01:00
|
|
|
Summary: A Perl Client to Update Dynamic DNS Entries
|
2019-02-18 10:28:21 +01:00
|
|
|
License: GPL-2.0-or-later
|
2007-01-08 13:54:53 +01:00
|
|
|
Group: Productivity/Networking/DNS/Utilities
|
2020-02-03 15:29:29 +01:00
|
|
|
URL: https://github.com/ddclient/ddclient
|
2022-07-12 22:16:31 +02:00
|
|
|
Source0: https://github.com/ddclient/ddclient/archive/v%{version}/%{name}-%{version}.tar.gz
|
2013-11-11 15:01:16 +01:00
|
|
|
Source1: %{name}.service
|
2010-02-19 16:49:21 +01:00
|
|
|
Source2: %{name}.sysconfig
|
2013-12-04 14:27:38 +01:00
|
|
|
Source3: %{name}-tmpfiles.conf
|
2022-07-12 22:16:31 +02:00
|
|
|
Patch0: %{name}-config.patch
|
2021-06-18 16:36:25 +02:00
|
|
|
Patch1: %{name}-delay-main-process-for-systemd.patch
|
2023-12-03 19:53:52 +01:00
|
|
|
Patch2: disable-ip-test.patch
|
2022-12-30 00:47:37 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2023-01-20 23:45:57 +01:00
|
|
|
BuildRequires: curl
|
2022-12-30 00:47:37 +01:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(HTTP::Daemon)
|
|
|
|
BuildRequires: perl(HTTP::Message::PSGI)
|
|
|
|
BuildRequires: perl(IO::Socket::SSL)
|
|
|
|
BuildRequires: perl(Test::MockModule)
|
|
|
|
BuildRequires: perl(Test::Warnings)
|
2023-01-20 23:45:57 +01:00
|
|
|
Requires: curl
|
2022-12-30 00:47:37 +01:00
|
|
|
Requires: perl >= 5.10.1
|
2016-01-09 02:32:46 +01:00
|
|
|
Requires(pre): %fillup_prereq
|
2020-02-02 15:07:35 +01:00
|
|
|
Requires(pre): shadow
|
2011-10-16 11:51:34 +02:00
|
|
|
Recommends: perl-IO-Socket-SSL
|
2020-02-03 15:29:29 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
%{?systemd_requires}
|
2007-01-08 13:54:53 +01:00
|
|
|
|
|
|
|
%description
|
2019-02-18 10:28:21 +01:00
|
|
|
ddclient is a client requiring only Perl. Supported
|
2007-01-08 13:54:53 +01:00
|
|
|
features include daemon operation, manual and automatic updates, static
|
|
|
|
and dynamic updates, optimized updates for multiple addresses, MX, wild
|
|
|
|
cards, abuse avoidance, retry for failed updates, and status updates to
|
|
|
|
syslog and through e-mail. ddclient can obtain the IP address from any
|
|
|
|
interface, through a Web-based IP detection service, and for multiple
|
|
|
|
routers using custom FW definitions. It also 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.
|
|
|
|
|
|
|
|
%prep
|
2022-12-30 00:47:37 +01:00
|
|
|
%autosetup -p1
|
2009-02-03 22:47:10 +01:00
|
|
|
rm -f sample-etc_ddclient.conf.orig
|
2013-12-04 14:27:38 +01:00
|
|
|
chmod a-x sample-*
|
2009-02-03 22:47:10 +01:00
|
|
|
mkdir examples
|
2014-01-03 10:57:13 +01:00
|
|
|
mv sample-* examples
|
2007-01-08 13:54:53 +01:00
|
|
|
|
|
|
|
%build
|
2022-12-30 00:47:37 +01:00
|
|
|
./autogen
|
|
|
|
%configure
|
|
|
|
make
|
2007-01-08 13:54:53 +01:00
|
|
|
|
|
|
|
%install
|
2022-12-30 00:47:37 +01:00
|
|
|
%make_install
|
|
|
|
find examples -name *exe -delete
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}/
|
|
|
|
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
|
2020-02-03 15:29:29 +01:00
|
|
|
sed -i -e "s,%{_localstatedir}/run/,/run/%{name}/," %{buildroot}%{_sysconfdir}/%{name}.conf
|
2019-02-18 10:28:21 +01:00
|
|
|
install -D -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service
|
2020-02-03 15:29:29 +01:00
|
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rc%{name}
|
2019-02-18 10:28:21 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_fillupdir}
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.%{name}
|
2020-02-03 15:29:29 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_localstatedir}/cache/%{name}
|
2019-02-18 10:28:21 +01:00
|
|
|
install -d -m 755 %{buildroot}/run/%{name}
|
2007-05-03 23:57:41 +02:00
|
|
|
|
2022-12-30 00:47:37 +01:00
|
|
|
%check
|
|
|
|
make VERBOSE=1 check
|
|
|
|
|
2014-05-22 14:50:35 +02:00
|
|
|
%pre
|
2019-02-18 10:28:21 +01:00
|
|
|
getent group %{name} >/dev/null || %{_sbindir}/groupadd -r %{name}
|
|
|
|
getent passwd %{name} >/dev/null || \
|
2016-01-09 02:32:46 +01:00
|
|
|
%{_sbindir}/useradd -c "DDClient User" -d %{_localstatedir}/cache/%{name} \
|
2019-02-18 10:28:21 +01:00
|
|
|
-g %{name} -r -s /bin/false %{name}
|
2014-05-22 14:50:35 +02:00
|
|
|
%service_add_pre %{name}.service
|
|
|
|
|
2007-05-03 23:57:41 +02:00
|
|
|
%post
|
2020-02-03 15:29:29 +01:00
|
|
|
%fillup_only
|
|
|
|
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
2013-11-11 15:01:16 +01:00
|
|
|
%service_add_post %{name}.service
|
2007-01-08 13:54:53 +01:00
|
|
|
|
|
|
|
%preun
|
2013-11-11 15:01:16 +01:00
|
|
|
%service_del_preun %{name}.service
|
2007-01-08 13:54:53 +01:00
|
|
|
|
|
|
|
%postun
|
2013-11-11 15:01:16 +01:00
|
|
|
%service_del_postun %{name}.service
|
2007-01-08 13:54:53 +01:00
|
|
|
|
|
|
|
%files
|
2014-01-03 10:57:13 +01:00
|
|
|
%doc COPY* README* examples
|
2016-01-09 02:32:46 +01:00
|
|
|
%config(noreplace) %attr(600,%{name},root) %{_sysconfdir}/%{name}.conf
|
2013-12-04 14:27:38 +01:00
|
|
|
%{_unitdir}/%{name}.service
|
2020-08-20 17:55:20 +02:00
|
|
|
%{_tmpfilesdir}/ddclient.conf
|
2018-09-25 19:18:42 +02:00
|
|
|
%ghost %dir %attr(755,%{name},%{name}) /run/%{name}
|
2010-02-19 16:49:21 +01:00
|
|
|
%{_sbindir}/%{name}
|
|
|
|
%{_sbindir}/rc%{name}
|
2017-11-23 19:08:11 +01:00
|
|
|
%{_fillupdir}/sysconfig.%{name}
|
2016-01-09 02:32:46 +01:00
|
|
|
%dir %attr(700,%{name},root) %{_localstatedir}/cache/%{name}
|
2007-01-08 13:54:53 +01:00
|
|
|
|
2007-04-03 21:16:22 +02:00
|
|
|
%changelog
|