Bug 261304

Summary: security/crowdsec: upgrade to 1.2.3_1; crowdsec-firewall-bouncer: update to 0.0.22_1
Product: Ports & Packages Reporter: marco
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: marco, pi
Priority: --- Flags: marco: merge-quarterly?
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch for crowdsec-firewall-bouncer 0.0.22
none
portrevision 1: restart service after upgrade if it was running before none

Description marco 2022-01-18 13:12:38 UTC
Created attachment 231126 [details]
patch for crowdsec-firewall-bouncer 0.0.22

This fixes an issue with the previous version, where it would (only on freebsd) flush the firewall rules upon install. The new version uses a pf anchor to avoid interference with the other applications.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2022-01-18 13:12:38 UTC
Maintainer informed via mail
Comment 2 marco 2022-01-23 23:10:49 UTC
Created attachment 231255 [details]
portrevision 1: restart service after upgrade if it was running before
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2022-02-06 12:40:54 UTC
testbuilds@work
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-02-06 16:29:50 UTC
A commit in branch main references this bug:

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

commit b927d496c166174f151c75caf0470df953727389
Author:     Marco <marco@crowdsec.net>
AuthorDate: 2022-02-06 16:21:58 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2022-02-06 16:28:28 +0000

    security/crowdsec{-firewall-bouncer}: handle pkg upgrade

    - avoid flushing the firewall rules upon install by using pf anchors
    - restart service after upgrade if it was running before

    PR:     261304
    MFH:    2022Q1

 security/crowdsec-firewall-bouncer/Makefile                   |  1 +
 security/crowdsec-firewall-bouncer/files/pkg-deinstall.in     |  3 ++-
 security/crowdsec-firewall-bouncer/files/pkg-install.in (new) | 10 ++++++++++
 security/crowdsec/Makefile                                    |  4 +++-
 security/crowdsec/files/crowdsec.conf-newsyslog               |  4 ++--
 security/crowdsec/files/crowdsec.in                           |  2 +-
 security/crowdsec/files/pkg-deinstall.in                      |  3 ++-
 security/crowdsec/files/pkg-install.in (new)                  | 10 ++++++++++
 security/crowdsec/pkg-plist                                   |  3 ---
 9 files changed, 31 insertions(+), 9 deletions(-)