gnu: r-scran: Update to 1.8.2.
[jackhill/guix/guix.git] / gnu / packages / dns.scm
CommitLineData
dd2efd3d
TUBK
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
d912db5b 3;;; Copyright © 2016 Mark H Weaver <mhw@netris.org>
b2844d8f 4;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
76dd04be 5;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
be86b7ad 6;;; Copyright © 2016 John Darrington <jmd@gnu.org>
4a78fd46 7;;; Copyright © 2016 Nils Gillmann <ng0@n0.is>
02482f5d 8;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
afe62a8b 9;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
ecc7aa89 10;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
7e61a16c 11;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
dd2efd3d
TUBK
12;;;
13;;; This file is part of GNU Guix.
14;;;
15;;; GNU Guix is free software; you can redistribute it and/or modify it
16;;; under the terms of the GNU General Public License as published by
17;;; the Free Software Foundation; either version 3 of the License, or (at
18;;; your option) any later version.
19;;;
20;;; GNU Guix is distributed in the hope that it will be useful, but
21;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23;;; GNU General Public License for more details.
24;;;
25;;; You should have received a copy of the GNU General Public License
26;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27
36fb36b5 28(define-module (gnu packages dns)
f9cdf1c1 29 #:use-module (gnu packages admin)
71f048c6 30 #:use-module (gnu packages autotools)
6cf626e8 31 #:use-module (gnu packages base)
1e744399 32 #:use-module (gnu packages databases)
afe62a8b 33 #:use-module (gnu packages crypto)
f9cdf1c1 34 #:use-module (gnu packages datastructures)
7e61a16c 35 #:use-module (gnu packages flex)
cb6d322a 36 #:use-module (gnu packages glib)
71f048c6 37 #:use-module (gnu packages groff)
f9cdf1c1
TGR
38 #:use-module (gnu packages groff)
39 #:use-module (gnu packages libedit)
afe62a8b 40 #:use-module (gnu packages libevent)
f9cdf1c1 41 #:use-module (gnu packages libidn)
1e744399 42 #:use-module (gnu packages linux)
f9cdf1c1
TGR
43 #:use-module (gnu packages ncurses)
44 #:use-module (gnu packages nettle)
1e744399 45 #:use-module (gnu packages perl)
71f048c6 46 #:use-module (gnu packages pkg-config)
7e61a16c
GG
47 #:use-module (gnu packages protobuf)
48 #:use-module (gnu packages python)
49 #:use-module (gnu packages swig)
a7fd7b68 50 #:use-module (gnu packages tls)
f9cdf1c1 51 #:use-module (gnu packages web)
1e744399
52 #:use-module (gnu packages xml)
53 #:use-module ((guix licenses) #:prefix license:)
dd2efd3d
TUBK
54 #:use-module (guix packages)
55 #:use-module (guix download)
7e61a16c 56 #:use-module (guix utils)
dd2efd3d
TUBK
57 #:use-module (guix build-system gnu))
58
59(define-public dnsmasq
60 (package
61 (name "dnsmasq")
4e6c51d4 62 (version "2.79")
dd2efd3d
TUBK
63 (source (origin
64 (method url-fetch)
65 (uri (string-append
66 "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-"
67 version ".tar.xz"))
68 (sha256
69 (base32
4e6c51d4 70 "07w6cw706yyahwvbvslhkrbjf2ynv567cgy9pal8bz8lrbsp9bbq"))))
dd2efd3d 71 (build-system gnu-build-system)
cb6d322a
CB
72 (native-inputs
73 `(("pkg-config" ,pkg-config)))
74 (inputs
75 `(("dbus" ,dbus)))
dd2efd3d
TUBK
76 (arguments
77 `(#:phases
dc1d3cde 78 (modify-phases %standard-phases (delete 'configure))
dd2efd3d 79 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
cb6d322a
CB
80 "CC=gcc"
81 "COPTS=\"-DHAVE_DBUS\"")
4e6c51d4 82 #:tests? #f)) ; no ‘check’ target
dd2efd3d
TUBK
83 (home-page "http://www.thekelleys.org.uk/dnsmasq/doc.html")
84 (synopsis "Small caching DNS proxy and DHCP/TFTP server")
85 (description
c657716e
TGR
86 "Dnsmasq is a light-weight DNS forwarder and DHCP server. It is designed
87to provide DNS and, optionally, DHCP to a small network. It can serve the
dd2efd3d
TUBK
88names of local machines which are not in the global DNS. The DHCP server
89integrates with the DNS server and allows machines with DHCP-allocated
c657716e 90addresses to appear in the DNS with names configured either on each host or in
dd2efd3d
TUBK
91a central configuration file. Dnsmasq supports static and dynamic DHCP leases
92and BOOTP/TFTP for network booting of diskless machines.")
93 ;; Source files only say GPL2 and GPL3 are allowed.
1e744399
94 (license (list license:gpl2 license:gpl3))))
95
a0683006
LC
96;; 'bind' is the name of a built-in Guile procedure, which is why we choose a
97;; different name here.
98(define-public isc-bind
1e744399 99 (package
be86b7ad 100 (name "bind")
27135cf4 101 (version "9.12.1-P2")
1e744399
102 (source (origin
103 (method url-fetch)
be86b7ad
JD
104 (uri (string-append
105 "ftp://ftp.isc.org/isc/bind9/" version "/" name "-"
106 version ".tar.gz"))
1e744399
107 (sha256
108 (base32
27135cf4 109 "0a9dvyg1dk7vpqn9gz7p5jas3bz7z22bjd66b98g1qk16i2w7rqd"))))
1e744399 110 (build-system gnu-build-system)
be86b7ad 111 (outputs `("out" "utils"))
1e744399
112 (inputs
113 ;; it would be nice to add GeoIP and gssapi once there is package
114 `(("libcap" ,libcap)
115 ("libxml2" ,libxml2)
1e744399 116 ("openssl" ,openssl)
1e744399 117 ("p11-kit" ,p11-kit)))
be86b7ad
JD
118 (native-inputs `(("perl" ,perl)
119 ("net-tools" ,net-tools)))
1e744399 120 (arguments
be86b7ad 121 `(#:configure-flags
1e744399
122 (list (string-append "--with-openssl="
123 (assoc-ref %build-inputs "openssl"))
1e744399
124 (string-append "--with-pkcs11="
125 (assoc-ref %build-inputs "p11-kit")))
126 #:phases
be86b7ad
JD
127 (modify-phases %standard-phases
128 (add-after 'strip 'move-to-utils
129 (lambda _
130 (for-each
131 (lambda (file)
132 (let ((target (string-append (assoc-ref %outputs "utils") file))
133 (src (string-append (assoc-ref %outputs "out") file)))
134 (mkdir-p (dirname target))
135 (link src target)
136 (delete-file src)))
137 '("/bin/dig" "/bin/delv" "/bin/nslookup" "/bin/host" "/bin/nsupdate"
138 "/share/man/man1/dig.1"
139 "/share/man/man1/host.1"
140 "/share/man/man1/nslookup.1"
141 "/share/man/man1/nsupdate.1"))))
142 ;; When and if guix provides user namespaces for the build process,
143 ;; then the following can be uncommented and the subsequent "force-test"
144 ;; will not be necessary.
145 ;;
146 ;; (add-before 'check 'set-up-loopback
147 ;; (lambda _
148 ;; (system "bin/tests/system/ifconfig.sh up")))
149 (replace 'check
150 (lambda _
b9d02005
TGR
151 (invoke "make" "force-test")
152 #t)))))
be86b7ad 153 (synopsis "An implementation of the Domain Name System")
366efcb2
TGR
154 (description "BIND is an implementation of the @dfn{Domain Name System}
155(DNS) protocols for the Internet. It is a reference implementation of those
be86b7ad
JD
156protocols, but it is also production-grade software, suitable for use in
157high-volume and high-reliability applications. The name BIND stands for
158\"Berkeley Internet Name Domain\", because the software originated in the early
1591980s at the University of California at Berkeley.")
160 (home-page "https://www.isc.org/downloads/bind")
ecc7aa89 161 (license (list license:mpl2.0))))
be86b7ad 162
d24727c0
MB
163(define-public dnscrypt-proxy
164 (package
165 (name "dnscrypt-proxy")
83a89531 166 (version "1.9.5")
d24727c0
MB
167 (source (origin
168 (method url-fetch)
169 (uri (string-append
170 "https://download.dnscrypt.org/dnscrypt-proxy/"
171 "dnscrypt-proxy-" version ".tar.bz2"))
172 (sha256
173 (base32
83a89531 174 "1dhvklr4dg2vlw108n11xbamacaryyg3dbrg629b76lp7685p7z8"))
d24727c0
MB
175 (modules '((guix build utils)))
176 (snippet
177 ;; Delete bundled libltdl. XXX: This package also bundles
178 ;; a modified libevent that cannot currently be removed.
179 '(delete-file-recursively "libltdl"))))
180 (build-system gnu-build-system)
181 (arguments
182 `(#:phases
183 (modify-phases %standard-phases
d10092b8 184 (add-after 'unpack 'autoreconf
d24727c0
MB
185 (lambda _
186 ;; Re-generate build files due to unbundling ltdl.
187 ;; TODO: Prevent generating new libltdl and building it.
188 ;; The system version is still favored and referenced.
189 (zero? (system* "autoreconf" "-vif")))))))
190 (native-inputs
191 `(("pkg-config" ,pkg-config)
192 ("automake" ,automake)
193 ("autoconf" ,autoconf)
194 ("libtool" ,libtool)))
195 (inputs
196 `(("libltdl" ,libltdl)
197 ("libsodium" ,libsodium)))
198 (home-page "https://www.dnscrypt.org/")
199 (synopsis "Securely send DNS requests to a remote server")
200 (description
201 "@command{dnscrypt-proxy} is a tool for securing communications
202between a client and a DNS resolver. It verifies that responses you get
203from a DNS provider was actually sent by that provider, and haven't been
204tampered with. For optimal performance it is recommended to use this as
205a forwarder for a caching DNS resolver such as @command{dnsmasq}, but it
206can also be used as a normal DNS \"server\". A list of public dnscrypt
207servers is included, and an up-to-date version is available at
208@url{https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-resolvers.csv}.")
209 (license (list license:isc
210 ;; Libevent and src/ext/queue.h is 3-clause BSD.
211 license:bsd-3))))
212
afe62a8b
MB
213(define-public dnscrypt-wrapper
214 (package
215 (name "dnscrypt-wrapper")
216 (version "0.2.2")
217 (source (origin
218 (method url-fetch)
219 (uri (string-append
220 "https://github.com/cofyc/dnscrypt-wrapper/releases"
221 "/download/v" version "/" name "-v" version ".tar.bz2"))
222 (sha256
223 (base32
224 "1vhg4g0r687f51wcdn7z9w1hxapazx6vyh5rsr8wa48sljzd583g"))))
225 (build-system gnu-build-system)
226 (arguments
227 `(#:make-flags '("CC=gcc")
228 ;; TODO: Tests require ruby-cucumber and ruby-aruba.
229 #:tests? #f
230 #:phases
231 (modify-phases %standard-phases
d10092b8 232 (add-after 'unpack 'create-configure
afe62a8b
MB
233 (lambda _
234 (zero? (system* "make" "configure")))))))
235 (native-inputs
236 `(("autoconf" ,autoconf)))
237 (inputs
238 `(("libevent" ,libevent)
239 ("libsodium" ,libsodium)))
240 (home-page "https://github.com/Cofyc/dnscrypt-wrapper")
241 (synopsis "Server-side dnscrypt proxy")
242 (description
243 "@command{dnscrypt-wrapper} is a tool to expose a name server over
244the @code{dnscrypt} protocol. It can be used as an endpoint for the
245@command{dnscrypt-proxy} client to securely tunnel DNS requests between
246the two.")
247 (license (list license:isc
248 ;; Bundled argparse is MIT. TODO: package and unbundle.
249 license:expat
250 ;; dns-protocol.h and rfc1035.{c,h} is gpl2 or gpl3 (either).
251 license:gpl2
252 license:gpl3))))
253
71f048c6 254(define-public libasr
255 (package
256 (name "libasr")
257 (version "201602131606")
258 (source
259 (origin
260 (method url-fetch)
261 (uri (string-append "https://www.opensmtpd.org/archives/"
262 name "-" version ".tar.gz"))
263 (sha256
264 (base32
265 "18kdmbjsxrfai16d66qslp48b1zf7gr8him2jj5dcqgbsl44ls75"))))
266 (build-system gnu-build-system)
267 (native-inputs
268 `(("autoconf" ,autoconf)
269 ("automake" ,automake)
270 ("pkg-config" ,pkg-config)
271 ("groff" ,groff)))
272 (home-page "https://www.opensmtpd.org")
273 (synopsis "Asynchronous resolver library by the OpenBSD project")
274 (description
275 "libasr is a free, simple and portable asynchronous resolver library.
276It allows to run DNS queries and perform hostname resolutions in a fully
277asynchronous fashion.")
278 (license (list license:isc
279 license:bsd-2 ; last part of getrrsetbyname_async.c
280 license:bsd-3
281 (license:non-copyleft "file://LICENSE") ; includes.h
282 license:openssl))))
6cf626e8 283
7e61a16c
GG
284(define-public unbound
285 (package
286 (name "unbound")
28f6f229 287 (version "1.6.8")
7e61a16c
GG
288 (source
289 (origin
290 (method url-fetch)
291 (uri (string-append "https://www.unbound.net/downloads/unbound-"
292 version ".tar.gz"))
293 (sha256
294 (base32
28f6f229 295 "0jfxhh4gc5amhndikskz1s7da27ycn442j3l20bm992n7zijid73"))))
7e61a16c
GG
296 (build-system gnu-build-system)
297 (outputs '("out" "python"))
298 (native-inputs
299 `(("flex" ,flex)
300 ("swig" ,swig)))
301 (inputs
302 `(("expat" ,expat)
303 ("libevent" ,libevent)
304 ("protobuf" ,protobuf)
305 ("python" ,python-3)
306 ("python-wrapper" ,python-wrapper)
307 ("openssl" ,openssl)))
308 (arguments
309 `(#:configure-flags
a431929d
LC
310 (list "--disable-static" ;save space and non-determinism in libunbound.a
311 (string-append
7e61a16c
GG
312 "--with-ssl=" (assoc-ref %build-inputs "openssl"))
313 (string-append
314 "--with-libevent=" (assoc-ref %build-inputs "libevent"))
315 (string-append
316 "--with-libexpat=" (assoc-ref %build-inputs "expat"))
317 "--with-pythonmodule" "--with-pyunbound")
318 #:phases
319 (modify-phases %standard-phases
320 (add-after 'configure 'fix-python-site-package-path
321 ;; Move python modules into their own output.
322 (lambda* (#:key outputs #:allow-other-keys)
323 (let ((pyout (assoc-ref outputs "python"))
324 (ver ,(version-major+minor (package-version python))))
325 (substitute* "Makefile"
326 (("^PYTHON_SITE_PKG=.*$")
327 (string-append
328 "PYTHON_SITE_PKG="
329 pyout "/lib/python-" ver "/site-packages\n"))))
330 #t))
331 (add-before 'check 'fix-missing-nss-for-tests
332 ;; Unfortunately, the package's unittests involve some checks
333 ;; looking up protocols and services which are not provided
334 ;; by the minimalistic build environment, in particular,
335 ;; /etc/protocols and /etc/services are missing.
336 ;; Also, after plain substitution of protocol and service names
337 ;; in the test data, the tests still fail because the
338 ;; corresponding Resource Records have been signed by
339 ;; RRSIG records.
340 ;; The following LD_PRELOAD library overwrites the glibc
341 ;; functions ‘get{proto,serv}byname’, ‘getprotobynumber’ and
342 ;; ‘getservbyport’ providing the few records required for the
343 ;; unit tests to pass.
344 (lambda* (#:key inputs outputs #:allow-other-keys)
345 (let* ((source (assoc-ref %build-inputs "source"))
346 (gcc (assoc-ref %build-inputs "gcc")))
347 (call-with-output-file "/tmp/nss_preload.c"
348 (lambda (port)
349 (display "#include <stdlib.h>
350#include <string.h>
351#include <strings.h>
352
353#include <netdb.h>
354
355struct protoent *getprotobyname(const char *name) {
356 struct protoent *p = malloc(sizeof(struct protoent));
357 p->p_aliases = malloc(sizeof(char*));
358 if (strcasecmp(name, \"tcp\") == 0) {
359 p->p_name = \"tcp\";
360 p->p_proto = 6;
361 p->p_aliases[0] = \"TCP\";
362 } else if (strcasecmp(name, \"udp\") == 0) {
363 p->p_name = \"udp\";
364 p->p_proto = 17;
365 p->p_aliases[0] = \"UDP\";
366 } else
367 p = NULL;
368 return p;
369}
370
371struct protoent *getprotobynumber(int proto) {
372 struct protoent *p = malloc(sizeof(struct protoent));
373 p->p_aliases = malloc(sizeof(char*));
374 switch(proto) {
375 case 6:
376 p->p_name = \"tcp\";
377 p->p_proto = 6;
378 p->p_aliases[0] = \"TCP\";
379 break;
380 case 17:
381 p->p_name = \"udp\";
382 p->p_proto = 17;
383 p->p_aliases[0] = \"UDP\";
384 break;
385 default:
386 p = NULL;
387 break;
388 }
389 return p;
390}
391
392struct servent *getservbyname(const char *name, const char *proto) {
393 struct servent *s = malloc(sizeof(struct servent));
394 char* buf = malloc((strlen(proto)+1)*sizeof(char));
395 strcpy(buf, proto);
396 s->s_aliases = malloc(sizeof(char*));
397 s->s_aliases[0] = NULL;
398 if (strcasecmp(name, \"domain\") == 0) {
399 s->s_name = \"domain\";
400 s->s_port = htons(53);
401 s->s_proto = buf;
402 } else
403 s = NULL;
404 return s;
405}
406
407struct servent *getservbyport(int port, const char *proto) {
408 char buf[32];
409 struct servent *s = malloc(sizeof(struct servent));
410 strcpy(buf, proto);
411 s->s_aliases = malloc(sizeof(char*));
412 s->s_aliases[0] = NULL;
413 switch(port) {
414 case 53:
415 s->s_name = \"domain\";
416 s->s_port = 53;
417 s->s_proto = \"udp\";
418 break;
419 default:
420 s = NULL;
421 break;
422 }
423 return s;
424}" port)))
425 (system* (string-append gcc "/bin/gcc")
426 "-shared" "-fPIC" "-o" "/tmp/nss_preload.so"
427 "/tmp/nss_preload.c")
428 ;; The preload library only affects the unittests.
429 (substitute* "Makefile"
430 (("./unittest")
431 "LD_PRELOAD=/tmp/nss_preload.so ./unittest")))
432 #t)))))
433 (home-page "https://www.unbound.net")
434 (synopsis "Validating, recursive, and caching DNS resolver")
435 (description
436 "Unbound is a recursive-only caching DNS server which can perform DNSSEC
437validation of results. It implements only a minimal amount of authoritative
438service to prevent leakage to the root nameservers: forward lookups for
439localhost, reverse for @code{127.0.0.1} and @code{::1}, and NXDOMAIN for zones
440served by AS112. Stub and forward zones are supported.")
441 (license license:bsd-4)))
442
6cf626e8
TGR
443(define-public yadifa
444 (package
445 (name "yadifa")
f2ba6fc8 446 (version "2.3.8")
6cf626e8 447 (source
f2ba6fc8 448 (let ((build "7713"))
8769d482
TGR
449 (origin
450 (method url-fetch)
451 (uri
452 (string-append "http://cdn.yadifa.eu/sites/default/files/releases/"
e0d87f8e 453 name "-" version "-" build ".tar.gz"))
8769d482 454 (sha256
f2ba6fc8 455 (base32 "15xhzg4crjcxascwpz6y8qpqcgypzv2p9bspdskp4nx1x1y4316c")))))
6cf626e8
TGR
456 (build-system gnu-build-system)
457 (native-inputs
458 `(("which" ,which)))
459 (inputs
460 `(("openssl" ,openssl)))
461 (arguments
57b05e4a
TGR
462 `(#:phases
463 (modify-phases %standard-phases
464 (add-before 'configure 'omit-example-configurations
465 (lambda _
466 (substitute* "Makefile.in"
467 ((" (etc|var)") ""))
468 #t)))
469 #:configure-flags
470 (list "--sysconfdir=/etc"
471 "--localstatedir=/var"
472 "--disable-build-timestamp" ; build reproducibly
473 "--enable-shared"
474 "--disable-static"
475 "--enable-acl"
476 "--enable-caching"
477 "--enable-ctrl" ; enable remote control
478 "--enable-nsec"
479 "--enable-nsec3"
480 "--enable-tsig")))
6cf626e8
TGR
481 (home-page "http://www.yadifa.eu/")
482 (synopsis "Authoritative DNS name server")
366efcb2
TGR
483 (description "YADIFA is an authoritative name server for the @dfn{Domain
484Name System} (DNS). It aims for both higher performance and a smaller memory
6cf626e8 485footprint than other implementations, while remaining fully RFC-compliant.
366efcb2
TGR
486YADIFA supports dynamic record updates and the @dfn{Domain Name System Security
487Extensions} (DNSSEC).")
6cf626e8 488 (license license:bsd-3)))
f9cdf1c1
TGR
489
490(define-public knot
491 (package
492 (name "knot")
e9ae8466 493 (version "2.6.7")
f9cdf1c1
TGR
494 (source (origin
495 (method url-fetch)
496 (uri (string-append "https://secure.nic.cz/files/knot-dns/"
497 name "-" version ".tar.xz"))
498 (sha256
499 (base32
e9ae8466 500 "0hr2m664ckjicv3pq2lk16m61pscknywxv2ydnrzfqf10m5h0ahw"))
f9cdf1c1
TGR
501 (modules '((guix build utils)))
502 (snippet
503 '(begin
023ef013 504 ;; Delete bundled libraries.
f9cdf1c1 505 (with-directory-excursion "src/contrib"
023ef013 506 (delete-file-recursively "lmdb"))
2d431b01 507 #t))))
f9cdf1c1
TGR
508 (build-system gnu-build-system)
509 (native-inputs
510 `(("pkg-config" ,pkg-config)))
511 (inputs
023ef013
TGR
512 `(("fstrm" ,fstrm)
513 ("gnutls" ,gnutls)
f9cdf1c1
TGR
514 ("jansson" ,jansson)
515 ("libcap-ng" ,libcap-ng)
516 ("libedit" ,libedit)
517 ("libidn" ,libidn)
518 ("liburcu" ,liburcu)
519 ("lmdb" ,lmdb)
520 ("ncurses" ,ncurses)
c7d0444a 521 ("nettle" ,nettle)
023ef013 522 ("protobuf-c" ,protobuf-c)
c7d0444a
TGR
523
524 ;; For ‘pykeymgr’, needed to migrate keys from versions <= 2.4.
525 ("python" ,python-2)
526 ("python-lmdb" ,python2-lmdb)))
f9cdf1c1
TGR
527 (arguments
528 `(#:phases
529 (modify-phases %standard-phases
530 (add-before 'configure 'disable-directory-pre-creation
531 (lambda _
532 ;; Don't install empty directories like ‘/etc’ outside the store.
2d431b01
TGR
533 (substitute* "src/Makefile.in" (("\\$\\(INSTALL\\) -d") "true"))
534 #t))
f9cdf1c1
TGR
535 (replace 'install
536 (lambda* (#:key outputs #:allow-other-keys)
537 (let* ((out (assoc-ref outputs "out"))
538 (doc (string-append out "/share/doc/knot"))
539 (etc (string-append doc "/examples/etc")))
540 (zero?
541 (system* "make"
542 (string-append "config_dir=" etc)
c7d0444a
TGR
543 "install")))))
544 (add-after 'install 'wrap-python-scripts
545 (lambda* (#:key outputs #:allow-other-keys)
546 (let* ((out (assoc-ref outputs "out"))
547 (path (getenv "PYTHONPATH")))
548 (wrap-program (string-append out "/sbin/pykeymgr")
549 `("PYTHONPATH" ":" prefix (,path))))
550 #t)))
f9cdf1c1
TGR
551 #:configure-flags
552 (list "--sysconfdir=/etc"
553 "--localstatedir=/var"
c7d0444a 554 "--with-module-rosedb=yes" ; serve static records from a database
023ef013 555 "--with-module-dnstap=yes" ; allow detailed query logging
f9cdf1c1
TGR
556 (string-append "--with-bash-completions="
557 (assoc-ref %outputs "out")
558 "/etc/bash_completion.d"))))
559 (home-page "https://www.knot-dns.cz/")
560 (synopsis "Authoritative DNS name server")
d1e4ad1b 561 (description "Knot DNS is an authoritative name server for the @dfn{Domain
f9cdf1c1
TGR
562Name System} (DNS), designed to meet the needs of root and @dfn{top-level
563domain} (TLD) name servers. It is implemented as a threaded daemon and uses a
564number of programming techniques to improve speed. For example, the responder
565is completely lock-free, resulting in a very high response rate. Other features
566include automatic @dfn{DNS Security Extensions} (DNSSEC) signing, dynamic record
567synthesis, and on-the-fly re-configuration.")
0056f4cc
TGR
568 (license
569 (list
570 ;; src/contrib/{hat-trie,murmurhash3,openbsd},
571 ;; src/dnssec/contrib/vpool.[ch], and parts of libtap/ are ‘MIT’ (expat).
572 license:expat
573 license:lgpl2.0+ ; parts of scr/contrib/ucw
574 license:public-domain ; src/contrib/fnv and possibly murmurhash3
575 license:gpl3+)))) ; everything else