6f98b424 |
%global security_hardening none |
777972ab |
Summary: Sysdig is a universal system visibility tool with native support for containers.
Name: sysdig
Version: 0.10.1
Release: 5%{?kernelsubrelease}%{?dist}
License: GPLv2
URL: http://www.sysdig.org/
Group: Applications/System
Vendor: VMware, Inc.
Distribution: Photon
Source0: https://github.com/draios/sysdig/archive/%{name}-%{version}.tar.gz
%define sha1 sysdig=272b95ad02be4d194bba66d360ff935084d9c842
BuildRequires: cmake |
7c85d55b |
BuildRequires: linux-devel = %{KERNEL_VERSION}-%{KERNEL_RELEASE} |
777972ab |
BuildRequires: openssl-devel
BuildRequires: curl-devel
BuildRequires: zlib-devel
BuildRequires: ncurses-devel
Requires: linux = %{KERNEL_VERSION}-%{KERNEL_RELEASE}
Requires: zlib
Requires: ncurses
Requires: openssl
Requires: curl |
240fe8c8 |
%description
Sysdig is open source, system-level exploration: capture system state and activity from a running Linux instance, then save, filter and analyze. Sysdig is scriptable in Lua and includes a command line interface and a powerful interactive UI, csysdig, that runs in your terminal
%prep
%setup -q
%build |
fc081194 |
# fix for linux-4.9
sed -i 's|task_thread_info(current)->status|current->thread.status|g' driver/main.c
sed -i 's|task_thread_info(task)->status|current->thread.status|g' driver/ppm_syscall.h
|
240fe8c8 |
mkdir build
cd build |
6f98b424 |
|
c35894ef |
cmake \ |
777972ab |
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DUSE_BUNDLED_OPENSSL=OFF \
-DUSE_BUNDLED_CURL=OFF \
-DUSE_BUNDLED_ZLIB=OFF \
-DUSE_BUNDLED_NCURSES=OFF .. |
6f98b424 |
|
bf36478b |
make KERNELDIR="/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/build" |
240fe8c8 |
%install
cd build |
bf36478b |
make install DESTDIR=%{buildroot} KERNELDIR="/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/build" |
240fe8c8 |
mv %{buildroot}/usr/src/sysdig* %{buildroot}/usr/src/sysdig-%{version}
mkdir -p %{buildroot}/etc/
mv %{buildroot}/usr/etc/bash_completion.d %{buildroot}/etc/
rm -rf %{buildroot}/usr/share/zsh/ |
bf36478b |
mkdir -p %{buildroot}/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/extra
mv driver/sysdig-probe.ko %{buildroot}/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/extra |
240fe8c8 |
%clean
rm -rf %{buildroot}/* |
c77f6664 |
%post
/sbin/depmod -a
%postun
/sbin/depmod -a |
240fe8c8 |
%files
%defattr(-,root,root) |
dafd11dd |
/etc/bash_completion.d/* |
240fe8c8 |
%{_bindir} |
bf36478b |
%exclude %{_usrsrc} |
240fe8c8 |
%{_datadir} |
bf36478b |
/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/extra/sysdig-probe.ko |
240fe8c8 |
%changelog |
777972ab |
* Mon Dec 19 2016 Xiaolin Li <xiaolinl@vmware.com> 0.10.1-5
- BuildRequires curl-devel |
fc081194 |
* Thu Dec 15 2016 Alexey Makhalov <amakhalov@vmware.com> 0.10.1-4
- Fix building for linux-4.9 |
bf36478b |
* Wed Nov 30 2016 Alexey Makhalov <amakhalov@vmware.com> 0.10.1-3
- Expand uname -r to have release number
- Exclude /usr/src |
9b2f8b85 |
* Mon Aug 1 2016 Divya Thaluru <dthaluru@vmware.com> 0.10.1-2
- Added kernel macros |
bf36478b |
* Thu Jul 14 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.10.1-2
- Updated sysdig to build the kernel module
* Tue Jun 28 2016 Anish Swaminathan <anishs@vmware.com> 0.10.1-1
- Upgrade sysdig to 0.10.1
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.8.0-4
- GA - Bump release of all rpms
* Fri May 20 2016 Divya Thaluru <dthaluru@vmware.com> 0.8.0-3
- Removing usage of bundled packages to build sysdig package
* Wed Mar 16 2016 Anish Swaminathan <anishs@vmware.com> 0.8.0-2
- Add openssl to buildrequires.
* Tue Feb 23 2016 Kumar Kaushik <kaushikk@vmware.com> 0.8.0-1
- Upgraded to new version.
* Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 0.6.0-1
- Upgrade version.
* Mon Nov 30 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.1.101-1
- Initial build. First version |