comparison logstash.Makefile @ 33:0faebb0b0fa4

update to kibana 3, logstash 1.2.1, es 0.90.5
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Sep 2013 11:50:21 -0700
parents f2691b83bafa
children
comparison
equal deleted inserted replaced
32:082f7a76fa48 33:0faebb0b0fa4
14 JRUBYC=$(WITH_JRUBY) jrubyc 14 JRUBYC=$(WITH_JRUBY) jrubyc
15 GEOIP=GeoLiteCity.dat 15 GEOIP=GeoLiteCity.dat
16 16
17 all: 17 all:
18 # compile-grammer 18 # compile-grammer
19 touch lib/logstash/config/grammar.rl # force rebuild 19 # use the prebuild one, since we don't have tt command from treetop (yet?)
20 make -C lib/logstash/config grammar.rb 20 #touch lib/logstash/config/grammar.treetop # force rebuild
21 #make -C lib/logstash/config grammar.rb
21 # compile-runner 22 # compile-runner
22 mkdir -p build/ruby 23 mkdir -p build/ruby
23 cd lib; $(JRUBYC) -t ../build/ruby logstash/runner.rb 24 cd lib; $(JRUBYC) -t ../build/ruby logstash/runner.rb
24 # copy-ruby-files 25 # copy-ruby-files
25 rsync -a --include "*/" --include "*.rb" --exclude "*" ./lib/ ./test/ ./build/ruby 26 rsync -a --include "*/" --include "*.rb" --exclude "*" ./lib/ ./test/ ./build/ruby
37 rm -rf ./vendor/bundle/jruby/1.9/gems/*/spec 38 rm -rf ./vendor/bundle/jruby/1.9/gems/*/spec
38 rm -rf ./vendor/bundle/jruby/1.9/gems/*/test 39 rm -rf ./vendor/bundle/jruby/1.9/gems/*/test
39 # build-monolith 40 # build-monolith
40 mkdir -p build/monolith/openssl 41 mkdir -p build/monolith/openssl
41 mkdir -p build/monolith/jopenssl 42 mkdir -p build/monolith/jopenssl
43 mkdir -p build/monolith/META-INF/services
42 # unpack all jars 44 # unpack all jars
43 find $$PWD/vendor/bundle -name '*.jar' | (cd build/monolith; xargs -n1 jar xf) 45 find $$PWD/vendor/bundle -name '*.jar' | (cd build/monolith; xargs -n1 jar xf)
46 # Merge all service file in all 3rdparty jars
47 find $$PWD/vendor/bundle $$PWD/vendor/jar -name '*.jar' | xargs $(JRUBY_CMD) extract_services.rb -o build/monolith/META-INF/services
44 # copy openssl/lib/shared folders/files to root of jar - need this for openssl to work with JRuby 48 # copy openssl/lib/shared folders/files to root of jar - need this for openssl to work with JRuby
45 cp -r vendor/bundle/jruby/1.9/gems/jruby-openss*/lib/shared/openssl/* build/monolith/openssl 49 cp -r vendor/bundle/jruby/1.9/gems/jruby-openss*/lib/shared/openssl/* build/monolith/openssl
46 cp -r vendor/bundle/jruby/1.9/gems/jruby-openss*/lib/shared/jopenssl/* build/monolith/jopenssl 50 cp -r vendor/bundle/jruby/1.9/gems/jruby-openss*/lib/shared/jopenssl/* build/monolith/jopenssl
47 cp -r vendor/bundle/jruby/1.9/gems/jruby-openss*/lib/shared/openssl.rb build/monolith/openssl.rb 51 cp -r vendor/bundle/jruby/1.9/gems/jruby-openss*/lib/shared/openssl.rb build/monolith/openssl.rb
48 # purge any extra files we don't need in META-INF (like manifests and signature files) 52 # purge any extra files we don't need in META-INF (like manifests and signature files)
61 jar cfme build/logstash.jar logstash.manifest logstash.runner \ 65 jar cfme build/logstash.jar logstash.manifest logstash.runner \
62 -C build/ruby . \ 66 -C build/ruby . \
63 -C build/monolith . \ 67 -C build/monolith . \
64 -C vendor/bundle/jruby/1.9 gems \ 68 -C vendor/bundle/jruby/1.9 gems \
65 -C vendor/bundle/jruby/1.9 specifications \ 69 -C vendor/bundle/jruby/1.9 specifications \
66 -C lib logstash/web/public \
67 -C lib logstash/certs \ 70 -C lib logstash/certs \
68 -C lib logstash/web/views \
69 patterns 71 patterns
70 72