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