2012-07-18 13:25:58 +00:00
|
|
|
{ stdenv, fetchurl, devicemapper }:
|
2009-09-20 08:38:30 +00:00
|
|
|
|
2012-07-18 13:25:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-08-31 17:16:07 +00:00
|
|
|
name = "dmraid-1.0.0.rc16";
|
2012-07-18 13:25:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://people.redhat.com/~heinzm/sw/dmraid/src/old/${name}.tar.bz2";
|
2014-08-31 17:16:07 +00:00
|
|
|
sha256 = "0m92971gyqp61darxbiri6a48jz3wq3gkp8r2k39320z0i6w8jgq";
|
2012-07-18 13:25:58 +00:00
|
|
|
};
|
|
|
|
|
2016-01-29 05:25:51 +00:00
|
|
|
patches = [ ./hardening-format.patch ];
|
|
|
|
|
2014-10-02 23:09:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/\[\[[^]]*\]\]/[ "''$''${n##*.}" = "so" ]/' */lib/Makefile.in
|
|
|
|
'';
|
|
|
|
|
2012-07-18 13:25:58 +00:00
|
|
|
preConfigure = "cd */";
|
|
|
|
|
|
|
|
buildInputs = [ devicemapper ];
|
2009-09-20 08:38:30 +00:00
|
|
|
|
|
|
|
meta = {
|
2012-07-18 13:25:58 +00:00
|
|
|
description = "Old-style RAID configuration utility";
|
2016-07-23 10:24:18 +00:00
|
|
|
longDescription = ''
|
2009-09-20 08:38:30 +00:00
|
|
|
Old RAID configuration utility (still under development, though).
|
|
|
|
It is fully compatible with modern kernels and mdadm recognizes
|
|
|
|
its volumes. May be needed for rescuing an older system or nuking
|
|
|
|
the metadata when reformatting.
|
|
|
|
'';
|
2012-07-18 13:25:58 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-20 08:38:30 +00:00
|
|
|
};
|
|
|
|
}
|