elasticsearh: fix audit warning

This commit is contained in:
Adam Vandenberg 2013-01-04 09:28:57 -08:00
parent 7dc348cc40
commit d855233f83

View file

@ -31,7 +31,7 @@ class Elasticsearch < Formula
prefix.install Dir['*']
# Remove unnecessary files
rm_f Dir["#{prefix}/lib/sigar/*"]
rm_f Dir["#{lib}/sigar/*"]
if build.head?
rm_rf "#{prefix}/pom.xml"
rm_rf "#{prefix}/src/"
@ -61,7 +61,7 @@ class Elasticsearch < Formula
inreplace "#{bin}/plugin" do |s|
# Add the proper ES_CLASSPATH configuration
s.sub! /SCRIPT="\$0"/, %Q|SCRIPT="$0"\nES_CLASSPATH=#{prefix}/libexec|
s.sub! /SCRIPT="\$0"/, %Q|SCRIPT="$0"\nES_CLASSPATH=#{libexec}|
# Replace paths to use libexec instead of lib
s.gsub! /\$ES_HOME\/lib\//, "$ES_CLASSPATH/"
end