Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/puppet: ChangeLog puppet-2.6.2.ebuild
Date: Thu, 04 Nov 2010 07:13:41
Message-Id: 20101104071335.9E5BC20051@flycatcher.gentoo.org
1 matsuu 10/11/04 07:13:35
2
3 Modified: ChangeLog
4 Added: puppet-2.6.2.ebuild
5 Log:
6 Version bumped. Fixed puppet.conf, bug #338439.
7
8 (Portage version: 2.1.9.22/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.71 app-admin/puppet/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.71&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.71&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/ChangeLog?r1=1.70&r2=1.71
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v
20 retrieving revision 1.70
21 retrieving revision 1.71
22 diff -u -r1.70 -r1.71
23 --- ChangeLog 23 Sep 2010 06:15:21 -0000 1.70
24 +++ ChangeLog 4 Nov 2010 07:13:35 -0000 1.71
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-admin/puppet
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.70 2010/09/23 06:15:21 matsuu Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.71 2010/11/04 07:13:35 matsuu Exp $
30 +
31 +*puppet-2.6.2 (04 Nov 2010)
32 +
33 + 04 Nov 2010; MATSUU Takuto <matsuu@g.o> +puppet-2.6.2.ebuild:
34 + Version bumped. Fixed puppet.conf, bug #338439.
35
36 *puppet-2.6.1 (23 Sep 2010)
37
38
39
40
41 1.1 app-admin/puppet/puppet-2.6.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/puppet-2.6.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/puppet-2.6.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: puppet-2.6.2.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-2.6.2.ebuild,v 1.1 2010/11/04 07:13:35 matsuu Exp $
51
52 EAPI="2"
53 USE_RUBY="ruby18"
54
55 RUBY_FAKEGEM_TASK_DOC=""
56 RUBY_FAKEGEM_TASK_TEST="spec"
57 RUBY_FAKEGEM_EXTRADOC="CHANGELOG* README*"
58
59 inherit elisp-common eutils ruby-fakegem
60
61 DESCRIPTION="A system automation and configuration management software"
62 HOMEPAGE="http://puppetlabs.com/"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 IUSE="augeas emacs ldap rrdtool shadow vim-syntax"
67 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
68
69 ruby_add_rdepend "
70 >=dev-ruby/facter-1.5.1
71 augeas? ( dev-ruby/ruby-augeas )
72 ldap? ( dev-ruby/ruby-ldap )
73 shadow? ( dev-ruby/ruby-shadow )
74 virtual/ruby-ssl"
75 #rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
76
77 DEPEND="${DEPEND}
78 emacs? ( virtual/emacs )"
79 RDEPEND="${RDEPEND}
80 emacs? ( virtual/emacs )
81 rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
82 >=app-portage/eix-0.18.0"
83
84 SITEFILE="50${PN}-mode-gentoo.el"
85
86 pkg_setup() {
87 enewgroup puppet
88 enewuser puppet -1 -1 /var/lib/puppet puppet
89 }
90
91 all_ruby_compile() {
92 all_fakegem_compile
93
94 if use emacs ; then
95 elisp-compile ext/emacs/puppet-mode.el || die "elisp-compile failed"
96 fi
97 }
98
99 each_fakegem_install() {
100 ${RUBY} install.rb --destdir="${D}" install || die
101 }
102
103 all_ruby_install() {
104 all_fakegem_install
105
106 newinitd "${FILESDIR}"/puppetmaster.init puppetmaster || die
107 doconfd conf/gentoo/conf.d/puppetmaster || die
108 newinitd "${FILESDIR}"/puppet.init puppet || die
109 doconfd conf/gentoo/conf.d/puppet || die
110
111 # Initial configuration files
112 keepdir /etc/puppet/manifests || die
113 insinto /etc/puppet
114
115 # Bug #338439
116 #doins conf/gentoo/puppet/* || die
117 doins conf/redhat/*.conf || die
118 doins conf/auth.conf || die
119
120 # Location of log and data files
121 keepdir /var/run/puppet || die
122 keepdir /var/log/puppet || die
123 keepdir /var/lib/puppet/ssl || die
124 keepdir /var/lib/puppet/files || die
125 fowners -R puppet:puppet /var/{run,log,lib}/puppet || die
126
127 if use emacs ; then
128 elisp-install ${PN} ext/emacs/puppet-mode.el* || die "elisp-install failed"
129 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
130 fi
131
132 if use ldap ; then
133 insinto /etc/openldap/schema; doins ext/ldap/puppet.schema || die
134 fi
135
136 if use vim-syntax ; then
137 insinto /usr/share/vim/vimfiles/syntax; doins ext/vim/syntax/puppet.vim || die
138 insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/puppet.vim || die
139 fi
140
141 # ext and examples files
142 for f in $(find ext examples -type f) ; do
143 docinto "$(dirname ${f})"; dodoc "${f}" || die
144 done
145 docinto conf; dodoc conf/namespaceauth.conf || die
146 }
147
148 pkg_postinst() {
149 elog
150 elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
151 elog "cause puppet to hang while installing packages."
152 elog
153 elog "Puppet uses eix to get information about currently installed packages,"
154 elog "so please keep the eix metadata cache updated so puppet is able to properly"
155 elog "handle package installations."
156 elog
157 elog "Currently puppet only supports adding and removing services to the default"
158 elog "runlevel, if you want to add/remove a service from another runlevel you may"
159 elog "do so using symlinking."
160 elog
161
162 if [ \
163 -f "${ROOT}/etc/puppet/puppetd.conf" -o \
164 -f "${ROOT}/etc/puppet/puppetmaster.conf" -o \
165 -f "${ROOT}/etc/puppet/puppetca.conf" \
166 ] ; then
167 elog
168 elog "Please remove deprecated config files."
169 elog " /etc/puppet/puppetca.conf"
170 elog " /etc/puppet/puppetd.conf"
171 elog " /etc/puppet/puppetmasterd.conf"
172 elog
173 fi
174
175 use emacs && elisp-site-regen
176 }
177
178 pkg_postrm() {
179 use emacs && elisp-site-regen
180 }