* [PATCH] gnu: Add mktorrent.
@ 2016-12-02 15:52 Tobias Geerinckx-Rice
2016-12-02 16:09 ` Marius Bakke
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2016-12-02 15:52 UTC (permalink / raw)
To: guix-devel
* gnu/packages/bittorrent.scm (mktorrent): New variable.
---
‘guix lint’ — sorry: @code{guix lint} complained about quotes, so I
cheated a bit and went with @dfn tags instead. It's a sort of mutual
equality definition, after all.
Kind regards,
T G-R
gnu/packages/bittorrent.scm | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index ce0565e..4bfeded 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Tomáš Čech <sleep_walker@gnu.org>
+;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -257,7 +258,6 @@ 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+)))
-
(define-public uget
(package
(name "uget")
@@ -291,3 +291,35 @@ Aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.")
HTTP, HTTPS, BitTorrent and Metalink, supporting multi-connection
downloads, download scheduling, download rate limiting.")
(license l:lgpl2.1+)))
+
+(define-public mktorrent
+ (package
+ (name "mktorrent")
+ (version "1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/mktorrent/mktorrent/"
+ version "/" name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "17qi3nfky240pq6qcmf5qg324mxm83vk9r3nvsdhsvinyqm5d3kg"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (delete 'configure)) ; no configure script
+ #:make-flags (list "CC=gcc"
+ (string-append "PREFIX=" (assoc-ref %outputs "out"))
+ "NO_HASH_CHECK=1"
+ "USE_LARGE_FILES=1"
+ "USE_LONG_OPTIONS=1"
+ "USE_PTHREADS=1")
+ #:tests? #f)) ; no tests
+ (home-page "http://mktorrent.sourceforge.net/")
+ (synopsis "Utility to create BitTorrent metainfo files")
+ (description "mktorrent is a simple command-line utility to create
+BitTorrent @dfn{metainfo} files, often known simply as @dfn{torrents}, from
+both single files and whole directories. It can add multiple trackers and web
+seed URLs, and set the @code{private} flag to disallow advertisement through
+the distributed hash table (DHT) and Peer Exchange. Hashing is multi-threaded
+and will take advantage of multiple processor cores where possible.")
+ (license l:gpl2+))) ; with permission to link with OpenSSL
--
2.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: Add mktorrent.
2016-12-02 15:52 [PATCH] gnu: Add mktorrent Tobias Geerinckx-Rice
@ 2016-12-02 16:09 ` Marius Bakke
2016-12-02 16:10 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2016-12-02 16:09 UTC (permalink / raw)
To: Tobias Geerinckx-Rice, guix-devel
[-- Attachment #1: Type: text/plain, Size: 551 bytes --]
Tobias Geerinckx-Rice <me@tobias.gr> writes:
> * gnu/packages/bittorrent.scm (mktorrent): New variable.
> ---
>
> ‘guix lint’ — sorry: @code{guix lint} complained about quotes, so I
> cheated a bit and went with @dfn tags instead. It's a sort of mutual
> equality definition, after all.
>
> Kind regards,
>
> T G-R
>
> gnu/packages/bittorrent.scm | 34 +++++++++++++++++++++++++++++++++-
> 1 file changed, 33 insertions(+), 1 deletion(-)
LGTM, but the SHA1 implementation that's used in absence of OpenSSL is
public-domain.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: Add mktorrent.
2016-12-02 16:09 ` Marius Bakke
@ 2016-12-02 16:10 ` Tobias Geerinckx-Rice
0 siblings, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2016-12-02 16:10 UTC (permalink / raw)
To: mbakke, guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 194 bytes --]
Marius,
On 02/12/16 17:09, Marius Bakke wrote:
> LGTM, but the SHA1 implementation that's used in absence of OpenSSL is
> public-domain.
Good catch, thanks.
Kind regards,
T G-R
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 476 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-02 16:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-02 15:52 [PATCH] gnu: Add mktorrent Tobias Geerinckx-Rice
2016-12-02 16:09 ` Marius Bakke
2016-12-02 16:10 ` Tobias Geerinckx-Rice
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).