chkrootkit: 0.50 -> 0.51, fix build

This commit is contained in:
Joachim Fasting 2016-12-04 22:07:11 +01:00
parent 0fd5a0c8a3
commit 2f861e6ba6
No known key found for this signature in database
GPG key ID: 7544761007FE4E08

View file

@ -1,15 +1,25 @@
{stdenv, fetchurl}:
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "chkrootkit-0.50";
stdenv.mkDerivation rec {
name = "chkrootkit-0.51";
src = fetchurl {
url = ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-0.50.tar.gz;
sha256 = "1ivclp7ixndacjmf7xgj8lfa6h7ihx44mzzsapqdvf0c5f9gqj4m";
url = "ftp://ftp.pangeia.com.br/pub/seg/pac/${name}.tar.gz";
sha256 = "0y0kbhy8156y8zli0wcqbakb9rprzl1w7jn0kw3xjfgzrgsncqgn";
};
installPhase = "
# TODO: a lazy work-around for linux build failure ...
makeFlags = [ "STATIC=" ];
installPhase = ''
mkdir -p $out/sbin
cp check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static $out/sbin
";
'';
meta = with stdenv.lib; {
description = "Locally checks for signs of a rootkit";
homepage = http://www.chkrootkit.org/;
license = licenses.bsd2;
platforms = with platforms; linux;
};
}