1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
3 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
4 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
5 ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages connman)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (guix licenses)
27 #:use-module (guix utils)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages admin)
30 #:use-module (gnu packages enlightenment)
31 #:use-module (gnu packages glib)
32 #:use-module (gnu packages linux)
33 #:use-module (gnu packages pkg-config)
34 #:use-module (gnu packages polkit)
35 #:use-module (gnu packages python)
36 #:use-module (gnu packages qt)
37 #:use-module (gnu packages readline)
38 #:use-module (gnu packages samba)
39 #:use-module (gnu packages tls)
40 #:use-module (gnu packages vpn))
42 (define-public connman
49 (uri (string-append "mirror://kernel.org/linux/network/connman/"
50 name "-" version ".tar.xz"))
53 "1apj5j25kj7v1bsfv3nh54aiq873nfrsjfbj85p5qm3ihfwxxmv6"))))
54 (build-system gnu-build-system)
57 (list "--enable-nmcompat"
59 "--enable-openconnect"
64 ;; location for daemon state files and internal configuration
65 ;; needs to be writeable
66 "--localstatedir=/var"
68 "--with-dbusconfdir=" (assoc-ref %outputs "out") "/etc")
70 "--with-dbusdatadir=" (assoc-ref %outputs "out") "/share"))))
72 `(("pkg-config", pkg-config)
73 ("python" ,python-2)))
78 ("iptables" ,iptables)
79 ("polkit" ,polkit) ;so connman can be used by unprivileged users
80 ("readline" ,readline)
81 ;; These inputs are needed for connman to include the interface to
82 ;; these technologies so IF they are installed they can be used.
83 ;; TODO: add neard, ofono
84 ("openconnect" ,openconnect)
88 ("wpa-supplicant" ,wpa-supplicant)))
89 (home-page "https://01.org/connman")
90 (synopsis "Connection management daemon")
91 (description "Connman provides a daemon for managing Internet connections.
92 The Connection Manager is designed to be slim and to use as few resources as
93 possible. It is fully modular system that can be extended through plug-ins.
94 The plug-in approach allows for easy adaption and modification for various use
95 cases. Connman implements DNS resolving and caching, DHCP clients for both
96 IPv4 and IPv6, link-local IPv4 address handling and tethering (IP connection
97 sharing) to clients via USB, ethernet, WiFi, cellular and Bluetooth.")
100 (define-public econnman
107 (uri (string-append "https://download.enlightenment.org/rel/apps/"
108 "econnman/econnman-" version ".tar.gz"))
111 "057pwwavlvrrq26bncqnfrf449zzaim0zq717xv86av4n940gwv0"))))
112 (build-system gnu-build-system)
114 `(#:configure-flags '("--localstatedir=/var")
116 (modify-phases %standard-phases
117 (add-after 'unpack 'set-home-directory
118 ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
119 (lambda _ (setenv "HOME" "/tmp") #t))
120 (add-after 'install 'wrap-binary
121 (lambda* (#:key outputs #:allow-other-keys)
122 (let* ((out (assoc-ref outputs "out"))
123 (bin (string-append out "/bin/econnman-bin")))
125 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
127 (native-inputs `(("pkg-config" ,pkg-config)))
130 ("python-2" ,python-2)
131 ("python2-dbus" ,python2-dbus)
132 ("python2-efl" ,python2-efl)))
133 (home-page "https://www.enlightenment.org")
134 (synopsis "Connman User Interface written using the EFL")
136 "An EFL user interface for the @code{connman} connection manager.")
142 (version "2017.03.18")
147 "https://github.com/andrew-bibb/cmst/releases/download/cmst-"
148 version "/cmst-" version ".tar.gz"))
150 (base32 "16g9byxr1rkmrnzi6sjplpmkr8h6pqj7418jz30czqviw5qlkqwl"))))
152 `(("qtbase" ,qtbase)))
154 `(("qttools" ,qttools)))
155 (build-system gnu-build-system)
158 (modify-phases %standard-phases
160 (lambda* (#:key outputs #:allow-other-keys)
163 (string-append "PREFIX="
164 (assoc-ref outputs "out"))))))
165 (add-before 'install 'fix-Makefiles
166 (lambda* (#:key inputs outputs #:allow-other-keys)
167 (let ((out (assoc-ref outputs "out")))
168 (substitute* (find-files "." "Makefile")
170 (string-append "INSTALL_ROOT)" out))
171 (("/usr/bin") "/bin"))))))))
172 (home-page "https://github.com/andrew-bibb/cmst")
173 (synopsis "Qt frontend for Connman")
175 "Cmst is a Qt based frontend for the @code{connman} connection manager.
176 This package also provides a systemtray icon.")