Subject: [bug#31999] [PATCH 5/7] gnu: Add dmraid.

From: Pierre Neidhardt <[email-masked]>
Date: Thu, 28 Jun 2018 23:35:25 +0200

* gnu/package/disk.scm (dmraid): New variable.
---
 gnu/packages/disk.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 8d0739a45..bb1faae8a 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -650,3 +650,32 @@ them separately from volumes to handle forgotten passphrases.")
      "Utility library for managing the libnvdimm (non-volatile memory device)
 sub-system in the Linux kernel.")
     (license license:lgpl2.1+)))
+
+(define-public dmraid
+  (package
+    (name "dmraid")
+    (version "1.0.0.rc16-3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-"
+                                  version
+                                  ".tar.bz2"))
+              (sha256
+               (base32
+                "1n7vsqvh7y6yvil682q129d21yhb0cmvd5fvsbkza7ypd78inhlk"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("lvm2" ,lvm2)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-before 'configure 'change-directory
+                    (lambda _ (chdir (string-append ,version "/dmraid")) #t)))))
+    (home-page "http://people.redhat.com/~heinzm/sw/dmraid/")
+    (synopsis "Device mapper RAID interface")
+    (description
+     "This software supports RAID device discovery, RAID set activation, creation,
+removal, rebuild and display of properties for ATARAID/DDF1 metadata.
+
+@command{dmraid} uses @file{libdevmapper} and the device-mapper kernel runtime
+to create devices with respective mappings for the ATARAID sets discovered.")
+    (license license:gpl2+)))
-- 
2.17.1