Bug 274213 - security/crowdsec-firewall-bouncer: update to 0.0.28
Summary: security/crowdsec-firewall-bouncer: update to 0.0.28
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Robert Clausecker
URL: https://github.com/crowdsecurity/cs-f...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 13:07 UTC by marco
Modified: 2023-10-19 07:12 UTC (History)
1 user (show)

See Also:


Attachments
patch for crodsec-firewall-bouncer 0.0.28 (8.89 KB, patch)
2023-10-02 13:07 UTC, marco
marco: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description marco 2023-10-02 13:07:47 UTC
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
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-10-02 17:32:29 UTC
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.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-10-04 20:04:35 UTC
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(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-10-19 07:09:14 UTC
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(+)
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2023-10-19 07:12:44 UTC
Thank you for your contribution.