1 |
matsuu 08/11/21 17:13:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: puppet-0.24.6.ebuild |
5 |
Log: |
6 |
Version bumped. Fixed eix-patch for new eix syntax. |
7 |
(Portage version: 2.2_rc14/cvs/Linux 2.6.27-gentoo-r2 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.28 app-admin/puppet/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.28&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.28&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?r1=1.27&r2=1.28 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v |
19 |
retrieving revision 1.27 |
20 |
retrieving revision 1.28 |
21 |
diff -u -r1.27 -r1.28 |
22 |
--- ChangeLog 6 Oct 2008 16:30:22 -0000 1.27 |
23 |
+++ ChangeLog 21 Nov 2008 17:13:40 -0000 1.28 |
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.27 2008/10/06 16:30:22 matsuu Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.28 2008/11/21 17:13:40 matsuu Exp $ |
29 |
+ |
30 |
+*puppet-0.24.6 (21 Nov 2008) |
31 |
+ |
32 |
+ 21 Nov 2008; MATSUU Takuto <matsuu@g.o> |
33 |
+ +files/puppet-0.24.6-eix.patch, files/puppet.init, |
34 |
+ files/puppetmaster.init, +puppet-0.24.6.ebuild: |
35 |
+ Version bumped. Fixed eix-patch for new eix syntax. |
36 |
|
37 |
*puppet-0.24.5-r4 (06 Oct 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-admin/puppet/puppet-0.24.6.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/puppet-0.24.6.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/puppet-0.24.6.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: puppet-0.24.6.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.6.ebuild,v 1.1 2008/11/21 17:13:40 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.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 |
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster |
127 |
#doinitd conf/gentoo/init.d/puppet |
128 |
newinitd "${FILESDIR}"/puppet.init puppet |
129 |
doconfd conf/gentoo/conf.d/puppet |
130 |
|
131 |
# Initial configuration files |
132 |
keepdir /etc/puppet/manifests |
133 |
insinto /etc/puppet |
134 |
doins conf/gentoo/puppet/* |
135 |
|
136 |
# Location of log and data files |
137 |
keepdir /var/run/puppet |
138 |
keepdir /var/log/puppet |
139 |
keepdir /var/lib/puppet/ssl |
140 |
keepdir /var/lib/puppet/files |
141 |
fowners -R puppet:puppet /var/{run,log,lib}/puppet |
142 |
|
143 |
if use emacs ; then |
144 |
elisp-install ${PN} ext/emacs/puppet-mode.el* || die "elisp-install failed" |
145 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
146 |
fi |
147 |
|
148 |
if use ldap ; then |
149 |
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema |
150 |
fi |
151 |
|
152 |
if use vim-syntax ; then |
153 |
insinto /usr/share/vim/vimfiles/syntax; doins ext/vim/syntax/puppet.vim |
154 |
insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/puppet.vim |
155 |
fi |
156 |
|
157 |
# ext and examples files |
158 |
for f in $(find ext examples -type f) ; do |
159 |
docinto "$(dirname ${f})"; dodoc "${f}" |
160 |
done |
161 |
docinto conf; dodoc conf/namespaceauth.conf |
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
elog |
166 |
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could" |
167 |
elog "cause puppet to hang while installing packages." |
168 |
elog |
169 |
elog "Puppet uses eix to get information about currently installed packages," |
170 |
elog "so please keep the eix metadata cache updated so puppet is able to properly" |
171 |
elog "handle package installations." |
172 |
elog |
173 |
elog "Currently puppet only supports adding and removing services to the default" |
174 |
elog "runlevel, if you want to add/remove a service from another runlevel you may" |
175 |
elog "do so using symlinking." |
176 |
elog |
177 |
|
178 |
if [ \ |
179 |
-f "${ROOT}/etc/puppet/puppetd.conf" -o \ |
180 |
-f "${ROOT}/etc/puppet/puppetmaster.conf" -o \ |
181 |
-f "${ROOT}/etc/puppet/puppetca.conf" \ |
182 |
] ; then |
183 |
elog |
184 |
elog "Please remove deprecated config files." |
185 |
elog " /etc/puppet/puppetca.conf" |
186 |
elog " /etc/puppet/puppetd.conf" |
187 |
elog " /etc/puppet/puppetmasterd.conf" |
188 |
elog |
189 |
fi |
190 |
use emacs && elisp-site-regen |
191 |
} |
192 |
pkg_postrm() { |
193 |
use emacs && elisp-site-regen |
194 |
} |