fix: Support Rocky Linux 9 pour le package RPM

Cible: Rocky Linux 9 (compatible RHEL/CentOS)

Changes:
- packaging/Dockerfile.rpm: Build pour Rocky Linux
- packaging/build-rpm.sh: Ajout paramètre distribution (rocky/rhel/centos)
- packaging/rpm/ja4sentinel.spec:
  * Condition %if 0%{?rhel} >= 8 pour compatibilité RHEL
  * Description mise à jour avec Rocky Linux
- packaging/test/Dockerfile.rpm: Test sur Rocky Linux 9
- packaging/test/test-*.sh: Tests spécifiques Rocky Linux
- .github/workflows/build-rpm.yml:
  * Nom du job: 'Build RPM Package (Rocky Linux)'
  * TARGET_DIST: rockylinux:9
  * Simplification du build via Docker

Documentation:
- README.md: Instructions d'installation pour .rpm (Rocky/RHEL) et .deb (Debian/Ubuntu)
- Remplacement des instructions de build par installation via packages

Compatibilité:
- Rocky Linux 8.x et 9.x
- RHEL 8.x et 9.x
- CentOS Stream 8 et 9
- AlmaLinux 8.x et 9.x

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Jacquin Antoine
2026-02-25 21:17:37 +01:00
parent 61bf05454e
commit 6f7c5450f8
8 changed files with 61 additions and 44 deletions

View File

@ -6,9 +6,12 @@ License: MIT
URL: https://github.com/your-repo/ja4sentinel
BuildArch: x86_64
# Runtime dependencies
# Rocky Linux / RHEL compatibility
# Requires EPEL for some dependencies if not in base repos
%if 0%{?rhel} >= 8
Requires: systemd
Requires: libpcap
%endif
%description
JA4Sentinel is a Go-based tool for capturing network traffic on Linux servers,
@ -22,6 +25,7 @@ Features:
- IP/TCP metadata enrichment
- Multiple output formats (stdout, file, UNIX socket)
- Structured JSON logging for systemd/journald
- Compatible with Rocky Linux, RHEL, CentOS
%prep
# No source to unpack, binary is pre-built