gnu: knot: Update to 2.7.1.

* gnu/packages/dns.scm (knot): Update to 2.7.1.
[inputs]: Remove nettle, python-2, and python2-lmdb.
[arguments]: Remove ‘wrap-python-scripts’ phase for removed migration
scripts. Remove obsolete modules from, and add dnstap support for the
command-line tools to, #:configure-flags.
master
Tobias Geerinckx-Rice 2018-08-18 14:40:46 +02:00
parent ee1362fc07
commit 1b00e3bd2d
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 7 additions and 18 deletions

View File

@ -498,14 +498,14 @@ Extensions} (DNSSEC).")
(define-public knot (define-public knot
(package (package
(name "knot") (name "knot")
(version "2.6.7") (version "2.7.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://secure.nic.cz/files/knot-dns/" (uri (string-append "https://secure.nic.cz/files/knot-dns/"
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"0hr2m664ckjicv3pq2lk16m61pscknywxv2ydnrzfqf10m5h0ahw")) "108k6x3hjsnyf06pv5rlxqhynjbbz13pzwax1mqff3hgv85f4skx"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
@ -526,18 +526,14 @@ Extensions} (DNSSEC).")
("liburcu" ,liburcu) ("liburcu" ,liburcu)
("lmdb" ,lmdb) ("lmdb" ,lmdb)
("ncurses" ,ncurses) ("ncurses" ,ncurses)
("nettle" ,nettle) ("protobuf-c" ,protobuf-c)))
("protobuf-c" ,protobuf-c)
;; For pykeymgr, needed to migrate keys from versions <= 2.4.
("python" ,python-2)
("python-lmdb" ,python2-lmdb)))
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'configure 'disable-directory-pre-creation (add-before 'configure 'disable-directory-pre-creation
(lambda _ (lambda _
;; Don't install empty directories like /etc outside the store. ;; Don't install empty directories like /etc outside the store.
;; This is needed even when using make config_dir=... install.
(substitute* "src/Makefile.in" (("\\$\\(INSTALL\\) -d") "true")) (substitute* "src/Makefile.in" (("\\$\\(INSTALL\\) -d") "true"))
#t)) #t))
(replace 'install (replace 'install
@ -547,19 +543,12 @@ Extensions} (DNSSEC).")
(etc (string-append doc "/examples/etc"))) (etc (string-append doc "/examples/etc")))
(invoke "make" (invoke "make"
(string-append "config_dir=" etc) (string-append "config_dir=" etc)
"install")))) "install")))))
(add-after 'install 'wrap-python-scripts
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(path (getenv "PYTHONPATH")))
(wrap-program (string-append out "/sbin/pykeymgr")
`("PYTHONPATH" ":" prefix (,path))))
#t)))
#:configure-flags #:configure-flags
(list "--sysconfdir=/etc" (list "--sysconfdir=/etc"
"--localstatedir=/var" "--localstatedir=/var"
"--with-module-rosedb=yes" ; serve static records from a database "--enable-dnstap" ; let tools read/write capture files
"--with-module-dnstap=yes" ; allow detailed query logging "--with-module-dnstap=yes" ; detailed query capturing & logging
(string-append "--with-bash-completions=" (string-append "--with-bash-completions="
(assoc-ref %outputs "out") (assoc-ref %outputs "out")
"/etc/bash_completion.d")))) "/etc/bash_completion.d"))))