diff 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
line wrap: on
line diff
--- a/Makefile	Fri Mar 22 15:09:21 2013 -0700
+++ b/Makefile	Sat Apr 06 08:48:09 2013 -0700
@@ -1,7 +1,15 @@
 f=logstash-1.1.9-monolithic.jar
-
+g=logstash-1.1.9.tar.gz
+h=elasticsearch-0.20.6.tar.gz
+i=GraphTastic.tar.gz
+icc=06a620d011d08bd2c1099c0d0810c053bf105400
 all:
 	[ -f $f ] || curl https://logstash.objects.dreamhost.com/release/$f >$f
+	[ -f $g ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v1.1.9 >$g
+	[ -f $h ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v0.20.6 >$h
+	[ -f $i ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$i
 	[ -d builder ] && rm -rf builder || /bin/true
 	mkdir builder
 	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
+	[ -d builder ] && rm -rf builder || /bin/true
+	rpmbuild --define "_builddir $(shell pwd)/builder" --rebuild logstash-1.1.9-0.src.rpm