Skip to content
Snippets Groups Projects
Commit bd0eb667 authored by Ricardo Wurmus's avatar Ricardo Wurmus
Browse files

gnu: bind-utils: Generalize "build" and "install" phases.

* gnu/packages/dns.scm (bind-utils)[arguments]: Generalize "build" and
  "install" phases.
parent b2844d8f
No related branches found
No related tags found
No related merge requests found
...@@ -91,18 +91,24 @@ (define-public bind-utils ...@@ -91,18 +91,24 @@ (define-public bind-utils
(assoc-ref %build-inputs "mysql")) (assoc-ref %build-inputs "mysql"))
(string-append "--with-pkcs11=" (string-append "--with-pkcs11="
(assoc-ref %build-inputs "p11-kit"))) (assoc-ref %build-inputs "p11-kit")))
#:modules ((srfi srfi-1)
(srfi srfi-26)
,@%gnu-build-system-modules)
#:phases #:phases
(modify-phases %standard-phases (let ((libs '("dns" "isc" "bind9" "isccfg" "lwres"))
(replace 'build (bins '("dig")))
(lambda _ (modify-phases %standard-phases
(and (zero? (system* "make" "-C" "lib/dns")) (replace 'build
(zero? (system* "make" "-C" "lib/isc")) (lambda _
(zero? (system* "make" "-C" "lib/bind9")) (every (lambda (dir)
(zero? (system* "make" "-C" "lib/isccfg")) (zero? (system* "make" "-C" dir)))
(zero? (system* "make" "-C" "lib/lwres")) (append (map (cut string-append "lib/" <>) libs)
(zero? (system* "make" "-C" "bin/dig"))))) (map (cut string-append "bin/" <>) bins)))))
(replace 'install (replace 'install
(lambda _ (zero? (system* "make" "-C" "bin/dig" "install"))))))) (lambda _
(every (lambda (dir)
(zero? (system* "make" "-C" dir "install")))
(map (cut string-append "bin/" <>) bins))))))))
(home-page "https://www.isc.org/downloads/bind/") (home-page "https://www.isc.org/downloads/bind/")
(synopsis "Tools for querying nameservers") (synopsis "Tools for querying nameservers")
(description (description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment