Bug 278713

Summary: security/crowdsec: update to 1.6.1, improve service scripts
Product: Ports & Packages Reporter: marco
Component: Individual Port(s)Assignee: Philippe Audeoud <jadawin>
Status: Closed FIXED    
Severity: Affects Many People CC: jadawin
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/crowdsecurity/crowdsec/releases/tag/v1.6.1
Attachments:
Description Flags
patch for 1.6.1-1 none

Description marco 2024-05-03 08:09:08 UTC
Created attachment 250350 [details]
patch for 1.6.1-1

- update to latest stable upstream
 - restart process via daemon if it crashes for any reason
 - apply patch to detect network filesystems, that didn't make it to 1.6.1
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-05-03 14:49:18 UTC
A commit in branch main references this bug:

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

commit 0581f056998e84494c5eecbdd3336f61cfb1cd79
Author:     marco <marco@crowdsec.net>
AuthorDate: 2024-04-16 21:25:31 +0000
Commit:     Philippe Audeoud <jadawin@FreeBSD.org>
CommitDate: 2024-05-03 13:48:51 +0000

    security/crowdsec: update to v1.6.1

    -  improve rc, postinst scripts
    - update upstream to latest stable
    - restart service correctly if it crashes
    - update hub in postinst (if network available) instead of service start
    - use "one{status,stop...}" for compatibility with pfsense
    - patch: fix network fs detection

    PR:     278713

 security/crowdsec/Makefile                         |   6 +-
 security/crowdsec/distinfo                         |  10 +-
 security/crowdsec/files/crowdsec.in                | 105 +++++++++------------
 .../files/patch-pkg_csconfig_database.go (new)     |  36 +++++++
 .../files/patch-pkg_types_getfstype.go (new)       |   8 ++
 .../patch-pkg_types_getfstype__freebsd.go (new)    |  28 ++++++
 security/crowdsec/files/pkg-deinstall.in           |   6 +-
 security/crowdsec/files/pkg-install.in             |  14 ++-
 security/crowdsec/files/pkg-message.in             |   6 +-
 security/crowdsec/files/upgrade-hub.in             |  11 ++-
 10 files changed, 149 insertions(+), 81 deletions(-)
Comment 2 Philippe Audeoud freebsd_committer freebsd_triage 2024-05-03 14:50:29 UTC
Committed, thanks!