Mercurial > logstash
comparison logstash.spec @ 15:c158cae7cd26
work on building from source
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 11 Apr 2013 10:18:06 -0700 |
parents | 0e45fe64b10d |
children | aa606d801e02 |
comparison
equal
deleted
inserted
replaced
14:0e45fe64b10d | 15:c158cae7cd26 |
---|---|
9 Release: 0%{?dist} | 9 Release: 0%{?dist} |
10 License: Apache 2.0 | 10 License: Apache 2.0 |
11 Group: System Environment/Daemons | 11 Group: System Environment/Daemons |
12 URL: http://logstash.net/ | 12 URL: http://logstash.net/ |
13 BuildArch: noarch | 13 BuildArch: noarch |
14 Source0: https://logstash.objects.dreamhost.com/release/%{name}-%{version}-monolithic.jar | 14 #Source0: https://logstash.objects.dreamhost.com/release/%{name}-%{version}-monolithic.jar |
15 #Source0: curl https://nodeload.github.com/logstash/logstash/tar.gz/v%{version} >logstash-%{version}.tar.gz | |
16 Source0: %{name}-%{version}.tar.gz | |
15 Source1: https://logstash.jira.com/secure/attachment/12610/logstash_index_cleaner.py | 17 Source1: https://logstash.jira.com/secure/attachment/12610/logstash_index_cleaner.py |
16 #Source2: curl https://nodeload.github.com/logstash/logstash/tar.gz/v%{version} >logstash-%{version}.tar.gz | 18 Source2: http://logstash.objects.dreamhost.com/maxmind/GeoLite-City-2013-01-18.dat.gz |
17 Source2: %{name}-%{version}.tar.gz | |
18 Source3: http://logstash.objects.dreamhost.com/maxmind/GeoLite-City-2013-01-18.dat.gz | |
19 Source4: %{name}.Makefile | 19 Source4: %{name}.Makefile |
20 Source10: %{name}.rc | 20 Source10: %{name}.rc |
21 Source11: %{name}.cron | 21 Source11: %{name}.cron |
22 Source12: %{name}.conf | 22 Source12: %{name}.conf |
23 Source13: %{name}.sysconfig | 23 Source13: %{name}.sysconfig |
24 Source20: apache.pattern | 24 Source20: apache.pattern |
25 Source21: sendmail.pattern | 25 Source21: sendmail.pattern |
26 Source22: dnsbl.pattern | 26 Source22: dnsbl.pattern |
27 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | 27 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
28 Requires: logrotate httpd java-1.7.0-openjdk python-pip python-argparse python-ordereddict | 28 Requires: logrotate httpd java-1.7.0-openjdk python-pip python-argparse python-ordereddict jruby |
29 Requires(pre): /usr/sbin/useradd | 29 Requires(pre): /usr/sbin/useradd |
30 Requires(pre): /usr/bin/getent | 30 Requires(pre): /usr/bin/getent |
31 Requires(postun): /usr/sbin/userdel | 31 Requires(postun): /usr/sbin/userdel |
32 Requires(post,preun): /sbin/chkconfig | 32 Requires(post,preun): /sbin/chkconfig |
33 Requires(post,preun): /sbin/service | 33 Requires(post,preun): /sbin/service |
40 searching). Speaking of searching, logstash comes with a web interface | 40 searching). Speaking of searching, logstash comes with a web interface |
41 for searching and drilling into all of your logs. | 41 for searching and drilling into all of your logs. |
42 | 42 |
43 | 43 |
44 %prep | 44 %prep |
45 %setup -q -T -b 2 | 45 %setup -q |
46 | 46 |
47 | 47 |
48 %build | 48 %build |
49 gunzip -c %SOURCE3 >GeoLiteCity.dat | 49 gunzip -c %SOURCE2 >GeoLiteCity.dat |
50 make -f %SOURCE4 | 50 make -f %SOURCE4 |
51 | 51 |
52 | 52 |
53 %install | 53 %install |
54 # for now, ignore the results of the build, and just package the source jar files. | |
55 rm -rf $RPM_BUILD_ROOT | 54 rm -rf $RPM_BUILD_ROOT |
56 install -d $RPM_BUILD_ROOT/var/log/%{name} | 55 install -d $RPM_BUILD_ROOT/var/log/%{name} |
57 install -D -m 750 %SOURCE0 $RPM_BUILD_ROOT/%{_bindir}/%{name}.jar | 56 install -D -m 750 build/logstash.jar $RPM_BUILD_ROOT/%{_bindir}/%{name}.jar |
58 install -D -m 750 %SOURCE1 $RPM_BUILD_ROOT/%{_bindir}/logstash_index_cleaner.py | 57 install -D -m 750 %SOURCE1 $RPM_BUILD_ROOT/%{_bindir}/logstash_index_cleaner.py |
59 install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | 58 install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
60 install -D -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/cron.daily/%{name} | 59 install -D -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/cron.daily/%{name} |
61 install -D -m 640 %SOURCE12 $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf | 60 install -D -m 640 %SOURCE12 $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf |
62 install -D -m 640 %SOURCE13 $RPM_BUILD_ROOT/etc/sysconfig/%{name} | 61 install -D -m 640 %SOURCE13 $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
63 install -D -m 640 %SOURCE20 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/apache | 62 install -D -m 640 %SOURCE20 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/apache |
64 install -D -m 640 %SOURCE21 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/sendmail | 63 install -D -m 640 %SOURCE21 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/sendmail |
65 install -D -m 640 %SOURCE22 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/dnsbl | 64 install -D -m 640 %SOURCE22 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/dnsbl |
66 | 65 |
67 | 66 |
68 %pre | 67 %pre |
69 /usr/bin/getent passwd %{name} >/dev/null || /usr/sbin/useradd -r -d /var/lib/%{name} -M -c "%{name} pseudo-user" %{name} >/dev/null | 68 /usr/bin/getent passwd %{name} >/dev/null || /usr/sbin/useradd -r -d /var/lib/%{name} -M -c "%{name} pseudo-user" %{name} >/dev/null |
70 pip-python install pyes || : | 69 pip-python install pyes || : |