| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/chef/chef-0.10.10.ebuild,v 1.1 2012/06/17 15:36:21 hollow Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
USE_RUBY="ruby18"
|
| 7 |
|
| 8 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 9 |
RUBY_FAKEGEM_TASK_TEST=""
|
| 10 |
|
| 11 |
inherit ruby-fakegem user
|
| 12 |
|
| 13 |
DESCRIPTION="Chef is a systems integration framework"
|
| 14 |
HOMEPAGE="http://wiki.opscode.com/display/chef"
|
| 15 |
|
| 16 |
LICENSE="Apache-2.0"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="~amd64 ~x86"
|
| 19 |
IUSE=""
|
| 20 |
|
| 21 |
ruby_add_rdepend ">=dev-ruby/bunny-0.6.0
|
| 22 |
dev-ruby/erubis
|
| 23 |
dev-ruby/highline
|
| 24 |
>=dev-ruby/json-1.4.4
|
| 25 |
<=dev-ruby/json-1.6.1
|
| 26 |
>=dev-ruby/mixlib-authentication-1.1.0
|
| 27 |
>=dev-ruby/mixlib-cli-1.1.0
|
| 28 |
>=dev-ruby/mixlib-config-1.1.2
|
| 29 |
>=dev-ruby/mixlib-log-1.3.0
|
| 30 |
>=dev-ruby/mixlib-shellout-1.0.0
|
| 31 |
dev-ruby/moneta
|
| 32 |
>=dev-ruby/net-ssh-2.2.2
|
| 33 |
<dev-ruby/net-ssh-2.4.0
|
| 34 |
>=dev-ruby/net-ssh-multi-1.1
|
| 35 |
>=dev-ruby/ohai-0.6.0
|
| 36 |
>=dev-ruby/rest-client-1.0.4
|
| 37 |
dev-ruby/ruby-shadow
|
| 38 |
>=dev-ruby/treetop-1.4.9
|
| 39 |
dev-ruby/uuidtools"
|
| 40 |
|
| 41 |
all_ruby_install() {
|
| 42 |
all_fakegem_install
|
| 43 |
|
| 44 |
keepdir /etc/chef /var/lib/chef /var/log/chef /var/run/chef
|
| 45 |
|
| 46 |
doinitd "${FILESDIR}/initd/chef-client"
|
| 47 |
doconfd "${FILESDIR}/confd/chef-client"
|
| 48 |
|
| 49 |
insinto /etc/chef
|
| 50 |
doins "${FILESDIR}/client.rb"
|
| 51 |
doins "${FILESDIR}/solo.rb"
|
| 52 |
}
|
| 53 |
|
| 54 |
pkg_setup() {
|
| 55 |
enewgroup chef
|
| 56 |
enewuser chef -1 -1 /var/lib/chef chef
|
| 57 |
}
|
| 58 |
|
| 59 |
pkg_postinst() {
|
| 60 |
elog
|
| 61 |
elog "You should edit /etc/chef/client.rb before starting the service with"
|
| 62 |
elog "/etc/init.d/chef-client start"
|
| 63 |
elog
|
| 64 |
}
|