]> git.pld-linux.org Git - packages/osquery.git/blob - osquery.spec
include third-party tarball, update BR
[packages/osquery.git] / osquery.spec
1 Summary:        osquery is an operating system instrumentation toolchain
2 Name:           osquery
3 Version:        1.5.0
4 Release:        0.1
5 License:        BSD
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
24 BuildRequires:  python
25 BuildRequires:  readline-devel
26 BuildRequires:  thrift-devel
27 BuildRequires:  udev-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
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.
36
37 %prep
38 %setup -q -a1
39
40 mv third-party-%{version}/* third-party
41
42 %build
43 install -d build
44 cd build
45 %cmake \
46         ..
47 %{__make} \
48         CTEST_OUTPUT_ON_FAILURE=1
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 %{__make} -C build install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
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
64 %{_datadir}/%{name}
65 %dir /var/log/%{name}
This page took 0.069992 seconds and 3 git commands to generate.