unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Tomáš Čech" <sleep_walker@gnu.org>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: wpa-supplicant: Install DBUS access configuration.
Date: Thu, 26 Mar 2015 16:12:32 +0100	[thread overview]
Message-ID: <1427382752-2535-1-git-send-email-sleep_walker@gnu.org> (raw)

* gnu/packages/admin.scm (wpa-supplicant): Install DBUS configuration file.
---
 gnu/packages/admin.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 95b0c9f..354a01a 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -783,7 +783,15 @@ This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
       CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
               (close-port port))
             #t)
-          ,phases))))))
+          (alist-cons-after
+           'install-man-pages 'install-dbus-conf
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out       (assoc-ref outputs "out"))
+                   (dbus-path (string-append out "/etc/dbus-1/system.d")))
+               (mkdir-p dbus-path)
+               (copy-file "dbus/dbus-wpa_supplicant.conf"
+                          (string-append dbus-path "/wpa_supplicant.conf"))))
+           ,phases)))))))
 
 (define-public wakelan
   (package
-- 
2.2.1

             reply	other threads:[~2015-03-26 15:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 15:12 Tomáš Čech [this message]
2015-03-26 15:26 ` [PATCH] gnu: wpa-supplicant: Install DBUS access configuration Tomáš Čech
2015-03-26 16:57 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427382752-2535-1-git-send-email-sleep_walker@gnu.org \
    --to=sleep_walker@gnu.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).