blob: 20a1fb026a4148e584c1871390957b1b1234de4c [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"
5LICENSE = "GPL-2.0"
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
29FILES_${PN} = "${bindir}/*"
30
31RDEPENDS_${PN} = "coreutils gnupg net-tools perl perl-module-data-dumper \
32 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 \
36 "
37
38RDEPENDS_${PN}_class-native = "coreutils net-tools perl perl-module-data-dumper \
39 perl-module-file-basename perl-module-file-spec perl-module-getopt-long \
40 perl-module-lib perl-module-posix perl-module-term-ansicolor \
41 perl-module-time-localtime perl-module-file-glob\
42 "
43
44
45BBCLASSEXTEND = "native"