view 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
line wrap: on
line source

d=el6
f=logstash-1.1.10-monolithic.jar
gv=1.1.10
g=logstash-$(gv).tar.gz
hv=0.20.2
hv=0.20.5
h=elasticsearch-$(hv).tar.gz
i=GraphTastic.tar.gz
icc=06a620d011d08bd2c1099c0d0810c053bf105400
jv=1.7.1
jv=1.7.3
j=jruby-complete-$(jv).jar
k=GeoLite-City-2013-01-18.dat.gz

download:
	[ -f $f ] || curl https://logstash.objects.dreamhost.com/release/$f >$f
	[ -f $g ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$g
	[ -f $h ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$h
	[ -f $i ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$i
	[ -f $j ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$j >$j
	[ -f $k ] || curl http://logstash.objects.dreamhost.com/maxmind/$k >$k

srpm: download
	make -f logstash.Makefile manifest
	rm -rf ~/.m2
	rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec
	rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec
	rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec
	rpmbuild --define "dist .$d" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs logstash.spec

rpm:
	rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0.$d.src.rpm
	rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0.$d.src.rpm
	rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0.$d.src.rpm
	rpmbuild --define "dist .$d" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0.$d.src.rpm

package-web:
	tar cfz logstash.fedora.tar.gz *.src.rpm $$(hg status -c | cut -c3-)