blob: 6a405ae5dac76d929f5d2f352089460b738e7f71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/chef-server-api/chef-server-api-0.9.8.ebuild,v 1.2 2010/09/20 09:30:31 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=""
ruby_add_rdepend "~app-admin/chef-${PV}
>=dev-ruby/json-1.4.4
>=dev-ruby/mixlib-authentication-1.1.3
>=dev-ruby/merb-assets-1.1.0
>=dev-ruby/merb-core-1.1.0
>=dev-ruby/merb-helpers-1.1.0
>=dev-ruby/merb-param-protection-1.1.0
>=dev-ruby/uuidtools-2.1.1
www-servers/thin"
pkg_setup() {
enewgroup chef
enewuser chef -1 -1 /var/lib/chef chef
}
each_ruby_install() {
each_fakegem_install
ruby_fakegem_doins -r app
ruby_fakegem_doins -r config
ruby_fakegem_doins -r public
# create unversioned path for passenger/rack integration
dodir /var/lib/chef/rack
dosym $(ruby_fakegem_gemsdir)/gems/${P} /var/lib/chef/rack/api
}
all_ruby_install() {
all_fakegem_install
doinitd "${FILESDIR}/initd/chef-server-api"
doconfd "${FILESDIR}/confd/chef-server-api"
keepdir /etc/chef /var/lib/chef /var/log/chef /var/run/chef \
/etc/chef/certificates
insinto /etc/chef
doins "${FILESDIR}/server.rb"
fperms 0700 /etc/chef/certificates
fowners chef:chef /etc/chef/{,server.rb,certificates}
fowners chef:chef /var/{lib,log,run}/chef
}
pkg_postinst() {
elog
elog "You should edit /etc/chef/server.rb before starting the service with"
elog "/etc/init.d/chef-server-api start"
elog
}
|