git: 866a6e9f57ac - main - security/crowdsec: update to 1.7.0

From: Philippe Audeoud <jadawin_at_FreeBSD.org>
Date: Tue, 09 Sep 2025 11:56:56 UTC
The branch main has been updated by jadawin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=866a6e9f57ac67e2003adca1b9208819e2d05000

commit 866a6e9f57ac67e2003adca1b9208819e2d05000
Author:     marco <marco@crowdsec.net>
AuthorDate: 2025-09-05 14:09:36 +0000
Commit:     Philippe Audeoud <jadawin@FreeBSD.org>
CommitDate: 2025-09-09 11:56:33 +0000

    security/crowdsec: update to 1.7.0
    
    PR:             289322
---
 security/crowdsec/Makefile                       |  8 +++++---
 security/crowdsec/distinfo                       | 10 +++++-----
 security/crowdsec/files/acquis.yaml.sample       | 18 ++++++++++++++++++
 security/crowdsec/files/patch-config_acquis.yaml | 12 ------------
 4 files changed, 28 insertions(+), 20 deletions(-)

diff --git a/security/crowdsec/Makefile b/security/crowdsec/Makefile
index 6def3753de60..00e137ea9782 100644
--- a/security/crowdsec/Makefile
+++ b/security/crowdsec/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	crowdsec
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.6.11
-PORTREVISION=	2
+DISTVERSION=	1.7.0
 CATEGORIES=	security
 
 MAINTAINER=	marco@crowdsec.net
@@ -15,7 +14,7 @@ LIB_DEPENDS=	libabsl_base.so:devel/abseil \
 		libre2.so:devel/re2
 
 USES=		go:modules pkgconfig
-_COMMIT=	d64ee2ae
+_COMMIT=	c3036e21
 _BUILD_DATE=	$$(date -u "+%F_%T")
 USE_RC_SUBR=	crowdsec
 
@@ -86,6 +85,9 @@ do-install:
 	@${MV} ${STAGEDIR}${ETCDIR}/acquis.yaml \
 		${STAGEDIR}${ETCDIR}/acquis.yaml.sample
 
+	${INSTALL_DATA} ${FILESDIR}/acquis.yaml.sample \
+		${STAGEDIR}${ETCDIR}/acquis.yaml.sample
+
 	@${MV} ${STAGEDIR}${ETCDIR}/config.yaml \
 		${STAGEDIR}${ETCDIR}/config.yaml.sample
 
diff --git a/security/crowdsec/distinfo b/security/crowdsec/distinfo
index 47a7babd24af..27a1df0a8f93 100644
--- a/security/crowdsec/distinfo
+++ b/security/crowdsec/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1754034506
-SHA256 (go/security_crowdsec/crowdsec-v1.6.11/v1.6.11.mod) = c4dcc18622d60438579ba803257295e8118772dd383825b72ee758800e282bb7
-SIZE (go/security_crowdsec/crowdsec-v1.6.11/v1.6.11.mod) = 10729
-SHA256 (go/security_crowdsec/crowdsec-v1.6.11/v1.6.11.zip) = ca01f1e1321075a0690b5a2378dbd4cc02eee104594fe71ab64c010df5b77591
-SIZE (go/security_crowdsec/crowdsec-v1.6.11/v1.6.11.zip) = 1780687
+TIMESTAMP = 1756721640
+SHA256 (go/security_crowdsec/crowdsec-v1.7.0/v1.7.0.mod) = fe6e9e56759a9f85b7b7946724b1d64421340aabb174b1c56a5140e5e35169bb
+SIZE (go/security_crowdsec/crowdsec-v1.7.0/v1.7.0.mod) = 10467
+SHA256 (go/security_crowdsec/crowdsec-v1.7.0/v1.7.0.zip) = 8854689eea80df7d93437f05ec5fca7461a8444ddb3d09aed387be3a75452113
+SIZE (go/security_crowdsec/crowdsec-v1.7.0/v1.7.0.zip) = 1796649
diff --git a/security/crowdsec/files/acquis.yaml.sample b/security/crowdsec/files/acquis.yaml.sample
new file mode 100644
index 000000000000..b994f31b0a6b
--- /dev/null
+++ b/security/crowdsec/files/acquis.yaml.sample
@@ -0,0 +1,18 @@
+filenames:
+  - /var/log/nginx/*.log
+  - ./tests/nginx/nginx.log
+#this is not a syslog log, indicate which kind of logs it is
+labels:
+  type: nginx
+---
+filenames:
+ - /var/log/auth.log
+ - /var/log/syslog
+labels:
+  type: syslog
+---
+filenames:
+ - /var/log/httpd-access.log
+ - /var/log/httpd-error.log
+labels:
+  type: apache2
diff --git a/security/crowdsec/files/patch-config_acquis.yaml b/security/crowdsec/files/patch-config_acquis.yaml
deleted file mode 100644
index 67b4ef3c693b..000000000000
--- a/security/crowdsec/files/patch-config_acquis.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
---- config/acquis.yaml.orig	2021-12-15 10:39:37 UTC
-+++ config/acquis.yaml
-@@ -11,6 +11,8 @@ filenames:
- labels:
-   type: syslog
- ---
--filename: /var/log/apache2/*.log
-+filenames:
-+ - /var/log/httpd-access.log
-+ - /var/log/httpd-error.log
- labels:
-   type: apache2