Mercurial > logstash
annotate Makefile @ 33:0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 23 Sep 2013 11:50:21 -0700 |
parents | 082f7a76fa48 |
children | 8ed811f9a0bd |
rev | line source |
---|---|
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
1 ifeq ($(dist),) |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
2 dist=.f20 |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
3 endif |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
4 |
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@five-ten-sg.com>
parents:
32
diff
changeset
|
5 gv=1.2.1 |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
6 f=logstash-$(gv)-monolithic.jar |
16
aa606d801e02
work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
Carl Byington <carl@five-ten-sg.com>
parents:
15
diff
changeset
|
7 g=logstash-$(gv).tar.gz |
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@five-ten-sg.com>
parents:
32
diff
changeset
|
8 hv=0.90.5 |
16
aa606d801e02
work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
Carl Byington <carl@five-ten-sg.com>
parents:
15
diff
changeset
|
9 h=elasticsearch-$(hv).tar.gz |
13
c0150404962d
start working on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
10 i=GraphTastic.tar.gz |
c0150404962d
start working on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
11 icc=06a620d011d08bd2c1099c0d0810c053bf105400 |
16
aa606d801e02
work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
Carl Byington <carl@five-ten-sg.com>
parents:
15
diff
changeset
|
12 jv=1.7.3 |
aa606d801e02
work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
Carl Byington <carl@five-ten-sg.com>
parents:
15
diff
changeset
|
13 j=jruby-complete-$(jv).jar |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
14 k=GeoLite-City-2013-01-18.dat.gz |
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@five-ten-sg.com>
parents:
32
diff
changeset
|
15 lv=3.0.0 |
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@five-ten-sg.com>
parents:
32
diff
changeset
|
16 l=kibana-latest.tar.gz |
16
aa606d801e02
work on building from source, revert jruby and elastic search to versions bundled into logstash-monolith
Carl Byington <carl@five-ten-sg.com>
parents:
15
diff
changeset
|
17 |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
18 download: |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
19 [ -f $(f) ] || curl https://logstash.objects.dreamhost.com/release/$(f) >$(f) |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
20 [ -f $(g) ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$(g) |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
21 [ -f $(h) ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$(h) |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
22 [ -f $(i) ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$(i) |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
23 [ -f $(j) ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$(j) >$(j) |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
24 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k) |
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@five-ten-sg.com>
parents:
32
diff
changeset
|
25 [ -f $(l) ] || curl https://download.elasticsearch.org/kibana/kibana/$(l) >$(l) |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
26 |
31
e84d1f4fe2bf
logstash manifest depends on results of elasticsearch build
Carl Byington <carl@five-ten-sg.com>
parents:
30
diff
changeset
|
27 logstash.manifest: |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
28 # build the classpath in a manifest file |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
29 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest |
31
e84d1f4fe2bf
logstash manifest depends on results of elasticsearch build
Carl Byington <carl@five-ten-sg.com>
parents:
30
diff
changeset
|
30 for i in /usr/share/elasticsearch/{lucene-{core,analyzers-common,codecs,queries,memory,highlighter,queryparser,sandbox,suggest,join,grouping,spatial},spatial4j,jts,log4j,jna,elasticsearch}.jar; do \ |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
31 echo " $$i" >>logstash.manifest; \ |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
32 done |
31
e84d1f4fe2bf
logstash manifest depends on results of elasticsearch build
Carl Byington <carl@five-ten-sg.com>
parents:
30
diff
changeset
|
33 |
e84d1f4fe2bf
logstash manifest depends on results of elasticsearch build
Carl Byington <carl@five-ten-sg.com>
parents:
30
diff
changeset
|
34 srpm: logstash.manifest |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
35 # build the source rpms |
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@five-ten-sg.com>
parents:
32
diff
changeset
|
36 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs kibana.spec |
28
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
37 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec |
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
38 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec |
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
39 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec |
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
40 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs logstash.spec |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
41 |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
42 rpm: |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
43 # kill off maven repository cache |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
44 rm -rf ~/.m2 |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
45 # build binary rpms |
33
0faebb0b0fa4
update to kibana 3, logstash 1.2.1, es 0.90.5
Carl Byington <carl@five-ten-sg.com>
parents:
32
diff
changeset
|
46 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild kibana-$(lv)-0$(dist).src.rpm |
28
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
47 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0$(dist).src.rpm |
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
48 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0$(dist).src.rpm |
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
49 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0$(dist).src.rpm |
32
082f7a76fa48
update to logstash 1.1.13
Carl Byington <carl@five-ten-sg.com>
parents:
31
diff
changeset
|
50 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild rubygem-tzinfo*src.rpm |
28
01ebc38d772e
switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents:
27
diff
changeset
|
51 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm |