1 |
commit: fbfd8bf94131ac2794c5b27c1ff7fdaf3bbef6f3 |
2 |
Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 28 21:10:40 2016 +0000 |
4 |
Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 28 21:11:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbfd8bf9 |
7 |
|
8 |
sys-power/apcupsd: Cleanup old |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
|
12 |
sys-power/apcupsd/Manifest | 2 - |
13 |
sys-power/apcupsd/apcupsd-3.14.12-r1.ebuild | 139 ---------------------------- |
14 |
sys-power/apcupsd/apcupsd-3.14.8-r2.ebuild | 134 --------------------------- |
15 |
3 files changed, 275 deletions(-) |
16 |
|
17 |
diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest |
18 |
index 2173d81..96aa1ee 100644 |
19 |
--- a/sys-power/apcupsd/Manifest |
20 |
+++ b/sys-power/apcupsd/Manifest |
21 |
@@ -1,4 +1,2 @@ |
22 |
-DIST apcupsd-3.14.12.tar.gz 2014699 SHA256 1b4f703cb19cfdf44daf173dc8394cafd30fee0b30a0c75a7d19db622454a440 SHA512 2ed409ce4c7c7af667cecf0c73c47315d7516c696383c811945ead720afc146fe2ceda0efef722c3208a1b41a7d4661c9544bc4fe37a36ca4779a5dc1621f3d4 WHIRLPOOL 13a2491e4ad5446ba91a075f7408e48e94a35885288c9ee6108891d89412be5c81f69f4ab5064f86b8bece8c0de44357e4c378d05aad5d9d27bd85f0d95a83d5 |
23 |
DIST apcupsd-3.14.13.tar.gz 1935043 SHA256 57ecbde01d0448bf8c4dbfe0ad016724ae66ab98adf2de955bf2be553c5d03f9 SHA512 74f7763de268626e24f9dd99090b01d5bff35c2fde769039104105ec27941673d1613c41fcac11e3d97d2fe5c364bcc0459847fcba5d2f7f1aac85795d6d8570 WHIRLPOOL 4b6fb18848aa597bae1066a7f195747f9edfdee75a27e43e3d14e3153d4b434829c5863b7e92c0704ea652583b8c5885fd01fe7280abe93bf1c6cfc370434f73 |
24 |
DIST apcupsd-3.14.14.tar.gz 1843409 SHA256 db7748559b6b4c3784f9856561ef6ac6199ef7bd019b3edcd7e0a647bf8f9867 SHA512 c953bbf3e08f809748a7978a3952604176390d1cd276f187fe096d9bc3c8993b52127e8350c0363387da41318e24b4d1e00ea58df71f3bb8f50c9a5a64cd2d7f WHIRLPOOL 9b50390558b3a6192a631ff3dce398d947fb19123969604d2a89ff69a2373beff6a62c314ce351caeb9d9b736fcb8d622a75899166a3710c4c557c5a841c5adc |
25 |
-DIST apcupsd-3.14.8.tar.gz 1317601 SHA256 8e7f2574d3abaf6637da3e790860c3f9ba64fab1ec7e50bb080de4439441c5a7 SHA512 07e6a15538bf1824b5063a1a93f33231639cf962e658c0dada1b244f2554af81824825d807ea81fd0388e25ed8fac0957621bfded96e3faeb7b594548fc4d418 WHIRLPOOL e5a580afc4955a373f020cb6e4ccbf07f9f020d4c15eaae59b416499c25a00b9d4bbc6af012bd2529024e8a3668a1d7c47f19f1bcb99f5ba60dc0108fa13c4f2 |
26 |
|
27 |
diff --git a/sys-power/apcupsd/apcupsd-3.14.12-r1.ebuild b/sys-power/apcupsd/apcupsd-3.14.12-r1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 75d43a7..00000000 |
30 |
--- a/sys-power/apcupsd/apcupsd-3.14.12-r1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,139 +0,0 @@ |
33 |
-# Copyright 1999-2014 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI=4 |
38 |
- |
39 |
-inherit eutils linux-info flag-o-matic systemd udev |
40 |
- |
41 |
-DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown" |
42 |
-HOMEPAGE="http://www.apcupsd.org/" |
43 |
-SRC_URI="mirror://sourceforge/apcupsd/${P}.tar.gz" |
44 |
- |
45 |
-LICENSE="GPL-2" |
46 |
-SLOT="0" |
47 |
-KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd" |
48 |
-IUSE="snmp +usb cgi nls gnome kernel_linux" |
49 |
- |
50 |
-DEPEND=" |
51 |
- || ( >=sys-apps/util-linux-2.23[tty-helpers(-)] |
52 |
- <=sys-apps/sysvinit-2.88-r4 |
53 |
- sys-freebsd/freebsd-ubin |
54 |
- ) |
55 |
- cgi? ( >=media-libs/gd-1.8.4 ) |
56 |
- nls? ( sys-devel/gettext ) |
57 |
- snmp? ( >=net-analyzer/net-snmp-5.7.2 ) |
58 |
- gnome? ( >=x11-libs/gtk+-2.4.0:2 |
59 |
- dev-libs/glib:2 |
60 |
- >=gnome-base/gconf-2.0 )" |
61 |
-RDEPEND="${DEPEND} |
62 |
- sys-apps/openrc |
63 |
- virtual/mailx" |
64 |
- |
65 |
-CONFIG_CHECK="~USB_HIDDEV ~HIDRAW" |
66 |
-ERROR_USB_HIDDEV="CONFIG_USB_HIDDEV: needed to access USB-attached UPSes" |
67 |
-ERROR_HIDRAW="CONFIG_HIDRAW: needed to access USB-attached UPSes" |
68 |
- |
69 |
-pkg_setup() { |
70 |
- if use kernel_linux && use usb && linux_config_exists; then |
71 |
- check_extra_config |
72 |
- fi |
73 |
-} |
74 |
- |
75 |
-src_prepare() { |
76 |
- epatch "${FILESDIR}/${PN}-3.14.9-aliasing.patch" |
77 |
-} |
78 |
- |
79 |
-src_configure() { |
80 |
- local myconf |
81 |
- use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=/usr/libexec/${PN}/cgi-bin" |
82 |
- if use usb; then |
83 |
- myconf="${myconf} --with-upstype=usb --with-upscable=usb --enable-usb --with-dev= " |
84 |
- else |
85 |
- myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart --disable-usb" |
86 |
- fi |
87 |
- |
88 |
- # We force the DISTNAME to gentoo so it will use gentoo's layout also |
89 |
- # when installed on non-linux systems. |
90 |
- econf \ |
91 |
- --sbindir=/sbin \ |
92 |
- --sysconfdir=/etc/apcupsd \ |
93 |
- --with-pwrfail-dir=/etc/apcupsd \ |
94 |
- --with-lock-dir=/run/apcupsd \ |
95 |
- --with-pid-dir=/run/apcupsd \ |
96 |
- --with-log-dir=/var/log \ |
97 |
- --with-nis-port=3551 \ |
98 |
- --enable-net --enable-pcnet \ |
99 |
- --with-distname=gentoo \ |
100 |
- $(use_enable snmp net-snmp) \ |
101 |
- $(use_enable gnome gapcmon) \ |
102 |
- ${myconf} \ |
103 |
- APCUPSD_MAIL=/bin/mail |
104 |
-} |
105 |
- |
106 |
-src_compile() { |
107 |
- # Workaround for bug #280674; upstream should really just provide |
108 |
- # the text files in the distribution, but I wouldn't count on them |
109 |
- # doing that anytime soon. |
110 |
- MANPAGER=$(type -p cat) \ |
111 |
- emake || die "emake failed" |
112 |
-} |
113 |
- |
114 |
-src_install() { |
115 |
- emake DESTDIR="${D}" install || die "installed failed" |
116 |
- rm -f "${D}"/etc/init.d/halt |
117 |
- |
118 |
- insinto /etc/apcupsd |
119 |
- newins examples/safe.apccontrol safe.apccontrol |
120 |
- doins "${FILESDIR}"/apcupsd.conf |
121 |
- |
122 |
- dodoc ChangeLog* ReleaseNotes |
123 |
- doman doc/*.8 doc/*.5 |
124 |
- |
125 |
- dohtml -r doc/manual/* |
126 |
- |
127 |
- rm "${D}"/etc/init.d/apcupsd |
128 |
- newinitd "${FILESDIR}/${PN}.init.4" "${PN}" |
129 |
- newinitd "${FILESDIR}/${PN}.powerfail.init" "${PN}".powerfail |
130 |
- |
131 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
132 |
- systemd_dotmpfilesd "${FILESDIR}"/${PN}-tmpfiles.conf |
133 |
- |
134 |
- # remove hal settings, we don't really want to have it around still. |
135 |
- rm -r "${D}"/usr/share/hal |
136 |
- |
137 |
- # replace it with our udev rules if we're in Linux |
138 |
- if use kernel_linux; then |
139 |
- udev_newrules "${FILESDIR}"/apcupsd-udev.rules 60-${PN}.rules |
140 |
- fi |
141 |
- |
142 |
-} |
143 |
- |
144 |
-pkg_postinst() { |
145 |
- if use cgi; then |
146 |
- elog "The cgi-bin directory for ${PN} is /usr/libexec/${PN}/cgi-bin." |
147 |
- elog "Set up your ScriptAlias or symbolic links accordingly." |
148 |
- fi |
149 |
- |
150 |
- elog "" |
151 |
- elog "Since version 3.14.0 you can use multiple apcupsd instances to" |
152 |
- elog "control more than one UPS in a single box with openRC." |
153 |
- elog "To do this, create a link between /etc/init.d/apcupsd to a new" |
154 |
- elog "/etc/init.d/apcupsd.something, and it will then load the" |
155 |
- elog "configuration file at /etc/apcupsd/something.conf." |
156 |
- elog "" |
157 |
- |
158 |
- elog 'If you want apcupsd to power off your UPS when it' |
159 |
- elog 'shuts down your system in a power failure, you must' |
160 |
- elog 'add apcupsd.powerfail to your shutdown runlevel:' |
161 |
- elog '' |
162 |
- elog ' \e[01m rc-update add apcupsd.powerfail shutdown \e[0m' |
163 |
- elog '' |
164 |
- |
165 |
- if use kernel_linux; then |
166 |
- elog "Starting from version 3.14.9-r1, ${PN} installs udev rules" |
167 |
- elog "for persistent device naming. If you have multiple UPS" |
168 |
- elog "connected to the machine, you can point them to the devices" |
169 |
- elog "in /dev/apcups/by-id directory." |
170 |
- fi |
171 |
-} |
172 |
|
173 |
diff --git a/sys-power/apcupsd/apcupsd-3.14.8-r2.ebuild b/sys-power/apcupsd/apcupsd-3.14.8-r2.ebuild |
174 |
deleted file mode 100644 |
175 |
index d1744af..00000000 |
176 |
--- a/sys-power/apcupsd/apcupsd-3.14.8-r2.ebuild |
177 |
+++ /dev/null |
178 |
@@ -1,134 +0,0 @@ |
179 |
-# Copyright 1999-2014 Gentoo Foundation |
180 |
-# Distributed under the terms of the GNU General Public License v2 |
181 |
-# $Id$ |
182 |
- |
183 |
-EAPI=3 |
184 |
- |
185 |
-inherit eutils linux-info flag-o-matic systemd |
186 |
- |
187 |
-DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown" |
188 |
-HOMEPAGE="http://www.apcupsd.org/" |
189 |
-SRC_URI="mirror://sourceforge/apcupsd/${P}.tar.gz" |
190 |
- |
191 |
-LICENSE="GPL-2" |
192 |
-SLOT="0" |
193 |
-KEYWORDS="amd64 ppc x86 ~x86-fbsd" |
194 |
-IUSE="snmp +usb cgi nls gnome kernel_linux" |
195 |
- |
196 |
-DEPEND=" |
197 |
- || ( >=sys-apps/util-linux-2.23[tty-helpers] |
198 |
- <=sys-apps/sysvinit-2.88-r4 |
199 |
- sys-freebsd/freebsd-ubin |
200 |
- ) |
201 |
- cgi? ( >=media-libs/gd-1.8.4 ) |
202 |
- nls? ( sys-devel/gettext ) |
203 |
- snmp? ( net-analyzer/net-snmp ) |
204 |
- gnome? ( >=x11-libs/gtk+-2.4.0:2 |
205 |
- dev-libs/glib:2 |
206 |
- >=gnome-base/gconf-2.0 )" |
207 |
-RDEPEND="${DEPEND} |
208 |
- virtual/mailx" |
209 |
- |
210 |
-CONFIG_CHECK="~USB_HIDDEV ~HIDRAW" |
211 |
-ERROR_USB_HIDDEV="CONFIG_USB_HIDDEV: needed to access USB-attached UPSes" |
212 |
-ERROR_HIDRAW="CONFIG_HIDRAW: needed to access USB-attached UPSes" |
213 |
- |
214 |
-pkg_setup() { |
215 |
- if use kernel_linux && use usb && linux_config_exists; then |
216 |
- check_extra_config |
217 |
- fi |
218 |
-} |
219 |
- |
220 |
-src_configure() { |
221 |
- local myconf |
222 |
- use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=/usr/libexec/${PN}/cgi-bin" |
223 |
- if use usb; then |
224 |
- myconf="${myconf} --with-upstype=usb --with-upscable=usb --enable-usb --with-dev= " |
225 |
- else |
226 |
- myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart --disable-usb" |
227 |
- fi |
228 |
- |
229 |
- append-flags -fno-strict-aliasing |
230 |
- |
231 |
- # We force the DISTNAME to gentoo so it will use gentoo's layout also |
232 |
- # when installed on non-linux systems. |
233 |
- econf \ |
234 |
- --sbindir=/sbin \ |
235 |
- --sysconfdir=/etc/apcupsd \ |
236 |
- --with-pwrfail-dir=/etc/apcupsd \ |
237 |
- --with-lock-dir=/var/lock \ |
238 |
- --with-pid-dir=/var/run \ |
239 |
- --with-log-dir=/var/log \ |
240 |
- --with-nis-port=3551 \ |
241 |
- --enable-net --enable-pcnet \ |
242 |
- --with-distname=gentoo \ |
243 |
- $(use_enable snmp net-snmp) \ |
244 |
- $(use_enable gnome gapcmon) \ |
245 |
- ${myconf} \ |
246 |
- APCUPSD_MAIL=/bin/mail \ |
247 |
- || die "econf failed" |
248 |
-} |
249 |
- |
250 |
-src_compile() { |
251 |
- # Workaround for bug #280674; upstream should really just provide |
252 |
- # the text files in the distribution, but I wouldn't count on them |
253 |
- # doing that anytime soon. |
254 |
- MANPAGER=$(type -p cat) \ |
255 |
- emake || die "emake failed" |
256 |
-} |
257 |
- |
258 |
-src_install() { |
259 |
- emake DESTDIR="${D}" install || die "installed failed" |
260 |
- rm -f "${D}"/etc/init.d/halt |
261 |
- |
262 |
- insinto /etc/apcupsd |
263 |
- newins examples/safe.apccontrol safe.apccontrol |
264 |
- |
265 |
- dodoc ChangeLog* ReleaseNotes |
266 |
- doman doc/*.8 doc/*.5 || die "doman failed" |
267 |
- |
268 |
- dohtml -r doc/manual/* || die "dodoc failed" |
269 |
- |
270 |
- rm "${D}"/etc/init.d/apcupsd |
271 |
- newinitd "${FILESDIR}/${PN}.init.2a" "${PN}" || die "newinitd failed" |
272 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
273 |
- systemd_dotmpfilesd "${FILESDIR}"/${PN}-tmpfiles.conf |
274 |
- |
275 |
- if has_version sys-apps/openrc; then |
276 |
- newinitd "${FILESDIR}/${PN}.powerfail.init" "${PN}".powerfail || die "newinitd failed" |
277 |
- fi |
278 |
- |
279 |
- # remove hal settings, we don't really want to have it around still. |
280 |
- rm -r "${D}"/usr/share/hal |
281 |
- |
282 |
- # Without this it'll crash at startup. When merging in ROOT= this |
283 |
- # won't be created by default, so we want to make sure we got it! |
284 |
- keepdir /var/lock |
285 |
- fowners root:uucp /var/lock |
286 |
- fperms 0775 /var/lock |
287 |
-} |
288 |
- |
289 |
-pkg_postinst() { |
290 |
- if use cgi; then |
291 |
- elog "The cgi-bin directory for ${PN} is /usr/libexec/${PN}/cgi-bin." |
292 |
- elog "Set up your ScriptAlias or symbolic links accordingly." |
293 |
- fi |
294 |
- |
295 |
- elog "" |
296 |
- elog "Since version 3.14.0 you can use multiple apcupsd instances to" |
297 |
- elog "control more than one UPS in a single box." |
298 |
- elog "To do this, create a link between /etc/init.d/apcupsd to a new" |
299 |
- elog "/etc/init.d/apcupsd.something, and it will then load the" |
300 |
- elog "configuration file at /etc/apcupsd/something.conf." |
301 |
- elog "" |
302 |
- |
303 |
- if [ -d "${ROOT}"/etc/runlevels/shutdown -a \ |
304 |
- ! -e "${ROOT}"/etc/runlevels/shutdown/"${PN}".powerfail ] ; then |
305 |
- elog 'If you want apcupsd to power off your UPS when it' |
306 |
- elog 'shuts down your system in a power failure, you must' |
307 |
- elog 'add apcupsd.powerfail to your shutdown runlevel:' |
308 |
- elog '' |
309 |
- elog ' \e[01m rc-update add apcupsd.powerfail shutdown \e[0m' |
310 |
- elog '' |
311 |
- fi |
312 |
-} |