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