2007-06-18 00:34:44 +02:00
|
|
|
|
2007-06-18 00:44:30 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation {
|
2007-06-19 19:40:42 +02:00
|
|
|
name = "lsof-4.78";
|
2007-06-18 00:34:44 +02:00
|
|
|
|
2007-06-18 00:44:30 +02:00
|
|
|
src = fetchurl {
|
2007-06-19 19:40:42 +02:00
|
|
|
url =ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_4.78.tar.bz2;
|
2007-06-18 00:34:44 +02:00
|
|
|
sha256 = "0azvl43niqkq94drx52p6dvp70r38f25fqw181ywmvqn80dbb3c9";
|
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "tar xvjf $src; cd lsof_*; tar xvf lsof_*.tar; sourceRoot=lsof_*; ";
|
|
|
|
preBuild = "sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;';";
|
2007-06-19 19:40:42 +02:00
|
|
|
configurePhase = "./Configure -n linux;";
|
2007-06-18 00:34:44 +02:00
|
|
|
installPhase = " mkdir -p $out/bin $out/man/man8; cp lsof.8 $out/man/man8/; cp lsof $out/bin";
|
|
|
|
}
|