From: Brendan Tildesley <brendan.tildesley@openmailbox.org>
To: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: par2cmdline.
Date: Tue, 13 Sep 2016 20:50:33 +1000 [thread overview]
Message-ID: <4cdc2ead-c0b4-85f1-7c0e-58ec47693365@openmailbox.org> (raw)
In-Reply-To: <20160912203617.2f60f8e0@openmailbox.org>
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
Ok thanks I'd forgotten to fix the text. I ended up deciding to move the
definition to backup.scm as it makes more sense, and my duplicity 7.0.10
package uses par2cmdline which is also in backup.scm
[-- Attachment #2: 0001-gnu-Add-par2cmdline.patch --]
[-- Type: text/x-patch, Size: 2802 bytes --]
From 8c3187a876c142acde5eb6cb0dc22c0699765a23 Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <brendan.tildesley@openmailbox.org>
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 | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 4678b9b..62d4341 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,43 @@ 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 (list license:gpl3+ ; *
+ license:x11)))); install-sh
+
(define-public hdup
(package
(name "hdup")
--
2.9.3
next prev parent reply other threads:[~2016-09-13 10:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-12 9:18 [PATCH] gnu: par2cmdline Brendan Tildesley
2016-09-13 1:36 ` Eric Bavier
2016-09-13 10:50 ` Brendan Tildesley [this message]
2016-09-13 12:09 ` Ludovic Courtès
2016-09-13 14:07 ` Brendan Tildesley
2016-09-14 14:43 ` Ludovic Courtès
2016-09-16 3:42 ` Eric Bavier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4cdc2ead-c0b4-85f1-7c0e-58ec47693365@openmailbox.org \
--to=brendan.tildesley@openmailbox.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.