diff --git a/srcpkgs/chkrootkit/patches/fcntl.patch b/srcpkgs/chkrootkit/patches/fcntl.patch new file mode 100644 index 00000000000..dc0ee1594c5 --- /dev/null +++ b/srcpkgs/chkrootkit/patches/fcntl.patch @@ -0,0 +1,30 @@ +--- chklastlog.c ++++ chklastlog.c +@@ -41,6 +41,7 @@ int main () { return 0; } + #include + #endif + #include ++#include + #include + #include + #include +--- chkproc.c ++++ chkproc.c +@@ -62,6 +62,7 @@ int main (){ return 0; } + #include + #include + #include ++#include + #include + #include + #include +--- chkwtmp.c ++++ chkwtmp.c +@@ -25,6 +25,7 @@ int main () { return 0; } + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/chkrootkit/patches/path_max.patch b/srcpkgs/chkrootkit/patches/path_max.patch new file mode 100644 index 00000000000..93534afa00e --- /dev/null +++ b/srcpkgs/chkrootkit/patches/path_max.patch @@ -0,0 +1,10 @@ +--- chkdirs.c ++++ chkdirs.c +@@ -33,6 +33,7 @@ + #include + #endif + ++#include + #include + #include + #include diff --git a/srcpkgs/chkrootkit/template b/srcpkgs/chkrootkit/template new file mode 100644 index 00000000000..9727ddc0154 --- /dev/null +++ b/srcpkgs/chkrootkit/template @@ -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 " +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 +}