diff options
author | Pierre Neidhardt <ambrevar@gmail.com> | 2018-05-30 12:33:08 +0200 |
---|---|---|
committer | Pierre Neidhardt <ambrevar@gmail.com> | 2018-07-30 21:51:44 +0200 |
commit | 82aac7c1f2bac643f62ad78bde31ccead94e4e0b (patch) | |
tree | dbdbbed9ecdf790e99c99cd4d5bf2022004732e2 | |
parent | a3ed69b694eab393129348bbabbed8c59bad3772 (diff) | |
download | guix-82aac7c1f2bac643f62ad78bde31ccead94e4e0b.tar.gz |
gnu: Add dmraid.
* gnu/package/disk.scm (dmraid): New variable.
-rw-r--r-- | gnu/packages/disk.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index e5d72bd1f2..222469f88d 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -653,3 +653,41 @@ libnvdimm (non-volatile memory device) sub-system in the Linux kernel.") ;; the effective license. Note that some files under ccan/ are ;; covered by BSD-3 or public domain, see the individual folders. (license license:gpl2))) + +(define-public dmraid + (package + (name "dmraid") + (version "1.0.0.rc16-3") + (source (origin + (method url-fetch) + (uri (string-append "https://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-" + version ".tar.bz2")) + (sha256 + (base32 + "1n7vsqvh7y6yvil682q129d21yhb0cmvd5fvsbkza7ypd78inhlk")))) + (build-system gnu-build-system) + (inputs `(("lvm2" ,lvm2))) + (native-inputs `(("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 "https://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+))) |