comparison Makefile @ 13:c0150404962d

start working on building from source
author Carl Byington <carl@five-ten-sg.com>
date Sat, 06 Apr 2013 08:48:09 -0700
parents fa645feb1f0e
children 0e45fe64b10d
comparison
equal deleted inserted replaced
12:567e51f1f5e7 13:c0150404962d
1 f=logstash-1.1.9-monolithic.jar 1 f=logstash-1.1.9-monolithic.jar
2 2 g=logstash-1.1.9.tar.gz
3 h=elasticsearch-0.20.6.tar.gz
4 i=GraphTastic.tar.gz
5 icc=06a620d011d08bd2c1099c0d0810c053bf105400
3 all: 6 all:
4 [ -f $f ] || curl https://logstash.objects.dreamhost.com/release/$f >$f 7 [ -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
9 [ -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
5 [ -d builder ] && rm -rf builder || /bin/true 11 [ -d builder ] && rm -rf builder || /bin/true
6 mkdir builder 12 mkdir builder
7 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 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
14 [ -d builder ] && rm -rf builder || /bin/true
15 rpmbuild --define "_builddir $(shell pwd)/builder" --rebuild logstash-1.1.9-0.src.rpm