[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: gnu: openresolv: Wrap resolvconf.
From: |
guix-commits |
Subject: |
07/07: gnu: openresolv: Wrap resolvconf. |
Date: |
Mon, 22 Nov 2021 17:52:31 -0500 (EST) |
civodul pushed a commit to branch core-updates-frozen
in repository guix.
commit 12f68319e8d341b10ba88a11a4e61a0d44e175e6
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Sat Nov 20 23:48:17 2021 +0100
gnu: openresolv: Wrap resolvconf.
* gnu/packages/dns.scm (openresolv) [phases]: Wrap resolvconf to set PATH,
for
coreutils programs mkdir and rm.
[inputs]: Add coreutils-minimal.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/dns.scm | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index b289aa9..7de16a9 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -1417,7 +1417,21 @@ and TCP-capable recursive DNS server for finding domains
on the internet.")
#:configure-flags
(list (string-append "--sysconfdir=/etc"))
#:make-flags
- (list (string-append "SYSCONFDIR=/" (assoc-ref %outputs "out")
"/etc"))))
+ (list (string-append "SYSCONFDIR=/" (assoc-ref %outputs "out") "/etc"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'wrap-program
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (coreutils (assoc-ref inputs "coreutils-minimal")))
+ (substitute* (string-append out "/sbin/resolvconf")
+ (("RESOLVCONF=\"\\$0\"")
+ (format #f "\
+RESOLVCONF=\"$0\"
+PATH=~a/bin:$PATH"
+ coreutils)))))))))
+ (inputs
+ `(("coreutils-minimal" ,coreutils-minimal)))
(home-page "https://roy.marples.name/projects/openresolv/")
(synopsis "Resolvconf POSIX compliant implementation, a middleman for
resolv.conf")
(description "openresolv is an implementation of @command{resolvconf}, the
- branch core-updates-frozen updated (a24b83d -> 12f6831), guix-commits, 2021/11/22
- 01/07: gnu: meson: Extend the python path in the installed program., guix-commits, 2021/11/22
- 03/07: gnu: gupnp-igd: Set HOME before 'check' phase., guix-commits, 2021/11/22
- 02/07: gnu: meson-wrapped: Do not propagate Python., guix-commits, 2021/11/22
- 05/07: gnu: libgadu: Build with '-fcommon'., guix-commits, 2021/11/22
- 06/07: gnu: certdata2pem: Make public., guix-commits, 2021/11/22
- 04/07: gnu: libmateweather: Build with libsoup 2., guix-commits, 2021/11/22
- 07/07: gnu: openresolv: Wrap resolvconf.,
guix-commits <=