blob: 85884a770cb31adabf19ec8d8267f0bd826d9035 [file] [log] [blame]
Andrew Geissler1fe918a2020-05-15 14:16:47 -05001SUMMARY = "Linux security scanner"
2DESCRIPTION = "Buck-Security is a security scanner for Debian and Ubuntu Linux. It runs a couple of important checks and helps you to harden your Linux \
3system. This enables you to quickly overview the security status of your Linux system."
4SECTION = "security"
Patrick Williams03907ee2022-05-01 06:28:52 -05005LICENSE = "GPL-2.0-only"
Andrew Geissler8b139282021-03-05 15:22:30 -06006LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
Andrew Geissler1fe918a2020-05-15 14:16:47 -05007
8SRC_URI = "http://sourceforge.net/projects/buck-security/files/buck-security/buck-security_${PV}/${BPN}_${PV}.tar.gz"
9
10SRC_URI[md5sum] = "611a3e9bb7ed8a8270aa15216c321c53"
11SRC_URI[sha256sum] = "c533c6631ec3554dd8d39d2d1c3ed44badbbf50810ebb75469c74639fa294b01"
12
13S = "${WORKDIR}/${BPN}_${PV}"
14
15do_configure[noexec] = "1"
16do_compile[noexec] = "1"
17
18do_install() {
19 install -d ${D}${bindir}/buck
20 cp -r ${S}/* ${D}${bindir}/buck
21 cp -r ${S}/buck-security ${D}${bindir}
22 sed -i 's!use lib "checks"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "buck/checks")!' ${D}${bindir}/buck-security
23 sed -i 's!use lib "checks/lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "buck/checks/lib")!' ${D}${bindir}/buck-security
24 sed -i 's!use lib "lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "buck/lib")!' ${D}${bindir}/buck-security
25 sed -i 's!my $buck_root = "."!my $buck_root = File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "buck")!' ${D}${bindir}/buck-security
26
27}
28
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN} = "${bindir}/*"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050030
Patrick Williams213cb262021-08-07 19:21:33 -050031RDEPENDS:${PN} = "coreutils gnupg net-tools perl perl-module-data-dumper \
Andrew Geissler1fe918a2020-05-15 14:16:47 -050032 perl-module-file-basename perl-module-file-spec perl-module-getopt-long \
33 perl-module-lib perl-module-posix perl-module-term-ansicolor \
34 perl-module-time-localtime pinentry perl-module-pod-usage \
35 perl-module-pod-text perl-module-file-glob \
Patrick Williams520786c2023-06-25 16:20:36 -050036 perl-module-cwd perl-module-encode perl-module-encode-encoding \
Andrew Geissler1fe918a2020-05-15 14:16:47 -050037 "
38
Patrick Williams213cb262021-08-07 19:21:33 -050039RDEPENDS:${PN}:class-native = "coreutils net-tools perl perl-module-data-dumper \
Andrew Geissler1fe918a2020-05-15 14:16:47 -050040 perl-module-file-basename perl-module-file-spec perl-module-getopt-long \
41 perl-module-lib perl-module-posix perl-module-term-ansicolor \
42 perl-module-time-localtime perl-module-file-glob\
43 "
44
45
46BBCLASSEXTEND = "native"