blob: d38c17a3f8e5f5a57f3c0e0f0e3d7e8a7a0711ba [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
9SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz"
10
Andrew Geissler615f2f12022-07-15 14:00:58 -050011SRC_URI[sha256sum] = "98373a4cc9d0471ab9bebb249e442fcf94b6bf6d4e9c6fc0b22bca1506646c63"
Brad Bishop19323692019-04-05 15:28:33 -040012
13S = "${WORKDIR}/${BPN}"
14
15inherit autotools-brokensep
16
17do_compile[noexec] = "1"
18do_configure[noexec] = "1"
19
20do_install () {
21 install -d ${D}/${bindir}
22 install -d ${D}/${sysconfdir}/lynis
23 install -m 555 ${S}/lynis ${D}/${bindir}
24
25 install -d ${D}/${datadir}/lynis/db
26 install -d ${D}/${datadir}/lynis/plugins
27 install -d ${D}/${datadir}/lynis/include
28 install -d ${D}/${datadir}/lynis/extras
29
30 cp -r ${S}/db/* ${D}/${datadir}/lynis/db/.
31 cp -r ${S}/plugins/* ${D}/${datadir}/lynis/plugins/.
32 cp -r ${S}/include/* ${D}/${datadir}/lynis/include/.
33 cp -r ${S}/extras/* ${D}/${datadir}/lynis/extras/.
34 cp ${S}/*.prf ${D}/${sysconfdir}/lynis
35}
36
Patrick Williams213cb262021-08-07 19:21:33 -050037FILES:${PN} += "${sysconfdir}/developer.prf ${sysconfdir}/default.prf"
38FILES:${PN}-doc += "lynis.8 FAQ README CHANGELOG.md CONTRIBUTIONS.md CONTRIBUTORS.md"
Brad Bishop19323692019-04-05 15:28:33 -040039
Patrick Williams213cb262021-08-07 19:21:33 -050040RDEPENDS:${PN} += "procps findutils"