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