blob: 8c796c02694c6520e1aea90621de391138404de5 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001# Copyright (C) 2017 Armin Kuster <akuster808@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "Lynis is a free and open source security and auditing tool."
5HOMEDIR = "https://cisofy.com/"
Patrick Williams03907ee2022-05-01 06:28:52 -05006LICENSE = "GPL-3.0-only"
Brad Bishop19323692019-04-05 15:28:33 -04007LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1"
8
Andrew Geisslerdc9d6142023-05-19 09:38:37 -05009SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz \
10 file://0001-osdetection-add-OpenEmbedded-and-Poky.patch \
11 "
Brad Bishop19323692019-04-05 15:28:33 -040012
Andrew Geissler220dafd2023-10-04 10:18:08 -050013SRC_URI[sha256sum] = "f394df7d20391fb76e975ae88f3eba1da05ac9c4945e2c7f709326e185e17025"
Brad Bishop19323692019-04-05 15:28:33 -040014
15S = "${WORKDIR}/${BPN}"
16
17inherit autotools-brokensep
18
19do_compile[noexec] = "1"
20do_configure[noexec] = "1"
21
22do_install () {
23 install -d ${D}/${bindir}
24 install -d ${D}/${sysconfdir}/lynis
25 install -m 555 ${S}/lynis ${D}/${bindir}
26
27 install -d ${D}/${datadir}/lynis/db
28 install -d ${D}/${datadir}/lynis/plugins
29 install -d ${D}/${datadir}/lynis/include
30 install -d ${D}/${datadir}/lynis/extras
31
32 cp -r ${S}/db/* ${D}/${datadir}/lynis/db/.
33 cp -r ${S}/plugins/* ${D}/${datadir}/lynis/plugins/.
34 cp -r ${S}/include/* ${D}/${datadir}/lynis/include/.
35 cp -r ${S}/extras/* ${D}/${datadir}/lynis/extras/.
36 cp ${S}/*.prf ${D}/${sysconfdir}/lynis
37}
38
Patrick Williams213cb262021-08-07 19:21:33 -050039FILES:${PN} += "${sysconfdir}/developer.prf ${sysconfdir}/default.prf"
40FILES:${PN}-doc += "lynis.8 FAQ README CHANGELOG.md CONTRIBUTIONS.md CONTRIBUTORS.md"
Brad Bishop19323692019-04-05 15:28:33 -040041
Patrick Williams213cb262021-08-07 19:21:33 -050042RDEPENDS:${PN} += "procps findutils"