summary refs log tree commit diff
diff options
context:
space:
mode:
authorRutger Helling <rhelling@mykolab.com>2017-06-16 14:38:59 +0200
committerLudovic Courtès <ludo@gnu.org>2017-06-20 23:41:00 +0200
commitb3623b6fe70c2bc448346ba25a266262c738d727 (patch)
tree45c08c3cfb4a0320accda039fc50eaec88b23229
parent7e9e1a36b01e5871700d96b960fba06399143144 (diff)
downloadguix-b3623b6fe70c2bc448346ba25a266262c738d727.tar.gz
gnu: Add nzbget.
* gnu/packages/networking.scm (nzbget): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/networking.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index ed0420b422..06a2c8be6e 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -66,6 +67,7 @@
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages valgrind)
+  #:use-module (gnu packages xml)
   #:use-module (ice-9 match))
 
 (define-public macchanger
@@ -1095,6 +1097,44 @@ which PID is causing this.  This makes it easy to identify programs that have
 gone wild and are suddenly taking up your bandwidth.")
     (license license:gpl2+)))
 
+(define-public nzbget
+  (package
+    (name "nzbget")
+    (version "18.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1a8wmbhc1si1n8axzrr8ysmrd3gr643lbh6pvzmr0hnd65fixmx5"))))
+    (arguments
+     `(#:configure-flags
+       (list
+        (string-append "--with-libcurses-includes=" (assoc-ref
+%build-inputs "ncurses") "/include")
+        (string-append "--with-libcurses-libraries=" (assoc-ref
+%build-inputs "ncurses") "/lib")
+        (string-append "--with-tlslib=GnuTLS"))))
+    (build-system gnu-build-system)
+    (inputs `(("gnutls", gnutls)
+              ("libxml2", libxml2)
+              ("ncurses", ncurses)
+              ("zlib", zlib)))
+    (native-inputs `(("pkg-config", pkg-config)))
+    (home-page "https://github.com/nzbget/nzbget")
+    (synopsis "Usenet binary file downloader")
+    (description
+     "NZBGet is a binary newsgrabber, which downloads files from Usenet based
+on information given in @code{nzb} files.  NZBGet can be used in standalone
+and in server/client modes.  In standalone mode, you pass NZBGet @command{nzb}
+files as command-line parameters and it downloads them and exits.  NZBGet also
+contains a Web interface.  Its server can be controlled through remote
+procedure calls (RPCs).")
+    (license license:gpl2+)))
+
 (define-public openvswitch
   (package
     (name "openvswitch")