annotate Makefile @ 26:610835fb4209

external configuration for kibana
author Carl Byington <carl@five-ten-sg.com>
date Fri, 03 May 2013 08:04:08 -0700
parents d058481276aa
children 76544ad0561d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
1 ifeq ($(dist),)
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
2 dist=.f20
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
3 endif
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
4
21
1d50b19beda0 work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 18
diff changeset
5 gv=1.1.10
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
6 f=logstash-$(gv)-monolithic.jar
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 g=logstash-$(gv).tar.gz
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
8 hv=0.20.6
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
9 h=elasticsearch-$(hv).tar.gz
13
c0150404962d start working on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 10
diff changeset
10 i=GraphTastic.tar.gz
c0150404962d start working on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 10
diff changeset
11 icc=06a620d011d08bd2c1099c0d0810c053bf105400
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
12 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
13 j=jruby-complete-$(jv).jar
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
14 k=GeoLite-City-2013-01-18.dat.gz
25
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
15 lcc=df8ae2344433e5072a8dfe77082acfd1c9b6ed62
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
16 lcs=df8ae234
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
17 lv=0.2.0
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
18 #l=Kibana-$(lv).tar.gz
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
19 l=Kibana-$(lv)-$(lcs).tar.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
20
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
21 download:
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
22 [ -f $(f) ] || curl https://logstash.objects.dreamhost.com/release/$(f) >$(f)
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
23 [ -f $(g) ] || curl https://nodeload.github.com/logstash/logstash/tar.gz/v$(gv) >$(g)
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
24 [ -f $(h) ] || curl https://nodeload.github.com/elasticsearch/elasticsearch/tar.gz/v$(hv) >$(h)
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
25 [ -f $(i) ] || curl https://nodeload.github.com/NickPadilla/GraphTastic/tar.gz/$(icc) >$(i)
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
26 [ -f $(j) ] || curl http://repository.codehaus.org/org/jruby/jruby-complete/$(jv)/$(j) >$(j)
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
27 [ -f $(k) ] || curl http://logstash.objects.dreamhost.com/maxmind/$(k) >$(k)
25
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
28 #[ -f $(l) ] || curl https://codeload.github.com/rashidkpc/Kibana/tar.gz/v$(lv) >$(l)
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
29 [ -f $(l) ] || curl https://nodeload.github.com/rashidkpc/Kibana/tar.gz/$(lcc) >$(l)
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 srpm: download
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
32 # build the classpath in a manifest file
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
33 echo "Class-Path: /usr/share/jruby.jar /usr/share/graphtastic-client.jar " >logstash.manifest
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
34 for i in /usr/share/elasticsearch/{elasticsearch,jna,jts,log4j,lucene-{core,analyzers,highlighter,memory,queries},snappy-java,spatial4j}.jar; do \
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
35 echo " $$i" >>logstash.manifest; \
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
36 done
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
37 # build the source rpms
25
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
38 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs Kibana.spec
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
39 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs jruby.spec
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
40 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs GraphTastic-client.spec
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
41 rpmbuild --define "dist $(dist)" --define "_sourcedir $(shell pwd)" --define "_srcrpmdir $(shell pwd)" --define "_rpmdir $(shell pwd)" -bs elasticsearch.spec
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
42 rpmbuild --define "dist $(dist)" --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
43
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
44 rpm:
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
45 # kill off maven repository cache
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
46 rm -rf ~/.m2
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
47 # build binary rpms
25
d058481276aa replace logstash embedded web server with kibana
Carl Byington <carl@five-ten-sg.com>
parents: 23
diff changeset
48 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild Kibana-$(lv)-0$(dist).src.rpm
23
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
49 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild jruby-$(jv)-0$(dist).src.rpm
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
50 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild GraphTastic-client-0.0.0-0$(dist).src.rpm
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
51 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild elasticsearch-$(hv)-0$(dist).src.rpm
bb48b2672ff2 use _javadir in spec files
Carl Byington <carl@five-ten-sg.com>
parents: 22
diff changeset
52 rpmbuild --define "dist $(dist)" --define "_rpmdir $(shell pwd)" --rebuild logstash-$(gv)-0$(dist).src.rpm
14
0e45fe64b10d work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
53
17
292b6583148a work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 16
diff changeset
54 package-web:
18
2b887e35b5cd work on building from source
Carl Byington <carl@five-ten-sg.com>
parents: 17
diff changeset
55 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
56