blob: 5b5864c4e7a868a969f02d2b64b5c487797e4167 [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
Patrick Williams169d7bc2024-01-05 11:33:25 -06009SRC_URI = "https://downloads.cisofy.com/lynis/${BPN}-${PV}.tar.gz \
Andrew Geisslerdc9d6142023-05-19 09:38:37 -050010 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
Patrick Williams169d7bc2024-01-05 11:33:25 -060015#UPSTREAM_CHECK = "https://downloads.cisofy.com/lynis"
16
Brad Bishop19323692019-04-05 15:28:33 -040017S = "${WORKDIR}/${BPN}"
18
19inherit autotools-brokensep
20
21do_compile[noexec] = "1"
22do_configure[noexec] = "1"
23
24do_install () {
25 install -d ${D}/${bindir}
26 install -d ${D}/${sysconfdir}/lynis
27 install -m 555 ${S}/lynis ${D}/${bindir}
28
29 install -d ${D}/${datadir}/lynis/db
30 install -d ${D}/${datadir}/lynis/plugins
31 install -d ${D}/${datadir}/lynis/include
32 install -d ${D}/${datadir}/lynis/extras
33
34 cp -r ${S}/db/* ${D}/${datadir}/lynis/db/.
35 cp -r ${S}/plugins/* ${D}/${datadir}/lynis/plugins/.
36 cp -r ${S}/include/* ${D}/${datadir}/lynis/include/.
37 cp -r ${S}/extras/* ${D}/${datadir}/lynis/extras/.
38 cp ${S}/*.prf ${D}/${sysconfdir}/lynis
39}
40
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:${PN} += "${sysconfdir}/developer.prf ${sysconfdir}/default.prf"
42FILES:${PN}-doc += "lynis.8 FAQ README CHANGELOG.md CONTRIBUTIONS.md CONTRIBUTORS.md"
Brad Bishop19323692019-04-05 15:28:33 -040043
Patrick Williams213cb262021-08-07 19:21:33 -050044RDEPENDS:${PN} += "procps findutils"