parent
e9b0f3c54e
commit
fd2bb8927c
2 changed files with 2 additions and 19 deletions
|
@ -1,15 +0,0 @@
|
||||||
--- config/crowdsec.service-orig 2022-03-24 09:46:16.581681532 +0000
|
|
||||||
+++ config/crowdsec.service 2022-03-24 09:46:28.761681532 +0000
|
|
||||||
@@ -5,8 +5,8 @@
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
Environment=LC_ALL=C LANG=C
|
|
||||||
-ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
|
||||||
-ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
|
|
||||||
+ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
|
||||||
+ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
|
||||||
#ExecStartPost=/bin/sleep 0.1
|
|
||||||
-ExecReload=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
|
||||||
+ExecReload=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
Restart=always
|
|
|
@ -8,8 +8,7 @@ License: MIT
|
||||||
URL: https://crowdsec.net
|
URL: https://crowdsec.net
|
||||||
Source0: https://github.com/crowdsecurity/%{name}/archive/v%(echo $VERSION).tar.gz
|
Source0: https://github.com/crowdsecurity/%{name}/archive/v%(echo $VERSION).tar.gz
|
||||||
Source1: 80-%{name}.preset
|
Source1: 80-%{name}.preset
|
||||||
Patch0: crowdsec.unit.patch
|
Patch0: user.patch
|
||||||
Patch1: user.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
|
@ -32,7 +31,6 @@ Requires: crontabs
|
||||||
%setup -q -T -b 0
|
%setup -q -T -b 0
|
||||||
|
|
||||||
%patch0
|
%patch0
|
||||||
%patch1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
sed -i "s#/usr/local/lib/crowdsec/plugins/#%{_libdir}/%{name}/plugins/#g" config/config.yaml
|
sed -i "s#/usr/local/lib/crowdsec/plugins/#%{_libdir}/%{name}/plugins/#g" config/config.yaml
|
||||||
|
@ -53,7 +51,7 @@ mkdir -p %{buildroot}%{_libdir}/%{name}/plugins/
|
||||||
install -m 755 -D cmd/crowdsec/crowdsec %{buildroot}%{_bindir}/%{name}
|
install -m 755 -D cmd/crowdsec/crowdsec %{buildroot}%{_bindir}/%{name}
|
||||||
install -m 755 -D cmd/crowdsec-cli/cscli %{buildroot}%{_bindir}/cscli
|
install -m 755 -D cmd/crowdsec-cli/cscli %{buildroot}%{_bindir}/cscli
|
||||||
install -m 755 -D wizard.sh %{buildroot}/usr/share/crowdsec/wizard.sh
|
install -m 755 -D wizard.sh %{buildroot}/usr/share/crowdsec/wizard.sh
|
||||||
install -m 644 -D config/crowdsec.service %{buildroot}%{_unitdir}/%{name}.service
|
install -m 644 -D debian/crowdsec.service %{buildroot}%{_unitdir}/%{name}.service
|
||||||
install -m 644 -D config/patterns/* -t %{buildroot}%{_sysconfdir}/crowdsec/patterns
|
install -m 644 -D config/patterns/* -t %{buildroot}%{_sysconfdir}/crowdsec/patterns
|
||||||
install -m 600 -D config/config.yaml %{buildroot}%{_sysconfdir}/crowdsec
|
install -m 600 -D config/config.yaml %{buildroot}%{_sysconfdir}/crowdsec
|
||||||
install -m 644 -D config/simulation.yaml %{buildroot}%{_sysconfdir}/crowdsec
|
install -m 644 -D config/simulation.yaml %{buildroot}%{_sysconfdir}/crowdsec
|
||||||
|
|
Loading…
Reference in a new issue