Firewall bouncer added

This commit is contained in:
2023-11-04 12:27:17 +01:00
parent 56204520f7
commit 8df93a4a96
2 changed files with 192 additions and 5 deletions

View File

@@ -6,12 +6,15 @@ Summary: Crowdsec - An open-source, lightweight agent to detect and respo
License: MIT
URL: https://crowdsec.net
Source0: https://github.com/crowdsecurity/%{name}/archive/v%(echo $VERSION).tar.gz
Source0: https://github.com/crowdsecurity/%{name}/archive/%{name}-release.tgz
Source1: 80-%{name}.preset
Patch0: crowdsec.unit.patch
Patch1: user.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define debug_package %{nil}
%define _build_id_links none
BuildRequires: systemd
Requires: crontabs
%{?fc33:BuildRequires: systemd-rpm-macros}
@@ -19,7 +22,6 @@ Requires: crontabs
%{?fc35:BuildRequires: systemd-rpm-macros}
%{?fc36:BuildRequires: systemd-rpm-macros}
%define debug_package %{nil}
%description
@@ -29,10 +31,10 @@ Requires: crontabs
%global __mangle_shebangs_exclude_from /usr/bin/env
%prep
%setup -q -T -b 0
%setup -q -T -b 0 -n %{name}-v%{version}
%patch0
%patch1
%patch -P 0
%patch -P 1
%build
sed -i "s#/usr/local/lib/crowdsec/plugins/#%{_libdir}/%{name}/plugins/#g" config/config.yaml