2013-03-24 12:45:00 +01:00
|
|
|
{ stdenv, fetchurl, kernelDev, module_init_tools}:
|
2010-08-30 11:15:27 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-24 12:45:00 +01:00
|
|
|
name = "iscsitarget-1.4.20.2-${kernelDev.version}";
|
2012-02-17 15:32:28 +01:00
|
|
|
|
2010-08-30 11:15:27 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/iscsitarget/iscsitarget/1.4.20.2/${name}.tar.gz";
|
|
|
|
sha256 = "126kp0yc7vmvdbaw2xfav89340b0h91dvvyib5qbvyrq40n8wg0g";
|
|
|
|
};
|
|
|
|
|
2013-03-24 12:45:00 +01:00
|
|
|
KSRC = "${kernelDev}/lib/modules/*/build";
|
2012-02-17 15:32:28 +01:00
|
|
|
|
|
|
|
DESTDIR = "$(out)";
|
2010-08-30 11:15:27 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export PATH=$PATH:${module_init_tools}/sbin
|
|
|
|
sed -i 's|/usr/|/|' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ module_init_tools ];
|
|
|
|
|
|
|
|
meta = {
|
2012-02-17 15:32:28 +01:00
|
|
|
description = "iSCSI Enterprise Target (IET), software for building an iSCSI storage system on Linux";
|
2010-08-30 11:15:27 +02:00
|
|
|
license = "GPLv2+";
|
2012-02-17 15:32:28 +01:00
|
|
|
homepage = http://iscsitarget.sourceforge.net;
|
2010-08-30 11:15:27 +02:00
|
|
|
};
|
|
|
|
}
|