You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
7.1 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2017, 2019 Efraim Flashner <>
;;; Copyright © 2017 Mathieu Othacehe <>
;;; Copyright © 2017 Clément Lassieur <>
;;; Copyright © 2017 Ricardo Wurmus <>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <>.
(define-module (gnu packages connman)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (guix licenses)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages admin)
#:use-module (gnu packages enlightenment)
#:use-module (gnu packages glib)
#:use-module (gnu packages linux)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages polkit)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
#:use-module (gnu packages samba)
#:use-module (gnu packages tls)
#:use-module (gnu packages vpn))
(define-public connman
(name "connman")
(version "1.38")
(method url-fetch)
(uri (string-append "mirror://"
"connman-" version ".tar.xz"))
(base32 "0awkqigvhwwxiapw0x6yd4whl465ka8a4al0v2pcqy9ggjlsqc6b"))))
(build-system gnu-build-system)
(list "--enable-nmcompat"
"--enable-polkit" ; Polkit doesn't need to be present at build time.
"--with-dbusconfdir=" (assoc-ref %outputs "out") "/etc")
"--with-dbusdatadir=" (assoc-ref %outputs "out") "/share"))))
`(("pkg-config" ,pkg-config)
("python" ,python-wrapper)))
`(("dbus" ,dbus)
("glib" ,glib)
("gnutls" ,gnutls)
("iptables" ,iptables)
("libmnl" ,libmnl)
("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)
("xl2tpd" ,xl2tpd)))
(home-page "")
(synopsis "Connection management daemon")
(description "Connman provides a daemon for managing Internet connections.
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)))
(define-public econnman
(name "econnman")
(version "1.1")
(method url-fetch)
(uri (string-append ""
"econnman/econnman-" version ".tar.gz"))
(build-system gnu-build-system)
`(#:configure-flags '("--localstatedir=/var")
(modify-phases %standard-phases
(add-after 'unpack 'set-home-directory
;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
(lambda _ (setenv "HOME" "/tmp") #t))
(add-after 'install 'wrap-binary
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/econnman-bin")))
(wrap-program bin
`("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
(native-inputs `(("pkg-config" ,pkg-config)))
`(("efl" ,efl)
("python" ,python-wrapper)
("python-dbus" ,python-dbus)
("python-efl" ,python-efl)))
(home-page "")
(synopsis "Connman User Interface written using the EFL")
"An EFL user interface for the @code{connman} connection manager.")
(license lgpl3)))
(define-public cmst
(name "cmst")
(version "2019.01.13")
(method url-fetch)
(uri (string-append
version "/cmst-" version ".tar.xz"))
(base32 "1cn6xz2rpkf5kx5d6p2x2lh85zppjacp59l6gj3n6x12p90al1vl"))))
`(("qtbase" ,qtbase)))
`(("qttools" ,qttools)))
(build-system gnu-build-system)
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(invoke "qmake"
(string-append "PREFIX="
(assoc-ref outputs "out")))))
(add-before 'build 'fix-Makefiles
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* (find-files "." "Makefile")
(string-append "INSTALL_ROOT)" out))
(("/usr") ""))
(substitute* '("apps/cmstapp/"
(("/usr") out)
(("/etc") (string-append out "/etc")))
(home-page "")
(synopsis "Qt frontend for Connman")
"Cmst is a Qt based frontend for the @code{connman} connection manager.
This package also provides a systemtray icon.")
(license x11)))