PRELIMINARY: gnu: wpa-supplicant: Install dbus service files.

This commit is contained in:
Mark H Weaver 2015-07-27 02:39:28 -04:00
parent fe1f2c80a1
commit 9243fdf779
1 changed files with 25 additions and 16 deletions

View File

@ -790,25 +790,34 @@ This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
(arguments (arguments
(substitute-keyword-arguments (package-arguments wpa-supplicant-light) (substitute-keyword-arguments (package-arguments wpa-supplicant-light)
((#:phases phases) ((#:phases phases)
`(alist-cons-after `(modify-phases ,phases
'configure 'configure-for-dbus (add-after
(lambda _ 'configure 'configure-for-dbus
(let ((port (open-file ".config" "al"))) (lambda _
(display " (let ((port (open-file ".config" "al")))
(display "
CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS=y
CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_NEW=y
CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port) CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
(close-port port)) (close-port port))
#t) #t))
(alist-cons-after (add-after
'install-man-pages 'install-dbus-conf 'install-man-pages 'install-dbus-conf
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(dir (string-append out "/etc/dbus-1/system.d"))) (conf-dir (string-append out "/etc/dbus-1/system.d"))
(mkdir-p dir) (service-dir
(copy-file "dbus/dbus-wpa_supplicant.conf" (string-append out "/share/dbus-1/system-services")))
(string-append dir "/wpa_supplicant.conf")))) (mkdir-p conf-dir)
,phases))))))) (copy-file "dbus/dbus-wpa_supplicant.conf"
(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 (define-public wakelan
(package (package