From 05a6e3ed1579a6b026d1866ddcd4693288f388ca Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:41:49 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.9.1-1mamba;Fri Oct 30 2020] --- README.md | 2 ++ ddclient.service | 11 +++++++++ ddclient.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 ddclient.service create mode 100644 ddclient.spec diff --git a/README.md b/README.md index 233f303..cf152d9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ddclient +A Perl client used to update dynamic DNS entries for accounts on many dynamic DNS services. + diff --git a/ddclient.service b/ddclient.service new file mode 100644 index 0000000..0163f22 --- /dev/null +++ b/ddclient.service @@ -0,0 +1,11 @@ +[Unit] +Description=Dynamic DNS Update Client +After=network.target + +[Service] +Type=forking +PIDFile=/run/ddclient.pid +ExecStart=/usr/bin/ddclient + +[Install] +WantedBy=multi-user.target diff --git a/ddclient.spec b/ddclient.spec new file mode 100644 index 0000000..21521ea --- /dev/null +++ b/ddclient.spec @@ -0,0 +1,59 @@ +Name: ddclient +Version: 3.9.1 +Release: 1mamba +Summary: A Perl client used to update dynamic DNS entries for accounts on many dynamic DNS services +Group: System/Servers +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ddclient/ddclient.git +Source: https://github.com/ddclient/ddclient.git/v%{version}/ddclient-%{version}.tar.bz2 +Source1: ddclient.service +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: libperl +BuildRequires: perl-devel +## AUTOBUILDREQ-END +Requires: perl-Data-Validate-IP +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A Perl client used to update dynamic DNS entries for accounts on many dynamic DNS services. + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -Dm755 ddclient %{buildroot}%{_bindir}/ddclient +install -Dm600 sample-etc_ddclient.conf %{buildroot}%{_sysconfdir}/ddclient/ddclient.conf +install -d %{buildroot}/var/cache/ddclient +install -Dm644 %{SOURCE1} %{buildroot}%{_unitdir}/ddclient.service + +%post +%systemd_post ddclient.service +: + +%postun +%systemd_postun ddclient.service +: + +%preun +%systemd_preun_with_restart ddclient.service +: + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/ddclient/ddclient.conf +%{_unitdir}/ddclient.service +%{_bindir}/ddclient +%doc COPYING + +%changelog +* Fri Oct 30 2020 Silvan Calarco 3.9.1-1mamba +- package created using the webbuild interface