multipath-tools: 0.6.2 -> 0.8.1

This commit is contained in:
Franz Pletz 2019-05-17 16:26:15 +02:00 committed by Andreas Rammhold
parent 024a383d64
commit d436ab0718
No known key found for this signature in database
GPG key ID: 74908259861E8386

View file

@ -1,16 +1,17 @@
{ stdenv, fetchurl, lvm2, libaio, gzip, readline, systemd, liburcu }: { stdenv, fetchurl, pkgconfig, perl, lvm2, libaio, gzip, readline, systemd, liburcu, json_c }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "multipath-tools-${version}"; name = "multipath-tools-${version}";
version = "0.6.2"; version = "0.8.1";
src = fetchurl { src = fetchurl {
name = "${name}.tar.gz"; name = "${name}.tar.gz";
url = "https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${version};sf=tgz"; url = "https://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=snapshot;h=refs/tags/${version};sf=tgz";
sha256 = "159hxvbk9kh1qay9x04w0gsqzg0hkl5yghfc1wi9kv2n5pcwbkpm"; sha256 = "0669zl4dpai63dl04lf8vpwnpsff6qf19fifxfc4frawnh699k95";
}; };
postPatch = '' postPatch = ''
substituteInPlace libmultipath/Makefile --replace /usr/include/libdevmapper.h ${lvm2}/include/libdevmapper.h
sed -i -re ' sed -i -re '
s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'", s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'",
' libmultipath/defaults.h ' libmultipath/defaults.h
@ -20,8 +21,8 @@ stdenv.mkDerivation rec {
Makefile.inc Makefile.inc
''; '';
nativeBuildInputs = [ gzip ]; nativeBuildInputs = [ gzip pkgconfig perl ];
buildInputs = [ systemd lvm2 libaio readline liburcu ]; buildInputs = [ systemd lvm2 libaio readline liburcu json_c ];
makeFlags = [ makeFlags = [
"LIB=lib" "LIB=lib"