Subject: bug#27396: closed (Re: [bug#27396] [PATCH] gnu: networking: Add nzbget)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 20 Jun 2017 21:37:01 +0000

Your bug report

#27396: [PATCH] gnu: networking: Add nzbget

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
27396: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27396
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#27396] [PATCH] gnu: networking: Add nzbget
From: [email-masked] (Ludovic Courtès)
To: Rutger Helling <[email-masked]>
Cc: [email-masked]
Date: Tue, 20 Jun 2017 23:35:51 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Rutger Helling <[email-masked]> skribis:

> Hey Guix, 
>
> this patch adds nzbget.
> From 10b8ae648cb426c3da6a8f81128a15fef438dc89 Mon Sep 17 00:00:00 2001
> From: Rutger Helling <[email-masked]>
> Date: Fri, 16 Jun 2017 14:38:59 +0200
> Subject: [PATCH] gnu: networking: Add nzbget.
>
> * gnu/packages/networking.scm (nzbget): New variable.

Nice.  Applied with the attached changes.  The description you proposed
had too many superlatives ;-) (see
<https://www.gnu.org/software/guix/manual/html_node/Synopses-and-Descriptions.html>)
so I wrote something based on their ‘README’  file.  Note the “+” in the
license, meaning “version 2 or any later version at the user’s option”
as specified in source file headers.

Thanks,
Ludo’.

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 77f0e9b32..06a2c8be6 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -67,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
@@ -1124,13 +1125,15 @@ gone wild and are suddenly taking up your bandwidth.")
               ("zlib", zlib)))
     (native-inputs `(("pkg-config", pkg-config)))
     (home-page "https://github.com/nzbget/nzbget")
-    (synopsis "C++ Usenet downloader")
-    (description "NZBGet is a binary downloader, which downloads files from
-Usenet based on information given in nzb-files.  NZBGet is written in C++ and is
-known for its extraordinary performance and efficiency.  NZBGet can be run at
-almost every platform - classic PCs,NAS, media players,
-SAT-receivers,WLAN-routers, etc.")
-    (license license:gpl2)))
+    (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

Subject: [PATCH] gnu: networking: Add nzbget
From: Rutger Helling <[email-masked]>
To: [email-masked]
Date: Fri, 16 Jun 2017 14:46:56 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hey Guix, 

this patch adds nzbget.

From 10b8ae648cb426c3da6a8f81128a15fef438dc89 Mon Sep 17 00:00:00 2001
From: Rutger Helling <[email-masked]>
Date: Fri, 16 Jun 2017 14:38:59 +0200
Subject: [PATCH] gnu: networking: Add nzbget.

* gnu/packages/networking.scm (nzbget): New variable.
---
 gnu/packages/networking.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 5d1c432da..e618112e2 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2017 Mathieu Othacehe <[email-masked]>
 ;;; Copyright © 2017 Leo Famulari <[email-masked]>
 ;;; Copyright © 2017 Efraim Flashner <[email-masked]>
+;;; Copyright © 2017 Rutger Helling <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1070,6 +1071,42 @@ 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 "C++ Usenet downloader")
+    (description "NZBGet is a binary downloader, which downloads files from
+Usenet based on information given in nzb-files.  NZBGet is written in C++ and is
+known for its extraordinary performance and efficiency.  NZBGet can be run at
+almost every platform - classic PCs,NAS, media players,
+SAT-receivers,WLAN-routers, etc.")
+    (license license:gpl2)))
+
 (define-public openvswitch
   (package
     (name "openvswitch")
-- 
2.13.1