Commit | Line | Data |
---|---|---|
7f08437b LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages tor) | |
4f7e152b | 20 | #:use-module ((guix licenses) #:select (bsd-3 gpl2+)) |
7f08437b LC |
21 | #:use-module (guix packages) |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu) | |
24 | #:use-module (gnu packages libevent) | |
25 | #:use-module (gnu packages compression) | |
26 | #:use-module (gnu packages openssl)) | |
27 | ||
28 | (define-public tor | |
29 | (package | |
30 | (name "tor") | |
31 | (version "0.2.3.25") | |
32 | (source (origin | |
33 | (method url-fetch) | |
34 | (uri (string-append "https://www.torproject.org/dist/tor-" | |
35 | version ".tar.gz")) | |
36 | (sha256 | |
37 | (base32 | |
38 | "183n667zgmp37brxl4qna1ciw6dz8d0ihd3fgv9i2gpk6q8nybdv")))) | |
39 | (build-system gnu-build-system) | |
40 | (inputs | |
41 | `(("zlib" ,zlib) | |
42 | ("openssl" ,openssl) | |
43 | ("libevent" ,libevent))) | |
4f7e152b LC |
44 | |
45 | ;; TODO: Recommend `torsocks' since `torify' needs it. | |
46 | ||
7f08437b LC |
47 | (home-page "http://www.torproject.org/") |
48 | (synopsis "An anonymous network router to improve privacy on the Internet") | |
49 | (description | |
50 | "Tor protects you by bouncing your communications around a distributed | |
51 | network of relays run by volunteers all around the world: it prevents | |
52 | somebody watching your Internet connection from learning what sites you | |
53 | visit, and it prevents the sites you visit from learning your physical | |
54 | location. Tor works with many of your existing applications, including | |
55 | web browsers, instant messaging clients, remote login, and other | |
56 | applications based on the TCP protocol.") | |
57 | (license bsd-3))) | |
4f7e152b LC |
58 | |
59 | (define-public torsocks | |
60 | (package | |
61 | (name "torsocks") | |
62 | (version "1.2") | |
63 | (source (origin | |
64 | (method url-fetch) | |
65 | (uri (string-append "http://torsocks.googlecode.com/files/torsocks-" | |
66 | version ".tar.gz")) | |
67 | (sha256 | |
68 | (base32 | |
69 | "1m0is5q24sf7jjlkl0icfkdc0m53nbkg0q72s57p48yp4hv7v9dy")))) | |
70 | (build-system gnu-build-system) | |
71 | (home-page "http://code.google.com/p/torsocks/") | |
72 | (synopsis "Use socks-friendly applications with Tor") | |
73 | (description | |
74 | "Torsocks allows you to use most socks-friendly applications in a safe | |
75 | way with Tor. It ensures that DNS requests are handled safely and explicitly | |
76 | rejects UDP traffic from the application you're using.") | |
77 | (license gpl2+))) |