diff options
| author | Sergey Trofimov <sarg@sarg.org.ru> | 2025-05-09 09:36:47 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-06-02 11:20:23 +0200 |
| commit | a01acf2d499420c46ee20a9b94df329fcb702c05 (patch) | |
| tree | d3267d9d097ef1728818550ad1731e40cc96998f | |
| parent | a4c83536639842acf56cbd357b9c2cd3066852bc (diff) | |
services: dnsmasq: Install dbus config.
While DBUS service is enabled in dnsmasq, it does not work without installing
a config file to the system.
* gnu/packages/dns.scm (dnsmasq): Install dbus config.
* gnu/services/dns.scm (dnsmasq): Extend dbus-root-service-type.
Change-Id: I5187f65e1f2892eb10fb95e6f51955559f64dbef
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| -rw-r--r-- | gnu/packages/dns.scm | 8 | ||||
| -rw-r--r-- | gnu/services/dns.scm | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 27978217043..0fae953837d 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm | |||
| @@ -310,7 +310,13 @@ prompt the user with the option to go with insecure DNS only.") | |||
| 310 | (list dbus)) | 310 | (list dbus)) |
| 311 | (arguments | 311 | (arguments |
| 312 | `(#:phases | 312 | `(#:phases |
| 313 | (modify-phases %standard-phases (delete 'configure)) | 313 | (modify-phases %standard-phases |
| 314 | (delete 'configure) | ||
| 315 | (add-after 'install 'install-dbus | ||
| 316 | (lambda _ | ||
| 317 | (install-file "dbus/dnsmasq.conf" | ||
| 318 | (string-append %output "/etc/dbus-1/system.d"))))) | ||
| 319 | |||
| 314 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | 320 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) |
| 315 | (string-append "CC=" ,(cc-for-target)) | 321 | (string-append "CC=" ,(cc-for-target)) |
| 316 | (string-append "PKG_CONFIG=" ,(pkg-config-for-target)) | 322 | (string-append "PKG_CONFIG=" ,(pkg-config-for-target)) |
diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm index 9a9b78d877b..350e3da3614 100644 --- a/gnu/services/dns.scm +++ b/gnu/services/dns.scm | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | (define-module (gnu services dns) | 23 | (define-module (gnu services dns) |
| 24 | #:use-module (gnu services) | 24 | #:use-module (gnu services) |
| 25 | #:use-module (gnu services configuration) | 25 | #:use-module (gnu services configuration) |
| 26 | #:use-module (gnu services dbus) | ||
| 26 | #:use-module (gnu services shepherd) | 27 | #:use-module (gnu services shepherd) |
| 27 | #:use-module (gnu system shadow) | 28 | #:use-module (gnu system shadow) |
| 28 | #:use-module (gnu packages admin) | 29 | #:use-module (gnu packages admin) |
| @@ -993,6 +994,8 @@ log.") | |||
| 993 | (extensions | 994 | (extensions |
| 994 | (list (service-extension shepherd-root-service-type | 995 | (list (service-extension shepherd-root-service-type |
| 995 | (compose list dnsmasq-shepherd-service)) | 996 | (compose list dnsmasq-shepherd-service)) |
| 997 | (service-extension dbus-root-service-type | ||
| 998 | (compose list dnsmasq-configuration-package)) | ||
| 996 | (service-extension activation-service-type | 999 | (service-extension activation-service-type |
| 997 | dnsmasq-activation))) | 1000 | dnsmasq-activation))) |
| 998 | (default-value (dnsmasq-configuration)) | 1001 | (default-value (dnsmasq-configuration)) |
