Mercurial > logstash
comparison 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 |
comparison
equal
deleted
inserted
replaced
27:76544ad0561d | 28:01ebc38d772e |
---|---|
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 lcc=df8ae2344433e5072a8dfe77082acfd1c9b6ed62 |
16 lcs=df8ae234 | 16 lcs=df8ae234 |
17 lv=0.2.0 | 17 lv=0.2.0 |
18 #l=Kibana-$(lv).tar.gz | |
19 l=Kibana-$(lv)-$(lcs).tar.gz | 18 l=Kibana-$(lv)-$(lcs).tar.gz |
20 | 19 |
21 download: | 20 download: |
22 [ -f $(f) ] || curl https://logstash.objects.dreamhost.com/release/$(f) >$(f) | 21 [ -f $(f) ] || curl https://logstash.objects.dreamhost.com/release/$(f) >$(f) |
23 [ -f $(g) ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$(g) | 22 [ -f $(g) ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$(g) |
24 [ -f $(h) ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$(h) | 23 [ -f $(h) ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$(h) |
25 [ -f $(i) ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$(i) | 24 [ -f $(i) ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$(i) |
26 [ -f $(j) ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$(j) >$(j) | 25 [ -f $(j) ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$(j) >$(j) |
27 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k) | 26 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k) |
28 #[ -f $(l) ] || curl https://codeload.github.com/rashidkpc/Kibana/tar.gz/v$(lv) >$(l) | |
29 [ -f $(l) ] || curl https://nodeload.github.com/rashidkpc/Kibana/tar.gz/$(lcc) >$(l) | 27 [ -f $(l) ] || curl https://nodeload.github.com/rashidkpc/Kibana/tar.gz/$(lcc) >$(l) |
30 | 28 |
31 srpm: download | 29 srpm: download |
32 # build the classpath in a manifest file | 30 # build the classpath in a manifest file |
33 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest | 31 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest |
34 for i in /usr/share/elasticsearch/{elasticsearch,jna,jts,log4j,lucene-{core,analyzers,highlighter,memory,queries},snappy-java,spatial4j}.jar; do \ | 32 for i in /usr/share/elasticsearch/{elasticsearch,jna,jts,log4j,lucene-{core,analyzers,highlighter,memory,queries},snappy-java,spatial4j}.jar; do \ |
35 echo " $$i" >>logstash.manifest; \ | 33 echo " $$i" >>logstash.manifest; \ |
36 done | 34 done |
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)-1$(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 logstash-$(gv)-0$(dist).src.rpm | 50 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm |
53 | 51 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild rubygem-tzinfo*src.rpm |
54 package-web: | |
55 tar cfz logstash.fedora.tar.gz *.src.rpm $$(hg status -c | cut -c3-) | |
56 |