1 Summary: osquery is an operating system instrumentation toolchain
6 Group: Applications/Databases
7 Source0: https://github.com/facebook/osquery/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: af772f7fe7b9b9a3e8ef2abfa69c2d04
9 Source1: https://github.com/osquery/third-party/archive/%{version}/%{name}-third-party-%{version}.tar.gz
10 # Source1-md5: 940f351cef7965b0f57df70d54885ded
11 URL: https://osquery.io/
12 BuildRequires: bzip2-devel
13 BuildRequires: cryptsetup-devel
14 BuildRequires: device-mapper-devel
15 BuildRequires: doxygen
16 BuildRequires: gflags-devel
17 BuildRequires: iptables-devel
18 BuildRequires: libblkid-devel
19 BuildRequires: libdpkg-devel
20 BuildRequires: libgcrypt-devel
21 BuildRequires: libuuid-devel
22 BuildRequires: ncurses-devel
23 BuildRequires: openssl-devel
25 BuildRequires: readline-devel
26 BuildRequires: thrift-devel
27 BuildRequires: udev-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 osquery exposes an operating system as a high-performance relational
32 database. This allows you to write SQL-based queries to explore
33 operating system data. With osquery, SQL tables represent abstract
34 concepts such as running processes, loaded kernel modules, open
35 network connections, browser plugins, hardware events or file hashes.
40 mv third-party-%{version}/* third-party
48 CTEST_OUTPUT_ON_FAILURE=1
51 rm -rf $RPM_BUILD_ROOT
52 %{__make} -C build install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %dir %{_sysconfdir}/%{name}
61 %attr(755,root,root) %{_bindir}/osqueryctl
62 %attr(755,root,root) %{_bindir}/osqueryd
63 %attr(755,root,root) %{_bindir}/osqueryi