1 |
flameeyes 09/01/15 15:21:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: apcupsd-3.14.5.ebuild |
5 |
Log: |
6 |
Version bump, finally closing bug #228011 (thanks to all for the patience). Also fix bug #240694 (thanks to Billy DeVincentis for the init script), #254242 (thanks to Gordon Pritchard for reporting), #243070 (thanks to Ryan Tandy for the patch). |
7 |
(Portage version: 2.2_rc22/cvs/Linux 2.6.28-gentoo x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.38 sys-power/apcupsd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/ChangeLog?rev=1.38&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/ChangeLog?rev=1.38&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/ChangeLog?r1=1.37&r2=1.38 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v |
19 |
retrieving revision 1.37 |
20 |
retrieving revision 1.38 |
21 |
diff -u -r1.37 -r1.38 |
22 |
--- ChangeLog 3 Sep 2008 07:25:44 -0000 1.37 |
23 |
+++ ChangeLog 15 Jan 2009 15:21:11 -0000 1.38 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for sys-power/apcupsd |
26 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.37 2008/09/03 07:25:44 opfer Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.38 2009/01/15 15:21:11 flameeyes Exp $ |
30 |
+ |
31 |
+*apcupsd-3.14.5 (15 Jan 2009) |
32 |
+ |
33 |
+ 15 Jan 2009; Diego E. Pettenò <flameeyes@g.o> |
34 |
+ +files/apcupsd.init.2, +apcupsd-3.14.5.ebuild: |
35 |
+ Version bump, finally closing bug #228011 (thanks to all for the |
36 |
+ patience). Also fix bug #240694 (thanks to Billy DeVincentis for the init |
37 |
+ script), #254242 (thanks to Gordon Pritchard for reporting), #243070 |
38 |
+ (thanks to Ryan Tandy for the patch). |
39 |
|
40 |
03 Sep 2008; Christian Faulhammer <opfer@g.o> |
41 |
apcupsd-3.12.3.ebuild, apcupsd-3.12.4.ebuild, apcupsd-3.14.0.ebuild, |
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-power/apcupsd/apcupsd-3.14.5.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.5.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.5.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: apcupsd-3.14.5.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2009 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.5.ebuild,v 1.1 2009/01/15 15:21:11 flameeyes Exp $ |
55 |
|
56 |
WEBAPP_MANUAL_SLOT="yes" |
57 |
WEBAPP_OPTIONAL="yes" |
58 |
inherit eutils webapp |
59 |
|
60 |
DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown" |
61 |
HOMEPAGE="http://www.apcupsd.org/" |
62 |
SRC_URI="mirror://sourceforge/apcupsd/${P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" |
67 |
IUSE="doc snmp usb cgi ncurses nls gnome" |
68 |
|
69 |
DEPEND="doc? ( virtual/latex-base dev-tex/latex2html ) |
70 |
cgi? ( >=media-libs/gd-1.8.4 |
71 |
${WEBAPP_DEPEND} ) |
72 |
ncurses? ( sys-libs/ncurses ) |
73 |
nls? ( sys-devel/gettext ) |
74 |
snmp? ( net-analyzer/net-snmp ) |
75 |
gnome? ( >=x11-libs/gtk+-2.4.0 |
76 |
>=dev-libs/glib-2.0 |
77 |
>=gnome-base/gconf-2.0 )" |
78 |
RDEPEND="${DEPEND} |
79 |
virtual/mailx" |
80 |
|
81 |
pkg_setup() { |
82 |
use cgi && webapp_pkg_setup |
83 |
} |
84 |
|
85 |
src_unpack() { |
86 |
unpack ${A} |
87 |
cd "${S}" |
88 |
epatch "${FILESDIR}"/3.14.3/etc.patch |
89 |
} |
90 |
|
91 |
src_compile() { |
92 |
local myconf |
93 |
use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=${MY_CGIBINDIR}" |
94 |
if use usb; then |
95 |
myconf="${myconf} --with-upstype=usb --with-upscable=usb --enable-usb --with-dev= " |
96 |
else |
97 |
myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart --disable-usb" |
98 |
fi |
99 |
|
100 |
# We force the DISTNAME to gentoo so it will use gentoo's layout also |
101 |
# when installed on non-linux systems. |
102 |
APCUPSD_MAIL=/bin/mail econf \ |
103 |
--sbindir=/sbin \ |
104 |
--sysconfdir=/etc/apcupsd \ |
105 |
--with-pwrfail-dir=/etc/apcupsd \ |
106 |
--with-lock-dir=/var/lock \ |
107 |
--with-pid-dir=/var/run \ |
108 |
--with-log-dir=/var/log \ |
109 |
--with-nis-port=3551 \ |
110 |
--enable-net \ |
111 |
--with-distname=gentoo \ |
112 |
$(use_enable ncurses powerflute) \ |
113 |
$(use_enable snmp net-snmp) \ |
114 |
$(use_enable gnome gapcmon) \ |
115 |
${myconf} \ |
116 |
|| die |
117 |
emake || die "emake failed" |
118 |
|
119 |
if use doc; then |
120 |
einfo "Building full documentation..." |
121 |
cd "${S}"/doc/latex |
122 |
make texcheck tex web pdf |
123 |
fi |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
use cgi && webapp_src_preinst |
128 |
|
129 |
emake DESTDIR="${D}" install || die "installed failed" |
130 |
rm -f "${D}"/etc/init.d/halt |
131 |
|
132 |
insinto /etc/apcupsd |
133 |
newins examples/safe.apccontrol safe.apccontrol |
134 |
|
135 |
dodoc ChangeLog* ReleaseNotes |
136 |
mv doc/apctest.man doc/apctest.8; doman doc/apctest.8 |
137 |
|
138 |
if use doc; then |
139 |
einfo "Installing full documentation..." |
140 |
newdoc doc/latex/apcupsd.pdf manual.pdf |
141 |
dohtml -r doc/latex/apcupsd/* |
142 |
fi |
143 |
|
144 |
if use cgi; then |
145 |
mv "${D}"/etc/apcupsd/apcupsd.css "${D}""${MY_CGIBINDIR}" |
146 |
webapp_src_install |
147 |
fi |
148 |
|
149 |
rm "${D}"/etc/init.d/apcupsd |
150 |
newinitd "${FILESDIR}/${PN}.init.2" "${PN}" |
151 |
} |
152 |
|
153 |
pkg_postinst() { |
154 |
if use cgi; then |
155 |
elog "If you are upgrading from a previous version, please note" |
156 |
elog "that the CGI interface is now installed using webapp-config." |
157 |
elog "/var/www/apcupsd is no longer present." |
158 |
webapp_pkg_postinst |
159 |
fi |
160 |
|
161 |
elog "" |
162 |
elog "Since version 3.14.0 you can use multiple apcupsd instances to" |
163 |
elog "control more than one UPS in a single box." |
164 |
elog "To do this, create a link between /etc/init.d/apcupsd to a new" |
165 |
elog "/etc/init.d/apcupsd.something, and it will then load the" |
166 |
elog "configuration file at /etc/apcupsd/something.conf." |
167 |
elog "" |
168 |
} |
169 |
|
170 |
pkg_prerm() { |
171 |
use cgi && webapp_pkg_prerm |
172 |
} |