From efe1f20ecb23fc4ba2da647152c9f2a2e96293be Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 19 Apr 2016 17:25:41 +0200 Subject: [PATCH 1/2] gnu: Add connman. * gnu/packages/wicd.scm (connman): New variable. --- gnu/packages/wicd.scm | 70 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/gnu/packages/wicd.scm b/gnu/packages/wicd.scm index f9aa657..8ceb4cf 100644 --- a/gnu/packages/wicd.scm +++ b/gnu/packages/wicd.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2015 Pierre-Antoine Rault ;;; Copyright © 2015 Andreas Enge ;;; Copyright © 2016 Ludovic Courtès +;;; Copyright © 2016 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,17 +23,24 @@ (define-module (gnu packages wicd) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix licenses) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages admin) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) #:use-module (gnu packages gettext) #:use-module (gnu packages linux) - #:use-module (gnu packages admin) - #:use-module (gnu packages python)) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages polkit) + #:use-module (gnu packages python) + #:use-module (gnu packages readline) + #:use-module (gnu packages samba) + #:use-module (gnu packages tls) + #:use-module (gnu packages vpn)) (define-public wicd (package @@ -190,3 +198,61 @@ wireless networking.") (home-page "https://launchpad.net/wicd") (license gpl2+))) + +(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/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "0k4kw2j78gwxf0rq79a099qkzl6wi4v5i7rfs4rn0si0fd68d19i")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list "--enable-nmcompat" + "--sysconfdir=/etc" + "--localstatedir=/var" + "--enable-openconnect" + "--enable-openvpn" + "--enable-vpnc" + "--enable-pptp" + "--enable-l2tp" + (string-append + "--with-dbusconfdir=" (assoc-ref %outputs "out") "/etc") + (string-append + "--with-dbusdatadir=" (assoc-ref %outputs "out") "/share")))) + (native-inputs + `(("pkg-config", pkg-config) + ("python" ,python-2))) + (inputs + `(("dbus" ,dbus) + ("glib" ,glib) + ("gnutls" ,gnutls) + ("iptables" ,iptables) + ("polkit" ,polkit) + ("readline" ,readline) + ;; These inputs are needed for connman to include the interface to + ;; these technologies so IF they are installed they can be used. + ;; TODO: add neard, ofono + ("openconnect" ,openconnect) + ("openvpn" ,openvpn) + ("ppp", ppp) + ("vpnc" ,vpnc) + ("wpa-supplicant" ,wpa-supplicant))) + (home-page "https://01.org/connman") + (synopsis "Connection Manager daemon") + (description "The Linux Connection Manager project provides a daemon for +managing Internet connections within embedded devices running the Linux +operating system. The Connection Manager is designed to be slim and to use as +few resources as possible. It is fully modular system that can be extended +through plug-ins. The plug-in approach allows for easy adaption and +modification for various use cases. Connman implements DNS resolving and +caching, DHCP clients for both IPv4 and IPv6, link-local IPv4 address handling +and tethering (IP connection sharing) to clients via USB, ethernet, WiFi, +cellular and Bluetooth.") + (license gpl2))) -- 2.8.1