Browse code

Add falco-probe.ko and change falco-probe.ko path in falco-probe-loader

Change-Id: I6b3ef0ac399c043ce58066d1044da1d728ce4f95
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2670
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

changpil authored on 2017/05/12 02:55:36
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        The Behavioral Activity Monitor With Container Support
3 3
 Name:           falco
4 4
 Version:        0.6.0
5
-Release:        1%{?kernelsubrelease}%{?dist}
5
+Release:        2%{?kernelsubrelease}%{?dist}
6 6
 License:        GPLv2
7 7
 URL:            http://www.sysdig.org/falco/
8 8
 Group:          Applications/System
... ...
@@ -36,7 +36,7 @@ Requires:       curl
36 36
 Requires:       libyaml
37 37
 Requires:       lua
38 38
 Requires:       sysdig
39
-
39
+Requires:       dkms
40 40
 %description
41 41
 Sysdig falco is an open source, behavioral activity monitor designed to detect anomalous activity in your applications. Falco lets you continuously monitor and detect container, application, host, and network activity... all in one place, from one source of data, with one set of customizable rules. 
42 42
 
... ...
@@ -46,7 +46,6 @@ Sysdig falco is an open source, behavioral activity monitor designed to detect a
46 46
 chmod +x %{SOURCE2}
47 47
 cp %{SOURCE2} /usr/bin
48 48
 tar xf %{SOURCE3} --no-same-owner
49
-
50 49
 %build
51 50
 mv sysdig-0.15.1 ../sysdig
52 51
 sed -i 's|../falco/rules|rules|g' userspace/engine/CMakeLists.txt
... ...
@@ -59,6 +58,9 @@ make KERNELDIR="/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/build"
59 59
 
60 60
 %install
61 61
 make install KERNELDIR="/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/build" DESTDIR=%{buildroot}
62
+mkdir -p %{buildroot}/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/extra
63
+mv driver/falco-probe.ko %{buildroot}/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/extra
64
+sed -i 's|/var/lib/dkms/$PACKAGE_NAME/$SYSDIG_VERSION/$KERNEL_RELEASE/$ARCH/module/$PROBE_NAME.ko|/lib/modules/$KERNEL_RELEASE/extra/$PROBE_NAME.ko|g' %{buildroot}/usr/bin/falco-probe-loader
62 65
 
63 66
 %check
64 67
 easy_install pip
... ...
@@ -76,8 +78,11 @@ rm -rf %{buildroot}/*
76 76
 %exclude %{_usrsrc}
77 77
 %{_sysconfdir}/*
78 78
 %{_datadir}/*
79
+/lib/modules/%{KERNEL_VERSION}-%{KERNEL_RELEASE}/extra/falco-probe.ko
79 80
 
80 81
 %changelog
82
+*   Thu May 11 2017 Chang Lee <changlee@vmware.com> 0.6.0-2
83
+-   Add falco-probe.ko and change falco-probe.ko path in falco-probe-loader
81 84
 *   Mon Apr 03 2017 Chang Lee <changlee@vmware.com> 0.6.0-1
82 85
 -   Update to version 0.6.0
83 86
 *   Wed Jan 11 2017 Alexey Makhalov <amakhalov@vmware.com> 0.2.0-7