Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | # Copyright (C) 2017 Armin Kuster <akuster808@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | SUMMARY = "Lynis is a free and open source security and auditing tool." |
| 5 | HOMEDIR = "https://cisofy.com/" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 6 | LICENSE = "GPL-3.0-only" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1" |
| 8 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 9 | SRC_URI = "https://downloads.cisofy.com/lynis/${BPN}-${PV}.tar.gz \ |
Andrew Geissler | dc9d614 | 2023-05-19 09:38:37 -0500 | [diff] [blame] | 10 | file://0001-osdetection-add-OpenEmbedded-and-Poky.patch \ |
| 11 | " |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 13 | SRC_URI[sha256sum] = "f394df7d20391fb76e975ae88f3eba1da05ac9c4945e2c7f709326e185e17025" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 14 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 15 | #UPSTREAM_CHECK = "https://downloads.cisofy.com/lynis" |
| 16 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 17 | S = "${WORKDIR}/${BPN}" |
| 18 | |
| 19 | inherit autotools-brokensep |
| 20 | |
| 21 | do_compile[noexec] = "1" |
| 22 | do_configure[noexec] = "1" |
| 23 | |
| 24 | do_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 Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:${PN} += "${sysconfdir}/developer.prf ${sysconfdir}/default.prf" |
| 42 | FILES:${PN}-doc += "lynis.8 FAQ README CHANGELOG.md CONTRIBUTIONS.md CONTRIBUTORS.md" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 43 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 44 | RDEPENDS:${PN} += "procps findutils" |