unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] Connman
Date: Thu, 5 May 2016 09:31:37 +0300	[thread overview]
Message-ID: <20160505063137.GA31911@debian-netbook> (raw)
In-Reply-To: <87fuu99wgq.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 3939 bytes --]

On Tue, Apr 26, 2016 at 12:04:21AM +0200, Ludovic Courtès wrote:
> Efraim Flashner <efraim@flashner.co.il> skribis:
> 
> > I think I've finally gotten connman working, with a service. I haven't
> > added an entry to doc/guix.texi yet, and for some reason when I started
> > the patch I stuck it in wicd.scm. I've also attached the OS config I
> > used while testing.
> 
> Neat!
> 
> > From efe1f20ecb23fc4ba2da647152c9f2a2e96293be Mon Sep 17 00:00:00 2001
> > From: Efraim Flashner <efraim@flashner.co.il>
> > Date: Thu, 19 Apr 2016 17:25:41 +0200
> > Subject: [PATCH 1/2] gnu: Add connman.
> >
> > * gnu/packages/wicd.scm (connman): New variable.
> 
> I think it should go in some other file, possibly connman.scm—whatever
> you deem appropriate, but probably not wicd.scm.  :-)

agreed :)

> 
> > +(define-public connman
> > +  (package
> > +    (name "connman")
> > +    (version "1.32")
> > +    (source
> > +      (origin
> > +        (method url-fetch)
> > +        (uri (string-append "https://www.kernel.org/pub/linux/network/connman/"
> 
> Use mirror://kernel.org/…
> 
> > +             (string-append
> > +              "--with-dbusconfdir=" (assoc-ref %outputs "out") "/etc")
> > +             (string-append
> > +              "--with-dbusdatadir=" (assoc-ref %outputs "out") "/share"))))
> 
> I suppose this populates $out/etc/dbus-1 and $out/share/dbus-1, which is
> where our D-Bus service looks for its XML thingies?

it turns out it is

> 
> > +    (synopsis "Connection Manager daemon")
> 
> “Connection management daemon”
> 
> > +    (description "The Linux Connection Manager project provides a daemon for
> 
> s/The Linux Connection Manager project/Connman/
> 
> > +managing Internet connections within embedded devices running the Linux
> > +operating system.
> 
> s/within … system//
> 
> > +    (license gpl2)))
> 
> v2-only?

I thought this was strange and I took another look at the website and
the code and it turns out it is gpl2 only.

> 
> > From 2e99131f5b455ceb7c70c33eb4c89134caa755bb Mon Sep 17 00:00:00 2001
> > From: Efraim Flashner <efraim@flashner.co.il>
> > Date: Thu, 19 Apr 2016 22:10:11 +0200
> > Subject: [PATCH 2/2] services: Add connman-service.
> >
> > * gnu/services/networking.scm (connman-service): New procedure.
> > (connman-service-type, %connman-activation): New variables.
> > (connman-shepherd-service): New procedure.
> 
> [...]
> 
> > +(define %connman-activation
> > +  ;; Activation gexp for Connman.
> > +  #~(begin
> > +      (use-modules (guix build utils))
> > +      (mkdir-p "/etc/connman/")
> 
> Is an empty /etc/connman really needed?

It turns out no. I left /var/lib/connman-vpn because although I didn't
write a service for the vpn, the directory would be needed.

> 
> > +(define* (connman-service #:key (connman connman))
> > +  "Return a service that runs Connman, a network connection manager.  This
> 
> s/Connman/@uref{http://…, Connman}/

@uref or @url? wicd uses @url

> 
> > +service adds the @var{connman} package to the global profile, providing
> > +several the @command{connmanctl} command to interact with the daemon and
> > +configure networking."
> 
> Could you add this documentation to guix.texi?

Much less scary than I thought it was going to be

> 
> Otherwise LGTM!
> 
> How does Connman compare to Wicd, and to NetworkManager?

Its hard for me to say, Debian is stuck with 1.22 from forever ago, but
from playing around it seems almost as featureful as Network Manager
while being out of the way like wicd, and has better integration into
enlightenment than either one.

> 
> Thank you!
> 
> Ludo’.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-05-05  6:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-20 22:41 [PATCH] Connman Efraim Flashner
2016-04-21 13:07 ` Leo Famulari
2016-04-25 22:04 ` Ludovic Courtès
2016-05-05  6:31   ` Efraim Flashner [this message]
2016-05-05 13:41     ` Ludovic Courtès
2016-04-28 16:07 ` Leo Famulari
2016-04-29 15:28   ` Ludovic Courtès
2016-05-05  6:36 ` [PATCH 1/2] gnu: Add connman Efraim Flashner
2016-05-05  6:36 ` [PATCH 2/2] services: Add connman-service Efraim Flashner
2016-05-06  9:53   ` 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=20160505063137.GA31911@debian-netbook \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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).