Merge pull request #33152 from dtzWill/fix/chkrootkit-relative-paths

chkrootkit: fixup relative path usage
This commit is contained in:
Jörg Thalheim 2017-12-29 00:57:35 +01:00 committed by GitHub
commit 1a2ffbcf2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
# TODO: a lazy work-around for linux build failure ...
makeFlags = [ "STATIC=" ];
postPatch = ''
substituteInPlace chkrootkit \
--replace " ./" " $out/bin/"
'';
installPhase = ''
mkdir -p $out/sbin
cp check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static $out/sbin