mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
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.
This commit is contained in:
parent
3bc39f0c5d
commit
8bb9f9971c
1 changed files with 47 additions and 49 deletions
|
@ -741,20 +741,20 @@ (define-public knot-resolver
|
||||||
(define-public ddclient
|
(define-public ddclient
|
||||||
(package
|
(package
|
||||||
(name "ddclient")
|
(name "ddclient")
|
||||||
(version "3.9.0")
|
(version "3.9.1")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append "mirror://sourceforge/ddclient/ddclient/ddclient-"
|
(method git-fetch)
|
||||||
version "/ddclient-" version ".tar.gz"))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/ddclient/ddclient.git")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0hf377g4j9r9sac75xp17nk2h58mazswz4vkg4g2gl2yyhvzq91w"))))
|
||||||
"0fwyhab8yga2yi1kdfkbqxa83wxhwpagmj1w1mwkg2iffh1fjjlw"))))
|
|
||||||
(build-system trivial-build-system) ; no Makefile.PL
|
(build-system trivial-build-system) ; no Makefile.PL
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("bash" ,bash)
|
`(("bash" ,bash)
|
||||||
("gzip" ,gzip)
|
("perl" ,perl)))
|
||||||
("perl" ,perl)
|
|
||||||
("tar" ,tar)))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("inetutils" ,inetutils) ; logger
|
`(("inetutils" ,inetutils) ; logger
|
||||||
("net-tools" ,net-tools)
|
("net-tools" ,net-tools)
|
||||||
|
@ -770,16 +770,14 @@ (define-public ddclient
|
||||||
(use-modules (guix build utils)
|
(use-modules (guix build utils)
|
||||||
(ice-9 match)
|
(ice-9 match)
|
||||||
(srfi srfi-26))
|
(srfi srfi-26))
|
||||||
;; bootstrap
|
|
||||||
(setenv "PATH" (string-append
|
(setenv "PATH" (string-append
|
||||||
(assoc-ref %build-inputs "bash") "/bin" ":"
|
(assoc-ref %build-inputs "bash") "/bin" ":"
|
||||||
(assoc-ref %build-inputs "tar") "/bin" ":"
|
|
||||||
(assoc-ref %build-inputs "gzip") "/bin" ":"
|
|
||||||
(assoc-ref %build-inputs "perl") "/bin"))
|
(assoc-ref %build-inputs "perl") "/bin"))
|
||||||
;; extract source
|
|
||||||
(invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
|
;; Copy the (read-only) source into the (writable) build directory.
|
||||||
;; package
|
(copy-recursively (assoc-ref %build-inputs "source") ".")
|
||||||
(with-directory-excursion (string-append ,name "-" ,version)
|
|
||||||
|
;; Install.
|
||||||
(let* ((out (assoc-ref %outputs "out"))
|
(let* ((out (assoc-ref %outputs "out"))
|
||||||
(bin (string-append out "/bin")))
|
(bin (string-append out "/bin")))
|
||||||
(let ((file "ddclient"))
|
(let ((file "ddclient"))
|
||||||
|
@ -810,7 +808,7 @@ (define-public ddclient
|
||||||
%build-inputs)))))
|
%build-inputs)))))
|
||||||
(for-each (cut install-file <> (string-append out
|
(for-each (cut install-file <> (string-append out
|
||||||
"/share/ddclient"))
|
"/share/ddclient"))
|
||||||
(find-files "." "sample.*$")))))))
|
(find-files "." "sample.*$"))))))
|
||||||
(home-page "https://sourceforge.net/projects/ddclient/")
|
(home-page "https://sourceforge.net/projects/ddclient/")
|
||||||
(synopsis "Address updating utility for dynamic DNS services")
|
(synopsis "Address updating utility for dynamic DNS services")
|
||||||
(description "This package provides a client to update dynamic IP
|
(description "This package provides a client to update dynamic IP
|
||||||
|
|
Loading…
Reference in a new issue