mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
New package: chkrootkit
This commit is contained in:
parent
4f541464fa
commit
d9fe2cc97c
3 changed files with 61 additions and 0 deletions
30
srcpkgs/chkrootkit/patches/fcntl.patch
Normal file
30
srcpkgs/chkrootkit/patches/fcntl.patch
Normal 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>
|
10
srcpkgs/chkrootkit/patches/path_max.patch
Normal file
10
srcpkgs/chkrootkit/patches/path_max.patch
Normal 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>
|
21
srcpkgs/chkrootkit/template
Normal file
21
srcpkgs/chkrootkit/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue