-
Notifications
You must be signed in to change notification settings - Fork 0
/
bro-plugin-kafka.spec
65 lines (53 loc) · 2.59 KB
/
bro-plugin-kafka.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
%global distname metron-bro-plugin-kafka
%global commit0 0d735b5254d63ad1e334c6b632aee6acd9a0007c
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global commitdate 20170803
Name: bro-plugin-kafka
Version: 0
Release: 1.%{commitdate}git%{shortcommit0}%{?dist}
Epoch: 1
Summary: A Bro log writer plugin that sends logging output to Kafka.
License: BSD
URL: https://github.com/JonZeolla/metron-bro-plugin-kafka
Source0: https://github.com/JonZeolla/%{distname}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
Patch0: https://github.com/JonZeolla/metron-bro-plugin-kafka/compare/master...rocknsm:dcode/json_timestamps.patch#/%{name}-%{version}_json-timestamps.patch
BuildRequires: cmake
BuildRequires: librdkafka-devel
BuildRequires: openssl-devel
BuildRequires: libpcap-devel
BuildRequires: bro-devel >= 2.5.0
Requires: bro-core >= 2.5.0
Requires: librdkafka
Requires: openssl
%description
A Bro log writer plugin that sends logging output to Kafka.
%prep
%setup -n %{distname}-%{commit0}
%patch0 -p1
%build
# ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --bro-dist=/usr/src/bro-2.5.1
BRO_DIST=$(find /usr/src -name bro-config -exec /bin/sh {} --bro_dist \;)
./configure --bro-dist=${BRO_DIST}
make %{?_smp_mflags}
%install
%make_install
%files
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/lib
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/lib/bif
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/scripts
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/scripts/Apache
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/scripts/Apache/Kafka
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/scripts/Bro
%dir %{_libdir}/bro/plugins/APACHE_KAFKA/scripts/Bro/Kafka
%{_libdir}/bro/plugins/APACHE_KAFKA/CHANGES
%{_libdir}/bro/plugins/APACHE_KAFKA/COPYING
%{_libdir}/bro/plugins/APACHE_KAFKA/VERSION
%{_libdir}/bro/plugins/APACHE_KAFKA/__bro_plugin__
%{_libdir}/bro/plugins/APACHE_KAFKA/lib/APACHE-KAFKA.linux-x86_64.so
%{_libdir}/bro/plugins/APACHE_KAFKA/lib/bif/*.bro
%{_libdir}/bro/plugins/APACHE_KAFKA/scripts/Apache/Kafka/*.bro
%{_libdir}/bro/plugins/APACHE_KAFKA/scripts/Bro/Kafka/*.bro
%{_libdir}/bro/plugins/APACHE_KAFKA/scripts/*.bro
%doc README.md COPYING MAINTAINER VERSION CHANGES
%changelog