Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/cfengine: ChangeLog cfengine-2.2.8-r1.ebuild cfengine-2.1.22-r2.ebuild
Date: Fri, 05 Dec 2008 08:17:31
Message-Id: E1L8VsM-0004JS-F3@stork.gentoo.org
1 robbat2 08/12/05 08:17:26
2
3 Modified: ChangeLog
4 Added: cfengine-2.2.8-r1.ebuild cfengine-2.1.22-r2.ebuild
5 Log:
6 Avoid a collision on the lock names inside the packages method when the package name, cmp and action are the same, but version and define/elsedefine are different.
7 (Portage version: 2.2_rc16/cvs/Linux 2.6.28-rc5-00117-g7f0f598 x86_64)
8
9 Revision Changes Path
10 1.88 net-misc/cfengine/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.88&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/cfengine/ChangeLog?rev=1.88&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/cfengine/ChangeLog?r1=1.87&r2=1.88
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v
19 retrieving revision 1.87
20 retrieving revision 1.88
21 diff -p -w -b -B -u -u -r1.87 -r1.88
22 --- ChangeLog 27 Sep 2008 16:17:37 -0000 1.87
23 +++ ChangeLog 5 Dec 2008 08:17:26 -0000 1.88
24 @@ -1,6 +1,17 @@
25 # ChangeLog for net-misc/cfengine
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.87 2008/09/27 16:17:37 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.88 2008/12/05 08:17:26 robbat2 Exp $
29 +
30 +*cfengine-2.2.8-r1 (05 Dec 2008)
31 +*cfengine-2.1.22-r2 (05 Dec 2008)
32 +
33 + 05 Dec 2008; Robin H. Johnson <robbat2@g.o>
34 + +files/cfengine-2.1-package-locking-fixup.patch,
35 + +files/cfengine-2.2-package-locking-fixup.patch,
36 + +cfengine-2.1.22-r2.ebuild, +cfengine-2.2.8-r1.ebuild:
37 + Avoid a collision on the lock names inside the packages method when the
38 + package name, cmp and action are the same, but version and
39 + define/elsedefine are different.
40
41 27 Sep 2008; Raúl Porcel <armin76@g.o> cfengine-2.1.22-r1.ebuild:
42 arm stable wrt #220927
43
44
45
46 1.1 net-misc/cfengine/cfengine-2.2.8-r1.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/cfengine/cfengine-2.2.8-r1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/cfengine/cfengine-2.2.8-r1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: cfengine-2.2.8-r1.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/net-misc/cfengine/cfengine-2.2.8-r1.ebuild,v 1.1 2008/12/05 08:17:26 robbat2 Exp $
56
57 inherit eutils
58
59 DESCRIPTION="An automated suite of programs for configuring and maintaining
60 Unix-like computers"
61 HOMEPAGE="http://www.cfengine.org/"
62 SRC_URI="http://www.cfengine.org/downloads/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
67 IUSE=""
68
69 DEPEND=">=sys-libs/db-4
70 >=dev-libs/openssl-0.9.7
71 app-portage/portage-utils"
72
73 src_unpack() {
74 unpack ${A}
75 cd "${S}"
76 epatch "${FILESDIR}"/${PN}-2.2-package-locking-fixup.patch
77 }
78
79 src_compile() {
80 # Enforce /var/cfengine for historical compatibility
81 econf \
82 --with-workdir=/var/cfengine \
83 --with-berkeleydb=/usr || die
84
85 # Fix Makefile to skip doc,inputs, & contrib install to wrong locations
86 sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' Makefile
87 sed -i -e 's/\(SUBDIRS.*\) contrib inputs/\1/' Makefile
88 sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile
89
90 # Fix man pages
91 sed -i -e 's/\/usr\/local/\/usr/' doc/*.8
92
93 emake || die
94 }
95
96 src_install() {
97 newinitd "${FILESDIR}"/cfservd.rc6 cfservd
98 newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd
99 newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd
100
101 make DESTDIR="${D}" install || die
102 dodoc AUTHORS ChangeLog README TODO INSTALL
103
104 # Manually install doc and inputs
105 doman doc/*.8
106 docinto examples
107 dodoc inputs/*.example
108
109 # Create cfengine working directory
110 mkdir -p "${D}"/var/cfengine
111 fperms 700 /var/cfengine
112 keepdir /var/cfengine/bin
113 keepdir /var/cfengine/inputs
114 dodir /var/cfengine/modules
115 }
116
117 pkg_postinst() {
118 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
119 then
120 einfo "Generating keys for localhost."
121 /usr/sbin/cfkey
122 fi
123
124 # Copy cfagent into the cfengine tree otherwise cfexecd won't
125 # find it. Most hosts cache their copy of the cfengine
126 # binaries here. This is the default search location for the
127 # binaries.
128
129 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
130
131 einfo
132 einfo "NOTE: The cfportage module has been deprecated in favor of the"
133 einfo " upstream 'packages' action."
134 einfo
135 einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided."
136 einfo
137 einfo "To run cfengine out of cron every half hour modify your crontab:"
138 einfo "0,30 * * * * /usr/sbin/cfexecd -F"
139 einfo
140 }
141
142
143
144 1.1 net-misc/cfengine/cfengine-2.1.22-r2.ebuild
145
146 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/cfengine/cfengine-2.1.22-r2.ebuild?rev=1.1&view=markup
147 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/cfengine/cfengine-2.1.22-r2.ebuild?rev=1.1&content-type=text/plain
148
149 Index: cfengine-2.1.22-r2.ebuild
150 ===================================================================
151 # Copyright 1999-2008 Gentoo Foundation
152 # Distributed under the terms of the GNU General Public License v2
153 # $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.1.22-r2.ebuild,v 1.1 2008/12/05 08:17:26 robbat2 Exp $
154
155 inherit eutils
156
157 DESCRIPTION="An automated suite of programs for configuring and maintaining
158 Unix-like computers"
159 HOMEPAGE="http://www.cfengine.org/"
160 SRC_URI="http://www.cfengine.org/downloads/${P}.tar.gz"
161
162 LICENSE="GPL-2"
163 SLOT="0"
164 KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
165 IUSE=""
166
167 DEPEND=">=sys-libs/db-3.2
168 >=dev-libs/openssl-0.9.7"
169
170 src_unpack() {
171 unpack ${A}
172 cd "${S}"
173
174 epatch "${FILESDIR}"/${P}-package-fix.patch
175 epatch "${FILESDIR}"/${PN}-2.1-package-locking-fixup.patch
176 }
177
178 src_compile() {
179 # Enforce /var/cfengine for historical compatibility
180 econf \
181 --with-workdir=/var/cfengine \
182 --with-berkeleydb=/usr || die
183
184 # Fix Makefile to skip doc,inputs, & contrib install to wrong locations
185 sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' Makefile
186 sed -i -e 's/\(SUBDIRS.*\) contrib inputs/\1/' Makefile
187 sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile
188
189 emake || die
190 }
191
192 src_install() {
193 newinitd "${FILESDIR}"/cfservd.rc6 cfservd
194
195 make DESTDIR="${D}" install || die
196 dodoc AUTHORS ChangeLog README TODO INSTALL
197
198 # Manually install doc and inputs
199 doinfo doc/*.info*
200 dohtml doc/*.html
201 doman doc/*.8
202 dodoc "${FILESDIR}"/cfportage.README
203 docinto examples
204 dodoc inputs/*.example
205
206 # Create cfengine working directory
207 mkdir -p "${D}"/var/cfengine
208 fperms 700 /var/cfengine
209 keepdir /var/cfengine/bin
210 keepdir /var/cfengine/inputs
211 dodir /var/cfengine/modules
212 tar jxf "${FILESDIR}"/module-cfportage.tbz2 -C "${D}"/var/cfengine/modules
213 fowners root:0 /var/cfengine/modules/module\:cfportage
214 }
215
216 pkg_postinst() {
217 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
218 then
219 einfo "Generating keys for localhost."
220 /usr/sbin/cfkey
221 fi
222
223 # Copy cfagent into the cfengine tree otherwise cfexecd won't
224 # find it. Most hosts cache their copy of the cfengine
225 # binaries here. This is the default search location for the
226 # binaries.
227
228 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
229
230 einfo
231 einfo "Now an init script for cfservd is provided."
232 einfo
233 einfo "To run cfengine out of cron every half hour modify your crontab:"
234 einfo "0,30 * * * * /usr/sbin/cfexecd -F"
235 einfo
236 }