2015-12-31 15:25:41 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2022-02-07 12:14:19 +00:00
|
|
|
;;; Copyright © 2016, 2017, 2019, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
|
2017-04-25 18:41:17 +00:00
|
|
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
2017-01-03 22:15:31 +00:00
|
|
|
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
|
2017-05-25 07:35:30 +00:00
|
|
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
2020-02-17 21:44:33 +00:00
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2015-12-31 15:25:41 +00:00
|
|
|
;;;
|
|
|
|
;;; 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
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages connman)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
2022-07-05 10:33:16 +00:00
|
|
|
#:use-module (guix gexp)
|
2015-12-31 15:25:41 +00:00
|
|
|
#:use-module (guix licenses)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages admin)
|
2021-06-25 17:01:26 +00:00
|
|
|
#:use-module (gnu packages compression)
|
2016-11-21 20:54:31 +00:00
|
|
|
#:use-module (gnu packages enlightenment)
|
2015-12-31 15:25:41 +00:00
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-01-01 17:30:02 +00:00
|
|
|
#:use-module (gnu packages polkit)
|
2015-12-31 15:25:41 +00:00
|
|
|
#:use-module (gnu packages python)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 13:21:30 +00:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2017-01-01 17:35:28 +00:00
|
|
|
#:use-module (gnu packages qt)
|
2015-12-31 15:25:41 +00:00
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages samba)
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages vpn))
|
|
|
|
|
|
|
|
(define-public connman
|
|
|
|
(package
|
|
|
|
(name "connman")
|
2023-09-24 00:00:00 +00:00
|
|
|
(version "1.42")
|
2015-12-31 15:25:41 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2016-05-09 14:02:51 +00:00
|
|
|
(uri (string-append "mirror://kernel.org/linux/network/connman/"
|
2019-04-15 04:20:45 +00:00
|
|
|
"connman-" version ".tar.xz"))
|
2021-06-13 18:44:16 +00:00
|
|
|
(sha256
|
2023-09-24 00:00:00 +00:00
|
|
|
(base32 "1an24caah35chc1c48p67ln8kpj9fr7slg5fklpfz0f0dzjbmrm3"))
|
|
|
|
(patches
|
|
|
|
(search-patches "connman-add-missing-libppp-compat.h.patch"))))
|
2015-12-31 15:25:41 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2022-07-05 10:33:16 +00:00
|
|
|
(list #:configure-flags
|
|
|
|
#~(list "--enable-nmcompat"
|
|
|
|
;; PolKit doesn't need to be present at build time.
|
|
|
|
"--enable-polkit"
|
|
|
|
"--enable-iwd"
|
|
|
|
"--enable-l2tp"
|
|
|
|
"--enable-openconnect"
|
|
|
|
"--enable-openvpn"
|
|
|
|
"--enable-vpnc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
(string-append "--with-l2tp="
|
|
|
|
#$(this-package-input "xl2tpd")
|
|
|
|
"/sbin/xl2tpd")
|
|
|
|
(string-append "--with-openconnect="
|
|
|
|
#$(this-package-input "openconnect")
|
|
|
|
"/sbin/openconnect")
|
|
|
|
(string-append "--with-openvpn="
|
|
|
|
#$(this-package-input "openvpn")
|
|
|
|
"/sbin/openvpn")
|
|
|
|
(string-append "--with-vpnc="
|
|
|
|
#$(this-package-input "vpnc")
|
|
|
|
"/sbin/vpnc")
|
|
|
|
(string-append "--with-dbusconfdir=" #$output "/etc")
|
|
|
|
(string-append "--with-dbusdatadir=" #$output "/share"))))
|
2015-12-31 15:25:41 +00:00
|
|
|
(native-inputs
|
2022-02-07 12:14:19 +00:00
|
|
|
(list pkg-config
|
|
|
|
python-wrapper))
|
2015-12-31 15:25:41 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list dbus
|
|
|
|
glib
|
|
|
|
gnutls
|
|
|
|
iptables
|
|
|
|
libmnl
|
|
|
|
lz4 ; required by openconnect.pc
|
|
|
|
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
|
|
|
|
openvpn
|
|
|
|
ppp
|
|
|
|
vpnc
|
|
|
|
wpa-supplicant
|
|
|
|
xl2tpd))
|
2015-12-31 15:25:41 +00:00
|
|
|
(home-page "https://01.org/connman")
|
|
|
|
(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)))
|
2016-11-21 20:54:31 +00:00
|
|
|
|
|
|
|
(define-public econnman
|
|
|
|
(package
|
|
|
|
(name "econnman")
|
|
|
|
(version "1.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://download.enlightenment.org/rel/apps/"
|
|
|
|
"econnman/econnman-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"057pwwavlvrrq26bncqnfrf449zzaim0zq717xv86av4n940gwv0"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags '("--localstatedir=/var")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2017-06-18 07:50:10 +00:00
|
|
|
(add-after 'unpack 'set-home-directory
|
|
|
|
;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
|
|
|
|
(lambda _ (setenv "HOME" "/tmp") #t))
|
2016-11-21 20:54:31 +00:00
|
|
|
(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
|
gnu: Adjust package collection to Wrap using GUIX_PYTHONPATH.
This change was automated using:
$ git ls-files | grep .scm | \
xargs sed 's/(getenv "PYTHONPATH")/(getenv "GUIX_PYTHONPATH")/' -i
$ git ls-files | grep .scm | \
xargs sed 's/`("PYTHONPATH"/`("GUIX_PYTHONPATH"/' -i
* gnu/packages/admin.scm (nmap):
(dstat): Wrap using GUIX_PYTHONPATH.
* gnu/packages/audio.scm (jack-2):
(carla): Likewise.
* gnu/packages/benchmark.scm (fio): Likewise.
* gnu/packages/bioinformatics.scm (couger): Likewise.
(gess, find-circ, filtlong, nanopolish): Likewise.
* gnu/packages/cdrom.scm (cdemu-client): Likewise.
* gnu/packages/chemistry.scm (avogadro): Likewise.
* gnu/packages/connman.scm (econnman): Likewise.
* gnu/packages/cups.scm (hplip): Likewise.
* gnu/packages/debug.scm (scanmem): Likewise.
* gnu/packages/display-managers.scm (lightdm): Likewise.
* gnu/packages/ebook.scm (cozy): Likewise.
* gnu/packages/education.scm (anki): Likewise.
* gnu/packages/engineering.scm (kicad, volk, freecad): Likewise.
* gnu/packages/game-development.scm (renpy): Likewise.
* gnu/packages/games.scm (roguebox-adventures)
(seahorse-adventures, kajongg): Likewise.
* gnu/packages/gimp.scm (gimp, glimpse): Likewise.
* gnu/packages/glib.scm (itstool): Likewise.
* gnu/packages/gnome.scm (gnome-music, gtg, rhythmbox): Likewise.
(eolie, d-feet, gedit, caribou, gnome-shell, authenticator)
(gnome-todo, orca, passwordsafe, terminator, setzer)
(libratbag, komikku): Likewise.
* gnu/packages/gps.scm (gpsd): Likewise.
* gnu/packages/gtk.scm (gtk-doc): Likewise.
* gnu/packages/ibus.scm (ibus, ibus-libpinyin, ibus-anthy)
(ibus-libhangul): Likewise.
* gnu/packages/inkscape.scm (inkscape-1.0): Likewise.
* gnu/packages/linux.scm (bcc): Likewise.
* gnu/packages/mail.scm (notifymuch): Likewise.
* gnu/packages/maths.scm (units): Likewise.
* gnu/packages/music.scm (solfege): Likewise.
* gnu/packages/networking.scm (blueman): Likewise.
* gnu/packages/patchutils.scm (patchwork): Likewise.
* gnu/packages/photo.scm (rapid-photo-downloader, entangle): Likewise.
* gnu/packages/plotutils.scm (asymptote): Likewise.
* gnu/packages/presentation.scm (presentty): Likewise.
* gnu/packages/screen.scm (byobu): Likewise.
* gnu/packages/storage.scm (ceph): Likewise.
* gnu/packages/syndication.scm (liferea): Likewise.
* gnu/packages/task-management.scm (blanket): Likewise.
* gnu/packages/text-editors.scm (manuskript): Likewise.
* gnu/packages/version-control.scm (gitless, cgit, git-when-merged)
(git-imerge): Likewise.
* gnu/packages/video.scm (pitivi): Likewise.
* gnu/packages/virtualization.scm (criu): Likewise.
* gnu/packages/xfce.scm (catfish): Likewise.
2021-01-27 22:33:13 +00:00
|
|
|
`("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH"))))
|
2016-11-21 20:54:31 +00:00
|
|
|
#t))))))
|
2021-12-13 16:18:24 +00:00
|
|
|
(native-inputs (list pkg-config))
|
2016-11-21 20:54:31 +00:00
|
|
|
(inputs
|
|
|
|
`(("efl" ,efl)
|
2019-10-15 20:47:33 +00:00
|
|
|
("python" ,python-wrapper)
|
|
|
|
("python-dbus" ,python-dbus)
|
|
|
|
("python-efl" ,python-efl)))
|
2016-11-21 20:54:31 +00:00
|
|
|
(home-page "https://www.enlightenment.org")
|
|
|
|
(synopsis "Connman User Interface written using the EFL")
|
|
|
|
(description
|
|
|
|
"An EFL user interface for the @code{connman} connection manager.")
|
|
|
|
(license lgpl3)))
|
2017-01-01 17:35:28 +00:00
|
|
|
|
|
|
|
(define-public cmst
|
|
|
|
(package
|
|
|
|
(name "cmst")
|
2021-01-30 22:50:43 +00:00
|
|
|
(version "2020.11.01")
|
2017-01-01 17:35:28 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2021-01-30 22:50:43 +00:00
|
|
|
"https://github.com/andrew-bibb/cmst/releases/download/"
|
2017-12-07 05:02:56 +00:00
|
|
|
version "/cmst-" version ".tar.xz"))
|
2017-01-01 17:35:28 +00:00
|
|
|
(sha256
|
2021-01-30 22:50:43 +00:00
|
|
|
(base32 "0jn12wxwjznady6aniwmvahg1dj25p902sdwj0070biv6vx5c7dq"))))
|
2017-01-01 17:35:28 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list qtbase-5))
|
2017-01-01 17:35:28 +00:00
|
|
|
(native-inputs
|
2022-07-19 20:52:05 +00:00
|
|
|
(list qttools-5))
|
2017-01-01 17:35:28 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2019-01-24 22:10:25 +00:00
|
|
|
(invoke "qmake"
|
|
|
|
(string-append "PREFIX="
|
|
|
|
(assoc-ref outputs "out")))))
|
2019-06-17 06:28:42 +00:00
|
|
|
(add-before 'build 'fix-Makefiles
|
2017-01-01 17:35:28 +00:00
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(substitute* (find-files "." "Makefile")
|
|
|
|
(("INSTALL_ROOT)")
|
|
|
|
(string-append "INSTALL_ROOT)" out))
|
2019-06-17 06:28:42 +00:00
|
|
|
(("/usr") ""))
|
|
|
|
(substitute* '("apps/cmstapp/cmstapp.pro"
|
|
|
|
"apps/cmstapp/code/control_box/controlbox.cpp"
|
|
|
|
"apps/rootapp/rootapp.pro"
|
|
|
|
"apps/rootapp/system/org.cmst.roothelper.service"
|
|
|
|
"cmst.pri"
|
|
|
|
"cmst.pro")
|
|
|
|
(("/usr") out)
|
|
|
|
(("/etc") (string-append out "/etc")))
|
|
|
|
#t))))))
|
2017-01-01 17:35:28 +00:00
|
|
|
(home-page "https://github.com/andrew-bibb/cmst")
|
|
|
|
(synopsis "Qt frontend for Connman")
|
|
|
|
(description
|
|
|
|
"Cmst is a Qt based frontend for the @code{connman} connection manager.
|
|
|
|
This package also provides a systemtray icon.")
|
|
|
|
(license x11)))
|