From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Tildesley Subject: Re: [PATCH] gnu: par2cmdline. Date: Wed, 14 Sep 2016 00:07:42 +1000 Message-ID: <2b253595-ad58-4410-8db6-645e14cfb63c@openmailbox.org> References: <09722be1-ef1a-757a-1e4c-aa6ce5724654@openmailbox.org> <87bmzs57dj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7EBCB6315E3EA05C8BA7511C" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjoNT-0003Lj-1x for guix-devel@gnu.org; Tue, 13 Sep 2016 10:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjoNO-0008Lt-5Z for guix-devel@gnu.org; Tue, 13 Sep 2016 10:07:57 -0400 Received: from smtp1.openmailbox.org ([62.4.1.35]:44105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjoNN-0008Jo-Sp for guix-devel@gnu.org; Tue, 13 Sep 2016 10:07:54 -0400 In-Reply-To: <87bmzs57dj.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------7EBCB6315E3EA05C8BA7511C Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-09-13 22:09, Ludovic Court=C3=A8s wrote: > Hello, > > Just a quick note: > > Brendan Tildesley skribis: > >> + license:gpl3+ ; config.guess >> + license:x11)))); install-sh > These two files are build system helpers provided by Autoconf and > Automake. They are not installed so their license does not matter here= . > > Ludo=E2=80=99. Right, I didn't realise that. --------------7EBCB6315E3EA05C8BA7511C Content-Type: text/x-patch; name="0001-gnu-Add-par2cmdline.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-gnu-Add-par2cmdline.patch" >From d63c6af98129e0de3eb1054dd69496b99a269c99 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Tue, 13 Sep 2016 20:36:15 +1000 Subject: [PATCH] gnu: Add par2cmdline. * gnu/packages/backup.scm (par2cmdline): New variable. --- gnu/packages/backup.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 4678b9b..e77c4f2 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -28,6 +28,7 @@ #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages acl) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages databases) @@ -99,6 +100,42 @@ uses GnuPG to encrypt and/or sign these archives, they will be safe from spying and/or modification by the server.") (license license:gpl2+))) +(define-public par2cmdline + (package + (name "par2cmdline") + (version "0.6.14") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/Parchive/par2cmdline/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ykfb7ar0x0flfdgf6i8xphyv5b93dalbjj2jb6hx7sdjax33n1g")) + ;; This test merely needs a file to test recovery on, but + ;; /dev/random is essentially /dev/urandom plus minimum entropy + ;; locking, making the test hang indefinitely. This change is + ;; already upstream: remove on upgrade to future 0.6.15. + ;; https://github.com/Parchive/par2cmdline/commit/27723a678f780da82c79b98592592009c779a4fb + (modules '((guix build utils))) + (snippet + '(substitute* "tests/test20" (("if=/dev/random") "if=/dev/urandom"))))) + (native-inputs + `(("automake" ,automake) + ("autoconf" ,autoconf))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'autoreconf + (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) + (synopsis "File verification and repair tool") + (description "Par2cmdline is a tool for generating RAID-like PAR2 recovery +files using Reed-Solomon coding. PAR2 files can be stored along side backups +or distributed files for recovering from bitrot.") + (home-page "https://github.com/Parchive/par2cmdline") + (license license:gpl3+))) + (define-public hdup (package (name "hdup") -- 2.9.3 --------------7EBCB6315E3EA05C8BA7511C--