comparison 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
comparison
equal deleted inserted replaced
32:082f7a76fa48 33:0faebb0b0fa4
1 ifeq ($(dist),) 1 ifeq ($(dist),)
2 dist=.f20 2 dist=.f20
3 endif 3 endif
4 4
5 gv=1.1.13 5 gv=1.2.1
6 f=logstash-$(gv)-monolithic.jar 6 f=logstash-$(gv)-monolithic.jar
7 g=logstash-$(gv).tar.gz 7 g=logstash-$(gv).tar.gz
8 hv=0.90.0 8 hv=0.90.5
9 h=elasticsearch-$(hv).tar.gz 9 h=elasticsearch-$(hv).tar.gz
10 i=GraphTastic.tar.gz 10 i=GraphTastic.tar.gz
11 icc=06a620d011d08bd2c1099c0d0810c053bf105400 11 icc=06a620d011d08bd2c1099c0d0810c053bf105400
12 jv=1.7.3 12 jv=1.7.3
13 j=jruby-complete-$(jv).jar 13 j=jruby-complete-$(jv).jar
14 k=GeoLite-City-2013-01-18.dat.gz 14 k=GeoLite-City-2013-01-18.dat.gz
15 lcc=df8ae2344433e5072a8dfe77082acfd1c9b6ed62 15 lv=3.0.0
16 lcs=df8ae234 16 l=kibana-latest.tar.gz
17 lv=0.2.0
18 l=Kibana-$(lv)-$(lcs).tar.gz
19 17
20 download: 18 download:
21 [ -f $(f) ] || curl https://logstash.objects.dreamhost.com/release/$(f) >$(f) 19 [ -f $(f) ] || curl https://logstash.objects.dreamhost.com/release/$(f) >$(f)
22 [ -f $(g) ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$(g) 20 [ -f $(g) ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$(g)
23 [ -f $(h) ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$(h) 21 [ -f $(h) ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$(h)
24 [ -f $(i) ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$(i) 22 [ -f $(i) ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$(i)
25 [ -f $(j) ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$(j) >$(j) 23 [ -f $(j) ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$(j) >$(j)
26 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k) 24 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k)
27 [ -f $(l) ] || curl https://nodeload.github.com/rashidkpc/Kibana/tar.gz/$(lcc) >$(l) 25 [ -f $(l) ] || curl https://download.elasticsearch.org/kibana/kibana/$(l) >$(l)
28 26
29 logstash.manifest: 27 logstash.manifest:
30 # build the classpath in a manifest file 28 # build the classpath in a manifest file
31 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest 29 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest
32 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 \ 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 \
33 echo " $$i" >>logstash.manifest; \ 31 echo " $$i" >>logstash.manifest; \
34 done 32 done
35 33
36 srpm: logstash.manifest 34 srpm: logstash.manifest
37 # build the source rpms 35 # build the source rpms
38 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs Kibana.spec 36 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs kibana.spec
39 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec 37 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec
40 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec 38 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec
41 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec 39 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec
42 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs logstash.spec 40 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs logstash.spec
43 41
44 rpm: 42 rpm:
45 # kill off maven repository cache 43 # kill off maven repository cache
46 rm -rf ~/.m2 44 rm -rf ~/.m2
47 # build binary rpms 45 # build binary rpms
48 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild Kibana-$(lv)-1$(dist).src.rpm 46 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild kibana-$(lv)-0$(dist).src.rpm
49 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0$(dist).src.rpm 47 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0$(dist).src.rpm
50 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0$(dist).src.rpm 48 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0$(dist).src.rpm
51 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0$(dist).src.rpm 49 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0$(dist).src.rpm
52 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild rubygem-tzinfo*src.rpm 50 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild rubygem-tzinfo*src.rpm
53 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm 51 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm