Created attachment 245379 [details] patch for crodsec-firewall-bouncer 0.0.28 - upstream update - converted Makefile to use go:modules - optional retry loop when service is started but crowdsec is offline or not ready - upon service termination, use kill -9 if the process is not responsive - init option to assign a given name to the bouncer instance (crowdsec_firewall_name) - version tested and required for the pfsense crowdsec plugin
Thanks, looks great! Note that USES=go usually automatically installs the binaries it builds. So if you move your custom installation bits to post-install, you don't have to do that yourself (your own do-install overrides Go's usual do-install target). Doing it the way you are doing it is fine though.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=714e7fb44f516d31f08b657b2eb9a66ae1fbf9c7 commit 714e7fb44f516d31f08b657b2eb9a66ae1fbf9c7 Author: Marco Mariani <marco@crowdsec.net> AuthorDate: 2023-10-02 12:51:29 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-10-04 19:59:57 +0000 security/crowdsec-firewall-bouncer: update to v0.0.28 Changelog: https://github.com/crowdsecurity/cs-firewall-bouncer/releases/tag/v0.0.28 PR: 274213 security/crowdsec-firewall-bouncer/Makefile | 44 ++++++++--------- security/crowdsec-firewall-bouncer/distinfo | 8 ++-- .../files/crowdsec_firewall.in (mode -x) | 56 ++++++++++++++++++---- .../files/pkg-deinstall.in (mode -x) | 0 .../files/pkg-install.in (mode -x) | 0 .../crowdsec-firewall-bouncer/files/pkg-message.in | 7 ++- 6 files changed, 80 insertions(+), 35 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e7efe5be3fb2d0b3c3bf4738b82f5963e00bc94d commit e7efe5be3fb2d0b3c3bf4738b82f5963e00bc94d Author: Marco Mariani <marco@crowdsec.net> AuthorDate: 2023-10-17 07:05:20 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-10-19 07:07:30 +0000 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: 714e7fb44f516d31f08b657b2eb9a66ae1fbf9c7 security/crowdsec-firewall-bouncer/Makefile | 1 + security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in | 2 ++ .../files/patch-config_crowdsec-firewall-bouncer.yaml (new) | 9 +++++++++ 3 files changed, 12 insertions(+)
Thank you for your contribution.