unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: Nils Gillmann <ng0@n0.is>, Leo Famulari <leo@famulari.name>
Cc: 32114@debbugs.gnu.org, 32114-done@debbugs.gnu.org
Subject: bug#32114: [PATCH] gnu: Add ddclient.
Date: Fri, 13 Jul 2018 18:01:16 +0300	[thread overview]
Message-ID: <878t6fgoxv.fsf@gmail.com> (raw)
In-Reply-To: <20180712051338.llgw6bgoaccab6px@abyayala> (Nils Gillmann's message of "Thu, 12 Jul 2018 05:13:38 +0000")


[-- Attachment #1.1: Type: text/plain, Size: 693 bytes --]

Hello Nils, Leo, all.

Nils Gillmann <ng0@n0.is> 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.
>> 
>> 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:

[-- Attachment #1.2: Applied suggestions to ddclient. --]
[-- Type: text/x-patch, Size: 2187 bytes --]

diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index b17016909..ffa442f4d 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -592,7 +591,7 @@ synthesis, and on-the-fly re-configuration.")
               (sha256
                (base32
                 "1j8zdn7fy7i0bjk3jf0hxnbnshc2yf054vxq64imxdpfd7n5zgfy"))))
-    (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
-                 (("/usr/bin/perl") (which "perl")))
+                 (("/usr/bin/perl") (which "perl"))
+                 ;; Strictly use ‘/etc/ddclient/ddclient.conf’.
+                 (("\\$\\{program\\}\\.conf") "/etc/ddclient/ddclient.conf")
+                 (("\\$etc\\$program.conf") "/etc/ddclient/ddclient.conf")
+                 ;; Strictly use ‘/var/cache/ddclient/ddclient.cache’
+                 (("\\$cachedir\\$program\\.cache")
+                  "/var/cache/ddclient/ddclient.cache"))
                (install-file file bin)
                (wrap-program (string-append bin "/" file)
                  `("PATH" ":" =
@@ -655,7 +661,7 @@ addresses with several dynamic DNS service providers, such as
 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
+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+)))

[-- Attachment #1.3: Type: text/plain, Size: 65 bytes --]


[1]  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32141

Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2018-07-13 15:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-10 16:29 [bug#32114] [PATCH] gnu: Add ddclient Oleg Pykhalov
2018-07-11  6:27 ` Nils Gillmann
2018-07-11 19:09 ` Leo Famulari
2018-07-12  5:13   ` Nils Gillmann
2018-07-13 15:01     ` Oleg Pykhalov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878t6fgoxv.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=32114-done@debbugs.gnu.org \
    --cc=32114@debbugs.gnu.org \
    --cc=leo@famulari.name \
    --cc=ng0@n0.is \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).