Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 1 | DESCRIPTION = "rootkit detector" |
| 2 | SUMMARY = "locally checks for signs of a rootkit" |
| 3 | HOMEPAGE = "http://www.chkrootkit.org/" |
| 4 | SECTION = "security" |
| 5 | LICENSE = "BSD-2-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fdbe53788f7081c63387d8087273f5ff" |
| 7 | |
| 8 | SRC_URI = "ftp://ftp.pangeia.com.br/pub/seg/pac/${BPN}.tar.gz" |
Patrick Williams | 93c203f | 2021-10-06 16:15:23 -0500 | [diff] [blame^] | 9 | SRC_URI[sha256sum] = "a81c0286ec449313f953701202a00e81b204fc2cf43e278585a11c12a5e0258b" |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 10 | |
| 11 | inherit autotools-brokensep |
| 12 | |
| 13 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 14 | |
| 15 | do_configure () { |
| 16 | sed -i 's/@strip.*$//' ${S}/Makefile |
| 17 | } |
| 18 | |
| 19 | do_compile () { |
| 20 | make CC="${CC}" LDFLAGS="${LDFLAGS}" sense |
| 21 | gzip -9vkf ACKNOWLEDGMENTS |
| 22 | gzip -9vkf README |
| 23 | } |
| 24 | |
| 25 | do_install () { |
| 26 | install -d ${D}/${libdir}/${PN} |
| 27 | install -d ${D}/${sbindir} |
| 28 | install -d ${D}/${docdir}/${PN} |
| 29 | |
| 30 | install -m 644 ${B}/chkdirs ${D}/${libdir}/${PN} |
| 31 | install -m 644 ${B}/chklastlog ${D}/${libdir}/${PN} |
| 32 | install -m 644 ${B}/chkproc ${D}/${libdir}/${PN} |
| 33 | install -m 644 ${B}/chkutmp ${D}/${libdir}/${PN} |
| 34 | install -m 644 ${B}/chkwtmp ${D}/${libdir}/${PN} |
| 35 | install -m 644 ${B}/ifpromisc ${D}/${libdir}/${PN} |
| 36 | install -m 644 ${B}/strings-static ${D}/${libdir}/${PN} |
| 37 | |
| 38 | install -m 755 ${B}/chklastlog ${D}/${sbindir} |
| 39 | install -m 755 ${B}/chkrootkit ${D}/${sbindir} |
| 40 | install -m 755 ${B}/chkwtmp ${D}/${sbindir} |
| 41 | |
| 42 | install -m 644 ${B}/ACKNOWLEDGMENTS.gz ${D}/${docdir}/${PN} |
| 43 | install -m 644 ${B}/README.chklastlog ${D}/${docdir}/${PN} |
| 44 | install -m 644 ${B}/README.chkwtmp ${D}/${docdir}/${PN} |
| 45 | install -m 644 ${B}/README.gz ${D}/${docdir}/${PN} |
| 46 | install -m 644 ${B}/COPYRIGHT ${D}/${docdir}/${PN} |
| 47 | } |