comparison logstash.spec @ 25:d058481276aa

replace logstash embedded web server with kibana
author Carl Byington <carl@five-ten-sg.com>
date Mon, 29 Apr 2013 13:38:05 -0700
parents 0f249d38da21
children 01ebc38d772e
comparison
equal deleted inserted replaced
24:0f249d38da21 25:d058481276aa
3 3
4 Summary: logstash is a tool for managing events and logs. 4 Summary: logstash is a tool for managing events and logs.
5 Name: logstash 5 Name: logstash
6 Version: 1.1.10 6 Version: 1.1.10
7 Release: 0%{?dist} 7 Release: 0%{?dist}
8
9 Group: System Environment/Daemons
8 License: Apache 2.0 10 License: Apache 2.0
9 Group: System Environment/Daemons
10 URL: http://logstash.net/ 11 URL: http://logstash.net/
11 BuildArch: noarch 12 BuildArch: noarch
12 #Source0: https://logstash.objects.dreamhost.com/release/%{name}-%{version}-monolithic.jar 13 #Source0: https://logstash.objects.dreamhost.com/release/%{name}-%{version}-monolithic.jar
13 #Source0: curl https://nodeload.github.com/logstash/logstash/tar.gz/v%{version} >logstash-%{version}.tar.gz 14 #Source0: curl https://nodeload.github.com/logstash/logstash/tar.gz/v%{version} >logstash-%{version}.tar.gz
14 Source0: %{name}-%{version}.tar.gz 15 Source0: %{name}-%{version}.tar.gz
22 Source13: %{name}.sysconfig 23 Source13: %{name}.sysconfig
23 Source20: apache.pattern 24 Source20: apache.pattern
24 Source21: sendmail.pattern 25 Source21: sendmail.pattern
25 Source22: dnsbl.pattern 26 Source22: dnsbl.pattern
26 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 27 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
27 Requires: logrotate httpd java-1.7.0-openjdk python-pip python-argparse python-ordereddict 28
29 BuildRequires: ragel jruby java-devel
30
31 Requires: logrotate httpd java-devel python-pip python-argparse python-ordereddict
28 Requires: jruby elasticsearch GraphTastic-client 32 Requires: jruby elasticsearch GraphTastic-client
29 Requires(pre): /usr/sbin/useradd 33 Requires(pre): /usr/sbin/useradd
30 Requires(pre): /usr/bin/getent 34 Requires(pre): /usr/bin/getent
31 Requires(postun): /usr/sbin/userdel 35 Requires(postun): /usr/sbin/userdel
32 Requires(post,preun): /sbin/chkconfig 36 Requires(post,preun): /sbin/chkconfig
33 Requires(post,preun): /sbin/service 37 Requires(post,preun): /sbin/service
34 BuildRequires: ragel jruby
35 38
36 39
37 %description 40 %description
38 logstash is a tool for managing events and logs. You can use it to 41 logstash is a tool for managing events and logs. You can use it to
39 collect logs, parse them, and store them for later use (like, for 42 collect logs, parse them, and store them for later use (like, for
52 gunzip -c %SOURCE2 >GeoLiteCity.dat 55 gunzip -c %SOURCE2 >GeoLiteCity.dat
53 make -f %SOURCE4 56 make -f %SOURCE4
54 57
55 58
56 %install 59 %install
57 rm -rf $RPM_BUILD_ROOT 60 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT/var/log/%{name} 61 install -d $RPM_BUILD_ROOT/var/log/%{name}
59 install -D -m 750 build/logstash.jar $RPM_BUILD_ROOT/%{_javadir}/%{name}.jar 62 install -D -m 750 build/logstash.jar $RPM_BUILD_ROOT/%{_javadir}/%{name}.jar
60 install -D -m 750 %SOURCE1 $RPM_BUILD_ROOT/%{_javadir}/logstash_index_cleaner.py 63 install -D -m 750 %SOURCE1 $RPM_BUILD_ROOT/%{_javadir}/logstash_index_cleaner.py
61 install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} 64 install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
62 install -D -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/cron.daily/%{name} 65 install -D -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/cron.daily/%{name}
63 install -D -m 640 %SOURCE12 $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf 66 install -D -m 640 %SOURCE12 $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf