mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 21:27:37 -05:00
b0e7b6992f
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.
326 lines
13 KiB
Scheme
326 lines
13 KiB
Scheme
;;; GNU Guix --- Functional package management for GNU
|
|
;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
|
;;; Copyright © 2016, 2017, 2018, 2020 Efraim Flashner <efraim@flashner.co.il>
|
|
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
|
;;; Copyright © 2017, 2018, 2019 Eric Bavier <bavier@member.fsf.org>
|
|
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
|
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
|
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
|
|
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
|
;;; Copyright © 2020 André Batista <nandre@riseup.net>
|
|
;;;
|
|
;;; 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)
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
#:use-module (guix packages)
|
|
#:use-module (guix utils)
|
|
#:use-module (guix download)
|
|
#:use-module (guix git-download)
|
|
#:use-module (guix build-system gnu)
|
|
#:use-module (guix build-system python)
|
|
#:use-module (gnu packages)
|
|
#:use-module (gnu packages base)
|
|
#:use-module (gnu packages libevent)
|
|
#:use-module (gnu packages linux)
|
|
#:use-module (gnu packages check)
|
|
#:use-module (gnu packages compression)
|
|
#:use-module (gnu packages pcre)
|
|
#:use-module (gnu packages pkg-config)
|
|
#:use-module (gnu packages python)
|
|
#:use-module (gnu packages python-crypto)
|
|
#:use-module (gnu packages python-web)
|
|
#:use-module (gnu packages python-xyz)
|
|
#:use-module (gnu packages qt)
|
|
#:use-module (gnu packages autotools)
|
|
#:use-module (gnu packages tls)
|
|
#:use-module (gnu packages w3m))
|
|
|
|
(define-public tor
|
|
(package
|
|
(name "tor")
|
|
(version "0.4.3.6")
|
|
(source (origin
|
|
(method url-fetch)
|
|
(uri (string-append "https://dist.torproject.org/tor-"
|
|
version ".tar.gz"))
|
|
(sha256
|
|
(base32
|
|
"0qmcrkjip0ywq77232m73pjwqiaj0q2klwklqlpbw575shvhcbba"))))
|
|
(build-system gnu-build-system)
|
|
(arguments
|
|
`(#:configure-flags
|
|
(list "--enable-lzma"
|
|
"--enable-zstd")))
|
|
(native-inputs
|
|
`(("pkg-config" ,pkg-config)
|
|
("python" ,python))) ; for tests
|
|
(inputs
|
|
`(("libevent" ,libevent)
|
|
("libseccomp" ,libseccomp)
|
|
("openssl" ,openssl)
|
|
("xz" ,xz)
|
|
("zlib" ,zlib)
|
|
("zstd" ,zstd "lib")))
|
|
(home-page "https://www.torproject.org/")
|
|
(synopsis "Anonymous network router to improve privacy on the Internet")
|
|
(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.
|
|
|
|
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.
|
|
|
|
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
|
|
the application layer) you need to install @code{torsocks}.
|
|
|
|
This package only provides a client to the Tor Network.")))
|
|
|
|
(define-public torsocks
|
|
(package
|
|
(name "torsocks")
|
|
(version "2.3.0")
|
|
(source (origin
|
|
(method url-fetch)
|
|
(uri (string-append "https://people.torproject.org/~dgoulet/"
|
|
"torsocks/torsocks-" version ".tar.xz"))
|
|
(sha256
|
|
(base32
|
|
"08inrkap29gikb6sdmb58z43hw4abwrfw7ny40c4xzdkss0vkwdr"))))
|
|
(build-system gnu-build-system)
|
|
(inputs
|
|
`(("libcap" ,libcap)))
|
|
(arguments
|
|
`(#:phases (modify-phases %standard-phases
|
|
(add-after 'build 'absolutize
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
(substitute* "src/bin/torsocks"
|
|
(("getcap=.*")
|
|
(string-append "getcap=" (which "getcap") "\n")))
|
|
#t)))))
|
|
(home-page "https://www.torproject.org/")
|
|
(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.")
|
|
|
|
;; All the files explicitly say "version 2 only".
|
|
(license license:gpl2)))
|
|
|
|
(define-public privoxy
|
|
(package
|
|
(name "privoxy")
|
|
(version "3.0.28")
|
|
(source (origin
|
|
(method url-fetch)
|
|
(uri (string-append "mirror://sourceforge/ijbswa/Sources/"
|
|
version "%20%28stable%29/privoxy-"
|
|
version "-stable-src.tar.gz"))
|
|
(sha256
|
|
(base32
|
|
"0jl2yav1qzqnaqnnx8i6i53ayckkimcrs3l6ryvv7bda6v08rmxm"))))
|
|
(build-system gnu-build-system)
|
|
(arguments
|
|
'(;; The default 'sysconfdir' is $out/etc; change that to
|
|
;; $out/etc/privoxy.
|
|
#:configure-flags (list (string-append "--sysconfdir="
|
|
(assoc-ref %outputs "out")
|
|
"/etc/privoxy")
|
|
"--localstatedir=/var")
|
|
#: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)))))
|
|
(inputs
|
|
`(("w3m" ,w3m)
|
|
("pcre" ,pcre)
|
|
("zlib" ,zlib)))
|
|
(native-inputs
|
|
`(("autoconf" ,autoconf)
|
|
("automake" ,automake)))
|
|
(home-page "https://www.privoxy.org")
|
|
(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.")
|
|
(license license:gpl2+)))
|
|
|
|
(define-public onionshare
|
|
(package
|
|
(name "onionshare")
|
|
(version "2.2")
|
|
(source
|
|
(origin
|
|
(method git-fetch)
|
|
(uri (git-reference
|
|
(url "https://github.com/micahflee/onionshare")
|
|
(commit (string-append "v" version))))
|
|
(file-name (git-file-name name version))
|
|
(sha256
|
|
(base32 "0m8ygxcyp3nfzzhxs2dfnpqwh1vx0aws44lszpnnczz4fks3a5j4"))))
|
|
(build-system python-build-system)
|
|
(arguments
|
|
`(#:phases
|
|
(modify-phases %standard-phases
|
|
(add-after 'unpack 'fix-install-path
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
(onionshare (string-append out "/share/onionshare")))
|
|
(substitute* '("setup.py" "onionshare/common.py")
|
|
(("sys.prefix,") (string-append "'" out "',")))
|
|
(substitute* "setup.py"
|
|
;; For the nautilus plugin.
|
|
(("/usr/share/nautilus") "share/nautilus"))
|
|
(substitute* "install/org.onionshare.OnionShare.desktop"
|
|
(("/usr") out))
|
|
#t)))
|
|
(delete 'check)
|
|
(add-before 'strip 'check
|
|
;; After all the patching we run the tests after installing.
|
|
(lambda _
|
|
(setenv "HOME" "/tmp") ; Some tests need a writable homedir
|
|
(invoke "pytest" "tests/")
|
|
#t)))))
|
|
(native-inputs
|
|
`(("python-pytest" ,python-pytest)))
|
|
(inputs
|
|
`(("python-pycrypto" ,python-pycrypto)
|
|
("python-flask" ,python-flask)
|
|
("python-flask-httpauth" ,python-flask-httpauth)
|
|
("python-nautilus" ,python-nautilus)
|
|
("python-sip" ,python-sip)
|
|
("python-stem" ,python-stem)
|
|
("python-pysocks" ,python-pysocks)
|
|
("python-pyqt" ,python-pyqt)))
|
|
(home-page "https://onionshare.org/")
|
|
(synopsis "Securely and anonymously share files")
|
|
(description "OnionShare is a tool for securely and anonymously sending
|
|
and receiving files using Tor onion services. It works by starting a web
|
|
server directly on your computer and making it accessible as an unguessable
|
|
Tor web address that others can load in a Tor-enabled web browser to download
|
|
files from you, or upload files to you. It doesn't require setting up a
|
|
separate server, using a third party file-sharing service, or even logging
|
|
into an account.")
|
|
;; Bundled, minified jquery is expat licensed.
|
|
(license (list license:gpl3+ license:expat))))
|
|
|
|
(define-public nyx
|
|
(package
|
|
(name "nyx")
|
|
(version "2.1.0")
|
|
(source
|
|
(origin
|
|
(method url-fetch)
|
|
(uri (pypi-uri name version))
|
|
(sha256
|
|
(base32
|
|
"02rrlllz2ci6i6cs3iddyfns7ang9a54jrlygd2jw1f9s6418ll8"))))
|
|
(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
|
|
@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.")
|
|
(license license:gpl3+)))
|