diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-08-17 14:27:45 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-08-24 21:51:23 +0900 |
| commit | c19673b3a6bc7d2413f0cdba62a2cc8314a646ab (patch) | |
| tree | b1e0941c822afdc0e4337f96f8cee22300da3917 | |
| parent | 89364c16441643bd0295a82988faa247df82c275 (diff) | |
gnu: dhcpcd: Add openresolv's 'resolveconf' PATH wrapper.
[#:phases] {wrap-hooks} <PATH>: Add resolvconf's bin directory.
| -rw-r--r-- | gnu/packages/admin.scm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 30fc1542c8e..c961eba8a41 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm | |||
| @@ -1962,8 +1962,8 @@ maintenance releases.") | |||
| 1962 | (commit (string-append "v" version)))) | 1962 | (commit (string-append "v" version)))) |
| 1963 | (file-name (git-file-name name version)) | 1963 | (file-name (git-file-name name version)) |
| 1964 | (sha256 | 1964 | (sha256 |
| 1965 | (base32 "1z5rpi0n2vwhkh3c4d0dxwp38fl18br58jpy7kzh97gzg3gpk5dl")))) | 1965 | (base32 "1mdi4pm44pha47ivfn2gsf9w9rdpyw4q19x4myvkbifjg6lf7r4i")))) |
| 1966 | (inputs (list bash-minimal coreutils-minimal eudev sed)) | 1966 | (inputs (list bash-minimal coreutils-minimal eudev openresolv sed)) |
| 1967 | (build-system gnu-build-system) | 1967 | (build-system gnu-build-system) |
| 1968 | (arguments | 1968 | (arguments |
| 1969 | (list | 1969 | (list |
| @@ -1989,13 +1989,18 @@ maintenance releases.") | |||
| 1989 | (setenv "HOST_SH" (which "sh")))) | 1989 | (setenv "HOST_SH" (which "sh")))) |
| 1990 | (add-after 'install 'wrap-hooks | 1990 | (add-after 'install 'wrap-hooks |
| 1991 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1991 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 1992 | (let* ((sed (search-input-file inputs "/bin/sed")) | 1992 | ;; It's important that the 'resolvconf' binary used be that of |
| 1993 | (rm (search-input-file inputs "/bin/rm"))) | 1993 | ;; openresolv, which is the one responsible for maintaining |
| 1994 | ;; /etc/resolv.conf in Guix. | ||
| 1995 | (let* ((resolvconf (search-input-file inputs "sbin/resolvconf")) | ||
| 1996 | (rm (search-input-file inputs "bin/rm")) | ||
| 1997 | (sed (search-input-file inputs "bin/sed"))) | ||
| 1994 | (wrap-program (string-append | 1998 | (wrap-program (string-append |
| 1995 | #$output "/libexec/dhcpcd-run-hooks") | 1999 | #$output "/libexec/dhcpcd-run-hooks") |
| 1996 | `("PATH" ":" suffix | 2000 | (list "PATH" 'suffix |
| 1997 | (,(dirname sed) | 2001 | (list (dirname resolvconf) |
| 1998 | ,(dirname rm)))))))))) | 2002 | (dirname rm) |
| 2003 | (dirname sed)))))))))) | ||
| 1999 | (home-page "https://roy.marples.name/projects/dhcpcd") | 2004 | (home-page "https://roy.marples.name/projects/dhcpcd") |
| 2000 | (synopsis "Feature-rich DHCP and DHCPv6 client") | 2005 | (synopsis "Feature-rich DHCP and DHCPv6 client") |
| 2001 | (description | 2006 | (description |
