# # spec file for package velociraptor # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define projname velociraptor Name: velociraptor-client Version: 0.6.2~git73.dc02b45e Release: 0 Summary: Endpoint visibility and collection tool (endpoint only) # FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses License: AGPL-3.0-only URL: https://github.com/Velocidex/velociraptor Source: %{projname}-%{version}.tar.xz Source1: vendor-golang-%{version}.tar.xz Patch1: velociraptor-golang-mage-vendoring.diff BuildRequires: golang-packaging BuildRequires: systemd-rpm-macros BuildRequires: golang(API) >= 1.14 BuildRequires: fileb0x BuildRequires: mage BuildRequires: libtsan0 Conflicts: velociraptor %description Velociraptor is a tool for collecting host based state information using The Velociraptor Query Language (VQL) queries. To learn more about Velociraptor, read the documentation on: https://docs.velociraptor.app/ This package contains only the endpoint agent. For the full console, please install the 'velociraptor' package. %prep %setup -q -a 1 -n %{projname}-%{version} %autopatch -p1 # Set the version to something more specific than -dev sed -ie "s/\(VERSION *= \).*/\1 \"%{version}\"/" constants/constants.go # These just clutter the GUI and we don't have Windows clients rm -rf artifacts/definitions/Windows %build make linux_bare %install mkdir -p %buildroot/%{_bindir} install -m 0755 output/velociraptor-v%{version}-linux-* %buildroot/%{_bindir}/velociraptor install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/velociraptor-client.service %files %license LICENSE %doc README.md %dir %{_sysconfdir}/velociraptor %{_bindir}/velociraptor %{_unitdir}/velociraptor-client.service %changelog