gnu: gtksourceview-2: Propagate input libxml2.
[jackhill/guix/guix.git] / gnu / packages / tor.scm
CommitLineData
7f08437b 1;;; GNU Guix --- Functional package management for GNU
9355498d 2;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
722ec722 3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
7f08437b
LC
4;;;
5;;; This file is part of GNU Guix.
6;;;
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.
11;;;
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.
16;;;
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/>.
19
20(define-module (gnu packages tor)
4f7e152b 21 #:use-module ((guix licenses) #:select (bsd-3 gpl2+))
7f08437b
LC
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)
b2e3dd94 27 #:use-module (gnu packages pcre)
8850303e 28 #:use-module (gnu packages python)
b2e3dd94 29 #:use-module (gnu packages autotools)
cc2b77df 30 #:use-module (gnu packages tls)
b2e3dd94 31 #:use-module (gnu packages w3m))
7f08437b
LC
32
33(define-public tor
34 (package
35 (name "tor")
6bb5c4ef 36 (version "0.2.6.10")
7f08437b
LC
37 (source (origin
38 (method url-fetch)
39 (uri (string-append "https://www.torproject.org/dist/tor-"
40 version ".tar.gz"))
41 (sha256
42 (base32
6bb5c4ef 43 "13ab4bqz19980q4qgmbr7ar4r9y70bmsfbw66y9n31ivwkpw0hh5"))))
7f08437b 44 (build-system gnu-build-system)
8850303e
MW
45 (native-inputs
46 `(("python" ,python-2))) ; for tests
7f08437b
LC
47 (inputs
48 `(("zlib" ,zlib)
49 ("openssl" ,openssl)
50 ("libevent" ,libevent)))
4f7e152b
LC
51
52 ;; TODO: Recommend `torsocks' since `torify' needs it.
53
7f08437b 54 (home-page "http://www.torproject.org/")
9e771e3b 55 (synopsis "Anonymous network router to improve privacy on the Internet")
7f08437b
LC
56 (description
57 "Tor protects you by bouncing your communications around a distributed
58network of relays run by volunteers all around the world: it prevents
59somebody watching your Internet connection from learning what sites you
60visit, and it prevents the sites you visit from learning your physical
35b9e423 61location. Tor works with many of your existing applications, including
7f08437b
LC
62web browsers, instant messaging clients, remote login, and other
63applications based on the TCP protocol.")
64 (license bsd-3)))
4f7e152b
LC
65
66(define-public torsocks
67 (package
68 (name "torsocks")
69 (version "1.2")
70 (source (origin
71 (method url-fetch)
72 (uri (string-append "http://torsocks.googlecode.com/files/torsocks-"
73 version ".tar.gz"))
74 (sha256
75 (base32
76 "1m0is5q24sf7jjlkl0icfkdc0m53nbkg0q72s57p48yp4hv7v9dy"))))
77 (build-system gnu-build-system)
78 (home-page "http://code.google.com/p/torsocks/")
79 (synopsis "Use socks-friendly applications with Tor")
80 (description
81 "Torsocks allows you to use most socks-friendly applications in a safe
82way with Tor. It ensures that DNS requests are handled safely and explicitly
83rejects UDP traffic from the application you're using.")
84 (license gpl2+)))
b2e3dd94
LC
85
86(define-public privoxy
87 (package
88 (name "privoxy")
89 (version "3.0.21")
90 (source (origin
91 (method url-fetch)
92 (uri (string-append "mirror://sourceforge/ijbswa/Sources/"
93 version "%20%28stable%29/privoxy-"
94 version "-stable-src.tar.gz"))
95 (sha256
96 (base32
97 "1f6xb7aa47p90c26vqaw74y6drs9gpnhxsgby3mx0awdjh0ydisy"))))
98 (build-system gnu-build-system)
99 (arguments
ae5c6fca
LC
100 '(;; The default 'sysconfdir' is $out/etc; change that to
101 ;; $out/etc/privoxy.
102 #:configure-flags (list (string-append "--sysconfdir="
103 (assoc-ref %outputs "out")
104 "/etc/privoxy"))
722ec722
MW
105 #:phases (alist-cons-after
106 'unpack 'autoconf
b2e3dd94
LC
107 (lambda _
108 ;; Unfortunately, this is not a tarball produced by
109 ;; "make dist".
110 (zero? (system* "autoreconf" "-vfi")))
111 %standard-phases)
112 #:tests? #f))
113 (inputs
114 `(("w3m" ,w3m)
115 ("pcre" ,pcre)
116 ("zlib" ,zlib)
117 ("autoconf" ,autoconf)
118 ("automake" ,automake)))
119 (home-page "http://www.privoxy.org")
120 (synopsis "Web proxy with advanced filtering capabilities for enhancing privacy")
121 (description
122 "Privoxy is a non-caching web proxy with advanced filtering capabilities
123for enhancing privacy, modifying web page data and HTTP headers, controlling
124access, and removing ads and other obnoxious Internet junk. Privoxy has a
125flexible configuration and can be customized to suit individual needs and
126tastes. It has application for both stand-alone systems and multi-user
127networks.")
128 (license gpl2+)))