comparison Makefile @ 14:0e45fe64b10d

work on building from source
author Carl Byington <carl@five-ten-sg.com>
date Wed, 10 Apr 2013 21:24:14 -0700
parents c0150404962d
children c158cae7cd26
comparison
equal deleted inserted replaced
13:c0150404962d 14:0e45fe64b10d
1 f=logstash-1.1.9-monolithic.jar 1 f=logstash-1.1.9-monolithic.jar
2 g=logstash-1.1.9.tar.gz 2 g=logstash-1.1.9.tar.gz
3 h=elasticsearch-0.20.6.tar.gz 3 h=elasticsearch-0.20.6.tar.gz
4 i=GraphTastic.tar.gz 4 i=GraphTastic.tar.gz
5 icc=06a620d011d08bd2c1099c0d0810c053bf105400 5 icc=06a620d011d08bd2c1099c0d0810c053bf105400
6 j=jruby-complete-1.7.3.jar
7 k=GeoLite-City-2013-01-18.dat.gz
6 all: 8 all:
7 [ -f $f ] || curl https://logstash.objects.dreamhost.com/release/$f >$f 9 [ -f $f ] || curl https://logstash.objects.dreamhost.com/release/$f >$f
8 [ -f $g ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v1.1.9 >$g 10 [ -f $g ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v1.1.9 >$g
9 [ -f $h ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v0.20.6 >$h 11 [ -f $h ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v0.20.6 >$h
10 [ -f $i ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$i 12 [ -f $i ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$i
11 [ -d builder ] && rm -rf builder || /bin/true 13 [ -f $j ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/1.7.3/$j >$j
12 mkdir builder 14 [ -f $k ] || curl http://logstash.objects.dreamhost.com/maxmind/$k >$k
13 rpmbuild --define "_sourcedir $(shell pwd)" --define "_builddir $(shell pwd)/builder" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" -ba logstash.spec 15
14 [ -d builder ] && rm -rf builder || /bin/true 16 #rpmbuild --define "dist .el6" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec
15 rpmbuild --define "_builddir $(shell pwd)/builder" --rebuild logstash-1.1.9-0.src.rpm 17 #rpmbuild --define "dist .el6" --define "_rpmdir $(shell pwd)" --rebuild jruby-1.7.3-0.el6.src.rpm
18
19 #rpmbuild --define "dist .el6" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec
20 #rpmbuild --define "dist .el6" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0.el6.src.rpm
21
22 #rpmbuild --define "dist .el6" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec
23 #rpmbuild --define "dist .el6" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-0.20.6-0.el6.src.rpm
24
25 rpmbuild --define "dist .el6" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs logstash.spec
26 rpmbuild --define "dist .el6" --define "_rpmdir $(shell pwd)" --rebuild logstash-1.1.9-0.el6.src.rpm