From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk8NB-00049k-Tz for guix-patches@gnu.org; Mon, 30 Jul 2018 09:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fk8N8-0007iG-02 for guix-patches@gnu.org; Mon, 30 Jul 2018 09:38:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57710) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fk8N7-0007hu-Sn for guix-patches@gnu.org; Mon, 30 Jul 2018 09:38:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fk8N7-0001cm-Mu for guix-patches@gnu.org; Mon, 30 Jul 2018 09:38:01 -0400 Subject: [bug#31999] [PATCH 5/7] gnu: Add dmraid. Resent-Message-ID: From: Pierre Neidhardt Date: Mon, 30 Jul 2018 15:37:05 +0200 Message-Id: <20180730133705.30293-1-ambrevar@gmail.com> In-Reply-To: <87600x10pd.fsf@gmail.com> References: <87600x10pd.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31999@debbugs.gnu.org * gnu/package/disk.scm (dmraid): New variable. --- gnu/packages/disk.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index e5d72bd1f..222469f88 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+))) -- 2.18.0