You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
4.9 KiB

  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>
  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. (define-module (gnu packages tor)
  20. #:use-module ((guix licenses) #:select (bsd-3 gpl2+))
  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. #:use-module (gnu packages pcre)
  28. #:use-module (gnu packages autotools)
  29. #:use-module (gnu packages w3m))
  30. (define-public tor
  31. (package
  32. (name "tor")
  33. (version "0.2.4.23")
  34. (source (origin
  35. (method url-fetch)
  36. (uri (string-append "https://www.torproject.org/dist/tor-"
  37. version ".tar.gz"))
  38. (sha256
  39. (base32
  40. "0a8l6d82hk4wbn7nlphd3c1maxhgdli8338wbg5r9dk6zcy7k8q5"))))
  41. (build-system gnu-build-system)
  42. (inputs
  43. `(("zlib" ,zlib)
  44. ("openssl" ,openssl)
  45. ("libevent" ,libevent)))
  46. ;; TODO: Recommend `torsocks' since `torify' needs it.
  47. (home-page "http://www.torproject.org/")
  48. (synopsis "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)))
  58. (define-public torsocks
  59. (package
  60. (name "torsocks")
  61. (version "1.2")
  62. (source (origin
  63. (method url-fetch)
  64. (uri (string-append "http://torsocks.googlecode.com/files/torsocks-"
  65. version ".tar.gz"))
  66. (sha256
  67. (base32
  68. "1m0is5q24sf7jjlkl0icfkdc0m53nbkg0q72s57p48yp4hv7v9dy"))))
  69. (build-system gnu-build-system)
  70. (home-page "http://code.google.com/p/torsocks/")
  71. (synopsis "Use socks-friendly applications with Tor")
  72. (description
  73. "Torsocks allows you to use most socks-friendly applications in a safe
  74. way with Tor. It ensures that DNS requests are handled safely and explicitly
  75. rejects UDP traffic from the application you're using.")
  76. (license gpl2+)))
  77. (define-public privoxy
  78. (package
  79. (name "privoxy")
  80. (version "3.0.21")
  81. (source (origin
  82. (method url-fetch)
  83. (uri (string-append "mirror://sourceforge/ijbswa/Sources/"
  84. version "%20%28stable%29/privoxy-"
  85. version "-stable-src.tar.gz"))
  86. (sha256
  87. (base32
  88. "1f6xb7aa47p90c26vqaw74y6drs9gpnhxsgby3mx0awdjh0ydisy"))))
  89. (build-system gnu-build-system)
  90. (arguments
  91. '(;; The default 'sysconfdir' is $out/etc; change that to
  92. ;; $out/etc/privoxy.
  93. #:configure-flags (list (string-append "--sysconfdir="
  94. (assoc-ref %outputs "out")
  95. "/etc/privoxy"))
  96. #:phases (alist-cons-before
  97. 'configure 'autoconf
  98. (lambda _
  99. ;; Unfortunately, this is not a tarball produced by
  100. ;; "make dist".
  101. (zero? (system* "autoreconf" "-vfi")))
  102. %standard-phases)
  103. #:tests? #f))
  104. (inputs
  105. `(("w3m" ,w3m)
  106. ("pcre" ,pcre)
  107. ("zlib" ,zlib)
  108. ("autoconf" ,autoconf)
  109. ("automake" ,automake)))
  110. (home-page "http://www.privoxy.org")
  111. (synopsis "Web proxy with advanced filtering capabilities for enhancing privacy")
  112. (description
  113. "Privoxy is a non-caching web proxy with advanced filtering capabilities
  114. for enhancing privacy, modifying web page data and HTTP headers, controlling
  115. access, and removing ads and other obnoxious Internet junk. Privoxy has a
  116. flexible configuration and can be customized to suit individual needs and
  117. tastes. It has application for both stand-alone systems and multi-user
  118. networks.")
  119. (license gpl2+)))