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/" |
| 6 | LICENSE = "GPL-3.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1" |
| 8 | |
| 9 | SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz" |
| 10 | |
Andrew Geissler | b2fe863 | 2020-08-21 15:57:21 -0500 | [diff] [blame] | 11 | SRC_URI[sha256sum] = "3cc165f9007ba41de6d0b693a1167dbaf0179085f9506dcba64b4b8e37e1bda2" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/${BPN}" |
| 14 | |
| 15 | inherit autotools-brokensep |
| 16 | |
| 17 | do_compile[noexec] = "1" |
| 18 | do_configure[noexec] = "1" |
| 19 | |
| 20 | do_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 | |
| 37 | FILES_${PN} += "${sysconfdir}/developer.prf ${sysconfdir}/default.prf" |
| 38 | FILES_${PN}-doc += "lynis.8 FAQ README CHANGELOG.md CONTRIBUTIONS.md CONTRIBUTORS.md" |
| 39 | |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 40 | RDEPENDS_${PN} += "procps findutils" |