2013-03-03 13:10:57 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
2021-07-16 14:50:56 +00:00
|
|
|
|
;;; Copyright © 2013, 2016, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
2014-03-30 23:09:10 +00:00
|
|
|
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
2015-08-17 08:16:45 +00:00
|
|
|
|
;;; Copyright © 2015 Jeff Mickey <j@codemac.net>
|
2022-07-06 09:29:33 +00:00
|
|
|
|
;;; Copyright © 2016, 2017, 2019, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
|
2022-08-07 00:00:01 +00:00
|
|
|
|
;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-01-08 17:16:41 +00:00
|
|
|
|
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
|
2020-11-08 11:18:28 +00:00
|
|
|
|
;;; Copyright © 2018, 2020 Pierre Langlois <pierre.langlois@gmx.com>
|
2018-12-24 14:35:26 +00:00
|
|
|
|
;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
|
2020-03-03 04:42:56 +00:00
|
|
|
|
;;; Copyright © 2019, 2020 Leo Famulari <leo@famulari.name>
|
2019-03-07 11:21:37 +00:00
|
|
|
|
;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
|
2019-12-11 11:21:54 +00:00
|
|
|
|
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
|
2020-04-26 20:51:02 +00:00
|
|
|
|
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
2020-05-21 03:28:11 +00:00
|
|
|
|
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
|
2020-06-14 09:48:59 +00:00
|
|
|
|
;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
|
2020-12-12 20:03:03 +00:00
|
|
|
|
;;; Copyright © 2020 David Dashyan <mail@davie.li>
|
2021-06-19 10:24:04 +00:00
|
|
|
|
;;; Copyright © 2021 Domagoj Stolfa <ds815@gmx.com>
|
2021-06-13 22:28:15 +00:00
|
|
|
|
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
|
|
|
|
|
;;; Copyright © 2021 jgart <jgart@dismail.de>
|
2022-02-08 18:05:40 +00:00
|
|
|
|
;;; Copyright © 2022 Josselin Poiret <josselin.poiret@protonmail.ch>
|
2022-02-22 11:15:13 +00:00
|
|
|
|
;;; Copyright © 2022 Lu hui <luhux76@gmail.com>
|
2023-06-06 21:02:57 +00:00
|
|
|
|
;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2022-06-29 10:51:55 +00:00
|
|
|
|
;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
|
2022-07-26 12:02:32 +00:00
|
|
|
|
;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
|
2013-03-03 13:10:57 +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 vpn)
|
Use #:prefix instead of #:renamer with 'symbol-prefix-proc'.
* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm,
gnu/packages/backup.scm, gnu/packages/bittorrent.scm,
gnu/packages/boost.scm, gnu/packages/compression.scm,
gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm,
gnu/packages/ghostscript.scm, gnu/packages/gimp.scm,
gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm,
gnu/packages/indent.scm, gnu/packages/inkscape.scm,
gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm,
gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm,
gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm,
gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm,
gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm,
gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm,
gnu/packages/yasm.scm, gnu/packages/zip.scm,
guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm,
guix/build/python-build-system.scm, guix/download.scm: Replaces uses of
#:renamer and 'symbol-prefix-proc' with #:prefix.
2014-09-23 20:44:22 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2013-03-03 13:10:57 +00:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2022-02-22 11:15:13 +00:00
|
|
|
|
#:use-module (guix gexp)
|
2017-05-06 23:19:12 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2018-12-24 14:35:26 +00:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2021-06-13 22:28:15 +00:00
|
|
|
|
#:use-module (guix build-system copy)
|
2013-03-03 13:10:57 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2021-06-13 22:28:15 +00:00
|
|
|
|
#:use-module (guix build-system go)
|
2020-04-26 20:51:02 +00:00
|
|
|
|
#:use-module (guix build-system linux-module)
|
2022-11-02 17:34:37 +00:00
|
|
|
|
#:use-module (guix build-system pyproject)
|
2016-07-15 00:38:33 +00:00
|
|
|
|
#:use-module (guix build-system python)
|
2021-06-13 22:28:15 +00:00
|
|
|
|
#:use-module (guix build-system qt)
|
2020-08-24 00:26:03 +00:00
|
|
|
|
#:use-module (guix utils)
|
2013-03-03 13:10:57 +00:00
|
|
|
|
#:use-module (gnu packages)
|
2019-03-19 07:34:10 +00:00
|
|
|
|
#:use-module (gnu packages admin)
|
2017-05-06 23:19:12 +00:00
|
|
|
|
#:use-module (gnu packages base)
|
2020-05-08 09:36:12 +00:00
|
|
|
|
#:use-module (gnu packages bash)
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 20:42:23 +00:00
|
|
|
|
#:use-module (gnu packages check)
|
2020-05-08 09:36:12 +00:00
|
|
|
|
#:use-module (gnu packages dns)
|
2018-04-21 09:37:20 +00:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2013-03-16 21:36:13 +00:00
|
|
|
|
#:use-module (gnu packages compression)
|
2021-06-19 11:01:56 +00:00
|
|
|
|
#:use-module (gnu packages curl)
|
2021-02-15 08:30:24 +00:00
|
|
|
|
#:use-module (gnu packages freedesktop)
|
gnu: gettext: Rename binding to 'gnu-gettext'.
* gnu/packages/gettext.scm (gettext): Rename to...
(gnu-gettext): ... this. This is used to work around the circular
dependency introduced in commit c42a4b7, which users with a #:renamer
cannot cope with.
* gnu/packages/acl.scm, gnu/packages/attr.scm, gnu/packages/cdrom.scm,
gnu/packages/fdisk.scm, gnu/packages/gkrellm.scm, gnu/packages/glib.scm,
gnu/packages/gnunet.scm, gnu/packages/grub.scm, gnu/packages/linux.scm,
gnu/packages/maths.scm, gnu/packages/nano.scm, gnu/packages/parted.scm,
gnu/packages/system.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/w3m.scm, gnu/packages/wget.scm:
Adjust accordingly.
2013-11-20 21:12:49 +00:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2021-06-19 11:01:56 +00:00
|
|
|
|
#:use-module (gnu packages gnome)
|
2021-06-13 22:28:15 +00:00
|
|
|
|
#:use-module (gnu packages gl)
|
2023-07-05 16:50:05 +00:00
|
|
|
|
#:use-module (gnu packages glib)
|
2013-03-03 13:10:57 +00:00
|
|
|
|
#:use-module (gnu packages gnupg)
|
2021-06-13 22:28:15 +00:00
|
|
|
|
#:use-module (gnu packages golang)
|
2019-12-11 11:21:54 +00:00
|
|
|
|
#:use-module (gnu packages guile)
|
2018-04-21 09:37:20 +00:00
|
|
|
|
#:use-module (gnu packages libevent)
|
2015-05-06 19:08:47 +00:00
|
|
|
|
#:use-module (gnu packages linux)
|
2021-06-19 11:01:56 +00:00
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2020-06-02 23:43:48 +00:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
gnu: Move nss & co. to nss.scm.
* gnu/packages/gnuzilla.scm (nspr, nss): Move to...
* gnu/packages/nss.scm: ... here. New file.
* gnu/packages/chromium.scm, gnu/packages/disk.scm,
gnu/packages/freedesktop.scm, gnu/packages/gnome.scm,
gnu/packages/gnunet.scm, gnu/packages/java.scm,
gnu/packages/libreoffice.scm, gnu/packages/linux.scm,
gnu/packages/mate.scm, gnu/packages/openldap.scm,
gnu/packages/package-management.scm, gnu/packages/password-utils.scm,
gnu/packages/polkit.scm, gnu/packages/qt.scm,
gnu/packages/sssd.scm, gnu/packages/storage.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/xml.scm: Adjust
accordingly.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add nss.scm.
2019-04-04 13:14:57 +00:00
|
|
|
|
#:use-module (gnu packages nss)
|
2013-03-16 21:36:13 +00:00
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2021-06-13 22:28:15 +00:00
|
|
|
|
#:use-module (gnu packages polkit)
|
2016-07-15 00:38:33 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
2021-02-15 08:30:24 +00:00
|
|
|
|
#:use-module (gnu packages python-build)
|
|
|
|
|
#:use-module (gnu packages python-crypto)
|
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)
|
2020-05-21 03:28:11 +00:00
|
|
|
|
#:use-module (gnu packages python-web)
|
2021-02-15 08:30:24 +00:00
|
|
|
|
#:use-module (gnu packages qt)
|
2020-06-14 09:48:59 +00:00
|
|
|
|
#:use-module (gnu packages samba)
|
gnu: Rename module gnutls to tls.
* gnu/packages/gnutls.scm: Rename to...
* gnu/packages/tls.scm: ... this. Change module name accordingly.
* gnu/packages/{admin.scm, cups.scm, curl.scm, dc.scm, dns.scm, emacs.scm,
ftp.scm, gnome.scm, gnunet.scm, gnupg.scm, gsasl.scm, lynx.scm,
mail.scm, messaging.scm, package-management.scm, shishi.scm,
task-management.scm, version-control.scm, video.scm, vpn.scm,
webkit.scm, weechat.scm, wget.scm, wine.scm, xml.scm}: Adapt module
import to new name.
* gnu-system.am (GNU_SYSTEM_MODULES): Rename gnutls module to tls.
2015-07-03 19:41:22 +00:00
|
|
|
|
#:use-module (gnu packages tls)
|
2023-07-05 16:50:05 +00:00
|
|
|
|
#:use-module (gnu packages webkit)
|
2013-03-16 21:36:13 +00:00
|
|
|
|
#:use-module (gnu packages xml))
|
2013-03-03 13:10:57 +00:00
|
|
|
|
|
2021-06-13 22:28:15 +00:00
|
|
|
|
(define-public bitmask
|
|
|
|
|
(package
|
|
|
|
|
(name "bitmask")
|
2022-07-02 10:44:51 +00:00
|
|
|
|
(version "0.21.11")
|
2021-06-13 22:28:15 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
|
|
|
|
(url "https://0xacab.org/leap/bitmask-vpn")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2022-07-02 10:44:51 +00:00
|
|
|
|
(base32 "1zphigfrks1j3snbc748b3mk0qb1r7n2v7p7l6w1xiiil4dql6cs"))
|
2021-06-13 22:28:15 +00:00
|
|
|
|
(modules
|
|
|
|
|
'((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
`(begin
|
|
|
|
|
(delete-file-recursively "branding/thirdparty")
|
|
|
|
|
(call-with-output-file "pkg/config/version/version.go"
|
|
|
|
|
(lambda (port)
|
|
|
|
|
(format port "package version\n")
|
|
|
|
|
(format port "\n")
|
|
|
|
|
(format port (string-append "var VERSION = \"" ,version "\""))))
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:imported-modules
|
|
|
|
|
((guix build cmake-build-system)
|
|
|
|
|
(guix build copy-build-system)
|
|
|
|
|
(guix build python-build-system)
|
|
|
|
|
(guix build qt-build-system)
|
|
|
|
|
(guix build qt-utils)
|
|
|
|
|
,@%go-build-system-modules)
|
|
|
|
|
#:modules
|
|
|
|
|
(((guix build copy-build-system)
|
|
|
|
|
#:prefix copy:)
|
|
|
|
|
((guix build python-build-system)
|
|
|
|
|
#:prefix python:)
|
|
|
|
|
((guix build qt-build-system)
|
|
|
|
|
#:prefix qt:)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build go-build-system))
|
|
|
|
|
#:unpack-path "0xacab.org/leap/bitmask-vpn"
|
|
|
|
|
#:import-path "0xacab.org/leap/bitmask-vpn/cmd/bitmask-helper"
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'setup-go-environment 'insert-missing-sources
|
|
|
|
|
;; For some reason this package is left out.
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let* ((name "go-0xacab-org-leap-shapeshifter")
|
|
|
|
|
(shapeshifter (assoc-ref inputs name))
|
|
|
|
|
(shapeshifter-src (string-append shapeshifter "/src")))
|
|
|
|
|
(copy-recursively shapeshifter-src "src"))))
|
|
|
|
|
(add-after 'unpack 'patch
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion "src/0xacab.org/leap/bitmask-vpn"
|
|
|
|
|
;; Use 'emersion/go-autostart',
|
|
|
|
|
;; instead of 'ProtonMail/go-autostart',
|
|
|
|
|
;; as the latter no longer exists.
|
|
|
|
|
(substitute* (find-files "." "\\.go$")
|
|
|
|
|
(("github.com/ProtonMail/go-autostart")
|
|
|
|
|
"github.com/emersion/go-autostart"))
|
|
|
|
|
;; Use correct paths for referenced items.
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(policy-dir (string-append out "/share/polkit-1/actions"))
|
|
|
|
|
(policy-file "se.leap.bitmask.policy")
|
|
|
|
|
(policy-path (string-append policy-dir "/" policy-file))
|
|
|
|
|
(ip (string-append (assoc-ref inputs "iproute")
|
|
|
|
|
"/sbin/ip"))
|
|
|
|
|
(iptables (string-append (assoc-ref inputs "iptables")
|
|
|
|
|
"/sbin/iptables"))
|
|
|
|
|
(ip6tables (string-append (assoc-ref inputs "iptables")
|
|
|
|
|
"/sbin/ip6tables"))
|
|
|
|
|
(sysctl (string-append (assoc-ref inputs "procps")
|
|
|
|
|
"/sbin/sysctl"))
|
|
|
|
|
(pkttyagent (string-append (assoc-ref inputs "polkit")
|
|
|
|
|
"/bin/pkttyagent"))
|
|
|
|
|
(openvpn (string-append (assoc-ref inputs "openvpn")
|
|
|
|
|
"/sbin/openvpn"))
|
|
|
|
|
(bitmask-root (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/sbin/bitmask-root")))
|
|
|
|
|
(substitute* (find-files "." "(\\.go$|\\.policy$|bitmask-root)")
|
|
|
|
|
(("swhich\\(\"ip\"\\)")
|
|
|
|
|
(string-append "\"" ip "\""))
|
|
|
|
|
(("swhich\\(\"iptables\"\\)")
|
|
|
|
|
(string-append "\"" iptables "\""))
|
|
|
|
|
(("swhich\\(\"ip6tables\"\\)")
|
|
|
|
|
(string-append "\"" ip6tables "\""))
|
|
|
|
|
(("swhich\\(\"sysctl\"\\)")
|
|
|
|
|
(string-append "\"" sysctl "\""))
|
|
|
|
|
(("/usr/(bin|lib|libexec)/.*(kit|agent|agent-1)") pkttyagent)
|
|
|
|
|
(("/usr/sbin/openvpn") openvpn)
|
|
|
|
|
(("/usr/sbin/bitmask-root") bitmask-root)
|
|
|
|
|
(("/usr/local/sbin/bitmask-root") bitmask-root)
|
|
|
|
|
(("/usr/share.*\\.policy") policy-path)))
|
|
|
|
|
(substitute* (find-files "." "\\.pro$")
|
|
|
|
|
;; Use correct path for goshim files,
|
|
|
|
|
;; which are generated in 'build-continued phase.
|
|
|
|
|
(("-L.*/lib") "-L./lib")
|
|
|
|
|
;; FIXME: Unable to build i18n files.
|
|
|
|
|
(("TRANSLATIONS.*i18n.*$") "")
|
|
|
|
|
(("RESOURCES.*i18n.*$") "")))))
|
|
|
|
|
(add-after 'build 'build-continued
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Generate goshim library and header files.
|
|
|
|
|
(let* ((dir "src/0xacab.org/leap/bitmask-vpn")
|
|
|
|
|
(source (string-append dir "/gui/backend.go"))
|
|
|
|
|
(target (string-append dir "/lib/libgoshim.a")))
|
|
|
|
|
(mkdir-p (string-append dir "/lib"))
|
|
|
|
|
(invoke "go" "build" "-buildmode=c-archive" "-o" target source))
|
|
|
|
|
;; Build bitmask application.
|
|
|
|
|
(with-directory-excursion "src/0xacab.org/leap/bitmask-vpn"
|
|
|
|
|
(delete-file "Makefile")
|
|
|
|
|
(invoke "qmake" "bitmask.pro")
|
|
|
|
|
(invoke "make"))))
|
|
|
|
|
(add-after 'check 'check-continued
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
;; Run bitmask test-suite.
|
|
|
|
|
(with-directory-excursion "src/0xacab.org/leap/bitmask-vpn"
|
|
|
|
|
(delete-file "Makefile")
|
|
|
|
|
(invoke "qmake" "test.pro")
|
|
|
|
|
;; Tests require display-server.
|
|
|
|
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
|
|
|
|
;; Tests look for $XDG_RUNTIME_DIR.
|
|
|
|
|
(setenv "XDG_RUNTIME_DIR" (getenv "TEMP"))
|
|
|
|
|
;; Tests write to $HOME.
|
|
|
|
|
(setenv "HOME" (getenv "TEMP"))
|
|
|
|
|
(invoke "make" "check")))))
|
|
|
|
|
(add-after 'install 'install-continued
|
|
|
|
|
(lambda args
|
|
|
|
|
(apply (assoc-ref copy:%standard-phases 'install)
|
|
|
|
|
#:install-plan
|
|
|
|
|
;; Install bitmask program.
|
|
|
|
|
'(("src/0xacab.org/leap/bitmask-vpn/release"
|
|
|
|
|
"bin"
|
|
|
|
|
#:include ("bitmask"))
|
|
|
|
|
;; Install bitmask-root script.
|
|
|
|
|
("src/0xacab.org/leap/bitmask-vpn/helpers"
|
|
|
|
|
"sbin"
|
|
|
|
|
#:include ("bitmask-root"))
|
|
|
|
|
;; Install polkit-policy.
|
|
|
|
|
("src/0xacab.org/leap/bitmask-vpn/helpers"
|
|
|
|
|
"share/polkit-1/actions"
|
|
|
|
|
#:include ("se.leap.bitmask.policy")))
|
|
|
|
|
args)))
|
|
|
|
|
(add-after 'install-continued 'post-install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bitmask (string-append out "/bin/bitmask"))
|
|
|
|
|
(bitmask-root (string-append out "/sbin/bitmask-root")))
|
|
|
|
|
;; Make bitmask-root script executable.
|
|
|
|
|
(chmod bitmask-root #o777))))
|
|
|
|
|
(add-after 'post-install 'python-wrap
|
|
|
|
|
(assoc-ref python:%standard-phases 'wrap))
|
|
|
|
|
(add-after 'python-wrap 'qt-wrap
|
|
|
|
|
(assoc-ref qt:%standard-phases 'qt-wrap)))))
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list pkg-config))
|
2021-06-13 22:28:15 +00:00
|
|
|
|
(inputs
|
|
|
|
|
`(("iproute" ,iproute)
|
|
|
|
|
("iptables" ,iptables)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("openvpn" ,openvpn)
|
|
|
|
|
("polkit" ,polkit)
|
|
|
|
|
("procps" ,procps)
|
|
|
|
|
("python" ,python)
|
|
|
|
|
("qtbase" ,qtbase-5)
|
2022-07-18 01:03:18 +00:00
|
|
|
|
("qtdeclarative-5" ,qtdeclarative-5)
|
2022-07-04 01:59:20 +00:00
|
|
|
|
("qtgraphicaleffects" ,qtgraphicaleffects)
|
2022-07-18 03:47:28 +00:00
|
|
|
|
("qtquickcontrols-5" ,qtquickcontrols-5)
|
2022-07-18 03:49:07 +00:00
|
|
|
|
("qtquickcontrols2-5" ,qtquickcontrols2-5)
|
2022-07-17 05:11:46 +00:00
|
|
|
|
("qtsvg-5" ,qtsvg-5)))
|
2021-06-13 22:28:15 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list go-0xacab-org-leap-shapeshifter
|
|
|
|
|
go-github-com-apparentlymart-go-openvpn-mgmt
|
|
|
|
|
go-github-com-emersion-go-autostart
|
|
|
|
|
go-github-com-keybase-go-ps
|
|
|
|
|
go-github-com-rakyll-statik
|
|
|
|
|
go-github-com-sevlyar-go-daemon
|
|
|
|
|
go-golang-org-x-sys))
|
2021-06-13 22:28:15 +00:00
|
|
|
|
(synopsis "Generic VPN client by LEAP")
|
|
|
|
|
(description "Bitmask, by @acronym{LEAP, LEAP Encryption Access Project},
|
|
|
|
|
is an application to provide easy and secure encrypted communication with a
|
|
|
|
|
@acronym{VPN, Virtual Private Network}. It allows you to select from a variety
|
|
|
|
|
of trusted service provider all from one app. Current providers include Riseup
|
|
|
|
|
Networks and The Calyx Institute, where the former is default.")
|
|
|
|
|
(home-page "https://bitmask.net/")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2023-07-05 16:50:05 +00:00
|
|
|
|
(define-public gp-saml-gui
|
|
|
|
|
;; No release.
|
|
|
|
|
(let ((commit "258f47cdc4a8ed57a1eef16667f6cad0d1cb49b1")
|
|
|
|
|
(revision "1"))
|
|
|
|
|
(package
|
|
|
|
|
(name "gp-saml-gui")
|
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
|
(home-page "https://github.com/dlenski/gp-saml-gui")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url home-page)
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qj2mmi6lfkq5c4v6fbzgriajqc27k9kb1i9k2r776pn5pq14pc3"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'wrap-program
|
|
|
|
|
(lambda _
|
|
|
|
|
(let ((prog (string-append #$output "/bin/gp-saml-gui")))
|
|
|
|
|
(wrap-program prog
|
|
|
|
|
`("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH")))
|
|
|
|
|
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))))
|
|
|
|
|
(inputs
|
|
|
|
|
(list bash-minimal
|
|
|
|
|
python-pygobject
|
|
|
|
|
python-urllib3
|
|
|
|
|
python-requests
|
|
|
|
|
webkitgtk-with-libsoup2))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list openconnect))
|
|
|
|
|
(synopsis "Interactively authenticate to GlobalProtect VPNs that require SAML")
|
|
|
|
|
(description "This is a helper script to allow you to interactively login
|
|
|
|
|
to a GlobalProtect VPN that uses SAML authentication, so that you can
|
|
|
|
|
subsequently connect with OpenConnect.")
|
|
|
|
|
(license license:gpl3+))))
|
|
|
|
|
|
2013-12-03 21:07:00 +00:00
|
|
|
|
(define-public gvpe
|
|
|
|
|
(package
|
|
|
|
|
(name "gvpe")
|
2018-10-27 02:17:34 +00:00
|
|
|
|
(version "3.1")
|
2013-12-03 21:07:00 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/gvpe/gvpe-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-10-27 02:17:34 +00:00
|
|
|
|
"1cz8n75ksl0l908zc5l3rnfm1hv7130s2w8710799fr5sxrdbszi"))))
|
2013-12-03 21:07:00 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://software.schmorp.de/pkg/gvpe.html")
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(native-inputs (list pkg-config))
|
|
|
|
|
(inputs (list openssl zlib))
|
2013-12-03 21:07:00 +00:00
|
|
|
|
(synopsis "Secure VPN among multiple nodes over an untrusted network")
|
|
|
|
|
(description
|
|
|
|
|
"The GNU Virtual Private Ethernet creates a virtual network
|
|
|
|
|
with multiple nodes using a variety of transport protocols. It works
|
|
|
|
|
by creating encrypted host-to-host tunnels between multiple
|
|
|
|
|
endpoints.")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2022-02-22 11:15:13 +00:00
|
|
|
|
(define-public n2n
|
|
|
|
|
(package
|
|
|
|
|
(name "n2n")
|
|
|
|
|
(version "2.8")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/ntop/n2n")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ph2npvnqh1xnmkp96pdzpxm033jkb8zznd3nc59l9arhn0pq4nv"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:make-flags
|
|
|
|
|
#~(list (string-append "PREFIX=" #$output)
|
|
|
|
|
(string-append "CC=" #$(cc-for-target)))
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-before 'bootstrap 'move-configure
|
|
|
|
|
;; Don't execute configure script in bootstrap.
|
2022-02-22 18:50:51 +00:00
|
|
|
|
(lambda _
|
2022-02-22 11:15:13 +00:00
|
|
|
|
(substitute* "autogen.sh"
|
|
|
|
|
(("./configure") ""))))
|
|
|
|
|
(add-before 'configure 'fix-configure
|
2022-02-22 18:50:51 +00:00
|
|
|
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
2022-02-22 11:15:13 +00:00
|
|
|
|
(substitute* "configure"
|
2022-02-22 18:50:51 +00:00
|
|
|
|
(("/bin/sh")
|
|
|
|
|
(search-input-file (or native-inputs inputs) "/bin/sh"))))))
|
2022-02-22 11:15:13 +00:00
|
|
|
|
#:tests? #f)) ;there is no check target
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list autoconf automake bash-minimal pkg-config))
|
|
|
|
|
(home-page "https://github.com/ntop/n2n")
|
|
|
|
|
(synopsis "Peer-to-peer VPN client and server")
|
|
|
|
|
(description
|
|
|
|
|
"n2n is a light VPN software which makes it easy to create virtual
|
|
|
|
|
networks bypassing intermediate firewalls.")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2021-06-19 10:24:04 +00:00
|
|
|
|
(define-public strongswan
|
|
|
|
|
(package
|
|
|
|
|
(name "strongswan")
|
2021-11-27 12:07:38 +00:00
|
|
|
|
(version "5.9.4")
|
2021-06-19 10:24:04 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.strongswan.org/strongswan-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
2021-11-27 12:07:38 +00:00
|
|
|
|
(base32 "063mi0kdlpd7r7s3py35yf80hvrv3nrdfvxpyn7ns25gqajg3za5"))))
|
2021-06-19 10:24:04 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'build 'patch-command-file-names
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2021-06-24 20:18:24 +00:00
|
|
|
|
(substitute* "src/ipsec/_ipsec.in"
|
|
|
|
|
(("cat|kill|sleep|rm|uname" command)
|
|
|
|
|
(string-append (assoc-ref inputs "coreutils")
|
|
|
|
|
"/bin/" command)))
|
2021-06-19 10:24:04 +00:00
|
|
|
|
(substitute* "src/libstrongswan/utils/process.c"
|
|
|
|
|
(("/bin/sh")
|
2021-07-16 14:50:56 +00:00
|
|
|
|
(search-input-file inputs "/bin/sh")))
|
2021-06-19 10:24:04 +00:00
|
|
|
|
|
|
|
|
|
(substitute* "src/libstrongswan/tests/suites/test_process.c"
|
|
|
|
|
(("/bin/sh") (which "sh"))
|
|
|
|
|
(("/bin/echo") (which "echo"))
|
2021-11-27 12:07:38 +00:00
|
|
|
|
(("cat") (which "cat")))))
|
2021-06-19 10:24:04 +00:00
|
|
|
|
(add-before 'check 'set-up-test-environment
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2021-07-16 13:25:42 +00:00
|
|
|
|
(setenv "TZDIR"
|
|
|
|
|
(search-input-directory inputs "share/zoneinfo")))))
|
2021-06-19 10:24:04 +00:00
|
|
|
|
#:configure-flags
|
|
|
|
|
(list
|
|
|
|
|
"--disable-ldap"
|
|
|
|
|
"--disable-mysql"
|
|
|
|
|
"--disable-systemd"
|
|
|
|
|
|
|
|
|
|
;; Disable BSD-4 licensed plugins.
|
|
|
|
|
"--disable-blowfish"
|
|
|
|
|
"--disable-des"
|
|
|
|
|
|
|
|
|
|
;; Make it usable. The default configuration is far too minimal to be
|
|
|
|
|
;; used with most common VPN set-ups.
|
|
|
|
|
;; See <https://wiki.strongswan.org/projects/strongswan/wiki/Autoconf>.
|
|
|
|
|
"--enable-aesni"
|
|
|
|
|
"--enable-attr-sql"
|
|
|
|
|
"--enable-chapoly"
|
|
|
|
|
"--enable-curl"
|
|
|
|
|
"--enable-dhcp"
|
|
|
|
|
"--enable-eap-aka"
|
|
|
|
|
"--enable-eap-aka-3gpp"
|
|
|
|
|
"--enable-eap-dynamic"
|
|
|
|
|
"--enable-eap-identity"
|
|
|
|
|
"--enable-eap-md5"
|
|
|
|
|
"--enable-eap-mschapv2"
|
|
|
|
|
"--enable-eap-peap"
|
|
|
|
|
"--enable-eap-radius"
|
|
|
|
|
"--enable-eap-sim"
|
|
|
|
|
"--enable-eap-sim-file"
|
|
|
|
|
"--enable-eap-simaka-pseudonym"
|
|
|
|
|
"--enable-eap-simaka-reauth"
|
|
|
|
|
"--enable-eap-simaka-sql"
|
|
|
|
|
"--enable-eap-tls"
|
|
|
|
|
"--enable-eap-tnc"
|
|
|
|
|
"--enable-eap-ttls"
|
|
|
|
|
"--enable-ext-auth"
|
|
|
|
|
"--enable-farp"
|
|
|
|
|
"--enable-ha"
|
|
|
|
|
"--enable-led"
|
|
|
|
|
"--enable-md4"
|
|
|
|
|
"--enable-mediation"
|
|
|
|
|
"--enable-openssl"
|
|
|
|
|
"--enable-soup"
|
|
|
|
|
"--enable-sql"
|
|
|
|
|
"--enable-sqlite"
|
|
|
|
|
"--enable-xauth-eap"
|
|
|
|
|
"--enable-xauth-noauth"
|
|
|
|
|
"--enable-xauth-pam"
|
|
|
|
|
|
|
|
|
|
;; Use libcap by default.
|
|
|
|
|
"--with-capabilities=libcap")))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list coreutils
|
|
|
|
|
curl
|
|
|
|
|
gmp
|
|
|
|
|
libcap
|
|
|
|
|
libgcrypt
|
2022-02-03 21:20:22 +00:00
|
|
|
|
libsoup-minimal-2
|
2021-12-13 16:18:24 +00:00
|
|
|
|
linux-pam
|
|
|
|
|
openssl))
|
2021-06-19 10:24:04 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list coreutils pkg-config tzdata-for-tests))
|
2021-06-19 10:24:04 +00:00
|
|
|
|
(synopsis "IKEv1/v2 keying daemon")
|
|
|
|
|
(description "StrongSwan is an IPsec implementation originally based upon
|
|
|
|
|
the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
|
|
|
|
|
NAT-T and more.")
|
|
|
|
|
(home-page "https://strongswan.org/")
|
|
|
|
|
(license
|
|
|
|
|
(list license:gpl2+
|
|
|
|
|
;; src/aikgen/*
|
|
|
|
|
;; src/libcharon/plugins/dnscert/*
|
|
|
|
|
;; src/libcharon/plugins/ext_auth/*
|
|
|
|
|
;; src/libcharon/plugins/vici/ruby/*
|
|
|
|
|
;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
|
|
|
|
|
license:expat
|
|
|
|
|
;; src/inclue/sys/*
|
|
|
|
|
license:bsd-3
|
|
|
|
|
;; src/libstrongswan/plugins/sha3/sha3_keccak.c
|
|
|
|
|
license:public-domain
|
|
|
|
|
;; src/libstrongswan/plugins/pkcs11/pkcs11.h
|
|
|
|
|
(license:non-copyleft
|
|
|
|
|
"file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
|
2021-11-27 12:07:38 +00:00
|
|
|
|
"pkcs11 contains an unknown permissive license. View the specific
|
2021-06-19 10:24:04 +00:00
|
|
|
|
file for more details.")
|
|
|
|
|
;; These files are not included in the
|
|
|
|
|
;; build, they are disabled through
|
|
|
|
|
;; options to ./configure
|
|
|
|
|
;;
|
|
|
|
|
;; src/libstrongswan/plugins/blowfish/bf_enc.c
|
|
|
|
|
;; src/libstrongswan/plugins/blowfish/bf_locl.h
|
|
|
|
|
;; src/libstrongswan/plugins/blowfish/bf_pi.h
|
|
|
|
|
;; src/libstrongswan/plugins/blowfish/bf_skey.c
|
|
|
|
|
;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
|
|
|
|
|
;; src/libstrongswan/plugins/des/des_crypter.c
|
|
|
|
|
license:bsd-4))))
|
|
|
|
|
|
2013-03-03 13:10:57 +00:00
|
|
|
|
(define-public vpnc
|
|
|
|
|
(package
|
|
|
|
|
(name "vpnc")
|
|
|
|
|
(version "0.5.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-08-31 08:11:09 +00:00
|
|
|
|
(uri (string-append "https://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-"
|
2013-03-03 13:10:57 +00:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256 (base32
|
2017-05-06 23:56:41 +00:00
|
|
|
|
"1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6"))))
|
2013-03-03 13:10:57 +00:00
|
|
|
|
(build-system gnu-build-system)
|
2022-06-29 10:51:55 +00:00
|
|
|
|
(native-inputs (append (list perl pkg-config vpnc-scripts)
|
|
|
|
|
(if (%current-target-system)
|
|
|
|
|
(list this-package)
|
|
|
|
|
'())))
|
|
|
|
|
(inputs (list libgcrypt vpnc-scripts))
|
2013-03-03 13:10:57 +00:00
|
|
|
|
(arguments
|
2022-06-29 10:51:55 +00:00
|
|
|
|
(list #:tests? #f ;; There is no check target
|
|
|
|
|
#:make-flags
|
|
|
|
|
#~(list (string-append "CC=" #$(cc-for-target))
|
|
|
|
|
(string-append "ETCDIR=" #$output "/etc/vpnc")
|
|
|
|
|
(string-append "PREFIX=" #$output))
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ;; No configure script.
|
|
|
|
|
(add-after 'unpack 'use-store-paths
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((vpnc-scripts (assoc-ref inputs "vpnc-scripts")))
|
|
|
|
|
(substitute* "config.c"
|
|
|
|
|
(("/etc/vpnc/vpnc-script")
|
|
|
|
|
(string-append vpnc-scripts
|
|
|
|
|
"/etc/vpnc/vpnc-script"))))))
|
|
|
|
|
(add-after 'unpack 'patch-Makefile
|
|
|
|
|
(lambda* (#:key target #:allow-other-keys)
|
|
|
|
|
(let* ((pkg-config #$(pkg-config-for-target))
|
|
|
|
|
(includedir (string-append pkg-config
|
|
|
|
|
" --variable=includedir"
|
|
|
|
|
" libgcrypt"))
|
|
|
|
|
(cflags (string-append pkg-config
|
|
|
|
|
" --cflags"
|
|
|
|
|
" libgcrypt"))
|
|
|
|
|
(libdir (string-append pkg-config
|
|
|
|
|
" --variable=libdir"
|
|
|
|
|
" libgcrypt"))
|
|
|
|
|
(libs (string-append pkg-config
|
|
|
|
|
" --libs"
|
|
|
|
|
" libgcrypt")))
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("\\$\\(shell libgcrypt-config --cflags\\)")
|
|
|
|
|
(string-append "-I$(shell " includedir ") "
|
|
|
|
|
"$(shell " cflags ")"))
|
|
|
|
|
(("\\$\\(shell libgcrypt-config --libs\\)")
|
|
|
|
|
(string-append
|
|
|
|
|
"-L$(shell " libdir ") "
|
|
|
|
|
"$(shell " libs ")")))
|
|
|
|
|
;; When cross-compiling the manpage can't be generated as the
|
|
|
|
|
;; Makefile needs to execute the resulting `vpnc' binary.
|
|
|
|
|
(when target
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("all : \\$\\(BINS\\) vpnc\\.8 vpnc-script")
|
|
|
|
|
"all : $(BINS) vpnc-script")
|
|
|
|
|
(("install -m644 vpnc\\.8.*") ""))))))
|
|
|
|
|
(add-after 'unpack 'install-manpage
|
|
|
|
|
(lambda* (#:key native-inputs inputs target
|
|
|
|
|
#:allow-other-keys)
|
|
|
|
|
;; As the manpage is not generated. Instead install it from
|
|
|
|
|
;; the input vpnc package.
|
|
|
|
|
(when target
|
|
|
|
|
(let* ((vpnc (assoc-ref native-inputs "vpnc"))
|
|
|
|
|
(man (string-append vpnc
|
|
|
|
|
"/share/man/man8/vpnc.8.gz"))
|
|
|
|
|
(output (string-append #$output "/share/man/man8")))
|
|
|
|
|
(install-file man output))))))))
|
2013-12-03 23:00:19 +00:00
|
|
|
|
(synopsis "Client for Cisco VPN concentrators")
|
2013-03-03 13:10:57 +00:00
|
|
|
|
(description
|
|
|
|
|
"vpnc is a VPN client compatible with Cisco's EasyVPN equipment.
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 04:46:59 +00:00
|
|
|
|
It supports IPSec (ESP) with Mode Configuration and Xauth. It supports only
|
2013-03-03 13:10:57 +00:00
|
|
|
|
shared-secret IPSec authentication with Xauth, AES (256, 192, 128), 3DES,
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 04:46:59 +00:00
|
|
|
|
1DES, MD5, SHA1, DH1/2/5 and IP tunneling. It runs entirely in userspace.
|
2013-03-03 13:10:57 +00:00
|
|
|
|
Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
|
2022-06-29 10:57:02 +00:00
|
|
|
|
(license (list license:gpl2+ license:bsd-2))
|
2020-01-17 21:24:21 +00:00
|
|
|
|
(home-page "https://www.unix-ag.uni-kl.de/~massar/vpnc/")))
|
2013-03-16 21:36:13 +00:00
|
|
|
|
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(define-public vpnc-scripts
|
2020-11-08 11:18:28 +00:00
|
|
|
|
(let ((commit "3885f8bbc4ae03fd6da0ada6de12f7223a59595c"))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "vpnc-scripts")
|
2020-11-08 11:18:28 +00:00
|
|
|
|
(version (string-append "20200925." (string-take commit 7)))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
|
|
|
|
(url "git://git.infradead.org/users/dwmw2/vpnc-scripts.git")
|
|
|
|
|
(commit commit)))
|
2018-03-13 19:39:42 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-11-08 11:18:28 +00:00
|
|
|
|
"1pmi4n58q81pmn9arvfixhvv6vkkf3rpwac3hwnwyl882q5q0ccx"))))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(build-system gnu-build-system)
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(inputs (list guile-3.0 ; for the wrapper scripts
|
|
|
|
|
coreutils
|
|
|
|
|
grep
|
|
|
|
|
iproute ; for ‘ip’
|
|
|
|
|
net-tools ; for ‘ifconfig’, ‘route’
|
|
|
|
|
sed
|
|
|
|
|
which))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'use-relative-paths
|
|
|
|
|
;; Patch the scripts to work with and use relative paths.
|
|
|
|
|
(lambda* _
|
|
|
|
|
(for-each (lambda (script)
|
|
|
|
|
(substitute* script
|
|
|
|
|
(("^PATH=.*") "")
|
2020-03-06 10:13:12 +00:00
|
|
|
|
(("/usr/s?bin/") "")
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(("\\[ +-x +([^]]+) +\\]" _ command)
|
|
|
|
|
(string-append "command -v >/dev/null 2>&1 "
|
|
|
|
|
command))))
|
|
|
|
|
(find-files "." "^vpnc-script"))
|
|
|
|
|
#t))
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
2018-06-21 17:26:20 +00:00
|
|
|
|
(invoke "gcc" "-o" "netunshare" "netunshare.c")))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(replace 'install
|
|
|
|
|
;; There is no Makefile; manually install the relevant files.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(etc (string-append out "/etc/vpnc")))
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(install-file file etc))
|
|
|
|
|
(append (find-files "." "^vpnc-script")
|
|
|
|
|
(list "netunshare"
|
|
|
|
|
"xinetd.netns.conf")))
|
|
|
|
|
#t)))
|
|
|
|
|
(add-after 'install 'wrap-scripts
|
|
|
|
|
;; Wrap scripts with paths to their common hard dependencies.
|
|
|
|
|
;; Optional dependencies will need to be installed by the user.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2021-05-31 18:06:12 +00:00
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(guile (search-input-file inputs "bin/guile")))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
(for-each
|
|
|
|
|
(lambda (script)
|
2019-12-11 11:21:54 +00:00
|
|
|
|
(wrap-script (string-append out "/etc/vpnc/" script)
|
2021-05-31 18:06:12 +00:00
|
|
|
|
#:guile guile
|
2017-05-06 23:19:12 +00:00
|
|
|
|
`("PATH" ":" prefix
|
|
|
|
|
,(map (lambda (name)
|
|
|
|
|
(let ((input (assoc-ref inputs name)))
|
|
|
|
|
(string-append input "/bin:"
|
|
|
|
|
input "/sbin")))
|
|
|
|
|
(list "coreutils"
|
|
|
|
|
"grep"
|
|
|
|
|
"iproute2"
|
|
|
|
|
"net-tools"
|
|
|
|
|
"sed"
|
|
|
|
|
"which")))))
|
2019-12-11 11:21:54 +00:00
|
|
|
|
(list "vpnc-script-ptrtd"
|
|
|
|
|
"vpnc-script-sshd"
|
|
|
|
|
"vpnc-script"))
|
2018-06-21 17:26:20 +00:00
|
|
|
|
#t))))
|
2017-05-06 23:19:12 +00:00
|
|
|
|
#:tests? #f)) ; no tests
|
|
|
|
|
(home-page "http://git.infradead.org/users/dwmw2/vpnc-scripts.git")
|
|
|
|
|
(synopsis "Network configuration scripts for Cisco VPN clients")
|
|
|
|
|
(description
|
|
|
|
|
"This set of scripts configures routing and name services when invoked
|
|
|
|
|
by the VPNC or OpenConnect Cisco @dfn{Virtual Private Network} (VPN) clients.
|
|
|
|
|
|
|
|
|
|
The default @command{vpnc-script} automatically configures most common
|
|
|
|
|
connections, and provides hooks for performing custom actions at various stages
|
|
|
|
|
of the connection or disconnection process.
|
|
|
|
|
|
|
|
|
|
Alternative scripts are provided for more complicated set-ups, or to serve as an
|
|
|
|
|
example for writing your own. For example, @command{vpnc-script-sshd} contains
|
|
|
|
|
the entire VPN in a network namespace accessible only through SSH.")
|
|
|
|
|
(license license:gpl2+))))
|
2013-03-16 21:36:13 +00:00
|
|
|
|
|
2018-04-21 09:37:20 +00:00
|
|
|
|
(define-public ocproxy
|
|
|
|
|
(package
|
|
|
|
|
(name "ocproxy")
|
|
|
|
|
(version "1.60")
|
|
|
|
|
(source (origin
|
2019-11-13 19:10:24 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/cernekee/ocproxy")
|
2019-11-13 19:10:24 +00:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-04-21 09:37:20 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-11-13 19:10:24 +00:00
|
|
|
|
"03323nnhb4y9nzwva04mq7xg03dvdrgp689g89f69jqc261skcqx"))))
|
2018-04-21 09:37:20 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list autoconf automake))
|
2018-04-21 09:37:20 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list libevent))
|
2018-04-21 09:37:20 +00:00
|
|
|
|
(home-page "https://github.com/cernekee/ocproxy")
|
|
|
|
|
(synopsis "OpenConnect proxy")
|
|
|
|
|
(description
|
|
|
|
|
"User-level @dfn{SOCKS} and port forwarding proxy for OpenConnect based
|
|
|
|
|
on LwIP. When using ocproxy, OpenConnect only handles network activity that
|
|
|
|
|
the user specifically asks to proxy, so the @dfn{VPN} interface no longer
|
|
|
|
|
\"hijacks\" all network traffic on the host.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2013-03-16 21:36:13 +00:00
|
|
|
|
(define-public openconnect
|
|
|
|
|
(package
|
2023-06-06 21:02:57 +00:00
|
|
|
|
(name "openconnect")
|
2023-06-06 21:08:17 +00:00
|
|
|
|
(version "9.12")
|
2023-06-06 21:02:57 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp.infradead.org/pub/openconnect/"
|
|
|
|
|
"openconnect-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2023-06-06 21:08:17 +00:00
|
|
|
|
(base32 "0gj1nba1pygvcjasqdakxxnx94dwx3l4hzj0dvipbzjdmbixrgm2"))))
|
2023-06-06 21:02:57 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list #:configure-flags
|
|
|
|
|
#~(list (string-append "--with-vpnc-script="
|
|
|
|
|
(search-input-file %build-inputs
|
|
|
|
|
"etc/vpnc/vpnc-script")))))
|
|
|
|
|
(native-inputs (list gettext-minimal pkg-config))
|
|
|
|
|
(inputs (list lz4 vpnc-scripts))
|
|
|
|
|
(propagated-inputs (list libxml2 gnutls zlib))
|
|
|
|
|
(synopsis "Client for Cisco VPN")
|
|
|
|
|
(description
|
|
|
|
|
"OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is
|
|
|
|
|
supported by the ASA5500 Series, by IOS 12.4(9)T or later on Cisco SR500, 870,
|
|
|
|
|
880, 1800, 2800, 3800, 7200 Series and Cisco 7301 Routers, and probably
|
|
|
|
|
others.")
|
|
|
|
|
(license license:lgpl2.1)
|
|
|
|
|
(home-page "https://www.infradead.org/openconnect/")))
|
2015-05-06 19:08:47 +00:00
|
|
|
|
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(define-public openconnect-sso
|
|
|
|
|
(package
|
|
|
|
|
(name "openconnect-sso")
|
2022-11-02 17:34:37 +00:00
|
|
|
|
(version "0.8.0")
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2022-11-02 17:34:37 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/vlaci/openconnect-sso")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(sha256
|
2022-11-02 17:34:37 +00:00
|
|
|
|
(base32 "0l214qxhxx214628mcg6rmbzbzna7mxj5l7rah9q4vvcd88ymp39"))))
|
|
|
|
|
(build-system pyproject-build-system)
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(arguments
|
2022-11-02 17:34:37 +00:00
|
|
|
|
`(#:phases
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-openconnect
|
2022-08-11 16:51:58 +00:00
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(substitute* "openconnect_sso/app.py"
|
|
|
|
|
(("\"openconnect\"")
|
2022-08-11 16:51:58 +00:00
|
|
|
|
(string-append "\""
|
|
|
|
|
(search-input-file inputs "/sbin/openconnect")
|
|
|
|
|
"\"")))))
|
2022-11-02 17:34:37 +00:00
|
|
|
|
(add-after 'check 'wrap-qt-process-path
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin/openconnect-sso"))
|
2022-08-11 16:51:58 +00:00
|
|
|
|
(qt-process-path
|
|
|
|
|
(search-input-file inputs
|
|
|
|
|
"/lib/qt5/libexec/QtWebEngineProcess")))
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(wrap-program bin
|
2021-05-31 18:09:45 +00:00
|
|
|
|
#:sh (search-input-file inputs "bin/bash")
|
2022-08-11 16:51:58 +00:00
|
|
|
|
`("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))))))))
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list openconnect
|
2022-11-02 17:34:37 +00:00
|
|
|
|
poetry
|
2021-12-13 16:18:24 +00:00
|
|
|
|
python-attrs
|
|
|
|
|
python-colorama
|
|
|
|
|
python-keyring
|
|
|
|
|
python-lxml
|
|
|
|
|
python-prompt-toolkit
|
|
|
|
|
python-requests
|
2023-02-17 19:17:55 +00:00
|
|
|
|
python-pyqt
|
2021-12-13 16:18:24 +00:00
|
|
|
|
python-pyqtwebengine
|
|
|
|
|
python-pysocks
|
|
|
|
|
python-pyxdg
|
|
|
|
|
python-structlog
|
|
|
|
|
python-toml
|
2022-07-18 11:57:16 +00:00
|
|
|
|
qtwebengine-5))
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(native-inputs
|
2022-11-02 17:34:37 +00:00
|
|
|
|
(list python-pytest
|
|
|
|
|
python-pytest-asyncio
|
|
|
|
|
python-pytest-httpserver))
|
2021-02-15 08:30:24 +00:00
|
|
|
|
(home-page "https://github.com/vlaci/openconnect-sso")
|
|
|
|
|
(synopsis "OpenConnect wrapper script supporting Azure AD (SAMLv2)")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a wrapper script for OpenConnect supporting Azure AD
|
|
|
|
|
(SAMLv2) authentication to Cisco SSL-VPNs.")
|
|
|
|
|
(license license:gpl3)))
|
|
|
|
|
|
2020-12-12 20:03:03 +00:00
|
|
|
|
(define-public openfortivpn
|
|
|
|
|
(package
|
|
|
|
|
(name "openfortivpn")
|
2022-07-26 12:02:32 +00:00
|
|
|
|
(version "1.17.3")
|
2020-12-12 20:03:03 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/adrienverge/openfortivpn")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-07-26 12:02:32 +00:00
|
|
|
|
"0an58f0qcyxdx3d5zb5m8vi45a0251b950b5lh16572n8z2g6s2l"))))
|
2020-12-12 20:03:03 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 21:15:07 +00:00
|
|
|
|
(list autoconf automake pkg-config))
|
2020-12-12 20:03:03 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list openssl ppp))
|
2020-12-12 20:03:03 +00:00
|
|
|
|
(home-page "https://github.com/adrienverge/openfortivpn")
|
|
|
|
|
(synopsis "Client for PPP+SSL VPN tunnel services")
|
|
|
|
|
(description "Openfortivpn is a client for PPP+SSL VPN tunnel services. It
|
|
|
|
|
spawns a pppd process and operates the communication between the gateway and
|
|
|
|
|
this process. It is compatible with Fortinet VPNs.")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2015-05-06 19:08:47 +00:00
|
|
|
|
(define-public openvpn
|
|
|
|
|
(package
|
|
|
|
|
(name "openvpn")
|
2022-12-22 12:28:21 +00:00
|
|
|
|
(version "2.5.8")
|
2015-05-06 19:08:47 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://swupdate.openvpn.org/community/releases/openvpn-"
|
2022-05-15 00:00:00 +00:00
|
|
|
|
version ".tar.gz"))
|
2015-05-06 19:08:47 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-12-22 12:28:21 +00:00
|
|
|
|
"1cixqm4gn2d1v8qkbww75j30fzvxz13gc7whcmz54i0x4fvibwx6"))))
|
2015-05-06 19:08:47 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags '("--enable-iproute2=yes")))
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list iproute))
|
2015-05-06 19:08:47 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list lz4 lzo openssl linux-pam))
|
2015-05-06 19:08:47 +00:00
|
|
|
|
(home-page "https://openvpn.net/")
|
|
|
|
|
(synopsis "Virtual private network daemon")
|
2018-03-04 16:33:56 +00:00
|
|
|
|
(description
|
|
|
|
|
"OpenVPN implements virtual private network (@dfn{VPN}) techniques
|
2015-05-06 19:08:47 +00:00
|
|
|
|
for creating secure point-to-point or site-to-site connections in routed or
|
|
|
|
|
bridged configurations and remote access facilities. It uses a custom
|
|
|
|
|
security protocol that utilizes SSL/TLS for key exchange. It is capable of
|
2018-03-04 16:33:56 +00:00
|
|
|
|
traversing network address translators (@dfn{NAT}s) and firewalls.")
|
2015-05-06 19:08:47 +00:00
|
|
|
|
(license license:gpl2)))
|
2015-08-17 08:16:45 +00:00
|
|
|
|
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(define-public protonvpn-cli
|
|
|
|
|
(package
|
|
|
|
|
(name "protonvpn-cli")
|
2020-12-20 14:16:52 +00:00
|
|
|
|
(version "2.2.6")
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
;; PyPI has a ".whl" file but not a proper source release.
|
|
|
|
|
;; Thus, fetch code from Git.
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/ProtonVPN/linux-cli")
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2020-12-20 14:16:52 +00:00
|
|
|
|
(base32 "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n"))))
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-12-23 03:38:08 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f ; no tests in repo
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'wrap 'wrap-wrapper
|
|
|
|
|
;; Wrap entrypoint with paths to its hard dependencies.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((entrypoint (string-append (assoc-ref outputs "out")
|
2022-02-08 18:05:40 +00:00
|
|
|
|
"/bin/protonvpn")))
|
2020-12-23 03:38:08 +00:00
|
|
|
|
(wrap-program entrypoint
|
2021-05-31 18:11:50 +00:00
|
|
|
|
#:sh (search-input-file inputs "bin/bash")
|
2020-12-23 03:38:08 +00:00
|
|
|
|
`("PATH" ":" prefix
|
|
|
|
|
,(map (lambda (name)
|
|
|
|
|
(let ((input (assoc-ref inputs name)))
|
|
|
|
|
(string-append input "/bin:"
|
|
|
|
|
input "/sbin")))
|
|
|
|
|
(list "dialog"
|
|
|
|
|
"iproute2"
|
|
|
|
|
"iptables"
|
|
|
|
|
"ncurses"
|
|
|
|
|
"openvpn"
|
|
|
|
|
"procps"
|
|
|
|
|
"which")))))
|
2022-02-08 18:05:41 +00:00
|
|
|
|
#t))
|
|
|
|
|
;; The `protonvpn' script wants to write to `~user' to initialize its
|
|
|
|
|
;; logger, so simply setting HOME=/tmp won't cut it. Remove
|
|
|
|
|
;; sanity-check.
|
|
|
|
|
(delete 'sanity-check))))
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-docopt))
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list dialog
|
|
|
|
|
iproute
|
|
|
|
|
iptables
|
|
|
|
|
ncurses
|
|
|
|
|
openvpn
|
|
|
|
|
procps
|
|
|
|
|
python-jinja2
|
|
|
|
|
python-pythondialog
|
|
|
|
|
python-requests
|
|
|
|
|
which))
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(synopsis "Command-line client for ProtonVPN")
|
|
|
|
|
(description
|
2020-05-24 20:05:11 +00:00
|
|
|
|
"This is the official command-line interface for ProtonVPN, a secure
|
|
|
|
|
point-to-point virtual private networking (VPN) service with a gratis tier.
|
|
|
|
|
It can automatically find and connect to the fastest servers or use Tor over
|
|
|
|
|
VPN. The gratis tier offers unlimited bandwidth for up to 10 devices.")
|
2020-05-21 03:28:11 +00:00
|
|
|
|
(home-page "https://github.com/ProtonVPN/linux-cli")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2015-08-17 08:16:45 +00:00
|
|
|
|
(define-public tinc
|
|
|
|
|
(package
|
|
|
|
|
(name "tinc")
|
2019-11-02 21:55:22 +00:00
|
|
|
|
(version "1.0.36")
|
2015-08-17 08:16:45 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2018-10-24 03:33:42 +00:00
|
|
|
|
(uri (string-append "https://tinc-vpn.org/packages/"
|
2019-11-02 21:55:07 +00:00
|
|
|
|
"tinc-" version ".tar.gz"))
|
2015-08-17 08:16:45 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-11-02 21:55:22 +00:00
|
|
|
|
"021i2sl2mjscbm8g59d7vs74iw3gf0m48wg7w3zhwj6czarkpxs0"))))
|
2015-08-17 08:16:45 +00:00
|
|
|
|
(build-system gnu-build-system)
|
2015-09-03 12:41:08 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags
|
|
|
|
|
'("--sysconfdir=/etc"
|
|
|
|
|
"--localstatedir=/var")))
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(inputs (list zlib lzo openssl))
|
2018-10-24 03:33:42 +00:00
|
|
|
|
(home-page "https://tinc-vpn.org")
|
2015-08-17 08:16:45 +00:00
|
|
|
|
(synopsis "Virtual Private Network (VPN) daemon")
|
|
|
|
|
(description
|
|
|
|
|
"Tinc is a VPN that uses tunnelling and encryption to create a secure
|
|
|
|
|
private network between hosts on the internet.")
|
|
|
|
|
(license license:gpl2+)))
|
2016-07-15 00:38:33 +00:00
|
|
|
|
|
|
|
|
|
(define-public sshuttle
|
|
|
|
|
(package
|
|
|
|
|
(name "sshuttle")
|
2019-02-04 20:07:49 +00:00
|
|
|
|
(version "0.78.5")
|
2016-07-15 00:38:33 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-02-04 20:07:49 +00:00
|
|
|
|
"0vp13xwrhx4m6zgsyzvai84lkq9mzkaw47j58dk0ll95kaymk2x8"))))
|
2016-07-15 00:38:33 +00:00
|
|
|
|
(build-system python-build-system)
|
2018-09-27 21:38:36 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-FHS-file-names
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "sshuttle/client.py"
|
|
|
|
|
(("/usr/bin/env") (which "env")))
|
|
|
|
|
(substitute* "sshuttle/ssh.py"
|
2018-09-30 19:12:06 +00:00
|
|
|
|
(("/bin/sh") "sh"))
|
2018-09-27 21:38:36 +00:00
|
|
|
|
#t)))))
|
2016-07-15 00:38:33 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-setuptools-scm
|
|
|
|
|
;; For tests only.
|
|
|
|
|
python-flake8
|
|
|
|
|
python-mock
|
|
|
|
|
python-pytest-cov
|
|
|
|
|
python-pytest-runner))
|
2016-07-15 00:38:33 +00:00
|
|
|
|
(home-page "https://github.com/sshuttle/sshuttle")
|
|
|
|
|
(synopsis "VPN that transparently forwards connections over SSH")
|
|
|
|
|
(description "sshuttle creates an encrypted virtual private network (VPN)
|
|
|
|
|
connection to any remote server to which you have secure shell (SSH) access.
|
|
|
|
|
The only requirement is a suitable version of Python on the server;
|
|
|
|
|
administrative privileges are required only on the client. Unlike most VPNs,
|
|
|
|
|
sshuttle forwards entire sessions, not packets, using kernel transparent
|
|
|
|
|
proxying. This makes it faster and more reliable than SSH's own tunneling and
|
|
|
|
|
port forwarding features. It can forward both TCP and UDP traffic, including
|
|
|
|
|
DNS domain name queries.")
|
|
|
|
|
(license license:lgpl2.0))) ; incorrectly identified as GPL in ‘setup.py’
|
2016-12-01 11:21:55 +00:00
|
|
|
|
|
|
|
|
|
(define-public sshoot
|
|
|
|
|
(package
|
|
|
|
|
(name "sshoot")
|
2022-04-19 20:03:09 +00:00
|
|
|
|
(version "1.5.1")
|
2016-12-01 11:21:55 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-04-19 20:03:09 +00:00
|
|
|
|
"05i54nga4vy660yy9yf6dl376yj0jc51303yr295qk3k9w0k96yd"))))
|
2016-12-01 11:21:55 +00:00
|
|
|
|
(build-system python-build-system)
|
2016-12-19 03:13:59 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-paths
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "sshoot/tests/test_manager.py"
|
2022-04-19 20:03:09 +00:00
|
|
|
|
(("/bin/sh") (which "sh")))))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(invoke "pytest" "-vv" "--pyargs" "sshoot")))))))
|
2016-12-01 11:21:55 +00:00
|
|
|
|
(inputs
|
2022-04-19 20:03:09 +00:00
|
|
|
|
(list python-argcomplete
|
|
|
|
|
python-prettytable
|
|
|
|
|
python-pyyaml
|
|
|
|
|
python-pyxdg
|
|
|
|
|
python-toolrack))
|
2016-12-01 11:21:55 +00:00
|
|
|
|
;; For tests only.
|
|
|
|
|
(native-inputs
|
2022-04-19 20:03:09 +00:00
|
|
|
|
(list python-pytest python-pytest-mock))
|
2017-08-04 02:20:04 +00:00
|
|
|
|
(home-page "https://github.com/albertodonato/sshoot")
|
2016-12-01 11:21:55 +00:00
|
|
|
|
(synopsis "sshuttle VPN session manager")
|
|
|
|
|
(description "sshoot provides a command-line interface to manage multiple
|
|
|
|
|
@command{sshuttle} virtual private networks. It supports flexible profiles
|
|
|
|
|
with configuration options for most of @command{sshuttle}’s features.")
|
|
|
|
|
(license license:gpl3+)))
|
2018-12-24 14:35:26 +00:00
|
|
|
|
|
|
|
|
|
(define-public badvpn
|
|
|
|
|
(package
|
|
|
|
|
(name "badvpn")
|
|
|
|
|
(version "1.999.130")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/ambrop72/badvpn")
|
2018-12-24 14:35:26 +00:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0rm67xhi7bh3yph1vh07imv5y1pwyldvw3wa5bz471g8mnkc7d3c"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; no tests
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list nspr nss openssl))
|
2018-12-24 14:35:26 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list pkg-config))
|
2018-12-24 14:35:26 +00:00
|
|
|
|
(home-page "https://github.com/ambrop72/badvpn")
|
|
|
|
|
(synopsis "Peer-to-peer virtual private network (VPN)")
|
|
|
|
|
(description "@code{BadVPN} is a collection of virtual private
|
|
|
|
|
network (VPN) tools. It includes:
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item NCD programming language.\n
|
|
|
|
|
NCD (Network Configuration Daemon) is a daemon and programming/scripting
|
|
|
|
|
language for configuration of network interfaces and other aspects of the
|
|
|
|
|
operating system.
|
|
|
|
|
@item Tun2socks network-layer proxifier.\n
|
|
|
|
|
The tun2socks program socksifes TCP connections at the network layer. It
|
|
|
|
|
implements a TUN device which accepts all incoming TCP connections (regardless
|
|
|
|
|
of destination IP), and forwards the connections through a SOCKS server.
|
|
|
|
|
@item Peer-to-peer VPN.\n
|
|
|
|
|
The peer-to-peer VPN implements a Layer 2 (Ethernet) network between the peers
|
|
|
|
|
(VPN nodes).
|
|
|
|
|
@end enumerate")
|
|
|
|
|
;; This project contains a bundled lwIP. lwIP is also released under the
|
|
|
|
|
;; 3-clause BSD license.
|
|
|
|
|
(license license:bsd-3)))
|
2019-03-02 00:30:51 +00:00
|
|
|
|
|
2020-04-03 05:12:00 +00:00
|
|
|
|
(define-public wireguard-linux-compat
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(package
|
2020-04-03 05:12:00 +00:00
|
|
|
|
(name "wireguard-linux-compat")
|
2021-01-03 05:31:49 +00:00
|
|
|
|
(version "1.0.20201221")
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2020-04-03 05:12:00 +00:00
|
|
|
|
(uri (string-append "https://git.zx2c4.com/wireguard-linux-compat/"
|
|
|
|
|
"snapshot/wireguard-linux-compat-" version
|
|
|
|
|
".tar.xz"))
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-01-03 05:31:49 +00:00
|
|
|
|
"0ci13in0fqq32n5qamch4qhjgbdq86ygrgmfhc9szsh2nsl8jlkf"))))
|
2020-04-26 20:51:02 +00:00
|
|
|
|
(build-system linux-module-build-system)
|
|
|
|
|
(outputs '("out"
|
|
|
|
|
"kernel-patch"))
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(arguments
|
2020-11-17 01:18:54 +00:00
|
|
|
|
`(#:linux ,linux-libre-5.4 ; mustn't have WG built-in
|
|
|
|
|
#:tests? #f ; no test suite
|
2020-04-26 20:51:02 +00:00
|
|
|
|
#:modules ((guix build linux-module-build-system)
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(guix build utils)
|
|
|
|
|
(ice-9 popen)
|
|
|
|
|
(ice-9 textual-ports))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2020-04-26 20:51:02 +00:00
|
|
|
|
(add-before 'build 'change-directory
|
|
|
|
|
(lambda _
|
|
|
|
|
(chdir "./src")
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'build 'build-patch
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2020-04-26 20:51:02 +00:00
|
|
|
|
(let* ((patch-builder "../kernel-tree-scripts/create-patch.sh")
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(port (open-input-pipe patch-builder))
|
|
|
|
|
(str (get-string-all port)))
|
|
|
|
|
(close-pipe port)
|
2020-04-03 05:12:00 +00:00
|
|
|
|
(call-with-output-file "wireguard.patch"
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(lambda (port)
|
|
|
|
|
(format port "~a" str))))
|
2020-11-17 01:18:54 +00:00
|
|
|
|
#t))
|
2020-04-26 20:51:02 +00:00
|
|
|
|
(add-after 'install 'install-patch
|
2020-04-03 05:12:00 +00:00
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(install-file "wireguard.patch"
|
2020-04-26 20:51:02 +00:00
|
|
|
|
(assoc-ref %outputs "kernel-patch"))
|
|
|
|
|
#t))
|
|
|
|
|
;; So that 'install-license-files' works...
|
|
|
|
|
(add-before 'install-license-files 'reset-cwd
|
|
|
|
|
(lambda _
|
|
|
|
|
(chdir "..")
|
2020-04-03 05:12:00 +00:00
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://git.zx2c4.com/wireguard-linux-compat/")
|
|
|
|
|
(synopsis "WireGuard kernel module for Linux 3.10 through 5.5")
|
2020-04-26 20:51:02 +00:00
|
|
|
|
(description "This package contains an out-of-tree kernel patch and
|
|
|
|
|
a loadable module adding WireGuard to Linux kernel versions 3.10 through 5.5.
|
|
|
|
|
WireGuard was added to Linux 5.6.")
|
2019-03-02 00:30:51 +00:00
|
|
|
|
(license license:gpl2)))
|
2019-03-19 07:34:10 +00:00
|
|
|
|
|
2020-02-18 14:05:27 +00:00
|
|
|
|
(define-public wireguard-tools
|
|
|
|
|
(package
|
|
|
|
|
(name "wireguard-tools")
|
2021-10-03 22:51:59 +00:00
|
|
|
|
(version "1.0.20210914")
|
2020-02-18 14:05:27 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://git.zx2c4.com/wireguard-tools.git")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2021-10-03 22:51:59 +00:00
|
|
|
|
(base32 "1nafrb2naif0z7z3vijnlyp81z89ywzlagc64k4sqa3ayzn95sm0"))))
|
2020-02-18 14:05:27 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2020-03-03 05:12:19 +00:00
|
|
|
|
`(#:make-flags
|
2020-08-24 00:26:03 +00:00
|
|
|
|
(list ,(string-append "CC=" (cc-for-target))
|
2020-03-03 04:42:56 +00:00
|
|
|
|
"--directory=src"
|
2020-02-18 14:05:27 +00:00
|
|
|
|
"WITH_BASHCOMPLETION=yes"
|
|
|
|
|
;; Install the ‘simple and dirty’ helper script wg-quick(8).
|
|
|
|
|
"WITH_WGQUICK=yes"
|
|
|
|
|
(string-append "PREFIX=" (assoc-ref %outputs "out"))
|
|
|
|
|
;; Currently used only to create an empty /etc/wireguard directory.
|
|
|
|
|
(string-append "SYSCONFDIR=no-thanks"))
|
2020-03-03 05:12:19 +00:00
|
|
|
|
;; The test suite is meant to be run interactively. It runs Clang's
|
|
|
|
|
;; scan-build static analyzer and then starts a web server to display the
|
|
|
|
|
;; results.
|
|
|
|
|
#:tests? #f
|
2020-02-18 14:05:27 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2021-10-03 22:51:59 +00:00
|
|
|
|
(delete 'configure) ; no configure script
|
2020-05-08 09:36:12 +00:00
|
|
|
|
(add-after 'install 'install-contrib-docs
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2021-10-04 19:19:54 +00:00
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (string-append out "/share/doc/wireguard-tools")))
|
2021-10-03 22:51:59 +00:00
|
|
|
|
(copy-recursively "contrib/" doc))))
|
2020-05-08 09:36:12 +00:00
|
|
|
|
(add-after 'install 'wrap-wg-quick
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(inputs-sbin (map (lambda (input)
|
2021-10-03 22:51:59 +00:00
|
|
|
|
(string-append (assoc-ref inputs input)
|
|
|
|
|
"/sbin"))
|
|
|
|
|
(list "iproute"
|
|
|
|
|
"iptables"
|
|
|
|
|
"procps"
|
|
|
|
|
"resolvconf")))
|
|
|
|
|
(coreutils (string-append (assoc-ref inputs "coreutils")
|
|
|
|
|
"/bin")))
|
2020-05-08 09:36:12 +00:00
|
|
|
|
(wrap-program (string-append out "/bin/wg-quick")
|
2021-05-31 18:12:55 +00:00
|
|
|
|
#:sh (search-input-file inputs "bin/bash")
|
2020-05-08 09:36:12 +00:00
|
|
|
|
`("PATH" ":" prefix ,(append inputs-sbin
|
2021-10-03 22:51:59 +00:00
|
|
|
|
(list coreutils))))))))))
|
2020-05-08 09:36:12 +00:00
|
|
|
|
(inputs
|
|
|
|
|
`(("resolvconf" ,openresolv)
|
|
|
|
|
("coreutils" ,coreutils)
|
|
|
|
|
("bash" ,bash) ; for scripts using /dev/tcp
|
|
|
|
|
("procps" ,procps)
|
|
|
|
|
("iproute" ,iproute)
|
|
|
|
|
("iptables" ,iptables)))
|
2020-02-18 14:05:27 +00:00
|
|
|
|
(home-page "https://www.wireguard.com/")
|
|
|
|
|
(synopsis "Tools for configuring WireGuard tunnels")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides the user-space command-line tools for using and
|
|
|
|
|
configuring WireGuard tunnels.
|
|
|
|
|
|
|
|
|
|
WireGuard is a simple and fast general-purpose @acronym{VPN, Virtual Private
|
|
|
|
|
Network} that securely encapsulates IP packets over UDP. It aims to be as easy
|
|
|
|
|
to configure and deploy as SSH. VPN connections are made simply by exchanging
|
|
|
|
|
public keys and can roam across IP addresses.")
|
|
|
|
|
(license
|
|
|
|
|
(list license:lgpl2.1+ ; src/netlink.h & contrib/embeddable-wg-library
|
|
|
|
|
license:gpl2)))) ; everything else
|
|
|
|
|
|
2019-03-19 07:34:10 +00:00
|
|
|
|
(define-public xl2tpd
|
|
|
|
|
(package
|
|
|
|
|
(name "xl2tpd")
|
2022-07-05 09:27:01 +00:00
|
|
|
|
(version "1.3.17")
|
2019-03-19 07:34:10 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/xelerance/xl2tpd")
|
|
|
|
|
(commit (string-append "v" version))))
|
2019-04-23 20:00:41 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
2019-03-19 07:34:10 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-07-05 09:27:01 +00:00
|
|
|
|
"06aiidwygywaa1jn8m2pw8l3vnsc2bjnacbjmlsdy1cqgr1f5cc9"))))
|
2019-03-19 07:34:10 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2022-07-06 09:29:33 +00:00
|
|
|
|
(list
|
|
|
|
|
#:make-flags
|
|
|
|
|
#~(list (string-append "PREFIX=" #$output)
|
|
|
|
|
(string-append "CC=" #$(cc-for-target)))
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ;no configure script
|
|
|
|
|
(add-before 'build 'setup-environment
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "l2tp.h"
|
|
|
|
|
(("/usr/sbin/pppd")
|
|
|
|
|
(search-input-file inputs "/sbin/pppd")))
|
|
|
|
|
(setenv "KERNELSRC"
|
|
|
|
|
(assoc-ref inputs "kernel-headers")))))
|
2019-04-23 20:00:26 +00:00
|
|
|
|
#:tests? #f)) ; no tests provided
|
2021-12-13 15:30:26 +00:00
|
|
|
|
(inputs (list libpcap ppp))
|
2019-03-19 07:34:10 +00:00
|
|
|
|
(home-page "https://www.xelerance.com/software/xl2tpd/")
|
|
|
|
|
(synopsis "Layer 2 Tunnelling Protocol Daemon (RFC 2661)")
|
|
|
|
|
(description
|
|
|
|
|
"xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661).
|
|
|
|
|
L2TP allows you to tunnel PPP over UDP.")
|
|
|
|
|
(license license:gpl2)))
|
2022-08-23 08:39:13 +00:00
|
|
|
|
|
|
|
|
|
(define-public vpn-slice
|
|
|
|
|
(package
|
|
|
|
|
(name "vpn-slice")
|
|
|
|
|
(version "0.16.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "vpn-slice" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1anfx4hn2ggm6sbwqmqx68s3l2rjcy4z4l038xqb440jnk8jvl18"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs (list python-dnspython python-setproctitle))
|
|
|
|
|
(home-page "https://github.com/dlenski/vpn-slice")
|
|
|
|
|
(synopsis "Split tunneling replacement for vpnc-script")
|
|
|
|
|
(description "vpn-slice is a replacement for @command{vpnc-script} used by
|
|
|
|
|
@code{openconnect} and @code{vpnc}. Instead of trying to copy the behavior of
|
|
|
|
|
standard corporate VPN clients, which normally reroute all your network
|
|
|
|
|
traffic through the VPN, vpn-slice tries to minimize your contact with an
|
|
|
|
|
intrusive VPN. This is also known as a split-tunnel VPN, since it splits your
|
|
|
|
|
traffic between the VPN tunnel and your normal network interfaces.
|
|
|
|
|
|
|
|
|
|
By default, vpn-slice only routes traffic for specific hosts or subnets
|
|
|
|
|
through the VPN. It automatically looks up named hosts, using the VPN's DNS
|
|
|
|
|
servers, and adds entries for them to your @file{/etc/hosts} (which it cleans
|
|
|
|
|
up after VPN disconnection), however it does not otherwise alter your
|
|
|
|
|
@file{/etc/resolv.conf} at all.")
|
|
|
|
|
(license license:gpl3+)))
|