Builds for Fedora 39
This commit is contained in:
@@ -6,13 +6,16 @@ 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%{version}.tar.gz
|
||||
Source0: %{name}.tar.gz
|
||||
Source1: 80-%{name}.preset
|
||||
Patch0: crowdsec.unit.patch
|
||||
Patch1: user.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: systemd
|
||||
BuildRequires: git
|
||||
BuildRequires: re2-devel
|
||||
BuildRequires: golang >= 1.21
|
||||
Requires: crontabs
|
||||
%{?fc33:BuildRequires: systemd-rpm-macros}
|
||||
%{?fc34:BuildRequires: systemd-rpm-macros}
|
||||
@@ -28,12 +31,16 @@ Requires: crontabs
|
||||
%global __mangle_shebangs_exclude_from /usr/bin/env
|
||||
|
||||
%prep
|
||||
%setup -q -T -b 0
|
||||
|
||||
%setup -n %{name}
|
||||
cd ..
|
||||
rm -rf %{name}
|
||||
git clone https://github.com/crowdsecurity/crowdsec
|
||||
cd %{name}
|
||||
%patch -P 0
|
||||
%patch -P 1
|
||||
|
||||
%build
|
||||
make BUILD_VERSION=v%{version} build
|
||||
sed -i "s#/usr/local/lib/crowdsec/plugins/#%{_libdir}/%{name}/plugins/#g" config/config.yaml
|
||||
|
||||
%install
|
||||
@@ -74,7 +81,6 @@ install -m 600 cmd/notification-splunk/splunk.yaml %{buildroot}%{_sysconfdir}/cr
|
||||
install -m 600 cmd/notification-email/email.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/
|
||||
install -m 600 cmd/notification-sentinel/sentinel.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user