From 2f861e6ba652eb580babd179a632a1413caae061 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sun, 4 Dec 2016 22:07:11 +0100 Subject: chkrootkit: 0.50 -> 0.51, fix build --- pkgs/tools/security/chkrootkit/default.nix | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'pkgs/tools/security/chkrootkit') diff --git a/pkgs/tools/security/chkrootkit/default.nix b/pkgs/tools/security/chkrootkit/default.nix index 2dad4b3e43aa4..54aeb32cabd66 100644 --- a/pkgs/tools/security/chkrootkit/default.nix +++ b/pkgs/tools/security/chkrootkit/default.nix @@ -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; + }; } -- cgit 1.4.1