Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/cfengine: cfengine-2.2.10-r3.ebuild cfengine-3.2.0.ebuild ChangeLog cfengine-3.1.4.ebuild cfengine-3.1.5.ebuild
Date: Tue, 30 Aug 2011 17:11:13
Message-Id: 20110830171103.33DA32004C@flycatcher.gentoo.org
1 idl0r 11/08/30 17:11:03
2
3 Modified: cfengine-2.2.10-r3.ebuild ChangeLog
4 cfengine-3.1.4.ebuild cfengine-3.1.5.ebuild
5 Added: cfengine-3.2.0.ebuild
6 Log:
7 Version bump to 3.2.0. Fix SRC_URI.
8
9 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.6 net-misc/cfengine/cfengine-2.2.10-r3.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r3.ebuild?rev=1.6&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r3.ebuild?rev=1.6&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r3.ebuild?r1=1.5&r2=1.6
17
18 Index: cfengine-2.2.10-r3.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r3.ebuild,v
21 retrieving revision 1.5
22 retrieving revision 1.6
23 diff -u -r1.5 -r1.6
24 --- cfengine-2.2.10-r3.ebuild 10 Jan 2011 21:23:21 -0000 1.5
25 +++ cfengine-2.2.10-r3.ebuild 30 Aug 2011 17:11:03 -0000 1.6
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2011 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r3.ebuild,v 1.5 2011/01/10 21:23:21 ranger Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.2.10-r3.ebuild,v 1.6 2011/08/30 17:11:03 idl0r Exp $
31
32 EAPI="2"
33
34 @@ -9,7 +9,7 @@
35 DESCRIPTION="An automated suite of programs for configuring and maintaining
36 Unix-like computers"
37 HOMEPAGE="http://www.cfengine.org/"
38 -SRC_URI="http://www.cfengine.org/tarballs/${P}.tar.gz"
39 +SRC_URI="http://cfengine.com/source_code/download?file=${P}.tar.gz -> ${P}.tar.gz"
40
41 LICENSE="GPL-2"
42 SLOT="0"
43
44
45
46 1.137 net-misc/cfengine/ChangeLog
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.137&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.137&content-type=text/plain
50 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/ChangeLog?r1=1.136&r2=1.137
51
52 Index: ChangeLog
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v
55 retrieving revision 1.136
56 retrieving revision 1.137
57 diff -u -r1.136 -r1.137
58 --- ChangeLog 3 May 2011 23:16:33 -0000 1.136
59 +++ ChangeLog 30 Aug 2011 17:11:03 -0000 1.137
60 @@ -1,6 +1,12 @@
61 # ChangeLog for net-misc/cfengine
62 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
63 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.136 2011/05/03 23:16:33 idl0r Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.137 2011/08/30 17:11:03 idl0r Exp $
65 +
66 +*cfengine-3.2.0 (30 Aug 2011)
67 +
68 + 30 Aug 2011; Christian Ruppert <idl0r@g.o> cfengine-2.2.10-r3.ebuild,
69 + cfengine-3.1.4.ebuild, cfengine-3.1.5.ebuild, +cfengine-3.2.0.ebuild:
70 + Version bump to 3.2.0. Fix SRC_URI.
71
72 *cfengine-3.1.5 (03 May 2011)
73
74
75
76
77 1.6 net-misc/cfengine/cfengine-3.1.4.ebuild
78
79 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.1.4.ebuild?rev=1.6&view=markup
80 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.1.4.ebuild?rev=1.6&content-type=text/plain
81 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.1.4.ebuild?r1=1.5&r2=1.6
82
83 Index: cfengine-3.1.4.ebuild
84 ===================================================================
85 RCS file: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.1.4.ebuild,v
86 retrieving revision 1.5
87 retrieving revision 1.6
88 diff -u -r1.5 -r1.6
89 --- cfengine-3.1.4.ebuild 25 Apr 2011 14:30:17 -0000 1.5
90 +++ cfengine-3.1.4.ebuild 30 Aug 2011 17:11:03 -0000 1.6
91 @@ -1,6 +1,6 @@
92 # Copyright 1999-2011 Gentoo Foundation
93 # Distributed under the terms of the GNU General Public License v2
94 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.1.4.ebuild,v 1.5 2011/04/25 14:30:17 armin76 Exp $
95 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.1.4.ebuild,v 1.6 2011/08/30 17:11:03 idl0r Exp $
96
97 EAPI="3"
98
99 @@ -11,7 +11,7 @@
100 DESCRIPTION="An automated suite of programs for configuring and maintaining
101 Unix-like computers"
102 HOMEPAGE="http://www.cfengine.org/"
103 -SRC_URI="http://www.cfengine.org/tarballs/${MY_P}.tar.gz"
104 +SRC_URI="http://cfengine.com/source_code/download?file=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
105
106 LICENSE="GPL-3"
107 SLOT="3"
108
109
110
111 1.2 net-misc/cfengine/cfengine-3.1.5.ebuild
112
113 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.1.5.ebuild?rev=1.2&view=markup
114 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.1.5.ebuild?rev=1.2&content-type=text/plain
115 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.1.5.ebuild?r1=1.1&r2=1.2
116
117 Index: cfengine-3.1.5.ebuild
118 ===================================================================
119 RCS file: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.1.5.ebuild,v
120 retrieving revision 1.1
121 retrieving revision 1.2
122 diff -u -r1.1 -r1.2
123 --- cfengine-3.1.5.ebuild 3 May 2011 23:16:33 -0000 1.1
124 +++ cfengine-3.1.5.ebuild 30 Aug 2011 17:11:03 -0000 1.2
125 @@ -1,6 +1,6 @@
126 # Copyright 1999-2011 Gentoo Foundation
127 # Distributed under the terms of the GNU General Public License v2
128 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.1.5.ebuild,v 1.1 2011/05/03 23:16:33 idl0r Exp $
129 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.1.5.ebuild,v 1.2 2011/08/30 17:11:03 idl0r Exp $
130
131 EAPI="3"
132
133 @@ -11,7 +11,7 @@
134 DESCRIPTION="An automated suite of programs for configuring and maintaining
135 Unix-like computers"
136 HOMEPAGE="http://www.cfengine.org/"
137 -SRC_URI="http://www.cfengine.org/tarballs/${MY_P}.tar.gz"
138 +SRC_URI="http://cfengine.com/source_code/download?file=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
139
140 LICENSE="GPL-3"
141 SLOT="3"
142
143
144
145 1.1 net-misc/cfengine/cfengine-3.2.0.ebuild
146
147 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.2.0.ebuild?rev=1.1&view=markup
148 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cfengine/cfengine-3.2.0.ebuild?rev=1.1&content-type=text/plain
149
150 Index: cfengine-3.2.0.ebuild
151 ===================================================================
152 # Copyright 1999-2011 Gentoo Foundation
153 # Distributed under the terms of the GNU General Public License v2
154 # $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-3.2.0.ebuild,v 1.1 2011/08/30 17:11:03 idl0r Exp $
155
156 EAPI="3"
157
158 MY_PV="${PV//_beta/b}"
159 MY_PV="${MY_PV/_p/p}"
160 MY_P="${PN}-${MY_PV}"
161
162 DESCRIPTION="An automated suite of programs for configuring and maintaining
163 Unix-like computers"
164 HOMEPAGE="http://www.cfengine.org/"
165 SRC_URI="http://cfengine.com/source_code/download?file=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
166
167 LICENSE="GPL-3"
168 SLOT="3"
169 KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
170
171 # libvirt disabled for now because it blocks stabilization etc.
172 IUSE="examples html mysql postgres qdbm selinux tests tokyocabinet vim-syntax"
173
174 # libvirt? ( app-emulation/libvirt )
175 DEPEND=">=sys-libs/db-4
176 mysql? ( virtual/mysql )
177 postgres? ( dev-db/postgresql-base )
178 selinux? ( sys-libs/libselinux )
179 tokyocabinet? ( dev-db/tokyocabinet )
180 !tokyocabinet? ( qdbm? ( dev-db/qdbm ) )
181 !tokyocabinet? ( !qdbm? ( >=sys-libs/db-4 ) )
182 >=dev-libs/openssl-0.9.7
183 dev-libs/libpcre"
184 RDEPEND="${DEPEND}"
185 PDEPEND="vim-syntax? ( app-vim/cfengine-syntax )"
186
187 S="${WORKDIR}/${MY_P}"
188
189 src_configure() {
190 local myconf
191
192 # if use mysql || use postgres ; then
193 # myconf="--with-sql"
194 # else
195 # myconf="--without-sql"
196 # fi
197
198 # BDB by default, prefer tokyocabinet above qdbm...
199 # sqlite3 has been added but stated as experimental/broken...
200 if ! use qdbm && ! use tokyocabinet; then
201 myconf="${myconf} --with-berkeleydb=/usr"
202 elif use qdbm && use tokyocabinet; then
203 elog "QDBM and Tokyo Cabinet can't be used together, using Tokyo Cabinet by default"
204 myconf="${myconf} --with-tokyocabinet"
205 elif use qdbm && ! use tokyocabinet; then
206 myconf="${myconf} --with-qdbm"
207 elif ! use qdbm && use tokyocabinet; then
208 myconf="${myconf} --with-tokyocabinet"
209 fi
210
211 # Enforce /var/cfengine for historical compatibility
212 # $(use_with libvirt) \
213 econf \
214 --docdir=/usr/share/doc/"${PF}" \
215 --with-workdir=/var/cfengine \
216 --with-pcre \
217 ${myconf} \
218 $(use_with postgres postgresql) \
219 $(use_with mysql) \
220 $(use_enable selinux)
221
222 # Fix Makefile to skip inputs, see below "examples"
223 #sed -i -e 's/\(SUBDIRS.*\) inputs/\1/' Makefile || die
224
225 # We install documentation through portage
226 sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile || die
227 }
228
229 src_install() {
230 newinitd "${FILESDIR}"/cf-serverd.rc6 cf-serverd || die
231 newinitd "${FILESDIR}"/cf-monitord.rc6 cf-monitord || die
232 newinitd "${FILESDIR}"/cf-execd.rc6 cf-execd || die
233
234 emake DESTDIR="${D}" install || die
235 dodoc AUTHORS ChangeLog README INSTALL
236
237 if ! use examples; then
238 rm -rf "${D}"/usr/share/doc/${PF}/example*
239 fi
240
241 # Create cfengine working directory
242 dodir /var/cfengine/bin
243 fperms 700 /var/cfengine
244
245 # Copy cfagent into the cfengine tree otherwise cfexecd won't
246 # find it. Most hosts cache their copy of the cfengine
247 # binaries here. This is the default search location for the
248 # binaries.
249 for bin in know promises agent monitord serverd execd runagent key report; do
250 dosym /usr/sbin/cf-$bin /var/cfengine/bin/cf-$bin || die
251 done
252
253 if use html; then
254 docinto html
255 dohtml -r docs/ || die
256 fi
257 }
258
259 pkg_postinst() {
260 echo
261 einfo "Init scripts for cf-serverd, cf-monitord, and cf-execd are provided."
262 einfo
263 einfo "To run cfengine out of cron every half hour modify your crontab:"
264 einfo "0,30 * * * * /usr/sbin/cf-execd -F"
265 echo
266
267 elog "If you run cfengine the very first time, you MUST generate the keys for cfengine by running:"
268 elog "emerge --config ${CATEGORY}/${PN}"
269
270 # Fix old cf-servd, remove it after some releases.
271 local found=0
272 for fname in $(find /etc/runlevels/ -type f -or -type l -name 'cf-servd'); do
273 found=1
274 rm $fname
275 ln -s /etc/init.d/cf-serverd $(echo $fname | sed 's:cf-servd:cf-serverd:')
276 done
277
278 if [ "${found}" -eq 1 ]; then
279 echo
280 elog "/etc/init.d/cf-servd has been renamed to /etc/init.d/cf-serverd"
281 fi
282 }
283
284 pkg_config() {
285 if [ "${ROOT}" == "/" ]; then
286 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]; then
287 einfo "Generating keys for localhost."
288 /usr/sbin/cf-key
289 fi
290 else
291 die "cfengine cfkey does not support any value of ROOT other than /."
292 fi
293 }