2016-09-09 23:14:16 +02:00
|
|
|
{ stdenv, fetchurl, lvm2, libaio, gzip, readline, systemd, liburcu }:
|
2011-04-06 16:57:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-09 23:14:16 +02:00
|
|
|
name = "multipath-tools-0.6.2";
|
2011-04-06 16:57:31 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-09-09 23:14:16 +02:00
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "http://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=e165b73a16fc9027aa3306df40052038c175be1b;sf=tgz";
|
|
|
|
sha256 = "159hxvbk9kh1qay9x04w0gsqzg0hkl5yghfc1wi9kv2n5pcwbkpm";
|
2011-04-06 16:57:31 +02:00
|
|
|
};
|
|
|
|
|
2016-01-21 15:29:02 +01: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
|
2016-12-19 14:31:06 +01:00
|
|
|
sed -i -e "s,GZIP = .*, GZIP = gzip -9n -c," \
|
|
|
|
Makefile.inc
|
2016-01-21 15:29:02 +01:00
|
|
|
'';
|
2011-04-06 16:57:31 +02:00
|
|
|
|
2016-01-21 15:29:02 +01:00
|
|
|
nativeBuildInputs = [ gzip ];
|
2016-09-09 23:14:16 +02:00
|
|
|
buildInputs = [ systemd lvm2 libaio readline liburcu ];
|
2011-04-06 16:57:31 +02:00
|
|
|
|
2016-01-21 15:29:02 +01: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 16:57:31 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tools for the Linux multipathing driver";
|
|
|
|
homepage = http://christophe.varoqui.free.fr/;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|