annotate Makefile @ 28:01ebc38d772e

switch kibana to ruby gem rather than jruby
author Carl Byington <carl@five-ten-sg.com>
date Tue, 07 May 2013 10:54:32 -0700
parents 76544ad0561d
children f2691b83bafa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
21
1d50b19beda0 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 18
diff changeset
5 gv=1.1.10
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
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
8 hv=0.20.6
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
25
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
15 lcc=df8ae2344433e5072a8dfe77082acfd1c9b6ed62
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
16 lcs=df8ae234
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
17 lv=0.2.0
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
18 l=Kibana-$(lv)-$(lcs).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
19
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
20 download:
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
21 [ -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
22 [ -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
23 [ -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
24 [ -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
25 [ -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
26 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k)
25
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
27 [ -f $(l) ] || curl https://nodeload.github.com/rashidkpc/Kibana/tar.gz/$(lcc) >$(l)
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
28
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
29 srpm: download
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
30 # build the classpath in a manifest file
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
31 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
32 for i in /usr/share/elasticsearch/{elasticsearch,jna,jts,log4j,lucene-{core,analyzers,highlighter,memory,queries},snappy-java,spatial4j}.jar; do \
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
33 echo " $$i" >>logstash.manifest; \
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
34 done
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
35 # build the source rpms
25
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
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
27
76544ad0561d switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents: 25
diff changeset
46 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild Kibana-$(lv)-1$(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
01ebc38d772e switch kibana to ruby gem rather than jruby
Carl Byington <carl@five-ten-sg.com>
parents: 27
diff changeset
50 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm
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 rubygem-tzinfo*src.rpm