SHA256
1
0
forked from pool/velociraptor

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

- Added client systemd unit files to velociraptor package (LSS#5).
  Since the velociraptor binary in the 'server' package can
  also function as the client, we'll need the client config as well.

- Temporarily re-enable Windows artifacts (LSS#4).

OBS-URL: https://build.opensuse.org/request/show/952778
OBS-URL: https://build.opensuse.org/package/show/security:sensor/velociraptor?expand=0&rev=5
This commit is contained in:
Jeff Mahoney 2022-02-08 17:50:07 +00:00 committed by Git OBS Bridge
parent 677448fe31
commit 089c8e865e
2 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,14 @@
-------------------------------------------------------------------
Tue Feb 8 17:25:58 UTC 2022 - Jeff Mahoney <jeffm@suse.com>
- Added client systemd unit files to velociraptor package (LSS#5).
Since the velociraptor binary in the 'server' package can
also function as the client, we'll need the client config as well.
-------------------------------------------------------------------
Mon Feb 7 14:40:47 UTC 2022 - Jeff Mahoney <jeffm@suse.com>
- Temporarily re-enable Windows artifacts.
- Temporarily re-enable Windows artifacts (LSS#4).
-------------------------------------------------------------------
Wed Feb 2 18:10:19 UTC 2022 - Jeff Mahoney <jeffm@suse.com>

View File

@ -30,6 +30,8 @@ Source1: vendor-golang-%{version}.tar.xz
Source2: vendor-nodejs-%{version}.tar.xz
Source3: %{name}.service
Source4: %{name}-server.config.placeholder
Source5: %{name}-client.service
Source6: %{name}-client.config.placeholder
Patch1: velociraptor-golang-mage-vendoring.diff
BuildRequires: golang-packaging
BuildRequires: systemd-rpm-macros
@ -76,6 +78,8 @@ mkdir -p %buildroot/%{_unitdir}
install -m 755 output/velociraptor-v%{version}-linux-* %buildroot/%{_bindir}/velociraptor
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
install -m 0600 %{SOURCE4} %{buildroot}%{_sysconfdir}/velociraptor/server.config
install -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}-client.service
install -m 0600 %{SOURCE6} %{buildroot}%{_sysconfdir}/velociraptor/client.config
%files
%license LICENSE
@ -83,19 +87,24 @@ install -m 0600 %{SOURCE4} %{buildroot}%{_sysconfdir}/velociraptor/server.config
%dir %{_sysconfdir}/velociraptor
%{_bindir}/velociraptor
%config(noreplace) %{_sysconfdir}/velociraptor/server.config
%config(noreplace) %{_sysconfdir}/velociraptor/client.config
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-client.service
%pre
%service_add_pre %{name}.service
%service_add_pre %{name}-client.service
%post
%service_add_post %{name}.service
%service_add_post %{name}-client.service
%preun
%service_del_preun %{name}.service
%service_del_preun %{name}-client.service
%postun
%service_del_postun %{name}.service
%service_del_postun %{name}-client.service
%changelog