Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fe2ae84f01
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (35 sloc) 1.243 kB
# Adapted from the formula in brew2deb.
class Solr < FPM::Cookery::Recipe
description 'Enterprise search platform'
name 'solr'
version '3.5.0'
revision 1
arch 'all'
homepage 'http://lucene.apache.org/solr/'
source "http://www.eu.apache.org/dist//lucene/solr/#{version}/apache-solr-#{version}.tgz"
md5 'b7be2fc190b26377ced5ae6055ed43e2'
section 'database'
build_depends 'sun-java6-jdk | oracle-java7-jre'
depends 'sun-java6-jre | oracle-java7-jre'
config_files '/etc/default/solr', '/etc/init/solr.conf'
def build
warfile = File.expand_path('example/webapps/solr.war')
FileUtils.mkdir_p 'war'
Dir.chdir 'war' do
system 'jar', 'xvf', warfile
end
end
def install
solr_home = share('solr')
(solr_home/'lib').install Dir['dist/*.{war,jar}']
Dir.chdir('example') do
(solr_home/'jetty').install Dir['{start.jar,etc,lib,webapps}']
end
(solr_home/'example').install Dir['example/solr/*']
solr_home.install workdir('logging.properties')
bin.install Dir[workdir('solr*')]
var('log/solr').mkpath
etc('default').install_p workdir('etc-defaults'), 'solr'
etc('init').install_p workdir('upstart.conf'), 'solr.conf'
end
end
Jump to Line
Something went wrong with that request. Please try again.