2015-10-21 05:58:33 +02:00
|
|
|
{ stdenv, fetchurl, nukeReferences }:
|
2014-01-05 02:57:21 +01:00
|
|
|
let
|
2015-09-23 12:03:42 +02:00
|
|
|
pname = "open-iscsi-2.0-873";
|
2014-01-05 02:57:21 +01:00
|
|
|
in stdenv.mkDerivation {
|
2016-02-29 17:37:20 +01:00
|
|
|
name = pname;
|
2015-10-21 05:58:33 +02:00
|
|
|
outputs = [ "out" "iscsistart" ];
|
|
|
|
|
|
|
|
buildInputs = [ nukeReferences ];
|
2012-02-17 15:32:28 +01:00
|
|
|
|
2010-08-30 11:40:44 +02:00
|
|
|
src = fetchurl {
|
2016-02-29 17:37:20 +01:00
|
|
|
urls = [
|
|
|
|
"http://www.open-iscsi.org/bits/${pname}.tar.gz"
|
|
|
|
"http://pkgs.fedoraproject.org/repo/pkgs/iscsi-initiator-utils/${pname}.tar.gz/8b8316d7c9469149a6cc6234478347f7/${pname}.tar.gz"
|
|
|
|
];
|
2015-09-23 12:03:42 +02:00
|
|
|
sha256 = "1nbwmj48xzy45h52917jbvyqpsfg9zm49nm8941mc5x4gpwz5nbx";
|
2010-08-30 11:40:44 +02:00
|
|
|
};
|
|
|
|
|
2012-02-17 15:32:28 +01:00
|
|
|
DESTDIR = "$(out)";
|
2010-08-30 11:40:44 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's|/usr/|/|' Makefile
|
|
|
|
'';
|
|
|
|
|
2015-10-21 05:58:33 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $iscsistart/bin/
|
|
|
|
cp -v usr/iscsistart $iscsistart/bin/
|
|
|
|
nuke-refs $iscsistart/bin/iscsistart
|
|
|
|
'';
|
|
|
|
|
2016-02-29 17:37:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-02-17 15:32:28 +01:00
|
|
|
description = "A high performance, transport independent, multi-platform implementation of RFC3720";
|
2016-02-29 17:37:20 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2012-02-17 15:32:28 +01:00
|
|
|
homepage = http://www.open-iscsi.org;
|
2016-02-29 17:37:20 +01:00
|
|
|
platforms = platforms.linux;
|
2010-08-30 11:40:44 +02:00
|
|
|
};
|
|
|
|
}
|