SHA256
1
0
forked from pool/velociraptor

Accepting request 1168666 from home:jeff_mahoney:branches:security:sensor

- Fix unresolveable Debian group-velociraptor dependency.

OBS-URL: https://build.opensuse.org/request/show/1168666
OBS-URL: https://build.opensuse.org/package/show/security:sensor/velociraptor?expand=0&rev=70
This commit is contained in:
Antonio Teixeira 2024-04-18 12:45:01 +00:00 committed by Git OBS Bridge
parent c7549ca9ab
commit 9b9a6402e4
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 17 21:53:20 UTC 2024 - Jeff Mahoney <jeffm@suse.com>
- Fix unresolveable Debian group-velociraptor dependency.
-------------------------------------------------------------------
Wed Apr 17 15:52:52 UTC 2024 - Jeff Mahoney <jeffm@suse.com>

View File

@ -162,12 +162,15 @@ Obsoletes: velociraptor-kafka-humio-gateway < %{version}
%{?sysusers_requires}
%endif
%if 0%{?suse_version}
# SLE12 doesn't support sysusers
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
Requires(pre): pwdutils
%define pre_create_group 1
%else
Requires: group(velociraptor)
%endif
%endif
%if %{build_server}
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
@ -354,7 +357,7 @@ install -D -m 0755 output/velociraptor-v%{VERSION}-linux-* %buildroot/%{_bindir}
%if 0%{?suse_version}
%pre
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
%if 0%{?pre_create_group}
# create velociraptor group if it doesn't exist
groupadd -f -r velociraptor 2>/dev/null || :
%endif