Giter VIP home page Giter VIP logo

ddnss-update's People

Contributors

lippl avatar m0ses avatar pspoerri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ddnss-update's Issues

Please update dist spec file

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

  • Fix all rpmlint errors.
    • Add ddnss-update.service in pre, post preun and postun section.
    • Insert missing rclink.
    • Add %changelog.
  • Run spec-cleaner.`

You can find this in OBS on your homedir in Web over link "derived packages".

How to install this script?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.