Change-Id: If0f9defc9baf3768d1ba9165569bd8459d6a3be3
Reviewed-on: http://photon-jenkins.eng.vmware.com/1196
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,70 @@ |
0 |
+%global security_hardening none |
|
1 |
+Summary: The Behavioral Activity Monitor With Container Support |
|
2 |
+Name: falco |
|
3 |
+Version: 0.2.0 |
|
4 |
+Release: 1%{?dist} |
|
5 |
+License: GPLv2 |
|
6 |
+URL: http://www.sysdig.org/falco/ |
|
7 |
+Group: Applications/System |
|
8 |
+Vendor: VMware, Inc. |
|
9 |
+Distribution: Photon |
|
10 |
+Source0: https://github.com/draios/%{name}/archive/%{name}-%{version}.tar.gz |
|
11 |
+%define sha1 falco=c40840c6dcbd25fd1d0bf8aa2d1f77b1f5a7cde2 |
|
12 |
+Source1: https://github.com/draios/sysdig/archive/sysdig-0.10.1.tar.gz |
|
13 |
+%define sha1 sysdig=272b95ad02be4d194bba66d360ff935084d9c842 |
|
14 |
+BuildRequires: cmake linux-dev |
|
15 |
+BuildRequires: openssl-devel |
|
16 |
+BuildRequires: curl |
|
17 |
+BuildRequires: zlib-devel |
|
18 |
+BuildRequires: ncurses-devel |
|
19 |
+BuildRequires: automake |
|
20 |
+BuildRequires: linux-dev |
|
21 |
+BuildRequires: autoconf |
|
22 |
+BuildRequires: libgcrypt |
|
23 |
+BuildRequires: sysdig |
|
24 |
+BuildRequires: git |
|
25 |
+BuildRequires: lua-devel |
|
26 |
+BuildRequires: libyaml-devel |
|
27 |
+BuildRequires: linux-api-headers |
|
28 |
+Requires: zlib |
|
29 |
+Requires: ncurses |
|
30 |
+Requires: openssl |
|
31 |
+Requires: curl |
|
32 |
+Requires: libyaml |
|
33 |
+Requires: lua |
|
34 |
+Requires: sysdig |
|
35 |
+ |
|
36 |
+%description |
|
37 |
+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. |
|
38 |
+ |
|
39 |
+%prep |
|
40 |
+%setup |
|
41 |
+%setup -T -D -a 1 |
|
42 |
+ |
|
43 |
+%build |
|
44 |
+mv sysdig-0.10.1 ../sysdig |
|
45 |
+#sed -i '1s/^/EXTRA_CFLAGS := -fno-pie -fno-stack-protector/' ../sysdig/driver/Makefile |
|
46 |
+#sed -i '/set_directory_properties(/i set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-pie -fno-stack-protector")' ../sysdig/driver/CMakeLists.txt |
|
47 |
+#sed -i "s#add_subdirectory(\"\${SYSDIG_DIR}#\#add_subdirectory(\"\${SYSDIG_DIR}#g" CMakeLists.txt |
|
48 |
+ |
|
49 |
+cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} CMakeLists.txt |
|
50 |
+make KERNELDIR="/lib/modules/4.4.8/build" |
|
51 |
+ |
|
52 |
+%install |
|
53 |
+make install KERNELDIR="/lib/modules/4.4.8/build" DESTDIR=%{buildroot} |
|
54 |
+ |
|
55 |
+%clean |
|
56 |
+rm -rf %{buildroot}/* |
|
57 |
+ |
|
58 |
+%files |
|
59 |
+%defattr(-,root,root) |
|
60 |
+#/etc/bash_completion.d/* |
|
61 |
+%{_libdir} |
|
62 |
+%{_bindir} |
|
63 |
+%{_usrsrc} |
|
64 |
+/etc/* |
|
65 |
+%{_datadir} |
|
66 |
+ |
|
67 |
+%changelog |
|
68 |
+* Tue Jun 28 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.2.0-1 |
|
69 |
+- Initial build. First version |