[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/12: gnu: nsd: Use G-expressions.
From: |
guix-commits |
Subject: |
06/12: gnu: nsd: Use G-expressions. |
Date: |
Fri, 14 Jul 2023 19:11:33 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit eaac21173011badba2ec6ccd30c48a2cc28cd1c1
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 9 02:00:01 2023 +0200
gnu: nsd: Use G-expressions.
* gnu/packages/dns.scm (nsd)[arguments]:
Rewrite as G-expressions.
---
gnu/packages/dns.scm | 71 ++++++++++++++++++++++++++--------------------------
1 file changed, 36 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index f4811e631f..661c3e2497 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -523,41 +523,42 @@ the two.")
(base32 "057jxhhyggqhy4swwqlwf1lflc96cfqpm200l1gr3lls557a9b4g"))))
(build-system gnu-build-system)
(arguments
- `(#:configure-flags
- (list "--enable-pie" ; fully benefit from ASLR
- "--enable-ratelimit"
- "--enable-recvmmsg"
- "--enable-relro-now" ; protect GOT and .dtor areas
- "--disable-radix-tree"
- (string-append "--with-libevent="
- (assoc-ref %build-inputs "libevent"))
- (string-append "--with-ssl="
- (assoc-ref %build-inputs "openssl"))
- "--with-configdir=/etc"
- "--with-nsd_conf_file=/etc/nsd/nsd.conf"
- "--with-logfile=/var/log/nsd.log"
- "--with-pidfile=/var/db/nsd/nsd.pid"
- "--with-dbfile=/var/db/nsd/nsd.db"
- "--with-zonesdir=/etc/nsd"
- "--with-xfrdfile=/var/db/nsd/xfrd.state"
- "--with-zonelistfile=/var/db/nsd/zone.list")
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'patch-installation-paths
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (doc (string-append out "/share/doc/" ,name "-" ,version)))
- ;; The ‘make install’ target tries to create the parent
- ;; directories of run-time things like ‘pidfile’ above, and
- ;; useless empty directories like 'configdir'. Remove such
- ;; '$(INSTALL)' lines and install the example configuration file
- ;; in an appropriate location.
- (substitute* "Makefile.in"
- ((".*INSTALL.*\\$\\((config|pid|xfr|db)dir" command)
- (string-append "#" command))
- (("\\$\\(nsdconfigfile\\)\\.sample" file-name)
- (string-append doc "/examples/" file-name)))))))
- #:tests? #f)) ; no tests
+ (list
+ #:configure-flags
+ #~(list "--enable-pie" ; fully benefit from tasty ASLR
+ "--enable-ratelimit"
+ "--enable-recvmmsg"
+ "--enable-relro-now" ; protect GOT and .dtor areas
+ "--disable-radix-tree"
+ (string-append "--with-libevent="
+ #$(this-package-input "libevent"))
+ (string-append "--with-ssl="
+ #$(this-package-input "openssl"))
+ "--with-configdir=/etc"
+ "--with-nsd_conf_file=/etc/nsd/nsd.conf"
+ "--with-logfile=/var/log/nsd.log"
+ "--with-pidfile=/var/db/nsd/nsd.pid"
+ "--with-dbfile=/var/db/nsd/nsd.db"
+ "--with-zonesdir=/etc/nsd"
+ "--with-xfrdfile=/var/db/nsd/xfrd.state"
+ "--with-zonelistfile=/var/db/nsd/zone.list")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'patch-installation-paths
+ (lambda _
+ (let ((doc (string-append #$output "/share/doc/"
+ #$name "-" #$version)))
+ ;; The ‘make install’ target tries to create the parent
+ ;; directories of run-time things like ‘pidfile’ above, and
+ ;; useless empty directories like 'configdir'. Remove such
+ ;; '$(INSTALL)' lines and install the example configuration
file
+ ;; in an appropriate location.
+ (substitute* "Makefile.in"
+ ((".*INSTALL.*\\$\\((config|pid|xfr|db)dir" command)
+ (string-append "#" command))
+ (("\\$\\(nsdconfigfile\\)\\.sample" file-name)
+ (string-append doc "/examples/" file-name)))))))
+ #:tests? #f)) ; no tests
(inputs
(list libevent openssl))
(home-page "https://www.nlnetlabs.nl/projects/nsd/about/")
- branch master updated (917a299831 -> de088be221), guix-commits, 2023/07/14
- 02/12: download: Remove stale Yandex GNOME mirror., guix-commits, 2023/07/14
- 01/12: download: Remove broken X.org mirrors., guix-commits, 2023/07/14
- 05/12: gnu: nsd: Update to 4.7.0., guix-commits, 2023/07/14
- 07/12: gnu: knot: Update to 3.2.8., guix-commits, 2023/07/14
- 08/12: gnu: knot: Use G-expressions., guix-commits, 2023/07/14
- 04/12: gnu: btor2tools: Use HTTPS home page., guix-commits, 2023/07/14
- 06/12: gnu: nsd: Use G-expressions.,
guix-commits <=
- 10/12: gnu: blasr-libcpp, blasr: Use Web Archived home pages., guix-commits, 2023/07/14
- 12/12: gnu: brdf-explorer: Mark up description., guix-commits, 2023/07/14
- 03/12: gnu: boolector: Use HTTPS home page., guix-commits, 2023/07/14
- 09/12: gnu: yadifa: Update to 2.6.4., guix-commits, 2023/07/14
- 11/12: gnu: brdf-explorer: Use Web Archived home page., guix-commits, 2023/07/14