Leo, Leo Famulari wrote on 03/12/17 at 01:31: > What do you think? Hm. Looks legit, no? > From 779b3b9f3532190592d7f85921829f6691947c46 Mon Sep 17 00:00:00 2001 > From: Leo Famulari > Date: Sat, 2 Dec 2017 18:08:21 -0500 > Subject: [PATCH] gnu: rng-tools: Update to 6.1. > > Rng-tools development appears to have moved to GitHub [0]: > > "NOTE: The rng-tools project hasn't seen updates in some time, but is > still in active use. To facilitate ongoing development, the rng-tools > project is moved to here: > https://github.com/nhorman/rng-tools" > > [0] > https://sourceforge.net/p/gkernel/wiki/Home/ > > * gnu/packages/linux.scm (rng-tools): Update to 6.1. > [source]: Use new upstream URL. > [arguments]: Add a 'bootstrap' phase. > [native-inputs]: Add autoconf, automake, and pkg-config. > [inputs]: Add curl, libxml2, sysfsutils, and curl. s/curl/openssl/ I took a look at the recent commit[0] that added most of these: “NIST has a randomness beacon available here: https://www.nist.gov/programs-projects/nist-randomness-beacon It generates entropy at a rate of 512 bits per minute. Its sent in cleartext over the internet, making it unsuitable for cryptographic function, it is useful in the generation of entropy for things like monte carlo tests or other uses where shared pools of entropy might be useful. As such, lets add the NIST beacon as an entropy source, but disable it by default so users have to know to keep it enabled.” Neat! :-) I'd be remiss if I didn't point out that it adds 166.3 MiB to the closure, though. On the one hand, that 's a 240% increase in closure size for a feature that's ‘disabled by default’ (but read on). On the other hand, this is a leaf package only installed by users who want it, and I don't like removing features without better reason. I also had to add ‘--without-nistbeacon’ to #:configure-flags so it's not *that* disabled by default... I'm in mild favour of keeping it, but suggest we add a comment above those three inputs to point those hacking the recipe in the right direction. > --- > gnu/packages/linux.scm | 25 +++++++++++++++++++++---- > 1 file changed, 21 insertions(+), 4 deletions(-) > > diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm > index 995864f33..d1f9f5902 100644 > --- a/gnu/packages/linux.scm > +++ b/gnu/packages/linux.scm > @@ -57,6 +57,7 @@ > #:use-module (gnu packages calendar) > #:use-module (gnu packages check) > #:use-module (gnu packages crypto) > + #:use-module (gnu packages curl) > #:use-module (gnu packages compression) > #:use-module (gnu packages databases) > #:use-module (gnu packages datastructures) > @@ -3489,16 +3490,32 @@ The following service daemons are also provided: > (define-public rng-tools > (package > (name "rng-tools") > - (version "5") > + (version "6.1") > (source (origin > (method url-fetch) > (uri (string-append > - "http://downloads.sourceforge.net/sourceforge/gkernel/" > - "rng-tools-" version ".tar.gz")) > + "https://github.com/nhorman/rng-tools/archive/v" > + version ".tar.gz")) This is still missing a ‘file-name’. The rest looks & builds nicely. Thanks! T G-R [0]: https://github.com/nhorman/rng-tools/commit/aefe862e187a1ef608f9826b2b4a5bbabd5e9945