blob: 3ba82f9e4114399ed4120a9bbfa039c42c074742 [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/"
6LICENSE = "GPL-3.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1"
8
9SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz"
10
11SRC_URI[md5sum] = "3422cee3b12fc33338fcde003d65e234"
12SRC_URI[sha256sum] = "fde6ccf8d6ec0ae1e9c9f4a6d640cddcde4bf7a92f8437d47d16a5477e21bfda"
13
14S = "${WORKDIR}/${BPN}"
15
16inherit autotools-brokensep
17
18do_compile[noexec] = "1"
19do_configure[noexec] = "1"
20
21do_install () {
22 install -d ${D}/${bindir}
23 install -d ${D}/${sysconfdir}/lynis
24 install -m 555 ${S}/lynis ${D}/${bindir}
25
26 install -d ${D}/${datadir}/lynis/db
27 install -d ${D}/${datadir}/lynis/plugins
28 install -d ${D}/${datadir}/lynis/include
29 install -d ${D}/${datadir}/lynis/extras
30
31 cp -r ${S}/db/* ${D}/${datadir}/lynis/db/.
32 cp -r ${S}/plugins/* ${D}/${datadir}/lynis/plugins/.
33 cp -r ${S}/include/* ${D}/${datadir}/lynis/include/.
34 cp -r ${S}/extras/* ${D}/${datadir}/lynis/extras/.
35 cp ${S}/*.prf ${D}/${sysconfdir}/lynis
36}
37
38FILES_${PN} += "${sysconfdir}/developer.prf ${sysconfdir}/default.prf"
39FILES_${PN}-doc += "lynis.8 FAQ README CHANGELOG.md CONTRIBUTIONS.md CONTRIBUTORS.md"
40
41RDEPENDS_${PN} += "procps"