Firewall bouncer added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user