Initial commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Copyright (C) 2017 Armin Kuster <akuster808@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "Lynis is a free and open source security and auditing tool."
|
||||
HOMEDIR = "https://cisofy.com/"
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1"
|
||||
|
||||
SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz \
|
||||
file://0001-osdetection-add-OpenEmbedded-and-Poky.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "98373a4cc9d0471ab9bebb249e442fcf94b6bf6d4e9c6fc0b22bca1506646c63"
|
||||
|
||||
S = "${WORKDIR}/${BPN}"
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
do_compile[noexec] = "1"
|
||||
do_configure[noexec] = "1"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}/${bindir}
|
||||
install -d ${D}/${sysconfdir}/lynis
|
||||
install -m 555 ${S}/lynis ${D}/${bindir}
|
||||
|
||||
install -d ${D}/${datadir}/lynis/db
|
||||
install -d ${D}/${datadir}/lynis/plugins
|
||||
install -d ${D}/${datadir}/lynis/include
|
||||
install -d ${D}/${datadir}/lynis/extras
|
||||
|
||||
cp -r ${S}/db/* ${D}/${datadir}/lynis/db/.
|
||||
cp -r ${S}/plugins/* ${D}/${datadir}/lynis/plugins/.
|
||||
cp -r ${S}/include/* ${D}/${datadir}/lynis/include/.
|
||||
cp -r ${S}/extras/* ${D}/${datadir}/lynis/extras/.
|
||||
cp ${S}/*.prf ${D}/${sysconfdir}/lynis
|
||||
}
|
||||
|
||||
FILES:${PN} += "${sysconfdir}/developer.prf ${sysconfdir}/default.prf"
|
||||
FILES:${PN}-doc += "lynis.8 FAQ README CHANGELOG.md CONTRIBUTIONS.md CONTRIBUTORS.md"
|
||||
|
||||
RDEPENDS:${PN} += "procps findutils"
|
||||
Reference in New Issue
Block a user