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.
 
 
 
 
 
 

120 lines
4.6 KiB

  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. (define-module (gnu packages tor)
  19. #:use-module ((guix licenses) #:select (bsd-3 gpl2+))
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages libevent)
  24. #:use-module (gnu packages compression)
  25. #:use-module (gnu packages openssl)
  26. #:use-module (gnu packages pcre)
  27. #:use-module (gnu packages autotools)
  28. #:use-module (gnu packages w3m))
  29. (define-public tor
  30. (package
  31. (name "tor")
  32. (version "0.2.3.25")
  33. (source (origin
  34. (method url-fetch)
  35. (uri (string-append "https://www.torproject.org/dist/tor-"
  36. version ".tar.gz"))
  37. (sha256
  38. (base32
  39. "183n667zgmp37brxl4qna1ciw6dz8d0ihd3fgv9i2gpk6q8nybdv"))))
  40. (build-system gnu-build-system)
  41. (inputs
  42. `(("zlib" ,zlib)
  43. ("openssl" ,openssl)
  44. ("libevent" ,libevent)))
  45. ;; TODO: Recommend `torsocks' since `torify' needs it.
  46. (home-page "http://www.torproject.org/")
  47. (synopsis "An anonymous network router to improve privacy on the Internet")
  48. (description
  49. "Tor protects you by bouncing your communications around a distributed
  50. network of relays run by volunteers all around the world: it prevents
  51. somebody watching your Internet connection from learning what sites you
  52. visit, and it prevents the sites you visit from learning your physical
  53. location. Tor works with many of your existing applications, including
  54. web browsers, instant messaging clients, remote login, and other
  55. applications based on the TCP protocol.")
  56. (license bsd-3)))
  57. (define-public torsocks
  58. (package
  59. (name "torsocks")
  60. (version "1.2")
  61. (source (origin
  62. (method url-fetch)
  63. (uri (string-append "http://torsocks.googlecode.com/files/torsocks-"
  64. version ".tar.gz"))
  65. (sha256
  66. (base32
  67. "1m0is5q24sf7jjlkl0icfkdc0m53nbkg0q72s57p48yp4hv7v9dy"))))
  68. (build-system gnu-build-system)
  69. (home-page "http://code.google.com/p/torsocks/")
  70. (synopsis "Use socks-friendly applications with Tor")
  71. (description
  72. "Torsocks allows you to use most socks-friendly applications in a safe
  73. way with Tor. It ensures that DNS requests are handled safely and explicitly
  74. rejects UDP traffic from the application you're using.")
  75. (license gpl2+)))
  76. (define-public privoxy
  77. (package
  78. (name "privoxy")
  79. (version "3.0.21")
  80. (source (origin
  81. (method url-fetch)
  82. (uri (string-append "mirror://sourceforge/ijbswa/Sources/"
  83. version "%20%28stable%29/privoxy-"
  84. version "-stable-src.tar.gz"))
  85. (sha256
  86. (base32
  87. "1f6xb7aa47p90c26vqaw74y6drs9gpnhxsgby3mx0awdjh0ydisy"))))
  88. (build-system gnu-build-system)
  89. (arguments
  90. '(#:phases (alist-cons-before
  91. 'configure 'autoconf
  92. (lambda _
  93. ;; Unfortunately, this is not a tarball produced by
  94. ;; "make dist".
  95. (zero? (system* "autoreconf" "-vfi")))
  96. %standard-phases)
  97. #:tests? #f))
  98. (inputs
  99. `(("w3m" ,w3m)
  100. ("pcre" ,pcre)
  101. ("zlib" ,zlib)
  102. ("autoconf" ,autoconf)
  103. ("automake" ,automake)))
  104. (home-page "http://www.privoxy.org")
  105. (synopsis "Web proxy with advanced filtering capabilities for enhancing privacy")
  106. (description
  107. "Privoxy is a non-caching web proxy with advanced filtering capabilities
  108. for enhancing privacy, modifying web page data and HTTP headers, controlling
  109. access, and removing ads and other obnoxious Internet junk. Privoxy has a
  110. flexible configuration and can be customized to suit individual needs and
  111. tastes. It has application for both stand-alone systems and multi-user
  112. networks.")
  113. (license gpl2+)))