2013-01-20 22:21:04 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-03-26 15:38:16 +00:00
|
|
|
|
;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
2015-02-27 16:53:06 +00:00
|
|
|
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
2021-03-16 13:26:33 +00:00
|
|
|
|
;;; Copyright © 2016, 2017, 2018, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
|
mailmap: Update entries for Nikita.
* .mailmap: change email and name for Nikita.
* Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish,
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/cinnamon.scm,
gnu/packages/compression.scm, gnu/packages/crypto.scm,
gnu/packages/databases.scm, gnu/packages/django.scm, gnu/packages/dns.scm,
gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/forth.scm,
gnu/packages/fvwm.scm, gnu/packages/games.scm, gnu/packages/gl.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile-xyz.scm,
gnu/packages/haskell-apps.scm, gnu/packages/haskell-check.scm,
gnu/packages/haskell-crypto.scm, gnu/packages/haskell-xyz.scm,
gnu/packages/haskell.scm, gnu/packages/image-viewers.scm,
gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/language.scm,
gnu/packages/libcanberra.scm, gnu/packages/linux.scm,
gnu/packages/lisp-xyz.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm,
gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm,
gnu/packages/ncurses.scm, gnu/packages/networking.scm,
gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm,
gnu/packages/rust.scm, gnu/packages/scheme.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm,
gnu/packages/tor.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm: Likewise.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2020-05-11 11:05:45 +00:00
|
|
|
|
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
|
2021-01-31 20:17:08 +00:00
|
|
|
|
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2021-03-14 16:07:59 +00:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019, 2021 Eric Bavier <bavier@posteo.net>
|
2017-06-16 11:15:17 +00:00
|
|
|
|
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
|
2018-11-11 12:10:56 +00:00
|
|
|
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
2020-03-30 20:21:08 +00:00
|
|
|
|
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
|
2020-06-18 07:37:06 +00:00
|
|
|
|
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
2020-06-16 22:20:57 +00:00
|
|
|
|
;;; Copyright © 2020 André Batista <nandre@riseup.net>
|
2021-06-27 03:15:58 +00:00
|
|
|
|
;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
|
2013-01-20 22:21:04 +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 tor)
|
2017-01-29 13:00:55 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2013-01-20 22:21:04 +00:00
|
|
|
|
#:use-module (guix packages)
|
2020-06-16 22:20:57 +00:00
|
|
|
|
#:use-module (guix utils)
|
2013-01-20 22:21:04 +00:00
|
|
|
|
#:use-module (guix download)
|
2015-11-10 17:38:04 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2013-01-20 22:21:04 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-09-18 20:27:36 +00:00
|
|
|
|
#:use-module (guix build-system python)
|
2015-11-10 17:38:04 +00:00
|
|
|
|
#:use-module (gnu packages)
|
2017-04-07 13:49:43 +00:00
|
|
|
|
#:use-module (gnu packages base)
|
2013-01-20 22:21:04 +00:00
|
|
|
|
#:use-module (gnu packages libevent)
|
2017-04-07 13:49:43 +00:00
|
|
|
|
#:use-module (gnu packages linux)
|
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)
|
2013-01-20 22:21:04 +00:00
|
|
|
|
#:use-module (gnu packages compression)
|
2013-06-06 22:02:48 +00:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2021-06-27 03:15:58 +00:00
|
|
|
|
#:use-module (gnu packages glib)
|
2017-10-03 12:49:37 +00:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2015-06-06 04:47:34 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
2021-07-22 04:06:08 +00:00
|
|
|
|
#:use-module (gnu packages python-check)
|
2019-08-14 03:34:57 +00:00
|
|
|
|
#:use-module (gnu packages python-crypto)
|
gnu: Move web packages from python to python-web.
This is in part to address <https://bugs.gnu.org/27284>.
* gnu/packages/python.scm (python-httplib2, python2-httplib2)
(python-sockjs-tornado, python2-sockjs-tornado)
(python-flask-babel, python2-flask-babel)
(python-html5lib, python2-html5lib)
(python-html5lib-0.9, python2-html5lib-0.9)
(python-html5-parser, python2-html5-parser)
(python-webencodings, python2-webencodings)
(python-openid, python2-openid, python-cssutils, python2-cssutils)
(python-cssselect, python2-cssutils)
(python-openid-cla, python2-openid-cla)
(python-openid-teams, python2-openid-teams)
(python-tornado, python2-tornado)
(python-tornado-http-auth, python-terminado, python2-terminado)
(python-webob, python2-webob, python-zope-event, python2-zope-event)
(python-zope-interface, python2-zope-interface)
(python-zope-exceptions, python2-zope-exceptions)
(python-zope-testing, python2-zope-testing)
(python-zope-testrunner, python2-zope-testrunner)
(python-zope-i18nmessageid, python2-zope-i18nmessageid)
(python-zope-schema, python2-zope-schema)
(python-zope-configuration, python2-zope-configuration)
(python-zope-proxy, python2-zope-proxy)
(python-zope-location, python2-zope-location)
(python-zope-security, python2-zope-security)
(python-zope-component, python2-zope-component)
(python-ndg-httpsclient, python2-ndg-httpsclient)
(python-websocket-client, python2-websocket-client)
(python-requests-toolbelt, python2-requests-toolbelt)
(python-rauth, python2-rauth, python-urllib3, python2-urllib3)
(awscli, python-wsgiproxy2, python2-wsgiproxy2)
(python-pastedeploy, python2-pastedeploy)
(python-webtest, python2-webtest, python-flask, python2-flask)
(python-flast-wtf, python2-flask-wtf)
(python-flask-multistatic, python2-flask-multistatic)
(python-cookies, python2-cookies)
(python-responses, python2-responses)
(python-geventhttpclient, python2-geventhttpclient)
(python-requests-oauthlib, python2-requests-oauthlib)
(python-url, python2-url, python-cachecontrol, python2-cachecontrol)
(python-betamax, python2-betamax)
(python-betamax-matchers, python2-betamax-matchers)
(python-s3transfer, python2-s3transfer)
(python-flask-restful, python-flask-basicauth)
(python-flask-sqlalchemy, python-flask-restplus)
(python-flask-restful-swagger, python-htmlmin, python2-htmlmin)
(python-flask-htmlmin, python2-flask-htmlmin)
(python-flask-login, python2-flask-login)
(python-oauth2client, python-flask-oidc)
(python-webassets, python-cssmin, python2-cssmin)
(python-elasticsearch, python2-elasticsearch)
(python-flask-script, python2-flask-script)
(python-flask-migrate, python2-flask-migrate)
(python-genshi, python2-genshi)
(python-flask-principal, python2-flask-principal)
(python-flask-httpauth, python2-flask-httpauth)
(python-uritemplate, python2-uritemplate): Move to...
* gnu/packages/python-web.scm: ... here. New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/admin.scm, gnu/packages/backup.scm,
gnu/packages/dav.scm, gnu/packages/django.scm,
gnu/packages/docker.scm, gnu/packages/ebook.scm,
gnu/packages/logging.scm, gnu/packages/mail.scm,
gnu/packages/music.scm, gnu/packages/openstack.scm,
gnu/packages/package-management.scm, gnu/packages/rdf.scm,
gnu/packages/tls.scm, gnu/packages/tor.scm,
gnu/packages/tryton.scm, gnu/packages/version-control.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm: Adjust accordingly.
2017-11-13 22:24:11 +00:00
|
|
|
|
#:use-module (gnu packages python-web)
|
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)
|
2016-09-11 18:43:06 +00:00
|
|
|
|
#:use-module (gnu packages qt)
|
2013-06-06 22:02:48 +00:00
|
|
|
|
#:use-module (gnu packages autotools)
|
gnu: Move content of openssl module into tls module.
* gnu/packages/openssl.scm (openssl, perl-net-ssleay): Move to...
* gnu/packages/tls.scm: ...here.
* gnu/packages/openssl.scm: Delete file.
* gnu-system.am (GNU_SYSTEM_MODULES): Unregister deleted file.
* gnu/packages/{admin.scm, bittorrent.scm, certs.scm, ci.scm,
cyrus-sasl.scm, databases.scm, dns.scm, ebook.scm, enlightenment.scm,
gnunet.scm, libreoffice.scm, links.scm, mail.scm, messaging.scm,
networking.scm, ntp.scm, openldap.scm, package-management.scm, pdf.scm,
python.scm, qt.scm, rdesktop.scm, rdf.scm, ruby.scm, ssh.scm,
synergy.scm, tor.scm, version-control.scm, video.scm, vpn.scm,
w3m.scm, web.scm, weechat.scm, xiph.scm}: Adapt module import.
2015-07-05 16:27:24 +00:00
|
|
|
|
#:use-module (gnu packages tls)
|
2013-06-06 22:02:48 +00:00
|
|
|
|
#:use-module (gnu packages w3m))
|
2013-01-20 22:21:04 +00:00
|
|
|
|
|
|
|
|
|
(define-public tor
|
|
|
|
|
(package
|
|
|
|
|
(name "tor")
|
2021-08-16 21:18:12 +00:00
|
|
|
|
(version "0.4.6.7")
|
2013-01-20 22:21:04 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-09-24 19:26:30 +00:00
|
|
|
|
(uri (string-append "https://dist.torproject.org/tor-"
|
2013-01-20 22:21:04 +00:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-08-16 21:18:12 +00:00
|
|
|
|
"16hga7195va8v0x062dc05nbz4sm3dscifcqpl8235dj47hmqrpz"))))
|
2013-01-20 22:21:04 +00:00
|
|
|
|
(build-system gnu-build-system)
|
2020-05-15 15:49:18 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "--enable-lzma"
|
2021-02-03 19:16:13 +00:00
|
|
|
|
"--enable-zstd")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'skip-practracker
|
|
|
|
|
;; This is a style linter. It doesn't get to throw fatal errors.
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "TOR_DISABLE_PRACTRACKER" "set")
|
|
|
|
|
#t)))))
|
2015-06-06 04:47:34 +00:00
|
|
|
|
(native-inputs
|
2017-10-03 12:49:37 +00:00
|
|
|
|
`(("pkg-config" ,pkg-config)
|
2020-05-15 15:49:18 +00:00
|
|
|
|
("python" ,python))) ; for tests
|
2013-01-20 22:21:04 +00:00
|
|
|
|
(inputs
|
2020-05-15 15:49:18 +00:00
|
|
|
|
`(("libevent" ,libevent)
|
2017-10-03 12:49:37 +00:00
|
|
|
|
("libseccomp" ,libseccomp)
|
2020-05-15 15:49:18 +00:00
|
|
|
|
("openssl" ,openssl)
|
2017-10-03 12:49:37 +00:00
|
|
|
|
("xz" ,xz)
|
2020-05-15 15:49:18 +00:00
|
|
|
|
("zlib" ,zlib)
|
2019-07-22 12:53:12 +00:00
|
|
|
|
("zstd" ,zstd "lib")))
|
2016-09-24 19:26:30 +00:00
|
|
|
|
(home-page "https://www.torproject.org/")
|
2014-09-13 13:50:30 +00:00
|
|
|
|
(synopsis "Anonymous network router to improve privacy on the Internet")
|
2013-01-20 22:21:04 +00:00
|
|
|
|
(description
|
|
|
|
|
"Tor protects you by bouncing your communications around a distributed
|
|
|
|
|
network of relays run by volunteers all around the world: it prevents
|
|
|
|
|
somebody watching your Internet connection from learning what sites you
|
|
|
|
|
visit, and it prevents the sites you visit from learning your physical
|
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
|
|
|
|
location. Tor works with many of your existing applications, including
|
2013-01-20 22:21:04 +00:00
|
|
|
|
web browsers, instant messaging clients, remote login, and other
|
2016-12-15 10:37:21 +00:00
|
|
|
|
applications based on the TCP protocol.
|
2016-12-17 21:13:31 +00:00
|
|
|
|
|
2020-06-16 22:20:57 +00:00
|
|
|
|
This package is the full featured @code{tor} which is needed for running
|
|
|
|
|
relays, bridges or directory authorities. If you just want to access the Tor
|
|
|
|
|
network or to setup an onion service you may install @code{tor-client}
|
|
|
|
|
instead.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public tor-client
|
|
|
|
|
(package
|
|
|
|
|
(inherit tor)
|
|
|
|
|
(name "tor-client")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments tor)
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
(append flags
|
|
|
|
|
'("--disable-module-relay")))))
|
|
|
|
|
(synopsis "Client to the anonymous Tor network")
|
|
|
|
|
(description
|
|
|
|
|
"Tor protects you by bouncing your communications around a distributed
|
|
|
|
|
network of relays run by volunteers all around the world: it prevents
|
|
|
|
|
somebody watching your Internet connection from learning what sites you
|
|
|
|
|
visit, and it prevents the sites you visit from learning your physical
|
|
|
|
|
location. Tor works with many of your existing applications, including
|
|
|
|
|
web browsers, instant messaging clients, remote login, and other
|
|
|
|
|
applications based on the TCP protocol.
|
|
|
|
|
|
2016-12-15 10:37:21 +00:00
|
|
|
|
To @code{torify} applications (to take measures to ensure that an application,
|
|
|
|
|
which has not been designed for use with Tor such as ssh, will use only Tor for
|
|
|
|
|
internet connectivity, and also ensures that there are no leaks from DNS, UDP or
|
2020-06-16 22:20:57 +00:00
|
|
|
|
the application layer) you need to install @code{torsocks}.
|
|
|
|
|
|
|
|
|
|
This package only provides a client to the Tor Network.")))
|
2013-05-28 20:22:58 +00:00
|
|
|
|
|
|
|
|
|
(define-public torsocks
|
|
|
|
|
(package
|
|
|
|
|
(name "torsocks")
|
2019-02-08 12:00:37 +00:00
|
|
|
|
(version "2.3.0")
|
2013-05-28 20:22:58 +00:00
|
|
|
|
(source (origin
|
2016-10-18 18:15:55 +00:00
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://people.torproject.org/~dgoulet/"
|
2018-12-23 02:58:07 +00:00
|
|
|
|
"torsocks/torsocks-" version ".tar.xz"))
|
2015-11-10 17:38:04 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-02-08 12:00:37 +00:00
|
|
|
|
"08inrkap29gikb6sdmb58z43hw4abwrfw7ny40c4xzdkss0vkwdr"))))
|
2013-05-28 20:22:58 +00:00
|
|
|
|
(build-system gnu-build-system)
|
2017-04-07 13:49:43 +00:00
|
|
|
|
(inputs
|
2019-02-08 12:00:37 +00:00
|
|
|
|
`(("libcap" ,libcap)))
|
2017-04-07 13:49:43 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-after 'build 'absolutize
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "src/bin/torsocks"
|
2019-02-08 12:00:37 +00:00
|
|
|
|
(("getcap=.*")
|
|
|
|
|
(string-append "getcap=" (which "getcap") "\n")))
|
2017-04-07 13:49:43 +00:00
|
|
|
|
#t)))))
|
2016-10-18 18:15:55 +00:00
|
|
|
|
(home-page "https://www.torproject.org/")
|
2013-05-28 20:22:58 +00:00
|
|
|
|
(synopsis "Use socks-friendly applications with Tor")
|
|
|
|
|
(description
|
|
|
|
|
"Torsocks allows you to use most socks-friendly applications in a safe
|
|
|
|
|
way with Tor. It ensures that DNS requests are handled safely and explicitly
|
|
|
|
|
rejects UDP traffic from the application you're using.")
|
2015-11-10 17:38:04 +00:00
|
|
|
|
|
|
|
|
|
;; All the files explicitly say "version 2 only".
|
2017-01-29 13:00:55 +00:00
|
|
|
|
(license license:gpl2)))
|
2013-06-06 22:02:48 +00:00
|
|
|
|
|
|
|
|
|
(define-public privoxy
|
|
|
|
|
(package
|
|
|
|
|
(name "privoxy")
|
2021-02-28 17:38:50 +00:00
|
|
|
|
(version "3.0.32")
|
2013-06-06 22:02:48 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/ijbswa/Sources/"
|
|
|
|
|
version "%20%28stable%29/privoxy-"
|
|
|
|
|
version "-stable-src.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-02-28 17:38:50 +00:00
|
|
|
|
"1mzfxwnvnf1jkvfcrsivm6mjwdzjrc3h89qziz0mwi32ih0f87f6"))))
|
2013-06-06 22:02:48 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2014-06-18 15:22:29 +00:00
|
|
|
|
'(;; The default 'sysconfdir' is $out/etc; change that to
|
|
|
|
|
;; $out/etc/privoxy.
|
|
|
|
|
#:configure-flags (list (string-append "--sysconfdir="
|
|
|
|
|
(assoc-ref %outputs "out")
|
2020-06-18 07:37:06 +00:00
|
|
|
|
"/etc/privoxy")
|
2020-11-29 17:22:16 +00:00
|
|
|
|
"--localstatedir=/var"
|
2020-11-29 17:23:29 +00:00
|
|
|
|
"--with-brotli"
|
2020-11-29 17:22:16 +00:00
|
|
|
|
"--with-openssl")
|
2020-06-18 07:37:06 +00:00
|
|
|
|
#:tests? #f ; no test suite
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-default-logging
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
|
|
|
|
;; Do not create /var/run nor /var/log/privoxy/logfile.
|
|
|
|
|
(substitute* "GNUmakefile.in"
|
|
|
|
|
(("(logfile \\|\\| exit )1" _ match)
|
|
|
|
|
(string-append match "0"))
|
|
|
|
|
(("(\\$\\(DESTDIR\\)\\$\\(SHARE_DEST\\)) \\\\" _ match)
|
|
|
|
|
match)
|
|
|
|
|
((".*\\$\\(LOG_DEST\\) \\$\\(DESTDIR\\)\\$\\(PID_DEST\\).*")
|
|
|
|
|
""))
|
|
|
|
|
;; Disable logging in the default configuration to allow for
|
|
|
|
|
;; non-root users using it as is.
|
|
|
|
|
(substitute* "config"
|
|
|
|
|
(("^logdir") "#logdir")
|
|
|
|
|
(("^logfile") "#logfile")))
|
|
|
|
|
#t)))))
|
2013-06-06 22:02:48 +00:00
|
|
|
|
(inputs
|
2020-11-29 17:23:29 +00:00
|
|
|
|
`(("brotli" ,brotli)
|
|
|
|
|
("openssl" ,openssl)
|
2013-06-06 22:02:48 +00:00
|
|
|
|
("pcre" ,pcre)
|
2020-11-29 17:22:16 +00:00
|
|
|
|
("w3m" ,w3m)
|
2020-03-30 20:21:08 +00:00
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("autoconf" ,autoconf)
|
2013-06-06 22:02:48 +00:00
|
|
|
|
("automake" ,automake)))
|
2016-09-24 20:08:44 +00:00
|
|
|
|
(home-page "https://www.privoxy.org")
|
2013-06-06 22:02:48 +00:00
|
|
|
|
(synopsis "Web proxy with advanced filtering capabilities for enhancing privacy")
|
|
|
|
|
(description
|
|
|
|
|
"Privoxy is a non-caching web proxy with advanced filtering capabilities
|
|
|
|
|
for enhancing privacy, modifying web page data and HTTP headers, controlling
|
|
|
|
|
access, and removing ads and other obnoxious Internet junk. Privoxy has a
|
|
|
|
|
flexible configuration and can be customized to suit individual needs and
|
|
|
|
|
tastes. It has application for both stand-alone systems and multi-user
|
|
|
|
|
networks.")
|
2017-01-29 13:00:55 +00:00
|
|
|
|
(license license:gpl2+)))
|
2016-09-11 18:43:06 +00:00
|
|
|
|
|
2021-03-14 16:07:59 +00:00
|
|
|
|
(define-public onionshare-cli
|
2016-09-11 18:43:06 +00:00
|
|
|
|
(package
|
2021-03-14 16:07:59 +00:00
|
|
|
|
(name "onionshare-cli")
|
2021-07-22 04:06:08 +00:00
|
|
|
|
(version "2.3.2")
|
2016-09-11 18:43:06 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2018-11-29 05:23:10 +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/micahflee/onionshare")
|
2018-11-29 05:23:10 +00:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2016-09-11 18:43:06 +00:00
|
|
|
|
(sha256
|
2021-07-22 04:06:08 +00:00
|
|
|
|
(base32 "1qk0zvbaws9md1lmi0al1jc8v86l65nf7n3w1s36iwsfzazc6clv"))))
|
2016-09-11 18:43:06 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2018-12-12 05:59:17 +00:00
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
2016-09-11 18:43:06 +00:00
|
|
|
|
(inputs
|
2021-03-14 16:07:59 +00:00
|
|
|
|
;; TODO: obfs4proxy
|
|
|
|
|
`(("python-click" ,python-click)
|
2021-07-22 04:06:08 +00:00
|
|
|
|
("python-colorama" ,python-colorama)
|
2021-03-14 16:07:59 +00:00
|
|
|
|
("python-eventlet" ,python-eventlet)
|
2019-08-14 03:34:57 +00:00
|
|
|
|
("python-flask" ,python-flask)
|
2019-10-16 03:31:11 +00:00
|
|
|
|
("python-flask-httpauth" ,python-flask-httpauth)
|
2021-03-14 16:07:59 +00:00
|
|
|
|
("python-flask-socketio" ,python-flask-socketio)
|
|
|
|
|
("python-psutil" ,python-psutil)
|
|
|
|
|
("python-pycryptodome" ,python-pycryptodome)
|
2019-08-14 03:34:57 +00:00
|
|
|
|
("python-pysocks" ,python-pysocks)
|
2021-03-14 16:07:59 +00:00
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-stem" ,python-stem)
|
|
|
|
|
("python-unidecode" ,python-unidecode)
|
|
|
|
|
("python-urllib3" ,python-urllib3)
|
|
|
|
|
("tor" ,tor)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'bake-tor
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* (list "cli/onionshare_cli/common.py"
|
|
|
|
|
"desktop/src/onionshare/gui_common.py")
|
|
|
|
|
(("shutil\\.which\\(\\\"tor\\\"\\)")
|
|
|
|
|
(string-append "\"" (which "tor") "\"")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'build 'change-directory
|
|
|
|
|
(lambda _ (chdir "cli") #t))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
|
;; Greendns is not needed for testing, and if eventlet tries to
|
|
|
|
|
;; load it, an OSError is thrown when getprotobyname is called.
|
|
|
|
|
;; Thankfully there is an environment variable to disable the
|
|
|
|
|
;; greendns import, so use it:
|
|
|
|
|
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
|
|
|
|
(invoke "pytest" "-v" "./tests"))))))
|
2016-09-11 18:43:06 +00:00
|
|
|
|
(home-page "https://onionshare.org/")
|
|
|
|
|
(synopsis "Securely and anonymously share files")
|
2021-03-14 16:07:59 +00:00
|
|
|
|
(description "OnionShare lets you securely and anonymously share files,
|
|
|
|
|
host websites, and chat with friends using the Tor network.
|
|
|
|
|
|
|
|
|
|
This package contains @code{onionshare-cli}, a command-line interface to
|
|
|
|
|
OnionShare.")
|
|
|
|
|
;; Bundled, minified jquery and socket.io are expat licensed.
|
2019-10-16 03:31:11 +00:00
|
|
|
|
(license (list license:gpl3+ license:expat))))
|
2017-01-29 13:08:14 +00:00
|
|
|
|
|
2021-03-14 16:07:59 +00:00
|
|
|
|
(define-public onionshare
|
|
|
|
|
(package (inherit onionshare-cli)
|
|
|
|
|
(name "onionshare")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments onionshare-cli)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(replace 'change-directory
|
|
|
|
|
(lambda _ (chdir "desktop/src") #t))
|
|
|
|
|
(add-after 'unpack 'patch-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Disable tests that require starting servers, which will hang
|
|
|
|
|
;; during build:
|
|
|
|
|
;; - test_autostart_and_autostop_timer_mismatch
|
|
|
|
|
;; - test_autostart_timer
|
|
|
|
|
;; - test_autostart_timer_too_short
|
|
|
|
|
;; - test_autostop_timer_too_short
|
|
|
|
|
(substitute* "desktop/tests/test_gui_share.py"
|
2021-07-22 04:06:08 +00:00
|
|
|
|
(("import os" &)
|
|
|
|
|
(string-append "import pytest\n" &))
|
2021-03-14 16:07:59 +00:00
|
|
|
|
(("( *)def test_autost(art|op)_(timer(_too_short)?|and_[^(]*)\\(" & >)
|
|
|
|
|
(string-append > "@pytest.mark.skip\n" &)))
|
|
|
|
|
;; - test_13_quit_with_server_started_should_warn
|
|
|
|
|
(substitute* "desktop/tests/test_gui_tabs.py"
|
2021-07-22 04:06:08 +00:00
|
|
|
|
(("import os" &)
|
|
|
|
|
(string-append "import pytest\n" &))
|
2021-03-14 16:07:59 +00:00
|
|
|
|
(("( *)def test_13" & >)
|
|
|
|
|
(string-append > "@pytest.mark.skip\n" &)))
|
|
|
|
|
;; Remove multiline load-path adjustment, so that onionshare-cli
|
|
|
|
|
;; modules are loaded from input
|
|
|
|
|
(use-modules (ice-9 regex)
|
|
|
|
|
(ice-9 rdelim))
|
|
|
|
|
(with-atomic-file-replacement "desktop/tests/conftest.py"
|
|
|
|
|
(let ((start-rx (make-regexp "^# Allow importing")))
|
|
|
|
|
(lambda (in out)
|
|
|
|
|
(let loop ()
|
|
|
|
|
(let ((line (read-line in 'concat)))
|
|
|
|
|
(if (regexp-exec start-rx line)
|
|
|
|
|
(begin ; slurp until closing paren
|
|
|
|
|
(let slurp ()
|
|
|
|
|
(let ((line (read-line in 'concat)))
|
|
|
|
|
(if (string=? line ")\n")
|
|
|
|
|
(dump-port in out) ; done
|
|
|
|
|
(slurp)))))
|
|
|
|
|
(begin
|
|
|
|
|
(display line out)
|
|
|
|
|
(loop))))))))))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Some tests need a writable homedir:
|
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
|
;; Ensure installed modules can be found:
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append %output "/lib/python"
|
|
|
|
|
,(version-major+minor (package-version python))
|
|
|
|
|
"/site-packages:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
;; Avoid `getprotobyname` issues:
|
|
|
|
|
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
|
|
|
|
;; Make Qt render "offscreen":
|
|
|
|
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
|
|
|
|
;; Must be run from "desktop" dir:
|
|
|
|
|
(chdir "..")
|
|
|
|
|
(invoke "./tests/run.sh")))
|
|
|
|
|
(add-after 'install 'install-data
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(share (string-append out "/share")))
|
|
|
|
|
(install-file "org.onionshare.OnionShare.svg"
|
|
|
|
|
(string-append share "/icons/hicolor/scalable/apps"))
|
|
|
|
|
(install-file "org.onionshare.OnionShare.desktop"
|
|
|
|
|
(string-append share "/applications"))
|
|
|
|
|
#t)))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(inputs
|
|
|
|
|
;; TODO: obfs4proxy
|
|
|
|
|
`(("onionshare-cli" ,onionshare-cli)
|
|
|
|
|
("python-shiboken-2" ,python-shiboken-2)
|
|
|
|
|
("python-pyside-2" ,python-pyside-2)
|
|
|
|
|
("python-qrcode" ,python-qrcode)
|
|
|
|
|
;; The desktop client uses onionshare-cli like a python module. But
|
|
|
|
|
;; propagating onionshare-cli's inputs is not great, since a user would
|
|
|
|
|
;; not expect to have those installed when using onionshare-cli as a
|
|
|
|
|
;; standalone utility. So add onionshare-cli's inputs here.
|
|
|
|
|
,@(package-inputs onionshare-cli)))
|
|
|
|
|
(description "OnionShare lets you securely and anonymously share files,
|
|
|
|
|
host websites, and chat with friends using the Tor network.")))
|
|
|
|
|
|
2017-01-29 13:08:14 +00:00
|
|
|
|
(define-public nyx
|
2018-06-20 22:33:13 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "nyx")
|
2019-02-05 16:41:26 +00:00
|
|
|
|
(version "2.1.0")
|
2018-06-20 22:33:13 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-02-05 16:41:26 +00:00
|
|
|
|
"02rrlllz2ci6i6cs3iddyfns7ang9a54jrlygd2jw1f9s6418ll8"))))
|
2018-06-20 22:33:13 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-stem" ,python-stem)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'install-man-page
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(man (string-append out "/share/man")))
|
|
|
|
|
(install-file "nyx.1" (string-append man "/man1"))
|
|
|
|
|
#t)))
|
|
|
|
|
(add-after 'install 'install-sample-configuration
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (string-append out "/share/doc/" ,name "-" ,version)))
|
|
|
|
|
(install-file "web/nyxrc.sample" doc)
|
|
|
|
|
#t))))
|
|
|
|
|
;; XXX The tests seem to require more of a real terminal than the build
|
|
|
|
|
;; environment provides:
|
|
|
|
|
;; _curses.error: setupterm: could not find terminal
|
|
|
|
|
;; With TERM=linux, the tests try to move the cursor and still fail:
|
|
|
|
|
;; _curses.error: cbreak() returned ERR
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(home-page "https://nyx.torproject.org/")
|
|
|
|
|
(synopsis "Tor relay status monitor")
|
|
|
|
|
(description
|
|
|
|
|
"Nyx monitors the performance of relays participating in the
|
2017-01-29 13:08:14 +00:00
|
|
|
|
@uref{https://www.torproject.org/, Tor anonymity network}. It displays this
|
|
|
|
|
information visually and in real time, using a curses-based terminal interface.
|
|
|
|
|
This makes Nyx well-suited for remote shell connections and servers without a
|
|
|
|
|
graphical display. It's like @command{top} for Tor, providing detailed
|
|
|
|
|
statistics and status reports on:
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item connections (with IP address, hostname, fingerprint, and consensus data),
|
|
|
|
|
@item bandwidth, processor, and memory usage,
|
|
|
|
|
@item the relay's current configuration,
|
|
|
|
|
@item logged events,
|
|
|
|
|
@item and much more.
|
|
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
|
|
Potential client and exit connections are scrubbed of sensitive information.")
|
2018-06-20 22:33:13 +00:00
|
|
|
|
(license license:gpl3+)))
|
2021-06-27 03:15:58 +00:00
|
|
|
|
|
|
|
|
|
(define-public tractor
|
|
|
|
|
(package
|
|
|
|
|
(name "tractor")
|
2021-08-17 07:25:47 +00:00
|
|
|
|
(version "3.12")
|
2021-06-27 03:15:58 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "traxtor" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-08-17 07:25:47 +00:00
|
|
|
|
"0bwj4l6szvx7hpjr8va3hlv0g79sxz02hsb60l61hb314c6d4r3q"))))
|
2021-06-27 03:15:58 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas.
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-fire" ,python-fire)
|
|
|
|
|
("python-psutil" ,python-psutil)
|
|
|
|
|
("python-pygobject" ,python-pygobject)
|
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-stem" ,python-stem)
|
|
|
|
|
("python-termcolor" ,python-termcolor)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'install-man-page
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(man1 (string-append out "/share/man/man1")))
|
|
|
|
|
(install-file "tractor/man/tractor.1" man1)
|
|
|
|
|
#t)))
|
|
|
|
|
(add-after 'install 'install-gschema
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(schemas (string-append out "/share/glib-2.0/schemas")))
|
|
|
|
|
(install-file "tractor/tractor.gschema.xml" schemas)
|
|
|
|
|
#t))))))
|
|
|
|
|
(home-page "https://framagit.org/tractor")
|
|
|
|
|
(synopsis "Setup an onion routing proxy")
|
|
|
|
|
(description
|
|
|
|
|
"This package uses Python stem library to provide a connection through
|
|
|
|
|
the onion proxy and sets up proxy in user session, so you don't have to mess
|
|
|
|
|
up with TOR on your system anymore.")
|
|
|
|
|
(license license:gpl3+)))
|