From unknown Sun Jul 27 03:21:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#32114] [PATCH] gnu: Add ddclient. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Jul 2018 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 32114@debbugs.gnu.org Cc: Oleg Pykhalov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15312402384438 (code B ref -1); Tue, 10 Jul 2018 16:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jul 2018 16:30:38 +0000 Received: from localhost ([127.0.0.1]:54232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcvXC-00019W-4b for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcvXA-00019I-Hj for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcvWy-0000Wu-1V for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fcvWx-0000Wa-Rh for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcvWu-0000wW-CA for guix-patches@gnu.org; Tue, 10 Jul 2018 12:30:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcvWp-0000RN-Mr for guix-patches@gnu.org; Tue, 10 Jul 2018 12:30:20 -0400 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:40175) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcvWp-0000Qz-4m for guix-patches@gnu.org; Tue, 10 Jul 2018 12:30:15 -0400 Received: by mail-lf0-x233.google.com with SMTP id y200-v6so18826375lfd.7 for ; Tue, 10 Jul 2018 09:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pBGJJZDhbzCDa89J7iDeHNcWPdQ+FyVh9gcfxyhbZ1k=; b=j3Nba9yCV2oNUHx/yql9fhiGx7T6KxOjL9THN2AzdRFzXCQq4k9IjaKuwdtLRobHTS lVFfT22J3tjRFJy43zppAP5o+wUfHzfJkFiq4vps0JgSP7rajoCRler+tiT8prAcoW0A 2dINAeQNy1rNLarRKXNuW+0SY5ac/aBP9Le0ZiW9cc4ykm83G5kUagHxGvH7XABDzBdG PR8TTYS4/T4WmptGwTUjGiYA5cYWznRFFdfg3Vo5gd/w+oV3A/C/FZDaAiG2LhaTLRgy OtaBydaNmNX0Dbkwla7VjVGCFAx6E6yGMKiqTap7Skb33lCu/qXQ9D8YEfeF+DwJTfd9 5TGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pBGJJZDhbzCDa89J7iDeHNcWPdQ+FyVh9gcfxyhbZ1k=; b=eZCpdZmz4TliqnqtgoynEqAIhj2c4joDWjb4q0wdn+J5UDhnnLUJP7gef0APNtzXj6 ZScUyEeC/eRXGVzX9cgt5v8zx+/O1AeLqGHOjYJBkQDeiin57iezgQSjurmLnaMgj4vM 7wlpZ4L2BgenKcWN8iL1YhnZcmHURE40dXo04PYyNYFXpWydp1EhlPVLzZ1CHIEoVA1k 9N9UnFEB/BBt1rE4vqHIO+IOuPbfed94ANPI4eh2toSMZ7Mx3ZVo9VPsyhO3jaHj/j3x tUKIaVmDjh9+RiV5+j9Eq13CNtMmWHC7w1M8xkJFtF1Boiu0lj7k/c0mqBNcMK2SmWre 25WQ== X-Gm-Message-State: APt69E20V0x/DmylTqOGWgztGyoMl7zM+NIzh93PO+sd7zrx3alEfaON jBip1BWsqVy7J3tytDDEUlvmEQ== X-Google-Smtp-Source: AAOMgpeehIeFA6walHY9cR35wjk3MFNCK0z6WNNhohKZeFRhAAIX2eAWhA/UsstjAnFMt38C0gHwzw== X-Received: by 2002:a19:e803:: with SMTP id f3-v6mr3628054lfh.84.1531240213334; Tue, 10 Jul 2018 09:30:13 -0700 (PDT) Received: from localhost.localdomain ([178.71.233.99]) by smtp.gmail.com with ESMTPSA id o86-v6sm1330721lfi.82.2018.07.10.09.30.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 09:30:12 -0700 (PDT) From: Oleg Pykhalov Date: Tue, 10 Jul 2018 19:29:55 +0300 Message-Id: <20180710162955.10895-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/dns.scm (ddclient): New variable. --- gnu/packages/dns.scm | 85 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 78479b2d3..b17016909 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2016 Marius Bakke ;;; Copyright © 2017 Vasile Dumitrascu ;;; Copyright © 2017 Gregor Giesen +;;; Copyright © 2018 Oleg Pykhalov ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,7 +30,9 @@ #:use-module (gnu packages admin) #:use-module (gnu packages autotools) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages databases) + #:use-module (gnu packages compression) #:use-module (gnu packages crypto) #:use-module (gnu packages datastructures) #:use-module (gnu packages flex) @@ -55,7 +58,8 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix utils) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial)) (define-public dnsmasq (package @@ -576,3 +580,82 @@ synthesis, and on-the-fly re-configuration.") license:lgpl2.0+ ; parts of scr/contrib/ucw license:public-domain ; src/contrib/fnv and possibly murmurhash3 license:gpl3+)))) ; everything else + +(define-public ddclient + (package + (name "ddclient") + (version "3.8.3") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/ddclient/ddclient/ddclient-" + version "/ddclient-" version ".tar.gz")) + (sha256 + (base32 + "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy")))) + (build-system trivial-build-system) + (native-inputs + `(("bash" ,bash) + ("gzip" ,gzip) + ("perl" ,perl) + ("tar" ,tar))) + (inputs + `(("net-tools" ,net-tools) + ("perl-io-socket-ssl" ,perl-io-socket-ssl) + ("perl-digest-sha1" ,perl-digest-sha1))) + (arguments + `(#:modules ((guix build utils) + (ice-9 match) + (srfi srfi-26)) + #:builder + (begin + (use-modules (guix build utils) + (ice-9 match) + (srfi srfi-26)) + ;; bootstrap + (setenv "PATH" (string-append + (assoc-ref %build-inputs "bash") "/bin" ":" + (assoc-ref %build-inputs "tar") "/bin" ":" + (assoc-ref %build-inputs "gzip") "/bin" ":" + (assoc-ref %build-inputs "perl") "/bin")) + ;; extract source + (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) + ;; package + (with-directory-excursion (string-append ,name "-" ,version) + (let* ((out (assoc-ref %outputs "out")) + (bin (string-append out "/bin"))) + (let ((file "ddclient")) + (substitute* file + (("/usr/bin/perl") (which "perl"))) + (install-file file bin) + (wrap-program (string-append bin "/" file) + `("PATH" ":" = + ("$PATH" + ,@(map (lambda (input) + (match input + ((name . store) + (string-append store "/bin")))) + %build-inputs))) + `("PERL5LIB" ":" = + ,(delete + "" + (map (match-lambda + (((? (cut string-prefix? "perl-" <>) name) . dir) + (string-append dir "/lib/perl5/site_perl")) + (_ "")) + %build-inputs))))) + (for-each (cut install-file <> (string-append out + "/share/ddclient")) + (find-files "." "sample.*$"))))))) + (home-page "https://sourceforge.net/projects/ddclient/") + (synopsis "Address updating utility for dynamic DNS services") + (description "This package provides a client to update dynamic IP +addresses with several dynamic DNS service providers, such as +@uref{https://www.dyndns.com/account/login.html,DynDNS.com}. + +This makes it possible to use a fixed hostname (such as myhost.dyndns.org) to +access a machine with a dynamic IP address. + +This client supports both dynamic and (near) static services, as well as MX +record and alternative name management. It caches the address, and only +attempts the update when it has changed.") + (license license:gpl2+))) -- 2.18.0 From unknown Sun Jul 27 03:21:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#32114] [PATCH] gnu: Add ddclient. Resent-From: Nils Gillmann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Jul 2018 06:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: 32114@debbugs.gnu.org Received: via spool by 32114-submit@debbugs.gnu.org id=B32114.1531290439766 (code B ref 32114); Wed, 11 Jul 2018 06:28:02 +0000 Received: (at 32114) by debbugs.gnu.org; 11 Jul 2018 06:27:19 +0000 Received: from localhost ([127.0.0.1]:54669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd8at-0000CH-HC for submit@debbugs.gnu.org; Wed, 11 Jul 2018 02:27:19 -0400 Received: from static.195.114.201.195.clients.your-server.de ([195.201.114.195]:34606 helo=conspiracy.of.n0.is) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd8ar-0000C9-3F for 32114@debbugs.gnu.org; Wed, 11 Jul 2018 02:27:18 -0400 Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id db8f8885 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 11 Jul 2018 06:27:15 +0000 (UTC) Date: Wed, 11 Jul 2018 06:27:58 +0000 From: Nils Gillmann Message-ID: <20180711062758.hk6ehmh3szh7viyv@abyayala> References: <20180710162955.10895-1-go.wigust@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180710162955.10895-1-go.wigust@gmail.com> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Oleg Pykhalov transcribed 4.8K bytes: > * gnu/packages/dns.scm (ddclient): New variable. > --- > gnu/packages/dns.scm | 85 +++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 84 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm > index 78479b2d3..b17016909 100644 > --- a/gnu/packages/dns.scm > +++ b/gnu/packages/dns.scm > @@ -9,6 +9,7 @@ > ;;; Copyright © 2016 Marius Bakke > ;;; Copyright © 2017 Vasile Dumitrascu > ;;; Copyright © 2017 Gregor Giesen > +;;; Copyright © 2018 Oleg Pykhalov > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -29,7 +30,9 @@ > #:use-module (gnu packages admin) > #:use-module (gnu packages autotools) > #:use-module (gnu packages base) > + #:use-module (gnu packages bash) > #:use-module (gnu packages databases) > + #:use-module (gnu packages compression) > #:use-module (gnu packages crypto) > #:use-module (gnu packages datastructures) > #:use-module (gnu packages flex) > @@ -55,7 +58,8 @@ > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix utils) > - #:use-module (guix build-system gnu)) > + #:use-module (guix build-system gnu) > + #:use-module (guix build-system trivial)) > > (define-public dnsmasq > (package > @@ -576,3 +580,82 @@ synthesis, and on-the-fly re-configuration.") > license:lgpl2.0+ ; parts of scr/contrib/ucw > license:public-domain ; src/contrib/fnv and possibly murmurhash3 > license:gpl3+)))) ; everything else > + > +(define-public ddclient > + (package > + (name "ddclient") > + (version "3.8.3") > + (source (origin > + (method url-fetch) > + (uri (string-append "mirror://sourceforge/ddclient/ddclient/ddclient-" > + version "/ddclient-" version ".tar.gz")) > + (sha256 > + (base32 > + "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy")))) > + (build-system trivial-build-system) > + (native-inputs > + `(("bash" ,bash) > + ("gzip" ,gzip) > + ("perl" ,perl) > + ("tar" ,tar))) > + (inputs > + `(("net-tools" ,net-tools) > + ("perl-io-socket-ssl" ,perl-io-socket-ssl) > + ("perl-digest-sha1" ,perl-digest-sha1))) > + (arguments > + `(#:modules ((guix build utils) > + (ice-9 match) > + (srfi srfi-26)) > + #:builder > + (begin > + (use-modules (guix build utils) > + (ice-9 match) > + (srfi srfi-26)) > + ;; bootstrap > + (setenv "PATH" (string-append > + (assoc-ref %build-inputs "bash") "/bin" ":" > + (assoc-ref %build-inputs "tar") "/bin" ":" > + (assoc-ref %build-inputs "gzip") "/bin" ":" > + (assoc-ref %build-inputs "perl") "/bin")) > + ;; extract source > + (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) > + ;; package > + (with-directory-excursion (string-append ,name "-" ,version) > + (let* ((out (assoc-ref %outputs "out")) > + (bin (string-append out "/bin"))) > + (let ((file "ddclient")) > + (substitute* file > + (("/usr/bin/perl") (which "perl"))) > + (install-file file bin) > + (wrap-program (string-append bin "/" file) > + `("PATH" ":" = > + ("$PATH" > + ,@(map (lambda (input) > + (match input > + ((name . store) > + (string-append store "/bin")))) > + %build-inputs))) > + `("PERL5LIB" ":" = > + ,(delete > + "" > + (map (match-lambda > + (((? (cut string-prefix? "perl-" <>) name) . dir) > + (string-append dir "/lib/perl5/site_perl")) > + (_ "")) > + %build-inputs))))) > + (for-each (cut install-file <> (string-append out > + "/share/ddclient")) > + (find-files "." "sample.*$"))))))) > + (home-page "https://sourceforge.net/projects/ddclient/") > + (synopsis "Address updating utility for dynamic DNS services") > + (description "This package provides a client to update dynamic IP > +addresses with several dynamic DNS service providers, such as > +@uref{https://www.dyndns.com/account/login.html,DynDNS.com}. > + > +This makes it possible to use a fixed hostname (such as myhost.dyndns.org) to > +access a machine with a dynamic IP address. > + > +This client supports both dynamic and (near) static services, as well as MX > +record and alternative name management. It caches the address, and only > +attempts the update when it has changed.") > + (license license:gpl2+))) > -- > 2.18.0 Looks good to me. maybe replace the "This" repetition in the description? From unknown Sun Jul 27 03:21:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#32114] [PATCH] gnu: Add ddclient. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Jul 2018 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: 32114@debbugs.gnu.org Received: via spool by 32114-submit@debbugs.gnu.org id=B32114.153133620029718 (code B ref 32114); Wed, 11 Jul 2018 19:10:01 +0000 Received: (at 32114) by debbugs.gnu.org; 11 Jul 2018 19:10:00 +0000 Received: from localhost ([127.0.0.1]:55893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdKUx-0007jF-QO for submit@debbugs.gnu.org; Wed, 11 Jul 2018 15:10:00 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:41767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdKUv-0007j5-Tx for 32114@debbugs.gnu.org; Wed, 11 Jul 2018 15:09:58 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B4EDB21D1E; Wed, 11 Jul 2018 15:09:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 11 Jul 2018 15:09:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=7HFTii4elfOwGq6qPeTeZ98SRSohj1rBDK/sZR6DTak=; b=SJ56S /6XjcjsRDi1WDmF6um4tlNGpQpd+Rg7qjgAwWVtpE1JwhuvJ4jMTXh4BbbGlGB+o YQRrn9aubbLz0S/qeGJeb7/XT+TS93EDhK1jZBjJUs/+tldxUW+plrCbLzwrbN7K YK+dYa3zT9gHiL1SghuVFYBXdsX8FUwepk7Wzw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=7HFTii4elfOwGq6qPeTeZ98SRSohj 1rBDK/sZR6DTak=; b=qZ+D45FI1uI/mpvWLMhDlWG89OnwWENEUC/rQzsRpD9C1 dzvCaWCV63kiA9OmfXw8LPE93BGgX2ibQxC7uhkj2siAkOTYmHfDgCBK9iQELwxD a3KKf0tq+GbHeFmsVvGNZroWCitqGXqmPI+uLqTcXLL81Jfv5A/BvDxPyPSmt2q0 k7I6kMBDAtiHcZu5r/TlILY0Y7FJZqGMprCPEzBNWmpv/2MKZORvwpAv/5CWP/S3 Ug9aLWfhGTYcArJpdbZ82rDQhJudY0ZblYMVSGaoDlKysMmrcqi14zpEZfuXxBii VoM9wpD13dH7HOuJa9ZNivdomhDUEaDR0V5CrypGg== X-ME-Proxy: X-ME-Sender: Received: from localhost (c-76-124-202-137.hsd1.pa.comcast.net [76.124.202.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 32DEDE4519; Wed, 11 Jul 2018 15:09:57 -0400 (EDT) Date: Wed, 11 Jul 2018 15:09:56 -0400 From: Leo Famulari Message-ID: <20180711190956.GB11727@jasmine.lan> References: <20180710162955.10895-1-go.wigust@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/e2eDi0V/xtL+Mc8" Content-Disposition: inline In-Reply-To: <20180710162955.10895-1-go.wigust@gmail.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --/e2eDi0V/xtL+Mc8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 10, 2018 at 07:29:55PM +0300, Oleg Pykhalov wrote: > * gnu/packages/dns.scm (ddclient): New variable. Thanks! Overall it seems fine, but can you add a short code comment about why it uses the trival-build-system instead of perl-build-system? --/e2eDi0V/xtL+Mc8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAltGVgMACgkQJkb6MLrK fwi/5g/+IVMeybu3QNRp785GAyWkg57G+dJvBh1EvIrD+k0BfsDTwvuNqFDH+huj zJXgZuSv4UldozPItW/PBpcCC4VVFgNu2tVGsMJ8ag0GQ4LRIWu6zB85Dql6hKEQ cjlCmvTOmzViFfNDwFhVNUgOep9e+IGVVs7WLpt+A+QMXSf2+ZXMpMpD79KSW7Vc yEVes+A9cABTOqf02VkrCy2B9aS8SvtUGRUCEN3ZUwCDqmcG1hsQXSueXAeAHQ50 hOEhNgmBo1SIHr6elsRkY9tm6jXLgkFsonks9dl880F5Ou5GN+mA8ayVygdh5Yon nqorIZT3yLeI2Y8a30CXmzqokR9BcTTUeaBI5D8sOTHbg0clOyi9U0sdY/W2bCL6 m26AgsEqtZj/TKIEGZwlJK3c9N9zSO+je494DIOk3QXKV7SZuhTP47fVSGdJMvQi Q6TE46D+D66OVbgf3/jxY6sloWtBMkNR/8ttwqRuHONe+c3jvayeabKaAhjtZRpS NvcSHmBwjtMS9XPYd7arlR6pWnS9b20tZ+0lJV+CTBiNjp8hXXeAL8SfGsM5kXnN iF5X4hl9RJuo6s0XLvf6IurSU/4wR1B8AK5sD/9xyQYuLLEQogBpJO6gIRkzM/mc vHd/SKlVZtJxFCy7eV9Bzm7meoqf6If24s35r86dNwPzcq/b+MU= =6EcB -----END PGP SIGNATURE----- --/e2eDi0V/xtL+Mc8-- From unknown Sun Jul 27 03:21:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#32114] [PATCH] gnu: Add ddclient. Resent-From: Nils Gillmann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Jul 2018 05:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: 32114@debbugs.gnu.org, Oleg Pykhalov Received: via spool by 32114-submit@debbugs.gnu.org id=B32114.15313723789941 (code B ref 32114); Thu, 12 Jul 2018 05:13:01 +0000 Received: (at 32114) by debbugs.gnu.org; 12 Jul 2018 05:12:58 +0000 Received: from localhost ([127.0.0.1]:56227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdTuT-0002aG-SA for submit@debbugs.gnu.org; Thu, 12 Jul 2018 01:12:58 -0400 Received: from static.195.114.201.195.clients.your-server.de ([195.201.114.195]:53386 helo=conspiracy.of.n0.is) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdTuS-0002a8-0f for 32114@debbugs.gnu.org; Thu, 12 Jul 2018 01:12:56 -0400 Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 216f1f76 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 12 Jul 2018 05:12:54 +0000 (UTC) Date: Thu, 12 Jul 2018 05:13:38 +0000 From: Nils Gillmann Message-ID: <20180712051338.llgw6bgoaccab6px@abyayala> References: <20180710162955.10895-1-go.wigust@gmail.com> <20180711190956.GB11727@jasmine.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180711190956.GB11727@jasmine.lan> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Leo Famulari transcribed 1.3K bytes: > On Tue, Jul 10, 2018 at 07:29:55PM +0300, Oleg Pykhalov wrote: > > * gnu/packages/dns.scm (ddclient): New variable. > > Thanks! Overall it seems fine, but can you add a short code comment > about why it uses the trival-build-system instead of perl-build-system? I think I tried to work on this a while back. It simply has no Makefile for any build system. From unknown Sun Jul 27 03:21:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#32114] [PATCH] gnu: Add ddclient. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Jul 2018 15:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nils Gillmann , Leo Famulari Cc: 32114@debbugs.gnu.org, 32114-done@debbugs.gnu.org Received: via spool by 32114-submit@debbugs.gnu.org id=B32114.153149408924953 (code B ref 32114); Fri, 13 Jul 2018 15:02:02 +0000 Received: (at 32114) by debbugs.gnu.org; 13 Jul 2018 15:01:29 +0000 Received: from localhost ([127.0.0.1]:59090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdzZZ-0006UJ-0D for submit@debbugs.gnu.org; Fri, 13 Jul 2018 11:01:29 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdzZX-0006Ty-04; Fri, 13 Jul 2018 11:01:27 -0400 Received: by mail-lf0-f65.google.com with SMTP id m12-v6so27415871lfc.10; Fri, 13 Jul 2018 08:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Y6oia7ODGf7ksHGLcg1UU7iiNlT/ko6uxv+QJ/S+DLc=; b=oI/qaB+3Msl+J8XOwxXLxq16DYD49Hapo7MWOXZ925+YjHbXlDHTBr3ZQ2TVwogTsm hHt8GNWRy0E+npLFqO4wAEG7mKVRn8ladmJFh/oUVek1eMkQZRmg7AJS4VrRrBYfuO0i BOiadeH4rw8FJsasAlMqZ+bWqmPNFIajjdSKGBhP4iGA5P6LEJSj9ArK3EJLQFa6/kTs pclq5cXpLR4BBlIylUkaWgIpOcu6tb8qXQQUttXoX6yZNTYq+pjohxJ7iO5vHD0gxlRk x0X/Aszu408N+1KsB3I+/oA2ECsuFgb5K9mCG3GyYf4U/IqMQVNDeTSGWrF1hBEZ9ssm n/Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Y6oia7ODGf7ksHGLcg1UU7iiNlT/ko6uxv+QJ/S+DLc=; b=goiRNOPHco/SXD/aVaUG/ZlaAvONWdmbYTXpjKT1R42GExzaMZF+YVuvZZe/L0ZMEn j0V6V44GTS9ZoDWzHYWjqbE5lvek+tjsbnNlYP2LSVqsQldXxCqbqOEq0IABxGIH9HhB m6LaxZEyahuFATmk1YM46g2HaiukG5oLOO9CLuWCWjQXSa1n5f6tC4uU0cdnW3NBr6Xw nTaqTkBEGIlcZehetigd5pmqCs74r+zji2GlvlsDuiCaO78QqIi/sJCwUb16nzAc2wiw T/RHbKRRuarvUPclBXLRJgAfpdwWlrJ37HMY8z4waveXd8W9msc8q4+TY6Nlq2CkoyjU aMYw== X-Gm-Message-State: AOUpUlE918Ot3ouKZZSToby/pgP+bhCt1jL/n2rYlhcoNApRabnqyxn8 pX7yEngiEyaQu3oi0r/M7z38Sw== X-Google-Smtp-Source: AAOMgpdW1aM4P+Eoqyz0TEldAaA1OfBMXG4kNb4t45wuMorfVBnMp9l53H4m4qO0hx2ycIojmCIY7w== X-Received: by 2002:a19:93d2:: with SMTP id w79-v6mr5788417lfk.20.1531494080785; Fri, 13 Jul 2018 08:01:20 -0700 (PDT) Received: from magnolia ([178.71.196.63]) by smtp.gmail.com with ESMTPSA id y72-v6sm3775951lfg.74.2018.07.13.08.01.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 08:01:19 -0700 (PDT) From: Oleg Pykhalov References: <20180710162955.10895-1-go.wigust@gmail.com> <20180711190956.GB11727@jasmine.lan> <20180712051338.llgw6bgoaccab6px@abyayala> Date: Fri, 13 Jul 2018 18:01:16 +0300 In-Reply-To: <20180712051338.llgw6bgoaccab6px@abyayala> (Nils Gillmann's message of "Thu, 12 Jul 2018 05:13:38 +0000") Message-ID: <878t6fgoxv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello Nils, Leo, all. Nils Gillmann writes: > Leo Famulari transcribed 1.3K bytes: >> On Tue, Jul 10, 2018 at 07:29:55PM +0300, Oleg Pykhalov wrote: >> > * gnu/packages/dns.scm (ddclient): New variable. >>=20 >> Thanks! Overall it seems fine, but can you add a short code comment >> about why it uses the trival-build-system instead of perl-build-system? > > I think I tried to work on this a while back. It simply has no Makefile > for any build system. I applied all your suggestions, thank you. Also, while I wrote ddclient service [1] I did some improvements to ddclient package. Pushed as 0bc2d3e42b8800e875f24973f999739297f1f502 with following changes: --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable Content-Description: Applied suggestions to ddclient. diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index b17016909..ffa442f4d 100644 =2D-- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -592,7 +591,7 @@ synthesis, and on-the-fly re-configuration.") (sha256 (base32 "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy")))) =2D (build-system trivial-build-system) + (build-system trivial-build-system) ; no Makefile.PL (native-inputs `(("bash" ,bash) ("gzip" ,gzip) @@ -600,6 +599,7 @@ synthesis, and on-the-fly re-configuration.") ("tar" ,tar))) (inputs `(("net-tools" ,net-tools) + ("inetutils" ,inetutils) ;logger ("perl-io-socket-ssl" ,perl-io-socket-ssl) ("perl-digest-sha1" ,perl-digest-sha1))) (arguments @@ -625,7 +625,13 @@ synthesis, and on-the-fly re-configuration.") (bin (string-append out "/bin"))) (let ((file "ddclient")) (substitute* file =2D (("/usr/bin/perl") (which "perl"))) + (("/usr/bin/perl") (which "perl")) + ;; Strictly use =E2=80=98/etc/ddclient/ddclient.conf=E2= =80=99. + (("\\$\\{program\\}\\.conf") "/etc/ddclient/ddclient.conf= ") + (("\\$etc\\$program.conf") "/etc/ddclient/ddclient.conf") + ;; Strictly use =E2=80=98/var/cache/ddclient/ddclient.cac= he=E2=80=99 + (("\\$cachedir\\$program\\.cache") + "/var/cache/ddclient/ddclient.cache")) (install-file file bin) (wrap-program (string-append bin "/" file) `("PATH" ":" =3D @@ -655,7 +661,7 @@ addresses with several dynamic DNS service providers, s= uch as This makes it possible to use a fixed hostname (such as myhost.dyndns.org)= to access a machine with a dynamic IP address. =20 =2DThis client supports both dynamic and (near) static services, as well as= MX +The client supports both dynamic and (near) static services, as well as MX record and alternative name management. It caches the address, and only attempts the update when it has changed.") (license license:gpl2+))) --=-=-= Content-Type: text/plain [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32141 Oleg. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAltIvrwACgkQckbhHGm3 lWk5iBAAg0ZbbSL6a46GZLcWpKspv66mnwRboov7UaGxkTgDylESLM+csmU1jfM3 RO8EzxEDHYSQtXbLFrZT+46Ep3l0DQbALF9BoXNpDQgC8mwbIvjLBV4FtOUKyx4w ubnUvWkkX7gLvOfvZA4yXJhWWQuieh8XhC0qOF1hxqmoh6rT8S5AThKrItENbjIQ aARynJwRx0iF6e5yvJbM4bTOkbe1PBO7w6IlJ5Gg6R8wVkOl6VdubyZWKPjkAo1n zV4Prt4hPikLJRrf44g4DoUTARvRZWtICEVkp+PprEVSzGotrP4jQQh6rX7yHK/t JrE07Umwkg1THnDG61zDKhnMFA+WvUytsEt4Ykvzsw05SwsjzXsaVKGtH/GydI26 JXvnIskbTwJqn5SLCw0/r4+Q+eFItf6Nqy7PGXFxM5M9Dnxpjp1C/mlf5/QZxArH arUQ0H0Xh2prSUqkZ1lN9QZovynf5ybqiXxt5Hrr9GzJri+SeGKwBCI3PcQciV7V +8nIrOqxhpyaYD47oikDfsVWSBr6ZtTKN4gtkjt+c9QDEWy5UbTwK4+MI9BJmBkL daXUIrozn4wG/9GZze8OHnqgrZsQjxvRrOPS/2H1sjeas985F0hyXVs5gDfKpRNR Pd7e8qYwgyNTJytOpRJ4UiX0uHtposhvXa1IxmK+eUauztC24Pg= =VzOx -----END PGP SIGNATURE----- --==-=-=-- From unknown Sun Jul 27 03:21:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Oleg Pykhalov Subject: bug#32114: closed (Re: [bug#32114] [PATCH] gnu: Add ddclient.) Message-ID: References: <878t6fgoxv.fsf@gmail.com> <20180710162955.10895-1-go.wigust@gmail.com> X-Gnu-PR-Message: they-closed 32114 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 32114@debbugs.gnu.org Date: Fri, 13 Jul 2018 15:02:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1531494123-25003-1" This is a multi-part message in MIME format... ------------=_1531494123-25003-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #32114: [PATCH] gnu: Add ddclient. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 32114@debbugs.gnu.org. --=20 32114: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32114 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1531494123-25003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 32114-done) by debbugs.gnu.org; 13 Jul 2018 15:01:29 +0000 Received: from localhost ([127.0.0.1]:59088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdzZY-0006UG-Ks for submit@debbugs.gnu.org; Fri, 13 Jul 2018 11:01:28 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdzZX-0006Ty-04; Fri, 13 Jul 2018 11:01:27 -0400 Received: by mail-lf0-f65.google.com with SMTP id m12-v6so27415871lfc.10; Fri, 13 Jul 2018 08:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Y6oia7ODGf7ksHGLcg1UU7iiNlT/ko6uxv+QJ/S+DLc=; b=oI/qaB+3Msl+J8XOwxXLxq16DYD49Hapo7MWOXZ925+YjHbXlDHTBr3ZQ2TVwogTsm hHt8GNWRy0E+npLFqO4wAEG7mKVRn8ladmJFh/oUVek1eMkQZRmg7AJS4VrRrBYfuO0i BOiadeH4rw8FJsasAlMqZ+bWqmPNFIajjdSKGBhP4iGA5P6LEJSj9ArK3EJLQFa6/kTs pclq5cXpLR4BBlIylUkaWgIpOcu6tb8qXQQUttXoX6yZNTYq+pjohxJ7iO5vHD0gxlRk x0X/Aszu408N+1KsB3I+/oA2ECsuFgb5K9mCG3GyYf4U/IqMQVNDeTSGWrF1hBEZ9ssm n/Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Y6oia7ODGf7ksHGLcg1UU7iiNlT/ko6uxv+QJ/S+DLc=; b=goiRNOPHco/SXD/aVaUG/ZlaAvONWdmbYTXpjKT1R42GExzaMZF+YVuvZZe/L0ZMEn j0V6V44GTS9ZoDWzHYWjqbE5lvek+tjsbnNlYP2LSVqsQldXxCqbqOEq0IABxGIH9HhB m6LaxZEyahuFATmk1YM46g2HaiukG5oLOO9CLuWCWjQXSa1n5f6tC4uU0cdnW3NBr6Xw nTaqTkBEGIlcZehetigd5pmqCs74r+zji2GlvlsDuiCaO78QqIi/sJCwUb16nzAc2wiw T/RHbKRRuarvUPclBXLRJgAfpdwWlrJ37HMY8z4waveXd8W9msc8q4+TY6Nlq2CkoyjU aMYw== X-Gm-Message-State: AOUpUlE918Ot3ouKZZSToby/pgP+bhCt1jL/n2rYlhcoNApRabnqyxn8 pX7yEngiEyaQu3oi0r/M7z38Sw== X-Google-Smtp-Source: AAOMgpdW1aM4P+Eoqyz0TEldAaA1OfBMXG4kNb4t45wuMorfVBnMp9l53H4m4qO0hx2ycIojmCIY7w== X-Received: by 2002:a19:93d2:: with SMTP id w79-v6mr5788417lfk.20.1531494080785; Fri, 13 Jul 2018 08:01:20 -0700 (PDT) Received: from magnolia ([178.71.196.63]) by smtp.gmail.com with ESMTPSA id y72-v6sm3775951lfg.74.2018.07.13.08.01.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 08:01:19 -0700 (PDT) From: Oleg Pykhalov To: Nils Gillmann , Leo Famulari Subject: Re: [bug#32114] [PATCH] gnu: Add ddclient. References: <20180710162955.10895-1-go.wigust@gmail.com> <20180711190956.GB11727@jasmine.lan> <20180712051338.llgw6bgoaccab6px@abyayala> Date: Fri, 13 Jul 2018 18:01:16 +0300 In-Reply-To: <20180712051338.llgw6bgoaccab6px@abyayala> (Nils Gillmann's message of "Thu, 12 Jul 2018 05:13:38 +0000") Message-ID: <878t6fgoxv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32114-done Cc: 32114@debbugs.gnu.org, 32114-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello Nils, Leo, all. Nils Gillmann writes: > Leo Famulari transcribed 1.3K bytes: >> On Tue, Jul 10, 2018 at 07:29:55PM +0300, Oleg Pykhalov wrote: >> > * gnu/packages/dns.scm (ddclient): New variable. >>=20 >> Thanks! Overall it seems fine, but can you add a short code comment >> about why it uses the trival-build-system instead of perl-build-system? > > I think I tried to work on this a while back. It simply has no Makefile > for any build system. I applied all your suggestions, thank you. Also, while I wrote ddclient service [1] I did some improvements to ddclient package. Pushed as 0bc2d3e42b8800e875f24973f999739297f1f502 with following changes: --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable Content-Description: Applied suggestions to ddclient. diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index b17016909..ffa442f4d 100644 =2D-- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -592,7 +591,7 @@ synthesis, and on-the-fly re-configuration.") (sha256 (base32 "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy")))) =2D (build-system trivial-build-system) + (build-system trivial-build-system) ; no Makefile.PL (native-inputs `(("bash" ,bash) ("gzip" ,gzip) @@ -600,6 +599,7 @@ synthesis, and on-the-fly re-configuration.") ("tar" ,tar))) (inputs `(("net-tools" ,net-tools) + ("inetutils" ,inetutils) ;logger ("perl-io-socket-ssl" ,perl-io-socket-ssl) ("perl-digest-sha1" ,perl-digest-sha1))) (arguments @@ -625,7 +625,13 @@ synthesis, and on-the-fly re-configuration.") (bin (string-append out "/bin"))) (let ((file "ddclient")) (substitute* file =2D (("/usr/bin/perl") (which "perl"))) + (("/usr/bin/perl") (which "perl")) + ;; Strictly use =E2=80=98/etc/ddclient/ddclient.conf=E2= =80=99. + (("\\$\\{program\\}\\.conf") "/etc/ddclient/ddclient.conf= ") + (("\\$etc\\$program.conf") "/etc/ddclient/ddclient.conf") + ;; Strictly use =E2=80=98/var/cache/ddclient/ddclient.cac= he=E2=80=99 + (("\\$cachedir\\$program\\.cache") + "/var/cache/ddclient/ddclient.cache")) (install-file file bin) (wrap-program (string-append bin "/" file) `("PATH" ":" =3D @@ -655,7 +661,7 @@ addresses with several dynamic DNS service providers, s= uch as This makes it possible to use a fixed hostname (such as myhost.dyndns.org)= to access a machine with a dynamic IP address. =20 =2DThis client supports both dynamic and (near) static services, as well as= MX +The client supports both dynamic and (near) static services, as well as MX record and alternative name management. It caches the address, and only attempts the update when it has changed.") (license license:gpl2+))) --=-=-= Content-Type: text/plain [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32141 Oleg. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAltIvrwACgkQckbhHGm3 lWk5iBAAg0ZbbSL6a46GZLcWpKspv66mnwRboov7UaGxkTgDylESLM+csmU1jfM3 RO8EzxEDHYSQtXbLFrZT+46Ep3l0DQbALF9BoXNpDQgC8mwbIvjLBV4FtOUKyx4w ubnUvWkkX7gLvOfvZA4yXJhWWQuieh8XhC0qOF1hxqmoh6rT8S5AThKrItENbjIQ aARynJwRx0iF6e5yvJbM4bTOkbe1PBO7w6IlJ5Gg6R8wVkOl6VdubyZWKPjkAo1n zV4Prt4hPikLJRrf44g4DoUTARvRZWtICEVkp+PprEVSzGotrP4jQQh6rX7yHK/t JrE07Umwkg1THnDG61zDKhnMFA+WvUytsEt4Ykvzsw05SwsjzXsaVKGtH/GydI26 JXvnIskbTwJqn5SLCw0/r4+Q+eFItf6Nqy7PGXFxM5M9Dnxpjp1C/mlf5/QZxArH arUQ0H0Xh2prSUqkZ1lN9QZovynf5ybqiXxt5Hrr9GzJri+SeGKwBCI3PcQciV7V +8nIrOqxhpyaYD47oikDfsVWSBr6ZtTKN4gtkjt+c9QDEWy5UbTwK4+MI9BJmBkL daXUIrozn4wG/9GZze8OHnqgrZsQjxvRrOPS/2H1sjeas985F0hyXVs5gDfKpRNR Pd7e8qYwgyNTJytOpRJ4UiX0uHtposhvXa1IxmK+eUauztC24Pg= =VzOx -----END PGP SIGNATURE----- --==-=-=-- ------------=_1531494123-25003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Jul 2018 16:30:38 +0000 Received: from localhost ([127.0.0.1]:54232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcvXC-00019W-4b for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcvXA-00019I-Hj for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcvWy-0000Wu-1V for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fcvWx-0000Wa-Rh for submit@debbugs.gnu.org; Tue, 10 Jul 2018 12:30:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcvWu-0000wW-CA for guix-patches@gnu.org; Tue, 10 Jul 2018 12:30:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcvWp-0000RN-Mr for guix-patches@gnu.org; Tue, 10 Jul 2018 12:30:20 -0400 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:40175) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcvWp-0000Qz-4m for guix-patches@gnu.org; Tue, 10 Jul 2018 12:30:15 -0400 Received: by mail-lf0-x233.google.com with SMTP id y200-v6so18826375lfd.7 for ; Tue, 10 Jul 2018 09:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pBGJJZDhbzCDa89J7iDeHNcWPdQ+FyVh9gcfxyhbZ1k=; b=j3Nba9yCV2oNUHx/yql9fhiGx7T6KxOjL9THN2AzdRFzXCQq4k9IjaKuwdtLRobHTS lVFfT22J3tjRFJy43zppAP5o+wUfHzfJkFiq4vps0JgSP7rajoCRler+tiT8prAcoW0A 2dINAeQNy1rNLarRKXNuW+0SY5ac/aBP9Le0ZiW9cc4ykm83G5kUagHxGvH7XABDzBdG PR8TTYS4/T4WmptGwTUjGiYA5cYWznRFFdfg3Vo5gd/w+oV3A/C/FZDaAiG2LhaTLRgy OtaBydaNmNX0Dbkwla7VjVGCFAx6E6yGMKiqTap7Skb33lCu/qXQ9D8YEfeF+DwJTfd9 5TGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pBGJJZDhbzCDa89J7iDeHNcWPdQ+FyVh9gcfxyhbZ1k=; b=eZCpdZmz4TliqnqtgoynEqAIhj2c4joDWjb4q0wdn+J5UDhnnLUJP7gef0APNtzXj6 ZScUyEeC/eRXGVzX9cgt5v8zx+/O1AeLqGHOjYJBkQDeiin57iezgQSjurmLnaMgj4vM 7wlpZ4L2BgenKcWN8iL1YhnZcmHURE40dXo04PYyNYFXpWydp1EhlPVLzZ1CHIEoVA1k 9N9UnFEB/BBt1rE4vqHIO+IOuPbfed94ANPI4eh2toSMZ7Mx3ZVo9VPsyhO3jaHj/j3x tUKIaVmDjh9+RiV5+j9Eq13CNtMmWHC7w1M8xkJFtF1Boiu0lj7k/c0mqBNcMK2SmWre 25WQ== X-Gm-Message-State: APt69E20V0x/DmylTqOGWgztGyoMl7zM+NIzh93PO+sd7zrx3alEfaON jBip1BWsqVy7J3tytDDEUlvmEQ== X-Google-Smtp-Source: AAOMgpeehIeFA6walHY9cR35wjk3MFNCK0z6WNNhohKZeFRhAAIX2eAWhA/UsstjAnFMt38C0gHwzw== X-Received: by 2002:a19:e803:: with SMTP id f3-v6mr3628054lfh.84.1531240213334; Tue, 10 Jul 2018 09:30:13 -0700 (PDT) Received: from localhost.localdomain ([178.71.233.99]) by smtp.gmail.com with ESMTPSA id o86-v6sm1330721lfi.82.2018.07.10.09.30.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 09:30:12 -0700 (PDT) From: Oleg Pykhalov To: guix-patches@gnu.org Subject: [PATCH] gnu: Add ddclient. Date: Tue, 10 Jul 2018 19:29:55 +0300 Message-Id: <20180710162955.10895-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Oleg Pykhalov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/dns.scm (ddclient): New variable. --- gnu/packages/dns.scm | 85 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 78479b2d3..b17016909 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2016 Marius Bakke ;;; Copyright © 2017 Vasile Dumitrascu ;;; Copyright © 2017 Gregor Giesen +;;; Copyright © 2018 Oleg Pykhalov ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,7 +30,9 @@ #:use-module (gnu packages admin) #:use-module (gnu packages autotools) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages databases) + #:use-module (gnu packages compression) #:use-module (gnu packages crypto) #:use-module (gnu packages datastructures) #:use-module (gnu packages flex) @@ -55,7 +58,8 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix utils) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial)) (define-public dnsmasq (package @@ -576,3 +580,82 @@ synthesis, and on-the-fly re-configuration.") license:lgpl2.0+ ; parts of scr/contrib/ucw license:public-domain ; src/contrib/fnv and possibly murmurhash3 license:gpl3+)))) ; everything else + +(define-public ddclient + (package + (name "ddclient") + (version "3.8.3") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/ddclient/ddclient/ddclient-" + version "/ddclient-" version ".tar.gz")) + (sha256 + (base32 + "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy")))) + (build-system trivial-build-system) + (native-inputs + `(("bash" ,bash) + ("gzip" ,gzip) + ("perl" ,perl) + ("tar" ,tar))) + (inputs + `(("net-tools" ,net-tools) + ("perl-io-socket-ssl" ,perl-io-socket-ssl) + ("perl-digest-sha1" ,perl-digest-sha1))) + (arguments + `(#:modules ((guix build utils) + (ice-9 match) + (srfi srfi-26)) + #:builder + (begin + (use-modules (guix build utils) + (ice-9 match) + (srfi srfi-26)) + ;; bootstrap + (setenv "PATH" (string-append + (assoc-ref %build-inputs "bash") "/bin" ":" + (assoc-ref %build-inputs "tar") "/bin" ":" + (assoc-ref %build-inputs "gzip") "/bin" ":" + (assoc-ref %build-inputs "perl") "/bin")) + ;; extract source + (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) + ;; package + (with-directory-excursion (string-append ,name "-" ,version) + (let* ((out (assoc-ref %outputs "out")) + (bin (string-append out "/bin"))) + (let ((file "ddclient")) + (substitute* file + (("/usr/bin/perl") (which "perl"))) + (install-file file bin) + (wrap-program (string-append bin "/" file) + `("PATH" ":" = + ("$PATH" + ,@(map (lambda (input) + (match input + ((name . store) + (string-append store "/bin")))) + %build-inputs))) + `("PERL5LIB" ":" = + ,(delete + "" + (map (match-lambda + (((? (cut string-prefix? "perl-" <>) name) . dir) + (string-append dir "/lib/perl5/site_perl")) + (_ "")) + %build-inputs))))) + (for-each (cut install-file <> (string-append out + "/share/ddclient")) + (find-files "." "sample.*$"))))))) + (home-page "https://sourceforge.net/projects/ddclient/") + (synopsis "Address updating utility for dynamic DNS services") + (description "This package provides a client to update dynamic IP +addresses with several dynamic DNS service providers, such as +@uref{https://www.dyndns.com/account/login.html,DynDNS.com}. + +This makes it possible to use a fixed hostname (such as myhost.dyndns.org) to +access a machine with a dynamic IP address. + +This client supports both dynamic and (near) static services, as well as MX +record and alternative name management. It caches the address, and only +attempts the update when it has changed.") + (license license:gpl2+))) -- 2.18.0 ------------=_1531494123-25003-1--