2011-04-06 15:57:31 +01:00
|
|
|
{ stdenv, fetchurl, lvm2, libaio, gzip, readline, udev }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-01-21 14:29:02 +00:00
|
|
|
name = "multipath-tools-0.5.0";
|
2011-04-06 15:57:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://christophe.varoqui.free.fr/multipath-tools/${name}.tar.bz2";
|
2016-01-21 14:29:02 +00:00
|
|
|
sha256 = "1yd6l1l1c62xjr1xnij2x49kr416anbgfs4y06r86kp9hkmz2g7i";
|
2011-04-06 15:57:31 +01:00
|
|
|
};
|
|
|
|
|
2016-01-21 14:29:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -re '
|
|
|
|
s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'",
|
|
|
|
' libmultipath/defaults.h
|
|
|
|
sed -i -e 's,\$(DESTDIR)/\(usr/\)\?,$(prefix)/,g' \
|
|
|
|
kpartx/Makefile libmpathpersist/Makefile
|
|
|
|
'';
|
2011-04-06 15:57:31 +01:00
|
|
|
|
2016-01-21 14:29:02 +00:00
|
|
|
nativeBuildInputs = [ gzip ];
|
|
|
|
buildInputs = [ udev lvm2 libaio readline ];
|
2011-04-06 15:57:31 +01:00
|
|
|
|
2016-01-21 14:29:02 +00:00
|
|
|
makeFlags = [
|
|
|
|
"LIB=lib"
|
|
|
|
"prefix=$(out)"
|
|
|
|
"mandir=$(out)/share/man/man8"
|
|
|
|
"man5dir=$(out)/share/man/man5"
|
|
|
|
"man3dir=$(out)/share/man/man3"
|
|
|
|
"unitdir=$(out)/lib/systemd/system"
|
|
|
|
];
|
2011-04-06 15:57:31 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tools for the Linux multipathing driver";
|
|
|
|
homepage = http://christophe.varoqui.free.fr/;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|