1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages tor)
21 #:use-module ((guix licenses) #:select (bsd-3 gpl2+))
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages libevent)
26 #:use-module (gnu packages compression)
27 #:use-module (gnu packages openssl)
28 #:use-module (gnu packages pcre)
29 #:use-module (gnu packages autotools)
30 #:use-module (gnu packages w3m))
38 (uri (string-append "https://www.torproject.org/dist/tor-"
42 "0fx8qnwh2f8ykfx0np4hyznjfi4xfy96z59pk96y3zyjvjjh5pdk"))))
43 (build-system gnu-build-system)
47 ("libevent" ,libevent)))
49 ;; TODO: Recommend `torsocks' since `torify' needs it.
51 (home-page "http://www.torproject.org/")
52 (synopsis "Anonymous network router to improve privacy on the Internet")
54 "Tor protects you by bouncing your communications around a distributed
55 network of relays run by volunteers all around the world: it prevents
56 somebody watching your Internet connection from learning what sites you
57 visit, and it prevents the sites you visit from learning your physical
58 location. Tor works with many of your existing applications, including
59 web browsers, instant messaging clients, remote login, and other
60 applications based on the TCP protocol.")
63 (define-public torsocks
69 (uri (string-append "http://torsocks.googlecode.com/files/torsocks-"
73 "1m0is5q24sf7jjlkl0icfkdc0m53nbkg0q72s57p48yp4hv7v9dy"))))
74 (build-system gnu-build-system)
75 (home-page "http://code.google.com/p/torsocks/")
76 (synopsis "Use socks-friendly applications with Tor")
78 "Torsocks allows you to use most socks-friendly applications in a safe
79 way with Tor. It ensures that DNS requests are handled safely and explicitly
80 rejects UDP traffic from the application you're using.")
83 (define-public privoxy
89 (uri (string-append "mirror://sourceforge/ijbswa/Sources/"
90 version "%20%28stable%29/privoxy-"
91 version "-stable-src.tar.gz"))
94 "1f6xb7aa47p90c26vqaw74y6drs9gpnhxsgby3mx0awdjh0ydisy"))))
95 (build-system gnu-build-system)
97 '(;; The default 'sysconfdir' is $out/etc; change that to
99 #:configure-flags (list (string-append "--sysconfdir="
100 (assoc-ref %outputs "out")
102 #:phases (alist-cons-before
105 ;; Unfortunately, this is not a tarball produced by
107 (zero? (system* "autoreconf" "-vfi")))
114 ("autoconf" ,autoconf)
115 ("automake" ,automake)))
116 (home-page "http://www.privoxy.org")
117 (synopsis "Web proxy with advanced filtering capabilities for enhancing privacy")
119 "Privoxy is a non-caching web proxy with advanced filtering capabilities
120 for enhancing privacy, modifying web page data and HTTP headers, controlling
121 access, and removing ads and other obnoxious Internet junk. Privoxy has a
122 flexible configuration and can be customized to suit individual needs and
123 tastes. It has application for both stand-alone systems and multi-user