package created using the webbuild interface [release 3.9.1-1mamba;Fri Oct 30 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 21:41:49 +01:00
parent b714ac8648
commit 05a6e3ed15
3 changed files with 72 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# ddclient
A Perl client used to update dynamic DNS entries for accounts on many dynamic DNS services.

11
ddclient.service Normal file
View File

@ -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

59
ddclient.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 3.9.1-1mamba
- package created using the webbuild interface