Merge pull request #118259 from rhoriguchi/chkrootkit
chkrootkit: add missing binutils
This commit is contained in:
commit
9126104f42
@ -1,16 +1,19 @@
|
|||||||
{ lib, stdenv, fetchurl }:
|
{ lib, stdenv, fetchurl, makeWrapper, binutils-unwrapped }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "chkrootkit-0.54";
|
pname = "chkrootkit";
|
||||||
|
version = "0.54";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "ftp://ftp.pangeia.com.br/pub/seg/pac/${name}.tar.gz";
|
url = "ftp://ftp.pangeia.com.br/pub/seg/pac/${pname}-${version}.tar.gz";
|
||||||
sha256 = "sha256-FUySaSH1PbYHKKfLyXyohli2lMFLfSiO/jg+CEmRVgc=";
|
sha256 = "01snj54hhgiqzs72hzabq6abcn46m1yckjx7503vcggm45lr4k0m";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: a lazy work-around for linux build failure ...
|
# TODO: a lazy work-around for linux build failure ...
|
||||||
makeFlags = [ "STATIC=" ];
|
makeFlags = [ "STATIC=" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace chkrootkit \
|
substituteInPlace chkrootkit \
|
||||||
--replace " ./" " $out/bin/"
|
--replace " ./" " $out/bin/"
|
||||||
@ -19,6 +22,9 @@ stdenv.mkDerivation rec {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/sbin
|
mkdir -p $out/sbin
|
||||||
cp check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static $out/sbin
|
cp check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static $out/sbin
|
||||||
|
|
||||||
|
wrapProgram $out/sbin/chkrootkit \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ binutils-unwrapped ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user