guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Pierre Neidhardt
Subject: [bug#31999] [PATCH 5/7] gnu: Add dmraid.
Date: Sun, 29 Jul 2018 00:10:01 +0200

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

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 354313441..f26772ed2 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -652,3 +652,43 @@ passphrases.")
      "Utility library for managing the libnvdimm (non-volatile memory device)
 sub-system in the Linux kernel.")
     (license (list license:lgpl2.1 license:gpl2))))
+
+(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)
+       ("which" ,which)))
+    (arguments
+     `(#:tests? #f                      ; No tests.
+       #:phases (modify-phases %standard-phases
+                  (add-before 'configure 'change-directory
+                    (lambda _
+                      (chdir (string-append ,version "/dmraid"))
+                      (substitute* "make.tmpl.in"
+                        (("/bin/sh") (which "sh")))
+                      #t)))
+       #:configure-flags (list ;; Make sure programs such as 'dmevent_tool' can
+                               ;; find libdmraid.so.
+                               (string-append "LDFLAGS=-Wl,-rpath="
+                                              (assoc-ref %outputs "out")
+                                              "/lib"))))
+    (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.
+
address@hidden uses @file{libdevmapper} and the device-mapper kernel runtime
+to create devices with respective mappings for the ATARAID sets discovered.")
+    (license license:gpl2+)))
-- 
2.18.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]