PRELIMINARY: gnu: wpa-supplicant: Install dbus service files.
This commit is contained in:
parent
fe1f2c80a1
commit
9243fdf779
|
@ -790,7 +790,8 @@ This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
|
|||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments wpa-supplicant-light)
|
||||
((#:phases phases)
|
||||
`(alist-cons-after
|
||||
`(modify-phases ,phases
|
||||
(add-after
|
||||
'configure 'configure-for-dbus
|
||||
(lambda _
|
||||
(let ((port (open-file ".config" "al")))
|
||||
|
@ -799,16 +800,24 @@ This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
|
|||
CONFIG_CTRL_IFACE_DBUS_NEW=y
|
||||
CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
|
||||
(close-port port))
|
||||
#t)
|
||||
(alist-cons-after
|
||||
#t))
|
||||
(add-after
|
||||
'install-man-pages 'install-dbus-conf
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(dir (string-append out "/etc/dbus-1/system.d")))
|
||||
(mkdir-p dir)
|
||||
(conf-dir (string-append out "/etc/dbus-1/system.d"))
|
||||
(service-dir
|
||||
(string-append out "/share/dbus-1/system-services")))
|
||||
(mkdir-p conf-dir)
|
||||
(copy-file "dbus/dbus-wpa_supplicant.conf"
|
||||
(string-append dir "/wpa_supplicant.conf"))))
|
||||
,phases)))))))
|
||||
(string-append conf-dir "/wpa_supplicant.conf"))
|
||||
(mkdir-p service-dir)
|
||||
(for-each (lambda (file)
|
||||
(copy-file
|
||||
file
|
||||
(string-append service-dir "/" (basename file))))
|
||||
(find-files "dbus" "\\.service$"))
|
||||
#t)))))))))
|
||||
|
||||
(define-public wakelan
|
||||
(package
|
||||
|
|
Loading…
Reference in New Issue