m0ses / ddnss-update Goto Github PK
View Code? Open in Web Editor NEWShell script to update ddnss.de records
License: GNU General Public License v3.0
Shell script to update ddnss.de records
License: GNU General Public License v3.0
Can you please update the spec file like:
`
.#
.# spec file for package ddnss-update
.#
.# Copyright (c) 2020 SUSE LLC
.#
.# 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 https://bugs.opensuse.org/
Name: ddnss-update
Version: 0.0.4
Release: 0
Summary: Update script for ddnss.de
License: GPL-3.0-only
Group: Productivity/Networking/DNS/Utilities
URL: https://github.com/M0ses/ddnss-update
Source: https://github.com/M0ses/ddnss-update/archive/%{version}/%{name}-%{version}.tar.gz
Source99: %{name}-rpmlintrc
BuildRequires: shadow
BuildRequires: systemd-rpm-macros
Requires: curl
Requires: shadow
Requires: perl(Config::General)
Requires: perl(LWP::Protocol::https)
Requires: perl(LWP::UserAgent)
BuildArch: noarch
%{?systemd_requires}
%description
Shell script to update ddnss.de records.
%prep
%setup -q
%build
%install
%make_install
mkdir -p %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcddnss-update
%pre
id ddnss 2>/dev/null || useradd -r -m -d %{_localstatedir}/lib/ddnss -c "User for updating ddnss.de records" -s /bin/bash ddnss
%service_add_pre ddnss-update.service
%service_add_pre ddnss-update.timer
%post
%service_add_post ddnss-update.service
%service_add_post ddnss-update.timer
%preun
%service_del_preun ddnss-update.service
%service_del_preun ddnss-update.timer
%postun
%service_del_postun ddnss-update.service
%service_del_postun ddnss-update.timer
%files
%license LICENSE
%doc README.md
%dir %{_sysconfdir}/ddnss/
%config(noreplace) %{_sysconfdir}/ddnss/ddnss-update.rc
%{_bindir}/ddnss-update
%dir %attr(0755,ddnss,users) %ghost %{_localstatedir}/lib/ddnss
%ghost %{_localstatedir}/lib/ddnss/last.ip
%dir %attr(0755,ddnss,users) %{_localstatedir}/log/ddnss
%ghost %{_localstatedir}/log/ddnss/ddnss-update.log
%{_unitdir}/ddnss-update.service
%{_unitdir}/ddnss-update.timer
%{_sbindir}/rcddnss-update
%changelog
`
So all rpmlint errors are gone.
Also please add a chnagelog like:
`-------------------------------------------------------------------
Sat Apr 4 10:34:43 UTC 2020 - mail@mail
You can find this in OBS on your homedir in Web over link "derived packages".
Hi,
i have Enigma2 Box, with the VTI Image. It is based on linux.
I got access to this box by ssh, ftp and so on.
I would like to use your script, to update the ip at ddnss.
But i have no idea how to use your script...
Do i have to download everything and copy it to a folder of my linux box?
But what do i have to do, do run it? Beside filling in my ddnss account?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.