1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

security/crowdsec-firewall-bouncer: include configuration patch

The update to 0.0.28 from PR 274213  did not include a file that sets
backend mode in new installations. If the backend is not set, the
application does not start.

This version includes the missing patch file, and also sets the
$BACKEND environment variable as a fallback. The application will
substitute it at runtime if required.

PR:		274213, 274529
Fixes:		714e7fb44f
This commit is contained in:
Marco Mariani 2023-10-17 09:05:20 +02:00 committed by Robert Clausecker
parent ecc6af1508
commit e7efe5be3f
3 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,5 @@
PORTNAME= crowdsec-firewall-bouncer
PORTREVISION= 1
DISTVERSIONPREFIX= v
DISTVERSION= 0.0.28
CATEGORIES= security

View File

@ -83,6 +83,8 @@ crowdsec_firewall_stop()
}
crowdsec_firewall_start() {
# ensure we have a backend if the config file was not patched
export BACKEND=pf
/usr/sbin/daemon -f -p "$pidfile" -t "$desc" -- \
"$command" -c "$crowdsec_firewall_config" ${crowdsec_firewall_flags}
}

View File

@ -0,0 +1,9 @@
--- config/crowdsec-firewall-bouncer.yaml.orig 2023-07-31 19:34:51 UTC
+++ config/crowdsec-firewall-bouncer.yaml
@@ -1,4 +1,5 @@
-mode: ${BACKEND}
+mode: pf
+retry_initial_connect: true
update_frequency: 10s
log_mode: file
log_dir: /var/log/