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.1.ebuild puppet-0.23.0-r1.ebuild puppet-0.23.2.ebuild puppet-0.22.4-r1.ebuild
Date: Mon, 07 Jan 2008 14:46:45
Message-Id: E1JBtFS-0008Pi-6W@stork.gentoo.org
1 matsuu 08/01/07 14:46:42
2
3 Modified: ChangeLog
4 Added: puppet-0.24.1.ebuild
5 Removed: puppet-0.23.0-r1.ebuild puppet-0.23.2.ebuild
6 puppet-0.22.4-r1.ebuild
7 Log:
8 Version bumped.
9 (Portage version: 2.1.3.19)
10
11 Revision Changes Path
12 1.9 app-admin/puppet/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.9&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?rev=1.9&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/ChangeLog?r1=1.8&r2=1.9
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v
21 retrieving revision 1.8
22 retrieving revision 1.9
23 diff -u -r1.8 -r1.9
24 --- ChangeLog 8 Dec 2007 00:39:30 -0000 1.8
25 +++ ChangeLog 7 Jan 2008 14:46:41 -0000 1.9
26 @@ -1,6 +1,14 @@
27 # ChangeLog for app-admin/puppet
28 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.8 2007/12/08 00:39:30 matsuu Exp $
30 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/ChangeLog,v 1.9 2008/01/07 14:46:41 matsuu Exp $
32 +
33 +*puppet-0.24.1 (07 Jan 2008)
34 +
35 + 07 Jan 2008; MATSUU Takuto <matsuu@g.o>
36 + +files/puppet-0.24.1-gentoo.patch, -puppet-0.22.4-r1.ebuild,
37 + -puppet-0.23.0-r1.ebuild, -puppet-0.23.2.ebuild, +puppet-0.24.1.ebuild:
38 + Version bumped.
39 + Removed old versions.
40
41 *puppet-0.23.2-r1 (08 Dec 2007)
42
43
44
45
46 1.1 app-admin/puppet/puppet-0.24.1.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/puppet-0.24.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/puppet/puppet-0.24.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: puppet-0.24.1.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.1.ebuild,v 1.1 2008/01/07 14:46:41 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"
66 KEYWORDS="~x86 ~amd64"
67
68 DEPEND="emacs? ( virtual/emacs )"
69 RDEPEND="${DEPEND}
70 >=dev-ruby/facter-1.3.5
71 >=app-portage/eix-0.9.4"
72
73 USE_RUBY="ruby18"
74
75 SITEFILE="50${PN}-mode-gentoo.el"
76
77 pkg_setup() {
78 built_with_use virtual/ruby ipv6 || \
79 die "Ruby must be built with ipv6 support, otherwise puppet will not be able to run"
80
81 enewgroup puppet || die "Problem creating group puppet"
82 enewuser puppet -1 -1 /var/lib/puppet puppet || die "Problem creating user puppet"
83 }
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88
89 epatch "${FILESDIR}"/${P}-gentoo.patch
90 }
91
92 src_compile() {
93 if use emacs ; then
94 elisp-compile ext/emacs/puppet-mode.el || die "elisp-compile failed"
95 fi
96 }
97
98 src_install() {
99 DESTDIR="${D}" ruby_einstall "$@" || die
100 DESTDIR="${D}" erubydoc
101
102 # Installation of init scripts and configuration
103 doinitd conf/gentoo/init.d/puppetmaster
104 doconfd conf/gentoo/conf.d/puppetmaster
105 doinitd conf/gentoo/init.d/puppet
106 doconfd conf/gentoo/conf.d/puppet
107
108 # Initial configuration files
109 keepdir /etc/puppet/manifests
110 insinto /etc/puppet
111 doins conf/gentoo/puppet/*
112
113 # Location of log and data files
114 keepdir /var/run/puppet
115 keepdir /var/log/puppet
116 keepdir /var/lib/puppet/ssl
117 keepdir /var/lib/puppet/files
118 fowners -R puppet:puppet /var/{run,log,lib}/puppet
119
120 if use emacs ; then
121 elisp-install ${PN} ext/emacs/puppet-mode.el* || die "elisp-install failed"
122 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
123 fi
124 insinto /usr/share/vim/vimfiles/syntax; doins ext/vim/*.vim
125
126 # ext and examples files
127 for f in $(find ext examples -type f) ; do
128 docinto $(dirname ${f})
129 dodoc ${f}
130 done
131 }
132
133 pkg_postinst() {
134 elog
135 elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
136 elog "cause puppet to hang while installing packages."
137 elog
138 elog "Puppet uses eix to get information about currently installed packages,"
139 elog "so please keep the eix metadata cache updated so puppet is able to properly"
140 elog "handle package installations."
141 elog
142 elog "Currently puppet only supports adding and removing services to the default"
143 elog "runlevel, if you want to add/remove a service from another runlevel you may"
144 elog "do so using symlinking."
145 elog
146
147 if [ \
148 -f "${ROOT}/etc/puppet/puppetd.conf" -o \
149 -f "${ROOT}/etc/puppet/puppetmaster.conf" -o \
150 -f "${ROOT}/etc/puppet/puppetca.conf" \
151 ] ; then
152 elog
153 elog "Please remove deprecated config files."
154 elog " /etc/puppet/puppetca.conf"
155 elog " /etc/puppet/puppetd.conf"
156 elog " /etc/puppet/puppetmasterd.conf"
157 elog
158 fi
159 use emacs && elisp-site-regen
160 }
161 pkg_postrm() {
162 use emacs && elisp-site-regen
163 }
164
165
166
167 --
168 gentoo-commits@l.g.o mailing list