Gentoo Archives: gentoo-commits

From: "Michael Imhof (tantive)" <tantive@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/apcupsd: apcupsd-3.14.0.ebuild ChangeLog apcupsd-3.14.1.ebuild apcupsd-3.14.2.ebuild apcupsd-3.14.3.ebuild
Date: Thu, 08 May 2008 19:37:34
Message-Id: E1JuBvn-00047H-0D@stork.gentoo.org
1 tantive 08/05/08 19:37:31
2
3 Modified: apcupsd-3.14.0.ebuild ChangeLog
4 apcupsd-3.14.1.ebuild apcupsd-3.14.2.ebuild
5 Added: apcupsd-3.14.3.ebuild
6 Log:
7 Version bumped. Closes #208188. Added -j1 to emake, should fix #176339.
8 (Portage version: 2.1.5_rc7)
9
10 Revision Changes Path
11 1.4 sys-power/apcupsd/apcupsd-3.14.0.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.0.ebuild?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.0.ebuild?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.0.ebuild?r1=1.3&r2=1.4
16
17 Index: apcupsd-3.14.0.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.0.ebuild,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- apcupsd-3.14.0.ebuild 3 May 2007 16:10:17 -0000 1.3
24 +++ apcupsd-3.14.0.ebuild 8 May 2008 19:37:30 -0000 1.4
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2007 Gentoo Foundation
27 +# Copyright 1999-2008 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.0.ebuild,v 1.3 2007/05/03 16:10:17 je_fro Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.0.ebuild,v 1.4 2008/05/08 19:37:30 tantive Exp $
31
32 WEBAPP_MANUAL_SLOT="yes"
33 inherit eutils webapp
34 @@ -34,7 +34,6 @@
35 epatch "${FILESDIR}"/${PV}/apcupsd.in.patch
36 epatch "${FILESDIR}"/${PV}/etc.patch
37 epatch "${FILESDIR}"/${PV}/no-parallel.patch
38 -
39 epatch "${FILESDIR}"/${PV}/${P}-apccontrol-gentoo.patch
40 }
41
42 @@ -64,11 +63,11 @@
43 $(use_enable gnome gapcmon) \
44 ${myconf} \
45 || die
46 - emake || die "emake failed"
47 + emake -j1 || die "emake failed"
48
49 if use doc; then
50 einfo "Building full documentation..."
51 - cd ${S}/doc/latex
52 + cd "${S}"/doc/latex
53 make texcheck tex web pdf
54 fi
55 }
56 @@ -92,7 +91,7 @@
57 fi
58
59 if use cgi; then
60 - mv ${D}/etc/apcupsd/apcupsd.css ${D}${MY_CGIBINDIR}
61 + mv "${D}"/etc/apcupsd/apcupsd.css "${D}""${MY_CGIBINDIR}"
62 webapp_src_install
63 fi
64
65
66
67
68 1.35 sys-power/apcupsd/ChangeLog
69
70 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/ChangeLog?rev=1.35&view=markup
71 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/ChangeLog?rev=1.35&content-type=text/plain
72 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/ChangeLog?r1=1.34&r2=1.35
73
74 Index: ChangeLog
75 ===================================================================
76 RCS file: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v
77 retrieving revision 1.34
78 retrieving revision 1.35
79 diff -u -r1.34 -r1.35
80 --- ChangeLog 31 Jan 2008 20:32:56 -0000 1.34
81 +++ ChangeLog 8 May 2008 19:37:30 -0000 1.35
82 @@ -1,6 +1,15 @@
83 # ChangeLog for sys-power/apcupsd
84 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
85 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.34 2008/01/31 20:32:56 hollow Exp $
86 +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.35 2008/05/08 19:37:30 tantive Exp $
87 +
88 +*apcupsd-3.14.3 (08 May 2008)
89 +
90 + 08 May 2008; Michael Imhof <tantive@g.o>
91 + +files/3.14.3/apcupsd.in.patch, +files/3.14.3/etc.patch,
92 + +files/3.14.3/apcupsd.initd, +files/3.14.3/hal-ups-policy.patch,
93 + +files/3.14.3/no-parallel.patch, apcupsd-3.14.0.ebuild,
94 + apcupsd-3.14.1.ebuild, apcupsd-3.14.2.ebuild, +apcupsd-3.14.3.ebuild:
95 + Version bumped. Closes #208188. Added -j1 to emake, should fix #176339.
96
97 31 Jan 2008; Benedikt Böhm <hollow@g.o> apcupsd-3.10.17-r1.ebuild,
98 apcupsd-3.10.18-r1.ebuild, apcupsd-3.10.18-r2.ebuild,
99
100
101
102 1.2 sys-power/apcupsd/apcupsd-3.14.1.ebuild
103
104 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.1.ebuild?rev=1.2&view=markup
105 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.1.ebuild?rev=1.2&content-type=text/plain
106 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.1.ebuild?r1=1.1&r2=1.2
107
108 Index: apcupsd-3.14.1.ebuild
109 ===================================================================
110 RCS file: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.1.ebuild,v
111 retrieving revision 1.1
112 retrieving revision 1.2
113 diff -u -r1.1 -r1.2
114 --- apcupsd-3.14.1.ebuild 1 Jul 2007 20:58:00 -0000 1.1
115 +++ apcupsd-3.14.1.ebuild 8 May 2008 19:37:30 -0000 1.2
116 @@ -1,6 +1,6 @@
117 -# Copyright 1999-2007 Gentoo Foundation
118 +# Copyright 1999-2008 Gentoo Foundation
119 # Distributed under the terms of the GNU General Public License v2
120 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.1.ebuild,v 1.1 2007/07/01 20:58:00 tantive Exp $
121 +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.1.ebuild,v 1.2 2008/05/08 19:37:30 tantive Exp $
122
123 WEBAPP_MANUAL_SLOT="yes"
124 inherit eutils webapp
125 @@ -34,7 +34,6 @@
126 epatch "${FILESDIR}"/${PV}/apcupsd.in.patch
127 epatch "${FILESDIR}"/${PV}/etc.patch
128 epatch "${FILESDIR}"/${PV}/no-parallel.patch
129 -
130 epatch "${FILESDIR}"/${PV}/${P}-apccontrol-gentoo.patch
131 }
132
133 @@ -64,11 +63,11 @@
134 $(use_enable gnome gapcmon) \
135 ${myconf} \
136 || die
137 - emake || die "emake failed"
138 + emake -j1 || die "emake failed"
139
140 if use doc; then
141 einfo "Building full documentation..."
142 - cd ${S}/doc/latex
143 + cd "${S}"/doc/latex
144 make texcheck tex web pdf
145 fi
146 }
147 @@ -92,7 +91,7 @@
148 fi
149
150 if use cgi; then
151 - mv ${D}/etc/apcupsd/apcupsd.css ${D}${MY_CGIBINDIR}
152 + mv "${D}"/etc/apcupsd/apcupsd.css "${D}""${MY_CGIBINDIR}"
153 webapp_src_install
154 fi
155
156
157
158
159 1.2 sys-power/apcupsd/apcupsd-3.14.2.ebuild
160
161 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.2.ebuild?rev=1.2&view=markup
162 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.2.ebuild?rev=1.2&content-type=text/plain
163 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.2.ebuild?r1=1.1&r2=1.2
164
165 Index: apcupsd-3.14.2.ebuild
166 ===================================================================
167 RCS file: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.2.ebuild,v
168 retrieving revision 1.1
169 retrieving revision 1.2
170 diff -u -r1.1 -r1.2
171 --- apcupsd-3.14.2.ebuild 26 Nov 2007 08:17:37 -0000 1.1
172 +++ apcupsd-3.14.2.ebuild 8 May 2008 19:37:30 -0000 1.2
173 @@ -1,6 +1,6 @@
174 -# Copyright 1999-2007 Gentoo Foundation
175 +# Copyright 1999-2008 Gentoo Foundation
176 # Distributed under the terms of the GNU General Public License v2
177 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.2.ebuild,v 1.1 2007/11/26 08:17:37 tantive Exp $
178 +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.2.ebuild,v 1.2 2008/05/08 19:37:30 tantive Exp $
179
180 WEBAPP_MANUAL_SLOT="yes"
181 inherit eutils webapp
182 @@ -61,11 +61,11 @@
183 $(use_enable gnome gapcmon) \
184 ${myconf} \
185 || die
186 - emake || die "emake failed"
187 + emake -j1 || die "emake failed"
188
189 if use doc; then
190 einfo "Building full documentation..."
191 - cd ${S}/doc/latex
192 + cd "${S}"/doc/latex
193 make texcheck tex web pdf
194 fi
195 }
196 @@ -89,7 +89,7 @@
197 fi
198
199 if use cgi; then
200 - mv ${D}/etc/apcupsd/apcupsd.css ${D}${MY_CGIBINDIR}
201 + mv "${D}"/etc/apcupsd/apcupsd.css "${D}""${MY_CGIBINDIR}"
202 webapp_src_install
203 fi
204
205
206
207
208 1.1 sys-power/apcupsd/apcupsd-3.14.3.ebuild
209
210 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.3.ebuild?rev=1.1&view=markup
211 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.3.ebuild?rev=1.1&content-type=text/plain
212
213 Index: apcupsd-3.14.3.ebuild
214 ===================================================================
215 # Copyright 1999-2008 Gentoo Foundation
216 # Distributed under the terms of the GNU General Public License v2
217 # $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.3.ebuild,v 1.1 2008/05/08 19:37:30 tantive Exp $
218
219 WEBAPP_MANUAL_SLOT="yes"
220 inherit eutils webapp
221
222 DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown"
223 HOMEPAGE="http://www.apcupsd.org/"
224 SRC_URI="mirror://sourceforge/apcupsd/${P}.tar.gz"
225
226 LICENSE="GPL-2"
227 SLOT="0"
228 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
229 IUSE="doc snmp usb cgi ncurses nls gnome"
230
231 DEPEND="doc? ( virtual/tetex dev-tex/latex2html )
232 cgi? ( >=media-libs/gd-1.8.4 )
233 ncurses? ( sys-libs/ncurses )
234 nls? ( sys-devel/gettext )
235 snmp? ( net-analyzer/net-snmp )
236 gnome? ( >=x11-libs/gtk+-2.4.0
237 >=dev-libs/glib-2.0
238 >=gnome-base/gconf-2.0 )"
239 RDEPEND="${DEPEND}
240 virtual/mta"
241
242 pkg_setup() {
243 use cgi && webapp_pkg_setup
244 }
245
246 src_unpack() {
247 unpack ${A}
248 cd "${S}"
249 epatch "${FILESDIR}"/${PV}/apcupsd.in.patch
250 epatch "${FILESDIR}"/${PV}/etc.patch
251 epatch "${FILESDIR}"/${PV}/hal-ups-policy.patch
252 }
253
254 src_compile() {
255 local myconf
256 use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=${MY_CGIBINDIR}"
257 use usb && myconf="${myconf} --with-upstype=usb --with-upscable=usb --enable-usb --without-dev"
258 use !usb && myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart --disable-usb"
259
260 # We force the DISTNAME to gentoo so it will use gentoo's layout also
261 # when installed on non-linux systems.
262 DISTNAME=gentoo APCUPSD_MAIL=/usr/sbin/sendmail ./configure \
263 --prefix=/usr \
264 --sbindir=/sbin \
265 --mandir=/usr/share/man \
266 --sysconfdir=/etc/apcupsd \
267 --with-pwrfail-dir=/etc/apcupsd \
268 --with-lock-dir=/var/lock \
269 --with-pid-dir=/var/run \
270 --with-log-dir=/var/log \
271 --with-nis-port=3551 \
272 --enable-net \
273 $(use_enable ncurses powerflute) \
274 $(use_enable snmp net-snmp) \
275 $(use_enable nls) \
276 $(use_enable gnome gapcmon) \
277 ${myconf} \
278 || die
279 emake -j1 || die "emake failed"
280
281 if use doc; then
282 einfo "Building full documentation..."
283 cd "${S}"/doc/latex
284 make texcheck tex web pdf
285 fi
286 }
287
288 src_install() {
289 use cgi && webapp_src_preinst
290
291 emake DESTDIR="${D}" install || die "installed failed"
292 rm -f "${D}"/etc/init.d/halt
293
294 insinto /etc/apcupsd
295 newins examples/safe.apccontrol safe.apccontrol
296
297 dodoc ChangeLog* ReleaseNotes
298 mv doc/apctest.man doc/apctest.8; doman doc/apctest.8
299
300 if use doc; then
301 einfo "Installing full documentation..."
302 newdoc doc/latex/apcupsd.pdf manual.pdf
303 dohtml -r doc/latex/apcupsd/*
304 fi
305
306 if use cgi; then
307 mv "${D}"/etc/apcupsd/apcupsd.css "${D}""${MY_CGIBINDIR}"
308 webapp_src_install
309 fi
310
311 rm "${D}"/etc/init.d/apcupsd
312 newinitd "${FILESDIR}/${PV}/${PN}.initd" "${PN}"
313 }
314
315 pkg_postinst() {
316 if use cgi; then
317 elog If you are upgrading from a previous version, please note
318 elog that the CGI interface is now installed using webapp-config.
319 elog /var/www/apcupsd is no longer present.
320 webapp_pkg_postinst
321 fi
322
323 elog ""
324 elog "Since version 3.14.0 you can use multiple apcupsd instances to"
325 elog "control more than one UPS in a single box."
326 elog "To do this, create a link between /etc/init.d/apcupsd to a new"
327 elog "/etc/init.d/apcupsd.something, and it will then load the"
328 elog "configuration file at /etc/apcupsd/something.conf."
329 elog ""
330 }
331
332 pkg_prerm() {
333 use cgi && webapp_pkg_prerm
334 }
335
336
337
338 --
339 gentoo-commits@l.g.o mailing list