aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorRoland Moriz2011-11-23 23:40:12 +0100
committerAdam Vandenberg2011-11-25 17:52:07 -0800
commit3aa2446ca4832c73b873afe3f2f0ca03be1a37c1 (patch)
treeaae5dbc420f0ec0d19959bad2a60d6468229bc31 /Library
parent7992c66560172cf80da87796749a9c650380923e (diff)
downloadhomebrew-3aa2446ca4832c73b873afe3f2f0ca03be1a37c1.tar.bz2
ElasticSearch: Fix plugin classpath
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/elasticsearch.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb
index e43564fc3..bf2f4f550 100644
--- a/Library/Formula/elasticsearch.rb
+++ b/Library/Formula/elasticsearch.rb
@@ -40,6 +40,13 @@ class Elasticsearch < Formula
s.gsub! /^ES_HOME=.*$/, "ES_HOME=#{prefix}"
end
+ inreplace "#{bin}/plugin" do |s|
+ # Set ES_HOME to prefix value
+ s.gsub! /^ES_HOME=.*$/, "ES_HOME=#{prefix}"
+ # Replace CLASSPATH paths to use libexec instead of lib
+ s.gsub! /-cp \".*\"/, '-cp "$ES_HOME/libexec/*"'
+ end
+
# Write .plist file for `launchd`
(prefix+'org.elasticsearch.plist').write startup_plist
(prefix+'org.elasticsearch.plist').chmod 0644