FreeBSD Bugzilla – Attachment 230328 Details for
Bug 260262
security/crowdsec: update to 1.2.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update to crowdsec 1.2.2 and firewall bouncer 0.0.20
0001-security-crowdsec-v1.2.2-security-crowsec-firewall-b.patch (text/plain), 9.08 KB, created by
marco
on 2021-12-22 23:13:21 UTC
(
hide
)
Description:
update to crowdsec 1.2.2 and firewall bouncer 0.0.20
Filename:
MIME Type:
Creator:
marco
Created:
2021-12-22 23:13:21 UTC
Size:
9.08 KB
patch
obsolete
>From c9a8eef54e2255c6b39828300ee5edc8c65781bb Mon Sep 17 00:00:00 2001 >From: Marco Mariani <marco@crowdsec.net> >Date: Thu, 23 Dec 2021 00:06:00 +0100 >Subject: [PATCH] security/crowdsec v1.2.2; security/crowsec-firewall-bouncer > v0.0.20 > >--- > security/crowdsec-firewall-bouncer/Makefile | 10 +++---- > security/crowdsec-firewall-bouncer/distinfo | 6 ++-- > .../files/patch-Makefile | 12 ++++---- > security/crowdsec/Makefile | 7 +++-- > security/crowdsec/distinfo | 6 ++-- > security/crowdsec/files/crowdsec.in | 11 ++----- > security/crowdsec/files/patch-Makefile | 29 ++++++++++++++----- > 7 files changed, 45 insertions(+), 36 deletions(-) > >diff --git a/security/crowdsec-firewall-bouncer/Makefile b/security/crowdsec-firewall-bouncer/Makefile >index 36a868801a50..e1d1b5d7465a 100644 >--- a/security/crowdsec-firewall-bouncer/Makefile >+++ b/security/crowdsec-firewall-bouncer/Makefile >@@ -1,5 +1,5 @@ > PORTNAME= crowdsec-firewall-bouncer >-PORTVERSION= 0.0.17 # NOTE: change BUILD_VERSION and BUILD_TAG as well >+PORTVERSION= 0.0.20 # NOTE: change BUILD_VERSION and BUILD_TAG as well > DISTVERSIONPREFIX= v > CATEGORIES= security > >@@ -19,6 +19,7 @@ RUN_DEPENDS= crowdsec>0:security/crowdsec > USE_GITHUB= yes > GH_ACCOUNT= crowdsecurity > GH_PROJECT= cs-firewall-bouncer >+GH_TAGNAME= v0.0.20-freebsd > #GH_TAGNAME is automatically set from DISTVERSION > > USE_RC_SUBR= crowdsec_firewall >@@ -28,14 +29,11 @@ SUB_FILES= pkg-message \ > > # BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) > # BUILD_TAG=$(git rev-parse HEAD) >-MAKE_ENV= BUILD_VERSION="v0.0.17" \ >- BUILD_TAG="b330209afcdefd0046fd6790999bbb342c02f1b3" >+MAKE_ENV= BUILD_VERSION="v0.0.20" \ >+ BUILD_TAG="a456a4debdf3d3551c89b8490bb942f626027310" > > ETCDIR= ${PREFIX}/etc/crowdsec/bouncers > >-do-patch: >- cd ${WRKSRC} && go mod download github.com/mattn/go-sqlite3 >- > post-patch: > ${REINPLACE_CMD} 's,$${BACKEND},pf,g' \ > ${WRKSRC}/config/crowdsec-firewall-bouncer.yaml >diff --git a/security/crowdsec-firewall-bouncer/distinfo b/security/crowdsec-firewall-bouncer/distinfo >index 001ca177529b..1548b93d6c60 100644 >--- a/security/crowdsec-firewall-bouncer/distinfo >+++ b/security/crowdsec-firewall-bouncer/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1637702397 >-SHA256 (crowdsecurity-cs-firewall-bouncer-v0.0.17_GH0.tar.gz) = 53af239b86c6b554da3711e3686d7d3036d33b2e561bfb00e195b6c8a06918c8 >-SIZE (crowdsecurity-cs-firewall-bouncer-v0.0.17_GH0.tar.gz) = 143037 >+TIMESTAMP = 1640213523 >+SHA256 (crowdsecurity-cs-firewall-bouncer-v0.0.20-v0.0.20-freebsd_GH0.tar.gz) = 95f8abf5f44e700e7f0a41edf5367715ce06918cb0de7a5d084bdca277563171 >+SIZE (crowdsecurity-cs-firewall-bouncer-v0.0.20-v0.0.20-freebsd_GH0.tar.gz) = 3018717 >diff --git a/security/crowdsec-firewall-bouncer/files/patch-Makefile b/security/crowdsec-firewall-bouncer/files/patch-Makefile >index 6d9e9a2e2f42..df450e5e1b27 100644 >--- a/security/crowdsec-firewall-bouncer/files/patch-Makefile >+++ b/security/crowdsec-firewall-bouncer/files/patch-Makefile >@@ -1,11 +1,11 @@ >---- Makefile.orig 2021-12-07 09:00:17 UTC >+--- Makefile.orig 2021-12-22 22:57:23 UTC > +++ Makefile >-@@ -11,7 +11,7 @@ GOGET=$(GOCMD) get >- BUILD_VERSION?="$(shell git describe --tags `git rev-list --tags --max-count=1`)" >+@@ -11,7 +11,7 @@ BUILD_VERSION?="$(shell git describe --tags `git rev-l > BUILD_GOVERSION="$(shell go version | cut -d " " -f3 | sed -r 's/[go]+//g')" > BUILD_TIMESTAMP=$(shell date +%F"_"%T) >--BUILD_TAG="$(shell git rev-parse HEAD)" >-+BUILD_TAG?="$(shell git rev-parse HEAD)" >- export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/cs-firewall-bouncer/pkg/version.Version=$(BUILD_VERSION) \ >+ BUILD_TAG?="$(shell git rev-parse HEAD)" >+-export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/cs-firewall-bouncer/pkg/version.Version=$(BUILD_VERSION) \ >++export LD_OPTS=-mod vendor -modcacherw --ldflags "-s -w -X github.com/crowdsecurity/cs-firewall-bouncer/pkg/version.Version=$(BUILD_VERSION) \ > -X github.com/crowdsecurity/cs-firewall-bouncer/pkg/version.BuildDate=$(BUILD_TIMESTAMP) \ > -X github.com/crowdsecurity/cs-firewall-bouncer/pkg/version.Tag=$(BUILD_TAG) \ >+ -X github.com/crowdsecurity/cs-firewall-bouncer/pkg/version.GoVersion=$(BUILD_GOVERSION)" >diff --git a/security/crowdsec/Makefile b/security/crowdsec/Makefile >index f3683aee9c30..98531dd14d60 100644 >--- a/security/crowdsec/Makefile >+++ b/security/crowdsec/Makefile >@@ -1,5 +1,5 @@ > PORTNAME= crowdsec >-PORTVERSION= 1.2.1 # NOTE: change BUILD_VERSION and BUILD_TAG as well >+PORTVERSION= 1.2.2 # NOTE: change BUILD_VERSION and BUILD_TAG as well > DISTVERSIONPREFIX= v > CATEGORIES= security > >@@ -18,6 +18,7 @@ USES= gmake > USE_GITHUB= yes > GH_ACCOUNT= crowdsecurity > GH_PROJECT= crowdsec >+GH_TAGNAME= v1.2.2-freebsd > #GH_TAGNAME is automatically set from DISTVERSION > > USE_RC_SUBR= crowdsec >@@ -29,8 +30,8 @@ SUB_FILES= pkg-message \ > > # BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) > # BUILD_TAG=$(git rev-parse HEAD) >-MAKE_ENV= BUILD_VERSION="v1.2.1" \ >- BUILD_TAG="dd03d073558e380c283afe66942f537c3da647ff" >+MAKE_ENV= BUILD_VERSION="v1.2.2" \ >+ BUILD_TAG="7865ec368e54e28b23b54a187b9f96999f361f12" > > PLUGIN_DIR= ${PREFIX}/lib/crowdsec/plugins > STAGE_PLUGINS= ${STAGEDIR}${PLUGIN_DIR} >diff --git a/security/crowdsec/distinfo b/security/crowdsec/distinfo >index 1eecdf198266..b45eb3a81972 100644 >--- a/security/crowdsec/distinfo >+++ b/security/crowdsec/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1637702390 >-SHA256 (crowdsecurity-crowdsec-v1.2.1_GH0.tar.gz) = e3a9bbb70b1995a83c5001d06dbbcb5f59d43e4d7c18b60548f305a62d2dd6a3 >-SIZE (crowdsecurity-crowdsec-v1.2.1_GH0.tar.gz) = 659398 >+TIMESTAMP = 1640118841 >+SHA256 (crowdsecurity-crowdsec-v1.2.2-v1.2.2-freebsd_GH0.tar.gz) = 25f8503122b38e10f837c4eb8cf7e43ceb15de9a05ea7e89384715a7567ad8cd >+SIZE (crowdsecurity-crowdsec-v1.2.2-v1.2.2-freebsd_GH0.tar.gz) = 16571481 >diff --git a/security/crowdsec/files/crowdsec.in b/security/crowdsec/files/crowdsec.in >index 04b7c02130f9..ff4cd4cea83d 100644 >--- a/security/crowdsec/files/crowdsec.in >+++ b/security/crowdsec/files/crowdsec.in >@@ -48,7 +48,7 @@ crowdsec_precmd() { > cs_cli hub update || : > fi > >- if [ -z "$(cs_cli machines list -o raw)" ]; then >+ if [ "$(cs_cli machines list -o json)" = "[]" ]; then > echo "Registering LAPI" > cs_cli machines add --auto || : > fi >@@ -59,13 +59,8 @@ crowdsec_precmd() { > cs_cli capi register || : > fi > >- cs_cli collections inspect crowdsecurity/linux >/dev/null || cs_cli collections install crowdsecurity/linux || : >- >- DATA_DIR=$(Config ConfigPaths.DataDir) >- if [ ! -f "${DATA_DIR}/GeoLite2-City.mmdb" ]; then >- echo "Installing GeoIP enricher" >- cs_cli parsers install crowdsecurity/geoip-enrich || : >- fi >+ cs_cli collections inspect crowdsecurity/freebsd | grep ^installed | grep -q true || \ >+ cs_cli collections install crowdsecurity/freebsd || : > } > > crowdsec_start() >diff --git a/security/crowdsec/files/patch-Makefile b/security/crowdsec/files/patch-Makefile >index 909dceada263..840e31a44477 100644 >--- a/security/crowdsec/files/patch-Makefile >+++ b/security/crowdsec/files/patch-Makefile >@@ -1,11 +1,26 @@ >---- Makefile.orig 2021-11-17 09:15:38 UTC >+--- Makefile.orig 2021-12-21 21:18:22 UTC > +++ Makefile >-@@ -42,7 +42,7 @@ BUILD_VERSION?="$(shell git describe --tags `git rev-l >- BUILD_GOVERSION="$(shell go version | cut -d " " -f3 | sed -E 's/[go]+//g')" >- BUILD_CODENAME=$(shell cat RELEASE.json | jq -r .CodeName) >+@@ -44,14 +44,14 @@ BUILD_CODENAME=$(shell cat RELEASE.json | jq -r .CodeN > BUILD_TIMESTAMP=$(shell date +%F"_"%T) >--BUILD_TAG="$(shell git rev-parse HEAD)" >-+BUILD_TAG?="$(shell git rev-parse HEAD)" >+ BUILD_TAG?="$(shell git rev-parse HEAD)" > >- export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ >+-export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ >++export LD_OPTS=-mod vendor -modcacherw -ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ > -X github.com/crowdsecurity/crowdsec/pkg/cwversion.System=$(SYSTEM) \ >+ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.BuildDate=$(BUILD_TIMESTAMP) \ >+ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=$(BUILD_CODENAME) \ >+ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Tag=$(BUILD_TAG) \ >+ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.GoVersion=$(BUILD_GOVERSION)" >+ >+-export LD_OPTS_STATIC=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ >++export LD_OPTS_STATIC=-mod vendor -modcacherw -ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ >+ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.BuildDate=$(BUILD_TIMESTAMP) \ >+ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=$(BUILD_CODENAME) \ >+ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Tag=$(BUILD_TAG) \ >+@@ -176,4 +176,4 @@ check_release: >+ release: check_release build package >+ >+ .PHONY: >+-release_static: check_release static package_static >+\ No newline at end of file >++release_static: check_release static package_static >-- >2.32.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260262
:
229955
|
230328
|
230596
|
230686
|
230968