annotate Makefile @ 22:226946e5dca4

work on building from source
author Carl Byington <carl@five-ten-sg.com>
date Wed, 17 Apr 2013 19:38:59 -0700
parents 1d50b19beda0
children bb48b2672ff2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
c158cae7cd26 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 14
diff changeset
1 d=el6
21
1d50b19beda0 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 18
diff changeset
2 f=logstash-1.1.10-monolithic.jar
1d50b19beda0 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 18
diff changeset
3 gv=1.1.10
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
4 g=logstash-$(gv).tar.gz
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
5 hv=0.20.2
21
1d50b19beda0 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 18
diff changeset
6 hv=0.20.5
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 h=elasticsearch-$(hv).tar.gz
13
c0150404962d start working on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 10
diff changeset
8 i=GraphTastic.tar.gz
c0150404962d start working on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 10
diff changeset
9 icc=06a620d011d08bd2c1099c0d0810c053bf105400
21
1d50b19beda0 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 18
diff changeset
10 jv=1.7.1
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
11 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
12 j=jruby-complete-$(jv).jar
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
13 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
14
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
15 download:
10
fa645feb1f0e fetch the jar file if we don't have it
Carl Byington <carl@five-ten-sg.com>
parents: 0
diff changeset
16 [ -f $f ] || curl https://logstash.objects.dreamhost.com/release/$f >$f
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
17 [ -f $g ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$g
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
18 [ -f $h ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$h
13
c0150404962d start working on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 10
diff changeset
19 [ -f $i ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$i
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
20 [ -f $j ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$j >$j
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
21 [ -f $k ] || curl http://logstash.objects.dreamhost.com/maxmind/$k >$k
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
22
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
23 srpm: download
22
226946e5dca4 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
24 make -f logstash.Makefile manifest
226946e5dca4 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 21
diff changeset
25 rm -rf ~/.m2
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
26 rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec
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
27 rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
28 rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
29 rpmbuild --define "dist .$d" --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
30
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
31 rpm:
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
32 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0.$d.src.rpm
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
33 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0.$d.src.rpm
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
34 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0.$d.src.rpm
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
35 rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0.$d.src.rpm
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
36
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
37 package-web:
18
2b887e35b5cd work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
38 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
39