blob: fe0e9891be86e2b416ab2ea74d5f19340c4255dc [file] [log] [blame]
Andrew Geissler1fe918a2020-05-15 14:16:47 -05001DESCRIPTION = "rootkit detector"
2SUMMARY = "locally checks for signs of a rootkit"
3HOMEPAGE = "http://www.chkrootkit.org/"
4SECTION = "security"
5LICENSE = "BSD-2-Clause"
6LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fdbe53788f7081c63387d8087273f5ff"
7
Andrew Geissler78b72792022-06-14 06:47:25 -05008SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/universe/c/${BPN}/${BPN}_${PV}.orig.tar.gz \
9 file://musl_fix.patch"
Patrick Williams93c203f2021-10-06 16:15:23 -050010SRC_URI[sha256sum] = "a81c0286ec449313f953701202a00e81b204fc2cf43e278585a11c12a5e0258b"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050011
12inherit autotools-brokensep
13
14TARGET_CC_ARCH += "${LDFLAGS}"
15
16do_configure () {
17 sed -i 's/@strip.*$//' ${S}/Makefile
18}
19
20do_compile () {
21 make CC="${CC}" LDFLAGS="${LDFLAGS}" sense
22 gzip -9vkf ACKNOWLEDGMENTS
23 gzip -9vkf README
24}
25
26do_install () {
27 install -d ${D}/${libdir}/${PN}
28 install -d ${D}/${sbindir}
29 install -d ${D}/${docdir}/${PN}
30
31 install -m 644 ${B}/chkdirs ${D}/${libdir}/${PN}
32 install -m 644 ${B}/chklastlog ${D}/${libdir}/${PN}
33 install -m 644 ${B}/chkproc ${D}/${libdir}/${PN}
34 install -m 644 ${B}/chkutmp ${D}/${libdir}/${PN}
35 install -m 644 ${B}/chkwtmp ${D}/${libdir}/${PN}
36 install -m 644 ${B}/ifpromisc ${D}/${libdir}/${PN}
37 install -m 644 ${B}/strings-static ${D}/${libdir}/${PN}
38
39 install -m 755 ${B}/chklastlog ${D}/${sbindir}
40 install -m 755 ${B}/chkrootkit ${D}/${sbindir}
41 install -m 755 ${B}/chkwtmp ${D}/${sbindir}
42
43 install -m 644 ${B}/ACKNOWLEDGMENTS.gz ${D}/${docdir}/${PN}
44 install -m 644 ${B}/README.chklastlog ${D}/${docdir}/${PN}
45 install -m 644 ${B}/README.chkwtmp ${D}/${docdir}/${PN}
46 install -m 644 ${B}/README.gz ${D}/${docdir}/${PN}
47 install -m 644 ${B}/COPYRIGHT ${D}/${docdir}/${PN}
48}