blob: 0a4981245c52f63003bcd587219dec885d1798dd [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 Geissler615f2f12022-07-15 14:00:58 -050013SRC_URI[sha256sum] = "98373a4cc9d0471ab9bebb249e442fcf94b6bf6d4e9c6fc0b22bca1506646c63"
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"