diff options
Diffstat (limited to 'recipes-ids/crowdsec/crowdsec_1.7.7.bb')
| -rw-r--r-- | recipes-ids/crowdsec/crowdsec_1.7.7.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-ids/crowdsec/crowdsec_1.7.7.bb b/recipes-ids/crowdsec/crowdsec_1.7.7.bb new file mode 100644 index 0000000..0697022 --- /dev/null +++ b/recipes-ids/crowdsec/crowdsec_1.7.7.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | SUMMARY = "CrowdSec is a free, modern & collaborative behavior detection engine, coupled with a global IP reputation network." | ||
| 2 | DESCRIPTION = "Open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI." | ||
| 3 | HOMEPAGE = "https://www.crowdsec.net" | ||
| 4 | LICENSE = "MIT & CC0-1.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=1e58fe4126ce0b50677f3aa6ba8e13c2 \ | ||
| 6 | file://src/${GO_IMPORT}/build/windows/Chocolatey/crowdsec/tools/LICENSE.txt;md5=4d249f04094c9fb4d2b6fd2b1127e219 \ | ||
| 7 | file://src/${GO_IMPORT}/test/lib/bats-assert/LICENSE;md5=7bae63a234e80ee7c6427dce9fdba6cc \ | ||
| 8 | file://src/${GO_IMPORT}/test/lib/bats-core/LICENSE.md;md5=2970203aedf9e829edb96a137a4fe81b \ | ||
| 9 | file://src/${GO_IMPORT}/test/lib/bats-file/LICENSE;md5=7bae63a234e80ee7c6427dce9fdba6cc \ | ||
| 10 | file://src/${GO_IMPORT}/test/lib/bats-support/LICENSE;md5=7bae63a234e80ee7c6427dce9fdba6cc \ | ||
| 11 | " | ||
| 12 | |||
| 13 | CROWDSEC_BRANCH_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" | ||
| 14 | SRC_URI = "gitsm://${GO_IMPORT};protocol=https;branch=releases/${CROWDSEC_BRANCH_VERSION}.x;tag=v${PV};destsuffix=${GO_SRCURI_DESTSUFFIX}" | ||
| 15 | |||
| 16 | SRCREV = "027974f20cf422bbe1406cf4297fbff37417bd03" | ||
| 17 | |||
| 18 | require ${BPN}-licenses.inc | ||
| 19 | require ${BPN}-go-mods.inc | ||
| 20 | GO_IMPORT = "github.com/crowdsecurity/crowdsec" | ||
| 21 | |||
| 22 | inherit go-mod go-mod-update-modules | ||
| 23 | |||
| 24 | do_install:append() { | ||
| 25 | # Avoid QA failure in !usrmerge case | ||
| 26 | sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${libdir}/go/src/${GO_IMPORT}/test/lib/bats-core/.github/workflows/check_pr_label.sh | ||
| 27 | } | ||
| 28 | |||
| 29 | RDEPENDS:${PN}-dev += "bash make" | ||
