[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/27: gnu: ddclient: Update to 3.9.1.
From: |
guix-commits |
Subject: |
07/27: gnu: ddclient: Update to 3.9.1. |
Date: |
Sun, 16 Feb 2020 16:59:25 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 8bb9f9971cd45c075b8ad9c9d454911ca6468764
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Sun Feb 16 16:39:30 2020 +0100
gnu: ddclient: Update to 3.9.1.
* gnu/packages/dns.scm (ddclient): Update to 3.9.1.
[source]: Use GIT-FETCH and add a FILE-NAME.
[native-inputs]: Remove gzip and tar.
[arguments]: Adapt to git checkout source.
---
gnu/packages/dns.scm | 96 +++++++++++++++++++++++++---------------------------
1 file changed, 47 insertions(+), 49 deletions(-)
diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index 1ed751b..ee95b8f 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -741,20 +741,20 @@ LuaJIT, both a resolver library and a daemon.")
(define-public ddclient
(package
(name "ddclient")
- (version "3.9.0")
- (source (origin
- (method url-fetch)
- (uri (string-append
"mirror://sourceforge/ddclient/ddclient/ddclient-"
- version "/ddclient-" version ".tar.gz"))
- (sha256
- (base32
- "0fwyhab8yga2yi1kdfkbqxa83wxhwpagmj1w1mwkg2iffh1fjjlw"))))
+ (version "3.9.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ddclient/ddclient.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0hf377g4j9r9sac75xp17nk2h58mazswz4vkg4g2gl2yyhvzq91w"))))
(build-system trivial-build-system) ; no Makefile.PL
(native-inputs
`(("bash" ,bash)
- ("gzip" ,gzip)
- ("perl" ,perl)
- ("tar" ,tar)))
+ ("perl" ,perl)))
(inputs
`(("inetutils" ,inetutils) ; logger
("net-tools" ,net-tools)
@@ -770,47 +770,45 @@ LuaJIT, both a resolver library and a daemon.")
(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"))
- ;; 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" ":" =
- ("$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.*$")))))))
+
+ ;; Copy the (read-only) source into the (writable) build directory.
+ (copy-recursively (assoc-ref %build-inputs "source") ".")
+
+ ;; Install.
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin")))
+ (let ((file "ddclient"))
+ (substitute* file
+ (("/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" ":" =
+ ("$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
- branch master updated (f468df9 -> d39885a), guix-commits, 2020/02/16
- 03/27: gnu: Remove blender@2.79b., guix-commits, 2020/02/16
- 01/27: gnu: Add rtl8812au-aircrack-ng-linux-module., guix-commits, 2020/02/16
- 06/27: gnu: boinc-client: Trim synopsis., guix-commits, 2020/02/16
- 02/27: gnu: blender: Update to 2.82., guix-commits, 2020/02/16
- 05/27: gnu: boinc-client: Update to 7.16.4., guix-commits, 2020/02/16
- 07/27: gnu: ddclient: Update to 3.9.1.,
guix-commits <=
- 09/27: gnu: camlp5: Update to 7.11., guix-commits, 2020/02/16
- 08/27: gnu: ddclient: Update home page., guix-commits, 2020/02/16
- 04/27: gnu: noise-repellent: Update to 0.1.5., guix-commits, 2020/02/16
- 11/27: gnu: lttoolbox: Remove redundant FILE-NAME., guix-commits, 2020/02/16
- 13/27: gnu: sbsigntools: Update to 0.9.3., guix-commits, 2020/02/16
- 14/27: gnu: fasm: Update to 1.73.22., guix-commits, 2020/02/16
- 15/27: gnu: fio: Update to 3.18., guix-commits, 2020/02/16
- 20/27: gnu: libmicrohttpd: Update to 0.9.70., guix-commits, 2020/02/16
- 18/27: gnu: openscenegraph: Fix typo in description., guix-commits, 2020/02/16
- 12/27: gnu: libasr: Update to 1.0.4., guix-commits, 2020/02/16