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-0.24.5-r4.ebuild puppet-0.24.5-r1.ebuild puppet-0.24.5-r2.ebuild
Date: Mon, 06 Oct 2008 16:30:25
Message-Id: E1KmsyU-0006MR-PO@stork.gentoo.org
1 matsuu 08/10/06 16:30:22
2
3 Modified: ChangeLog
4 Added: puppet-0.24.5-r4.ebuild
5 Removed: puppet-0.24.5-r1.ebuild puppet-0.24.5-r2.ebuild
6 Log:
7 Added /etc/openldap/schema/puppet.schema, bug #239433.
8 Removed PUPPETMASTER_MANIFEST FROM /etc/init.d/puppetmaster, bug #240266.
9 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64)
10
11 Revision Changes Path
12 1.27 app-admin/puppet/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.27&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.27&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?r1=1.26&r2=1.27
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v
21 retrieving revision 1.26
22 retrieving revision 1.27
23 diff -u -r1.26 -r1.27
24 --- ChangeLog 2 Oct 2008 17:06:06 -0000 1.26
25 +++ ChangeLog 6 Oct 2008 16:30:22 -0000 1.27
26 @@ -1,6 +1,15 @@
27 # ChangeLog for app-admin/puppet
28 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.26 2008/10/02 17:06:06 matsuu Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.27 2008/10/06 16:30:22 matsuu Exp $
31 +
32 +*puppet-0.24.5-r4 (06 Oct 2008)
33 +
34 + 06 Oct 2008; MATSUU Takuto <matsuu@g.o> +files/puppetmaster.confd,
35 + files/puppetmaster.init, -puppet-0.24.5-r1.ebuild,
36 + -puppet-0.24.5-r2.ebuild, +puppet-0.24.5-r4.ebuild:
37 + Added /etc/openldap/schema/puppet.schema, bug #239433. Removed
38 + PUPPETMASTER_MANIFEST FROM /etc/init.d/puppetmaster, bug #240266. Removed
39 + old versions.
40
41 *puppet-0.24.5-r3 (02 Oct 2008)
42
43
44
45
46 1.1 app-admin/puppet/puppet-0.24.5-r4.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/puppet-0.24.5-r4.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/puppet-0.24.5-r4.ebuild?rev=1.1&content-type=text/plain
50
51 Index: puppet-0.24.5-r4.ebuild
52 ===================================================================
53 # Copyright 1999-2008 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-0.24.5-r4.ebuild,v 1.1 2008/10/06 16:30:22 matsuu Exp $
56
57 inherit elisp-common eutils ruby
58
59 DESCRIPTION="A system automation and configuration management software"
60 HOMEPAGE="http://reductivelabs.com/projects/puppet/index.html"
61 SRC_URI="http://reductivelabs.com/downloads/${PN}/${P}.tgz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 IUSE="emacs ldap rrdtool vim-syntax"
66 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
67
68 DEPEND="emacs? ( virtual/emacs )
69 >=dev-ruby/facter-1.1.0"
70 RDEPEND="${DEPEND}
71 >=app-portage/eix-0.9.4
72 ldap? ( dev-ruby/ruby-ldap )
73 rrdtool? (
74 || (
75 >=net-analyzer/rrdtool-1.2.23
76 dev-ruby/ruby-rrd
77 )
78 )"
79 # || (
80 # www-servers/webrick
81 # www-servers/mongrel
82 # )
83 # dev-ruby/diff-lcs
84 # dev-ruby/rails
85 # dev-ruby/ruby-shadow
86
87 USE_RUBY="ruby18 ruby19"
88
89 SITEFILE="50${PN}-mode-gentoo.el"
90
91 pkg_setup() {
92 built_with_use virtual/ruby ipv6 || \
93 die "Ruby must be built with ipv6 support, otherwise puppet will not be able to run"
94
95 if use rrdtool && \
96 has_version '>=net-analyzer/rrdtool-1.2.23' && \
97 ! built_with_use '>=net-analyzer/rrdtool-1.2.23' ruby
98 then
99 die "net-analyzer/rrdtool must be built with ruby USE flag."
100 fi
101
102 enewgroup puppet
103 enewuser puppet -1 -1 /var/lib/puppet puppet
104 }
105
106 src_unpack() {
107 unpack ${A}
108 cd "${S}"
109
110 epatch "${FILESDIR}/${PN}-0.24.2-gentoo.patch"
111 epatch "${FILESDIR}/${P}-eix-0.14.0.patch"
112 }
113
114 src_compile() {
115 if use emacs ; then
116 elisp-compile ext/emacs/puppet-mode.el || die "elisp-compile failed"
117 fi
118 }
119
120 src_install() {
121 DESTDIR="${D}" ruby_einstall "$@" || die
122 DESTDIR="${D}" erubydoc
123
124 #
125 # bug #237071
126 #
127 #doinitd conf/gentoo/init.d/puppetmaster
128 newinitd "${FILESDIR}"/puppetmaster.init puppetmaster
129 #doconfd conf/gentoo/conf.d/puppetmaster
130 newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
131 #doinitd conf/gentoo/init.d/puppet
132 newinitd "${FILESDIR}"/puppet.init puppet
133 doconfd conf/gentoo/conf.d/puppet
134
135 # Initial configuration files
136 keepdir /etc/puppet/manifests
137 insinto /etc/puppet
138 doins conf/gentoo/puppet/*
139
140 # Location of log and data files
141 keepdir /var/run/puppet
142 keepdir /var/log/puppet
143 keepdir /var/lib/puppet/ssl
144 keepdir /var/lib/puppet/files
145 fowners -R puppet:puppet /var/{run,log,lib}/puppet
146
147 if use emacs ; then
148 elisp-install ${PN} ext/emacs/puppet-mode.el* || die "elisp-install failed"
149 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
150 fi
151
152 if use ldap ; then
153 insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
154 fi
155
156 if use vim-syntax ; then
157 insinto /usr/share/vim/vimfiles/syntax; doins ext/vim/syntax/puppet.vim
158 insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/puppet.vim
159 fi
160
161 # ext and examples files
162 for f in $(find ext examples -type f) ; do
163 docinto "$(dirname ${f})"; dodoc "${f}"
164 done
165 docinto conf; dodoc conf/namespaceauth.conf
166 }
167
168 pkg_postinst() {
169 elog
170 elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
171 elog "cause puppet to hang while installing packages."
172 elog
173 elog "Puppet uses eix to get information about currently installed packages,"
174 elog "so please keep the eix metadata cache updated so puppet is able to properly"
175 elog "handle package installations."
176 elog
177 elog "Currently puppet only supports adding and removing services to the default"
178 elog "runlevel, if you want to add/remove a service from another runlevel you may"
179 elog "do so using symlinking."
180 elog
181
182 if [ \
183 -f "${ROOT}/etc/puppet/puppetd.conf" -o \
184 -f "${ROOT}/etc/puppet/puppetmaster.conf" -o \
185 -f "${ROOT}/etc/puppet/puppetca.conf" \
186 ] ; then
187 elog
188 elog "Please remove deprecated config files."
189 elog " /etc/puppet/puppetca.conf"
190 elog " /etc/puppet/puppetd.conf"
191 elog " /etc/puppet/puppetmasterd.conf"
192 elog
193 fi
194 use emacs && elisp-site-regen
195 }
196 pkg_postrm() {
197 use emacs && elisp-site-regen
198 }