Mercurial > logstash
comparison Makefile @ 23:bb48b2672ff2
use _javadir in spec files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 19 Apr 2013 15:03:01 -0700 |
parents | 226946e5dca4 |
children | d058481276aa |
comparison
equal
deleted
inserted
replaced
22:226946e5dca4 | 23:bb48b2672ff2 |
---|---|
1 d=el6 | 1 ifeq ($(dist),) |
2 f=logstash-1.1.10-monolithic.jar | 2 dist=.f20 |
3 endif | |
4 | |
3 gv=1.1.10 | 5 gv=1.1.10 |
6 f=logstash-$(gv)-monolithic.jar | |
4 g=logstash-$(gv).tar.gz | 7 g=logstash-$(gv).tar.gz |
5 hv=0.20.2 | 8 hv=0.20.6 |
6 hv=0.20.5 | |
7 h=elasticsearch-$(hv).tar.gz | 9 h=elasticsearch-$(hv).tar.gz |
8 i=GraphTastic.tar.gz | 10 i=GraphTastic.tar.gz |
9 icc=06a620d011d08bd2c1099c0d0810c053bf105400 | 11 icc=06a620d011d08bd2c1099c0d0810c053bf105400 |
10 jv=1.7.1 | |
11 jv=1.7.3 | 12 jv=1.7.3 |
12 j=jruby-complete-$(jv).jar | 13 j=jruby-complete-$(jv).jar |
13 k=GeoLite-City-2013-01-18.dat.gz | 14 k=GeoLite-City-2013-01-18.dat.gz |
14 | 15 |
15 download: | 16 download: |
16 [ -f $f ] || curl https://logstash.objects.dreamhost.com/release/$f >$f | 17 [ -f $(f) ] || curl https://logstash.objects.dreamhost.com/release/$(f) >$(f) |
17 [ -f $g ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$g | 18 [ -f $(g) ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$(g) |
18 [ -f $h ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$h | 19 [ -f $(h) ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$(h) |
19 [ -f $i ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$i | 20 [ -f $(i) ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$(i) |
20 [ -f $j ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$j >$j | 21 [ -f $(j) ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$(j) >$(j) |
21 [ -f $k ] || curl http://logstash.objects.dreamhost.com/maxmind/$k >$k | 22 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k) |
22 | 23 |
23 srpm: download | 24 srpm: download |
24 make -f logstash.Makefile manifest | 25 # build the classpath in a manifest file |
25 rm -rf ~/.m2 | 26 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest |
26 rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec | 27 for i in /usr/share/elasticsearch/{elasticsearch,jna,jts,log4j,lucene-{core,analyzers,highlighter,memory,queries},snappy-java,spatial4j}.jar; do \ |
27 rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec | 28 echo " $$i" >>logstash.manifest; \ |
28 rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec | 29 done |
29 rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs logstash.spec | 30 # build the source rpms |
31 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec | |
32 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec | |
33 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec | |
34 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs logstash.spec | |
30 | 35 |
31 rpm: | 36 rpm: |
32 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0.$d.src.rpm | 37 # kill off maven repository cache |
33 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0.$d.src.rpm | 38 rm -rf ~/.m2 |
34 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0.$d.src.rpm | 39 # build binary rpms |
35 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0.$d.src.rpm | 40 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0$(dist).src.rpm |
41 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0$(dist).src.rpm | |
42 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0$(dist).src.rpm | |
43 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm | |
36 | 44 |
37 package-web: | 45 package-web: |
38 tar cfz logstash.fedora.tar.gz *.src.rpm $$(hg status -c | cut -c3-) | 46 tar cfz logstash.fedora.tar.gz *.src.rpm $$(hg status -c | cut -c3-) |
39 | 47 |