Mercurial > logstash
annotate Makefile @ 24:0f249d38da21
jruby.spec needs /usr/share to match fedora jrudy location
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 19 Apr 2013 17:48:29 -0700 |
parents | bb48b2672ff2 |
children | d058481276aa |
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 |
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
|
15 |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
16 download: |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
17 [ -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
|
18 [ -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
|
19 [ -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
|
20 [ -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
|
21 [ -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
|
22 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k) |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
23 |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
24 srpm: download |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
25 # build the classpath in a manifest file |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
26 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
|
27 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
|
28 echo " $$i" >>logstash.manifest; \ |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
29 done |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
30 # build the source rpms |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
31 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
32 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
33 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
34 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
|
35 |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
36 rpm: |
23
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
37 # kill off maven repository cache |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
38 rm -rf ~/.m2 |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
39 # build binary rpms |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
40 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0$(dist).src.rpm |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
41 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0$(dist).src.rpm |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
42 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0$(dist).src.rpm |
bb48b2672ff2
use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents:
22
diff
changeset
|
43 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm |
14
0e45fe64b10d
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
44 |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
45 package-web: |
18
2b887e35b5cd
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
46 tar cfz logstash.fedora.tar.gz *.src.rpm $$(hg status -c | cut -c3-) |
17
292b6583148a
work on building from source
Carl Byington <carl@five-ten-sg.com>
parents:
16
diff
changeset
|
47 |