Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-0.24.7-r1.ebuild,v 1.1 2008/12/23 16:49:41 matsuu Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-0.24.7-r1.ebuild,v 1.1 2008/12/23 16:49:41 matsuu Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI="2" |
5 |
inherit elisp-common eutils ruby |
6 |
inherit elisp-common eutils ruby |
6 |
|
7 |
|
7 |
DESCRIPTION="A system automation and configuration management software" |
8 |
DESCRIPTION="A system automation and configuration management software" |
Lines 10-63
Link Here
|
10 |
|
11 |
|
11 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
SLOT="0" |
13 |
IUSE="emacs ldap rrdtool vim-syntax" |
14 |
IUSE="augeas emacs ldap rrdtool shadow vim-syntax" |
14 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
15 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
15 |
|
16 |
|
16 |
DEPEND="emacs? ( virtual/emacs ) |
17 |
DEPEND="virtual/ruby[ssl] |
|
|
18 |
emacs? ( virtual/emacs ) |
17 |
>=dev-ruby/facter-1.5.0" |
19 |
>=dev-ruby/facter-1.5.0" |
18 |
RDEPEND="${DEPEND} |
20 |
RDEPEND="${DEPEND} |
19 |
>=app-portage/eix-0.9.4 |
21 |
>=app-portage/eix-0.9.4 |
|
|
22 |
augeas? ( dev-ruby/ruby-augeas ) |
20 |
ldap? ( dev-ruby/ruby-ldap ) |
23 |
ldap? ( dev-ruby/ruby-ldap ) |
21 |
rrdtool? ( |
24 |
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] ) |
22 |
|| ( |
25 |
shadow? ( dev-ruby/ruby-shadow )" |
23 |
>=net-analyzer/rrdtool-1.2.23 |
|
|
24 |
dev-ruby/ruby-rrd |
25 |
) |
26 |
)" |
27 |
# || ( |
26 |
# || ( |
28 |
# www-servers/webrick |
27 |
# www-servers/webrick |
29 |
# www-servers/mongrel |
28 |
# www-servers/mongrel |
30 |
# ) |
29 |
# ) |
31 |
# dev-ruby/diff-lcs |
30 |
# dev-ruby/diff-lcs |
32 |
# dev-ruby/rails |
31 |
# dev-ruby/rails |
33 |
# dev-ruby/ruby-shadow |
|
|
34 |
|
32 |
|
35 |
USE_RUBY="ruby18 ruby19" |
33 |
USE_RUBY="ruby18 ruby19" |
36 |
|
34 |
|
37 |
SITEFILE="50${PN}-mode-gentoo.el" |
35 |
SITEFILE="50${PN}-mode-gentoo.el" |
38 |
|
36 |
|
39 |
pkg_setup() { |
37 |
pkg_setup() { |
40 |
built_with_use virtual/ruby ipv6 || \ |
|
|
41 |
die "Ruby must be built with ipv6 support, otherwise puppet will not be able to run" |
42 |
|
43 |
built_with_use virtual/ruby ssl || \ |
44 |
die "Ruby must be built with ssl support, otherwise puppet will not be able to run" |
45 |
|
46 |
if use rrdtool && \ |
47 |
has_version '>=net-analyzer/rrdtool-1.2.23' && \ |
48 |
! built_with_use '>=net-analyzer/rrdtool-1.2.23' ruby |
49 |
then |
50 |
die "net-analyzer/rrdtool must be built with ruby USE flag." |
51 |
fi |
52 |
|
53 |
enewgroup puppet |
38 |
enewgroup puppet |
54 |
enewuser puppet -1 -1 /var/lib/puppet puppet |
39 |
enewuser puppet -1 -1 /var/lib/puppet puppet |
55 |
} |
40 |
} |
56 |
|
41 |
|
57 |
src_unpack() { |
42 |
src_prepare() { |
58 |
unpack ${A} |
|
|
59 |
cd "${S}" |
60 |
|
61 |
epatch "${FILESDIR}/${PN}-0.24.6-eix.patch" |
43 |
epatch "${FILESDIR}/${PN}-0.24.6-eix.patch" |
62 |
} |
44 |
} |
63 |
|
45 |
|