diff options
Diffstat (limited to 'app-admin/chef-solr/chef-solr-0.9.6.ebuild')
-rw-r--r-- | app-admin/chef-solr/chef-solr-0.9.6.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-admin/chef-solr/chef-solr-0.9.6.ebuild b/app-admin/chef-solr/chef-solr-0.9.6.ebuild new file mode 100644 index 000000000000..06973fbfcae9 --- /dev/null +++ b/app-admin/chef-solr/chef-solr-0.9.6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/chef-solr/chef-solr-0.9.6.ebuild,v 1.1 2010/07/03 12:54:17 hollow Exp $ + +EAPI="2" +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="" + +inherit ruby-fakegem + +DESCRIPTION="Configuration management tool" +HOMEPAGE="http://wiki.opscode.com/display/chef" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=net-misc/rabbitmq-server-1.7.0 + =virtual/jre-1.6.0" + +ruby_add_rdepend "=app-admin/chef-${PV} + >=dev-ruby/libxml-1.1.3 + >=dev-ruby/uuidtools-2.0.0" + +pkg_setup() { + enewgroup chef + enewuser chef -1 -1 /var/lib/chef chef +} + +each_ruby_install() { + each_fakegem_install + ruby_fakegem_doins -r solr +} + +all_ruby_install() { + all_fakegem_install + + doinitd "${FILESDIR}/initd/chef-solr" + doconfd "${FILESDIR}/confd/chef-solr" + + doinitd "${FILESDIR}/initd/chef-solr-indexer" + doconfd "${FILESDIR}/confd/chef-solr-indexer" + + keepdir /etc/chef /var/lib/chef /var/log/chef /var/run/chef + + insinto /etc/chef + doins "${FILESDIR}/solr.rb" + + fowners chef:chef /etc/chef/{,solr.rb} + fowners chef:chef /var/{lib,log,run}/chef +} |