GNU bug report logs - #30991
[PATCH 0/2] Add ModemManager service.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Danny Milosavljevic <dannym@HIDDEN>; Keywords: patch; dated Thu, 29 Mar 2018 18:30:03 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 30991 <at> debbugs.gnu.org:


Received: (at 30991) by debbugs.gnu.org; 29 Mar 2018 18:33:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 29 14:33:58 2018
Received: from localhost ([127.0.0.1]:59010 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f1cN4-00014M-3e
	for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:33:58 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:47990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1f1cN0-000144-BN
 for 30991 <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:33:54 -0400
Received: from localhost.localdomain (77.118.212.241.wireless.dyn.drei.com
 [77.118.212.241])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 44F003361481;
 Thu, 29 Mar 2018 20:33:53 +0200 (CEST)
From: Danny Milosavljevic <dannym@HIDDEN>
To: 30991 <at> debbugs.gnu.org
Subject: [PATCH 2/2] services: Add ModemManager to '%desktop-services'.
Date: Thu, 29 Mar 2018 20:33:47 +0200
Message-Id: <20180329183347.7748-2-dannym@HIDDEN>
X-Mailer: git-send-email 2.16.2
In-Reply-To: <20180329183347.7748-1-dannym@HIDDEN>
References: <20180329182856.7509-1-dannym@HIDDEN>
 <20180329183347.7748-1-dannym@HIDDEN>
Tags: patch
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 30991
Cc: Danny Milosavljevic <dannym@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

* gnu/services/desktop.scm (%desktop-services): Add ModemManager.
---
 gnu/services/desktop.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 897252917..00f5c105b 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -898,6 +898,7 @@ with the administrator's password."
          (simple-service 'mtp udev-service-type (list libmtp))
 
          ;; The D-Bus clique.
+         (service modem-manager-service-type)
          (service network-manager-service-type)
          (service wpa-supplicant-service-type)    ;needed by NetworkManager
          (avahi-service)




Information forwarded to guix-patches@HIDDEN:
bug#30991; Package guix-patches. Full text available.

Message received at 30991 <at> debbugs.gnu.org:


Received: (at 30991) by debbugs.gnu.org; 29 Mar 2018 18:33:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 29 14:33:55 2018
Received: from localhost ([127.0.0.1]:59008 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f1cN0-00014B-RI
	for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:33:55 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:47982)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1f1cMy-00013w-Un
 for 30991 <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:33:53 -0400
Received: from localhost.localdomain (77.118.212.241.wireless.dyn.drei.com
 [77.118.212.241])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 4026F3360484;
 Thu, 29 Mar 2018 20:33:50 +0200 (CEST)
From: Danny Milosavljevic <dannym@HIDDEN>
To: 30991 <at> debbugs.gnu.org
Subject: [PATCH 1/2] services: Add modem-manager-service-type.
Date: Thu, 29 Mar 2018 20:33:46 +0200
Message-Id: <20180329183347.7748-1-dannym@HIDDEN>
X-Mailer: git-send-email 2.16.2
In-Reply-To: <20180329182856.7509-1-dannym@HIDDEN>
References: <20180329182856.7509-1-dannym@HIDDEN>
Tags: patch
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 30991
Cc: Danny Milosavljevic <dannym@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

* gnu/services/networking.scm (modem-manager-service-type): New variable.
(<modem-manager-configuration>): New variable.
(modem-manager-configuration): New procedure.
(modem-manager-configuration?): New procedure.
* doc/guix.texi (Networking Services): Document it.
---
 doc/guix.texi               | 22 ++++++++++++++++++++++
 gnu/services/networking.scm | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 25c08b9f0..23b7ae089 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -10712,6 +10712,28 @@ several commands to interact with the daemon and configure networking:
 and @command{wicd-curses} user interfaces.
 @end deffn
 
+@cindex ModemManager
+
+@defvr {Scheme Variable} modem-manager-service-type
+This is the service type for the
+@uref{https://wiki.gnome.org/Projects/ModemManager, ModemManager}
+service. The value for this service type is a
+@code{modem-manager-configuration} record.
+
+This service is part of @code{%desktop-services} (@pxref{Desktop
+Services}).
+@end defvr
+
+@deftp {Data Type} modem-manager-configuration
+Data type representing the configuration of ModemManager.
+
+@table @asis
+@item @code{modem-manager} (default: @code{modem-manager})
+The ModemManager package to use.
+
+@end table
+@end deftp
+
 @cindex NetworkManager
 
 @defvr {Scheme Variable} network-manager-service-type
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 6ac440fd2..660ec162b 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -30,6 +30,7 @@
   #:use-module (gnu system pam)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages connman)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages tor)
   #:use-module (gnu packages messaging)
@@ -90,6 +91,9 @@
             connman-configuration?
             connman-service-type
 
+            modem-manager-configuration
+            modem-manager-configuration?
+            modem-manager-service-type
             wpa-supplicant-service-type
 
             openvswitch-service-type
@@ -890,6 +894,17 @@ and @command{wicd-curses} user interfaces."
   (service wicd-service-type wicd))
 
 
+;;;
+;;; ModemManager
+;;;
+
+(define-record-type* <modem-manager-configuration>
+  modem-manager-configuration make-modem-manager-configuration
+  modem-manager-configuration?
+  (modem-manager modem-manager-configuration-modem-manager
+                   (default modem-manager)))
+
+
 ;;;
 ;;; NetworkManager
 ;;;
@@ -1027,6 +1042,26 @@ wireless networking."))))
 a network connection manager."))))
 
 
+;;;
+;;; Modem manager
+;;;
+
+(define modem-manager-service-type
+  (let ((config->package
+         (match-lambda
+          (($ <modem-manager-configuration> modem-manager)
+           (list modem-manager)))))
+    (service-type (name 'modem-manager)
+                  (extensions
+                   (list (service-extension dbus-root-service-type
+                                            config->package)))
+                  (default-value (modem-manager-configuration))
+                  (description
+                   "Run @uref{https://wiki.gnome.org/Projects/ModemManager,
+ModemManager}, a modem management daemon that aims to simplify dialup
+networking."))))
+
+
 ;;;
 ;;; WPA supplicant
 ;;;




Information forwarded to guix-patches@HIDDEN:
bug#30991; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Mar 2018 18:29:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 29 14:29:20 2018
Received: from localhost ([127.0.0.1]:58996 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f1cIZ-0000w6-OA
	for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:29:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34308)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1f1cIY-0000vt-B7
 for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:29:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dannym@HIDDEN>) id 1f1cIS-0007PT-EG
 for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:29:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59510)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dannym@HIDDEN>)
 id 1f1cIS-0007Oj-4b
 for submit <at> debbugs.gnu.org; Thu, 29 Mar 2018 14:29:12 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53471)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dannym@HIDDEN>) id 1f1cIR-000786-2M
 for guix-patches@HIDDEN; Thu, 29 Mar 2018 14:29:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dannym@HIDDEN>) id 1f1cIN-0007Aa-14
 for guix-patches@HIDDEN; Thu, 29 Mar 2018 14:29:11 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:58458)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dannym@HIDDEN>)
 id 1f1cIM-000759-QA
 for guix-patches@HIDDEN; Thu, 29 Mar 2018 14:29:06 -0400
Received: from localhost.localdomain (77.118.212.241.wireless.dyn.drei.com
 [77.118.212.241])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 1D0B43361481;
 Thu, 29 Mar 2018 20:29:03 +0200 (CEST)
From: Danny Milosavljevic <dannym@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 0/2] Add ModemManager service.
Date: Thu, 29 Mar 2018 20:28:56 +0200
Message-Id: <20180329182856.7509-1-dannym@HIDDEN>
X-Mailer: git-send-email 2.16.2
Tags: patch
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Danny Milosavljevic <dannym@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Danny Milosavljevic (2):
  services: Add modem-manager-service-type.
  services: Add ModemManager to '%desktop-services'.

 doc/guix.texi               | 22 ++++++++++++++++++++++
 gnu/services/desktop.scm    |  1 +
 gnu/services/networking.scm | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)





Acknowledgement sent to Danny Milosavljevic <dannym@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#30991; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 29 Mar 2018 18:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.