File dns24-update.spec of Package dns24-update

# spec file for package dns24-update
# Copyright (c) specCURRENT_YEAR SUSE LINUX GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

Name:           dns24-update
Version:        1.0
Release:        0
Summary:        Simple update client for the DynDNS service
License:        GPL-3.0-or-later
Group:          Productivity/Networking/DNS/Utilities
Source0:        dns24@.service
Source1:        dns24@.timer
Source10:       template.curl
BuildArch:      noarch
BuildRequires:  systemd-rpm-macros
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A simple utility for regularly updating one or more dynamic DNS records on the service.


cp %{SOURCE20} .

mkdir -p %{buildroot}%{_unitdir}
cp %{SOURCE0} %{SOURCE1} %{buildroot}%{_unitdir}

mkdir -p %{buildroot}/etc/dns24/
cp %{SOURCE10} %{buildroot}/etc/dns24/

%service_add_pre dns24@.service

%service_add_post dns24@.service

%service_del_preun dns24@.service

%service_del_postun dns24@.service

%dir %attr(0750,-,-) /etc/dns24
%config(noreplace) /etc/dns24/template.curl

openSUSE Build Service is sponsored by