{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "chkrootkit-0.50";

  src = fetchurl {
    url = ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz;
    sha256 = "1ivclp7ixndacjmf7xgj8lfa6h7ihx44mzzsapqdvf0c5f9gqj4m";
  };

  installPhase = "
    mkdir -p $out/sbin
    cp check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static $out/sbin
  ";
}

{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "chkrootkit-0.50";

  src = fetchurl {
    url = ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-0.50.tar.gz;
    sha256 = "1ivclp7ixndacjmf7xgj8lfa6h7ihx44mzzsapqdvf0c5f9gqj4m";
  };

  installPhase = "
    mkdir -p $out/sbin
    cp check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static $out/sbin
  ";
}

Use versioned tarball URL for chkrootkit.
Use versioned tarball URL for chkrootkit.

Pointing at the latest version is fragile: Hash updates don't
follow source updates automatically.
