New package: chkrootkit

This commit is contained in:
cr6git 2017-11-02 09:19:35 +01:00 committed by Enno Boland
parent 4f541464fa
commit d9fe2cc97c
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,30 @@
--- chklastlog.c
+++ chklastlog.c
@@ -41,6 +41,7 @@ int main () { return 0; }
#include <stdlib.h>
#endif
#include <sys/stat.h>
+#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
--- chkproc.c
+++ chkproc.c
@@ -62,6 +62,7 @@ int main (){ return 0; }
#include <string.h>
#include <errno.h>
#include <sys/types.h>
+#include <fcntl.h>
#include <dirent.h>
#include <ctype.h>
#include <stdlib.h>
--- chkwtmp.c
+++ chkwtmp.c
@@ -25,6 +25,7 @@ int main () { return 0; }
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <fcntl.h>
#include <string.h>
#include <utmp.h>
#include <time.h>

View File

@ -0,0 +1,10 @@
--- chkdirs.c
+++ chkdirs.c
@@ -33,6 +33,7 @@
#include <sys/syslimits.h>
#endif
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>

View File

@ -0,0 +1,21 @@
# Template file for 'chkrootkit'
pkgname=chkrootkit
version=0.52
revision=1
build_style=gnu-makefile
depends="binutils net-tools"
maintainer="cr6git <quark6@protonmail.com>"
short_desc="Tool to locally check for signs of a rootkit"
homepage="http://www.chkrootkit.org"
license="BSD"
distfiles="ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-${version}.tar.gz"
checksum=c578c0b9c8ae0729c2de7075f896f3d168e768c52e319a7706c9a7e46ff7a211
CFLAGS="-fPIC"
LDFLAGS="-fPIC"
do_install() {
vbin chkrootkit
vdoc README
vlicense COPYRIGHT
}