Initial commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
DESCRIPTION = "rootkit detector"
|
||||
SUMMARY = "locally checks for signs of a rootkit"
|
||||
HOMEPAGE = "http://www.chkrootkit.org/"
|
||||
SECTION = "security"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fdbe53788f7081c63387d8087273f5ff"
|
||||
|
||||
SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/universe/c/${BPN}/${BPN}_${PV}.orig.tar.gz \
|
||||
file://musl_fix.patch"
|
||||
SRC_URI[sha256sum] = "06d1faee151aa3e3c0f91ac807ca92e60b75ed1c18268ccef2c45117156d253c"
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
do_configure () {
|
||||
sed -i 's/@strip.*$//' ${S}/Makefile
|
||||
}
|
||||
|
||||
do_compile () {
|
||||
make CC="${CC}" LDFLAGS="${LDFLAGS}" sense
|
||||
gzip -9vkf ACKNOWLEDGMENTS
|
||||
gzip -9vkf README
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}/${libdir}/${PN}
|
||||
install -d ${D}/${sbindir}
|
||||
install -d ${D}/${docdir}/${PN}
|
||||
|
||||
install -m 644 ${B}/chkdirs ${D}/${libdir}/${PN}
|
||||
install -m 644 ${B}/chklastlog ${D}/${libdir}/${PN}
|
||||
install -m 644 ${B}/chkproc ${D}/${libdir}/${PN}
|
||||
install -m 644 ${B}/chkutmp ${D}/${libdir}/${PN}
|
||||
install -m 644 ${B}/chkwtmp ${D}/${libdir}/${PN}
|
||||
install -m 644 ${B}/ifpromisc ${D}/${libdir}/${PN}
|
||||
install -m 644 ${B}/strings-static ${D}/${libdir}/${PN}
|
||||
|
||||
install -m 755 ${B}/chklastlog ${D}/${sbindir}
|
||||
install -m 755 ${B}/chkrootkit ${D}/${sbindir}
|
||||
install -m 755 ${B}/chkwtmp ${D}/${sbindir}
|
||||
|
||||
install -m 644 ${B}/ACKNOWLEDGMENTS.gz ${D}/${docdir}/${PN}
|
||||
install -m 644 ${B}/README.chklastlog ${D}/${docdir}/${PN}
|
||||
install -m 644 ${B}/README.chkwtmp ${D}/${docdir}/${PN}
|
||||
install -m 644 ${B}/README.gz ${D}/${docdir}/${PN}
|
||||
install -m 644 ${B}/COPYRIGHT ${D}/${docdir}/${PN}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
chkrootkit: Fix missing includes for musl
|
||||
|
||||
|
||||
Upstream-Status: Backport
|
||||
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07737b95af2452c0055e1ed0660590c1487befdb
|
||||
https://bugs.gentoo.org/715552
|
||||
|
||||
Signed-off-by: Armin Kuster <akuster808@gamil.com>
|
||||
|
||||
Index: chkrootkit-0.55/chkdirs.c
|
||||
===================================================================
|
||||
--- chkrootkit-0.55.orig/chkdirs.c
|
||||
+++ chkrootkit-0.55/chkdirs.c
|
||||
@@ -33,7 +33,7 @@
|
||||
#elif defined(__APPLE__) && defined(__MACH__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
-
|
||||
+#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
Index: chkrootkit-0.55/chklastlog.c
|
||||
===================================================================
|
||||
--- chkrootkit-0.55.orig/chklastlog.c
|
||||
+++ chkrootkit-0.55/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>
|
||||
Index: chkrootkit-0.55/chkproc.c
|
||||
===================================================================
|
||||
--- chkrootkit-0.55.orig/chkproc.c
|
||||
+++ chkrootkit-0.55/chkproc.c
|
||||
@@ -65,6 +65,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>
|
||||
Index: chkrootkit-0.55/chkwtmp.c
|
||||
===================================================================
|
||||
--- chkrootkit-0.55.orig/chkwtmp.c
|
||||
+++ chkrootkit-0.55/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>
|
||||
Reference in New Issue
Block a user