FS#11962 - [chkrootkit-0.48-1] chrkootkit can't find its own tools

Attached to Project: Arch Linux
Opened by solsTiCe (zebul666) - Saturday, 01 November 2008, 12:14 GMT
Last edited by Hugo Doria (hdoria) - Saturday, 13 June 2009, 02:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Hugo Doria (hdoria)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
when i try to run chkrootkit, i got this errors
chkrootkit |grep "can't exec"
Checking `ldsopreload'... can't exec ./strings-static, not tested
Checking `lkm'... not tested: can't exec
Checking `sniffer'... not tested: can't exec ./ifpromisc
Checking `wted'... not tested: can't exec ./chkwtmp
Checking `z2'... not tested: can't exec ./chklastlog
Checking `chkutmp'... not tested: can't exec ./chkutmp

it's because upstream seems to think chkrootkit should not be made a package and except its tools to be in the current dir.

chkrootkit must be changed to use its tools the package install in /usr/bin

for example, use this in the PKGBUILD

sed -i '/\.\/chk/s|./chk|/usr/bin/chk|g' chkrootkit
sed -i 's|./ifpromisc|/usr/bin/ifpromisc|g' chkrootkit
sed -i 's|./strings-static|/usr/bin/strings-static|g' chkrootkit
sed -i 's|./check_wtmpx|/usr/bin/check_wtmpx|g' chkrootkit

or use the attached patch

Steps to reproduce:
run chkrootkit
   patch (5.4 KiB)
This task depends upon

Closed by  Hugo Doria (hdoria)
Saturday, 13 June 2009, 02:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed on chkrootkit-0.48-2

Loading...