summaryrefslogtreecommitdiff
path: root/security/crowdsec
diff options
context:
space:
mode:
Diffstat (limited to 'security/crowdsec')
-rw-r--r--security/crowdsec/Makefile9
-rw-r--r--security/crowdsec/distinfo10
-rw-r--r--security/crowdsec/files/acquis.yaml.sample18
-rw-r--r--security/crowdsec/files/patch-config_acquis.yaml12
4 files changed, 29 insertions, 20 deletions
diff --git a/security/crowdsec/Makefile b/security/crowdsec/Makefile
index 14510f464b77..00e137ea9782 100644
--- a/security/crowdsec/Makefile
+++ b/security/crowdsec/Makefile
@@ -1,6 +1,6 @@
PORTNAME= crowdsec
DISTVERSIONPREFIX= v
-DISTVERSION= 1.6.8
+DISTVERSION= 1.7.0
CATEGORIES= security
MAINTAINER= marco@crowdsec.net
@@ -13,8 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libabsl_base.so:devel/abseil \
libre2.so:devel/re2
-USES= go:1.24,modules pkgconfig
-_COMMIT= f209766e
+USES= go:modules pkgconfig
+_COMMIT= c3036e21
_BUILD_DATE= $$(date -u "+%F_%T")
USE_RC_SUBR= crowdsec
@@ -85,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 75f426b46bc3..27a1df0a8f93 100644
--- a/security/crowdsec/distinfo
+++ b/security/crowdsec/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1742918468
-SHA256 (go/security_crowdsec/crowdsec-v1.6.8/v1.6.8.mod) = fc6fecb30189e6d764fa8c14b20914d34084808f4a3b676582ee113ab1615eff
-SIZE (go/security_crowdsec/crowdsec-v1.6.8/v1.6.8.mod) = 10955
-SHA256 (go/security_crowdsec/crowdsec-v1.6.8/v1.6.8.zip) = 9d61fe2253c77600884df933467be4efb5d2059e4c453b1d48f10a9c7916647c
-SIZE (go/security_crowdsec/crowdsec-v1.6.8/v1.6.8.zip) = 1753101
+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