mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
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>
This commit is contained in:
parent
30cc14f140
commit
12f68319e8
1 changed files with 15 additions and 1 deletions
|
@ -1417,7 +1417,21 @@ (define-public openresolv
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
(list (string-append "--sysconfdir=/etc"))
|
(list (string-append "--sysconfdir=/etc"))
|
||||||
#:make-flags
|
#: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/")
|
(home-page "https://roy.marples.name/projects/openresolv/")
|
||||||
(synopsis "Resolvconf POSIX compliant implementation, a middleman for resolv.conf")
|
(synopsis "Resolvconf POSIX compliant implementation, a middleman for resolv.conf")
|
||||||
(description "openresolv is an implementation of @command{resolvconf}, the
|
(description "openresolv is an implementation of @command{resolvconf}, the
|
||||||
|
|
Loading…
Reference in a new issue