2014-05-26 11:51:49 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2014-11-24 22:00:58 +01:00
|
|
|
;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
|
2015-12-19 00:22:42 +01:00
|
|
|
;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
2016-01-18 06:05:10 +01:00
|
|
|
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
|
2016-01-27 12:59:49 +01:00
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2014-05-26 11:51:49 +02:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages bittorrent)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-01-18 06:05:10 +01:00
|
|
|
#:use-module (guix build-system python)
|
2014-12-01 22:40:30 +01:00
|
|
|
#:use-module (guix build-system glib-or-gtk)
|
Use #:prefix instead of #:renamer with 'symbol-prefix-proc'.
* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm,
gnu/packages/backup.scm, gnu/packages/bittorrent.scm,
gnu/packages/boost.scm, gnu/packages/compression.scm,
gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm,
gnu/packages/ghostscript.scm, gnu/packages/gimp.scm,
gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm,
gnu/packages/indent.scm, gnu/packages/inkscape.scm,
gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm,
gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm,
gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm,
gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm,
gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm,
gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm,
gnu/packages/yasm.scm, gnu/packages/zip.scm,
guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm,
guix/build/python-build-system.scm, guix/download.scm: Replaces uses of
#:renamer and 'symbol-prefix-proc' with #:prefix.
2014-09-23 22:44:22 +02:00
|
|
|
#:use-module ((guix licenses) #:prefix l:)
|
2016-01-27 12:59:49 +01:00
|
|
|
#:use-module (gnu packages adns)
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
#:use-module (gnu packages compression)
|
2014-05-26 11:51:49 +02:00
|
|
|
#:use-module (gnu packages curl)
|
2016-01-27 12:59:49 +01:00
|
|
|
#:use-module (gnu packages cyrus-sasl)
|
|
|
|
#:use-module (gnu packages databases)
|
2014-05-26 11:51:49 +02:00
|
|
|
#:use-module (gnu packages file)
|
|
|
|
#:use-module (gnu packages glib)
|
2014-11-24 22:00:58 +01:00
|
|
|
#:use-module (gnu packages gtk)
|
2016-01-27 12:59:49 +01:00
|
|
|
#:use-module (gnu packages libevent)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
#:use-module (gnu packages nettle)
|
2014-11-22 15:57:26 +01:00
|
|
|
#:use-module (gnu packages ncurses)
|
2016-01-27 12:59:49 +01:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2016-01-18 06:05:10 +01:00
|
|
|
#:use-module (gnu packages python)
|
2016-01-27 12:59:49 +01:00
|
|
|
#:use-module (gnu packages ssh)
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages xml))
|
2014-05-26 11:51:49 +02:00
|
|
|
|
|
|
|
(define-public transmission
|
|
|
|
(package
|
|
|
|
(name "transmission")
|
2014-08-06 06:26:28 +02:00
|
|
|
(version "2.84")
|
2014-05-26 11:51:49 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://transmission.cachefly.net/transmission-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2014-08-06 06:26:28 +02:00
|
|
|
"1sxr1magqb5s26yvr5yhs1f7bmir8gl09niafg64lhgfnhv1kz59"))))
|
2014-12-01 22:40:30 +01:00
|
|
|
(build-system glib-or-gtk-build-system)
|
2014-05-26 11:51:49 +02:00
|
|
|
(outputs '("out" ; library and command-line interface
|
|
|
|
"gui")) ; graphical user interface
|
|
|
|
(arguments
|
2014-12-01 22:40:30 +01:00
|
|
|
'(#:glib-or-gtk-wrap-excluded-outputs '("out")
|
|
|
|
#:phases (alist-cons-after
|
2014-05-26 11:51:49 +02:00
|
|
|
'install 'move-gui
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Move the GUI to its own output, so that "out" doesn't
|
|
|
|
;; depend on GTK+.
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(gui (assoc-ref outputs "gui")))
|
|
|
|
(mkdir-p (string-append gui "/bin"))
|
|
|
|
(rename-file (string-append out "/bin/transmission-gtk")
|
|
|
|
(string-append gui
|
|
|
|
"/bin/transmission-gtk"))))
|
|
|
|
%standard-phases)))
|
|
|
|
(inputs
|
|
|
|
`(("inotify-tools" ,inotify-tools)
|
|
|
|
("libevent" ,libevent)
|
|
|
|
("curl" ,curl)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("file" ,file)
|
|
|
|
("zlib" ,zlib)
|
|
|
|
("gtk+" ,gtk+)))
|
|
|
|
(native-inputs
|
|
|
|
`(("intltool" ,intltool)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://www.transmissionbt.com/")
|
|
|
|
(synopsis "Fast and easy BitTorrent client")
|
|
|
|
(description
|
|
|
|
"Transmission is a BitTorrent client that comes with graphical,
|
|
|
|
textual, and Web user interfaces. Transmission also has a daemon for
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 14:16:07 +02:00
|
|
|
unattended operations. It supports local peer discovery, full encryption,
|
2014-05-26 11:51:49 +02:00
|
|
|
DHT, µTP, PEX and Magnet Links.")
|
|
|
|
|
|
|
|
;; COPYING reads:
|
|
|
|
;;
|
|
|
|
;; Transmission can be redistributed and/or modified under the terms of
|
|
|
|
;; the GNU GPLv2 (http://www.gnu.org/licenses/license-list.html#GPLv2),
|
|
|
|
;; the GNU GPLv3 (http://www.gnu.org/licenses/license-list.html#GNUGPLv3),
|
|
|
|
;; or any future license endorsed by Mnemosyne LLC.
|
|
|
|
;;
|
|
|
|
;; A few files files carry an MIT/X11 license header.
|
|
|
|
(license l:gpl3+)))
|
2014-11-24 22:00:58 +01:00
|
|
|
|
|
|
|
(define-public libtorrent
|
|
|
|
(package
|
|
|
|
(name "libtorrent")
|
2015-10-03 21:21:33 +02:00
|
|
|
(version "0.13.6")
|
2014-11-24 22:00:58 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2015-10-03 21:21:33 +02:00
|
|
|
"http://rtorrent.net/downloads/libtorrent-"
|
2014-11-24 22:00:58 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-10-03 21:21:33 +02:00
|
|
|
"012s1nwcvz5m5r4d2z9klgy2n34kpgn9kgwgzxm97zgdjs6a0f18"))))
|
2014-11-24 22:00:58 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("openssl" ,openssl)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)
|
2015-10-03 21:21:33 +02:00
|
|
|
("cppunit" ,cppunit)))
|
2014-11-24 22:00:58 +01:00
|
|
|
(synopsis "BitTorrent library of rtorrent")
|
|
|
|
(description
|
|
|
|
"LibTorrent is a BitTorrent library used by and developed in parallel
|
|
|
|
with the BitTorrent client rtorrent. It is written in C++ with emphasis on
|
|
|
|
speed and efficiency.")
|
2015-10-03 21:16:27 +02:00
|
|
|
(home-page "https://github.com/rakshasa/libtorrent")
|
2014-11-24 22:00:58 +01:00
|
|
|
(license l:gpl2+)))
|
2014-11-22 15:57:26 +01:00
|
|
|
|
|
|
|
(define-public rtorrent
|
|
|
|
(package
|
|
|
|
(name "rtorrent")
|
2015-10-03 21:23:40 +02:00
|
|
|
(version "0.9.6")
|
2014-11-22 15:57:26 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2015-10-03 21:23:40 +02:00
|
|
|
"http://rtorrent.net/downloads/rtorrent-"
|
2014-11-22 15:57:26 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-10-03 21:23:40 +02:00
|
|
|
"03jvzw9pi2mhcm913h8qg0qw9gwjqc6lhwynb1yz1y163x7w4s8y"))))
|
2014-11-22 15:57:26 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("libtorrent" ,libtorrent)
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
("curl" ,curl)
|
|
|
|
("cyrus-sasl" ,cyrus-sasl)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)
|
|
|
|
("cppunit" ,cppunit)))
|
|
|
|
(synopsis "BitTorrent client with ncurses interface")
|
|
|
|
(description
|
|
|
|
"rTorrent is a BitTorrent client with an ncurses interface. It supports
|
|
|
|
full encryption, DHT, PEX, and Magnet Links. It can also be controlled via
|
|
|
|
XML-RPC over SCGI.")
|
2015-10-03 21:16:27 +02:00
|
|
|
(home-page "https://github.com/rakshasa/rtorrent")
|
2014-11-22 15:57:26 +01:00
|
|
|
(license l:gpl2+)))
|
2016-01-18 06:05:10 +01:00
|
|
|
|
|
|
|
(define-public transmission-remote-cli
|
|
|
|
(package
|
|
|
|
(name "transmission-remote-cli")
|
|
|
|
(version "1.7.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/fagga/"
|
|
|
|
"transmission-remote-cli/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1y0hkpcjf6jw9xig8yf484hbhy63nip0pkchx401yxj81m25l4z9"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:python ,python-2 ; only supports Python 2
|
|
|
|
#:tests? #f ; no test suite
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
;; The software is just a Python script that must be
|
|
|
|
;; copied into place.
|
|
|
|
(delete 'build)
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
(man (string-append out "/share/man/man1"))
|
|
|
|
;; FIXME install zsh completions
|
|
|
|
(completions (string-append out "/etc/bash_completion.d")))
|
|
|
|
(install-file "transmission-remote-cli" bin)
|
|
|
|
(install-file "transmission-remote-cli.1" man)
|
|
|
|
(install-file
|
|
|
|
(string-append
|
|
|
|
"completion/bash/"
|
|
|
|
"transmission-remote-cli-bash-completion.sh")
|
|
|
|
completions)))))))
|
|
|
|
(synopsis "Console client for the Transmission BitTorrent daemon")
|
|
|
|
(description "Transmission-remote-cli is a console client, with a curses
|
|
|
|
interface, for the Transmission BitTorrent daemon.")
|
|
|
|
(home-page "https://github.com/fagga/transmission-remote-cli")
|
|
|
|
(license l:gpl3+)))
|
2016-01-27 12:59:49 +01:00
|
|
|
|
|
|
|
(define-public aria2
|
|
|
|
(package
|
|
|
|
(name "aria2")
|
2016-02-18 18:47:49 +01:00
|
|
|
(version "1.20.0")
|
2016-01-27 12:59:49 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/tatsuhiro-t/aria2/"
|
|
|
|
"releases/download/release-" version "/"
|
|
|
|
name "-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-02-18 18:47:49 +01:00
|
|
|
"1l4gzz3yr0cl6a9xdy7843c5sb7afyq0i80wi2hasfpfdx5k95mz"))))
|
2016-01-27 12:59:49 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags '("--enable-libaria2")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'delete-socket-tests
|
|
|
|
(lambda _
|
|
|
|
(substitute* "test/LpdMessageDispatcherTest.cc"
|
|
|
|
(("CPPUNIT_TEST_SUITE_REGISTRATION\\(LpdMessageDispatcherTest\\);" text)
|
|
|
|
(string-append "// " text)))
|
|
|
|
(substitute* "test/LpdMessageReceiverTest.cc"
|
|
|
|
(("CPPUNIT_TEST_SUITE_REGISTRATION\\(LpdMessageReceiverTest\\);" text)
|
|
|
|
(string-append "// " text))))))))
|
|
|
|
(native-inputs
|
gnu: Fix misplaced commas (unquote).
Fix many occurrences of comma (unquote) being placed immediately after the
previous list item, e.g. ("ncurses", ncurses) in the inputs.
* gnu/packages/base.scm (patch, gnu-make),
gnu/packages/bioinformatics.scm (hmmer),
gnu/packages/bittorrent.scm (aria2),
gnu/packages/compression.scm (pbzip2),
gnu/packages/databases.scm (recutils),
gnu/packages/fonts.scm (font-terminus),
gnu/packages/freedesktop.scm (xdg-utils, elogind),
gnu/packages/games.scm (gnujump),
gnu/packages/gnome.scm (libidl, gnumeric, eog, gedit),
gnu/packages/gnunet.scm (gnunet),
gnu/packages/gnuzilla.scm (mozjs, nspr),
gnu/packages/gtk.scm (gtksourceview, gdk-pixbuf),
gnu/packages/lua.scm (lua),
gnu/packages/openstack.scm (python-swiftclient),
gnu/packages/perl.scm (perl-json-any),
gnu/packages/polkit.scm (polkit-qt),
gnu/packages/python.scm (wrap-python3, python-oauthlib)
(python-mccabe-0.2.1, python-contextlib2, python2-rauth),
gnu/packages/qt.scm (qtkeychain),
gnu/packages/ruby.scm (ruby-nokogiri),
gnu/packages/screen.scm (screen),
gnu/packages/ssh.scm (libssh),
gnu/packages/video.scm (ffmpeg, mplayer),
gnu/packages/vim.scm (vim),
gnu/packages/xdisorg.scm (redshift),
gnu/packages/xfce.scm (xfce4-panel, xfce4-settings),
gnu/packages/xnee.scm (xnee),
gnu/packages/xorg.scm (font-adobe100dpi, font-adobe75dpi),
gnu/packages/zsh.scm (zsh): Fix misplaced commas (unquote).
2016-02-27 14:37:28 +01:00
|
|
|
`(("pkg-config" ,pkg-config)))
|
2016-01-27 12:59:49 +01:00
|
|
|
(inputs
|
|
|
|
`(("c-ares" ,c-ares)
|
|
|
|
("cppunit" ,cppunit) ; for the tests
|
|
|
|
("gnutls" ,gnutls)
|
|
|
|
("gmp" ,gmp)
|
|
|
|
("libssh2" ,libssh2)
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
("nettle" ,nettle)
|
|
|
|
("sqlite" ,sqlite)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(home-page "http://aria2.sourceforge.net/")
|
|
|
|
(synopsis "Utility for parallel downloading files")
|
|
|
|
(description
|
|
|
|
"Aria2 is a lightweight, multi-protocol & multi-source command-line
|
|
|
|
download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.
|
|
|
|
Aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.")
|
|
|
|
(license l:gpl2+)))
|