summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2007-05-02 21:12:23 +0000
committerMichael Imhof <tantive@gentoo.org>2007-05-02 21:12:23 +0000
commit10b02d269e3933c3d8c12e7001f9c5233f907b2f (patch)
tree2131871016a346b9490751cb998ec2783e44f652 /sys-power
parentUpdated locales, compatibility, and ssl plugins. (diff)
downloadhistorical-10b02d269e3933c3d8c12e7001f9c5233f907b2f.tar.gz
historical-10b02d269e3933c3d8c12e7001f9c5233f907b2f.tar.bz2
historical-10b02d269e3933c3d8c12e7001f9c5233f907b2f.zip
Version bumped. Closing #167469.
Package-Manager: portage-2.1.2.5
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/apcupsd/ChangeLog5
-rw-r--r--sys-power/apcupsd/Manifest36
-rw-r--r--sys-power/apcupsd/apcupsd-3.14.0.ebuild122
-rw-r--r--sys-power/apcupsd/files/3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch30
-rw-r--r--sys-power/apcupsd/files/3.14.0/apcupsd.in.patch15
-rw-r--r--sys-power/apcupsd/files/3.14.0/apcupsd.initd35
-rw-r--r--sys-power/apcupsd/files/3.14.0/etc.patch61
-rw-r--r--sys-power/apcupsd/files/3.14.0/no-parallel.patch13
-rw-r--r--sys-power/apcupsd/files/digest-apcupsd-3.14.03
9 files changed, 315 insertions, 5 deletions
diff --git a/sys-power/apcupsd/ChangeLog b/sys-power/apcupsd/ChangeLog
index 09c77c179630..bb3e43a57703 100644
--- a/sys-power/apcupsd/ChangeLog
+++ b/sys-power/apcupsd/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-power/apcupsd
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.26 2007/03/23 19:56:58 je_fro Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.27 2007/05/02 21:12:23 tantive Exp $
+
+ 02 May 2007; Michael Imhof <tantive@gentoo.org> ChangeLog:
+ Version bumped. Closing #167469.
23 Mar 2007; Jeff Gardner <je_fro@gentoo.org>
+files/3.12.4/apcupsd-snmp.patch, apcupsd-3.12.4.ebuild:
diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest
index 560faba53c70..91789ad8265a 100644
--- a/sys-power/apcupsd/Manifest
+++ b/sys-power/apcupsd/Manifest
@@ -98,6 +98,26 @@ AUX 3.12.4/no-strip.patch 2181 RMD160 aa2d852fa223e2c5b18426a5334a1e3ee05b9cdc S
MD5 c5bc045a431ba29cf985dd90d9555d27 files/3.12.4/no-strip.patch 2181
RMD160 aa2d852fa223e2c5b18426a5334a1e3ee05b9cdc files/3.12.4/no-strip.patch 2181
SHA256 d45668c87581c1f5dd3a235578b291af157678480536d501c7f60b1cdfb0edab files/3.12.4/no-strip.patch 2181
+AUX 3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch 803 RMD160 cc3b3fa0b5072c55de38d9e3a13a63e862185916 SHA1 3b9f0e60a09e1a90e76bed4435b5c2a7f67a3926 SHA256 a6e6fb547ccf0feb9346ff87424137500fc54fedba0e2196bf9ae75694ebfa15
+MD5 760a87e608eed2a3bad0feca99cdefea files/3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch 803
+RMD160 cc3b3fa0b5072c55de38d9e3a13a63e862185916 files/3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch 803
+SHA256 a6e6fb547ccf0feb9346ff87424137500fc54fedba0e2196bf9ae75694ebfa15 files/3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch 803
+AUX 3.14.0/apcupsd.in.patch 273 RMD160 46efa88a7716a0e26f905528335e8d4994a9b704 SHA1 8e976c8f3316b8b7a056a9a5a3a432be66131854 SHA256 c07f3085f5b39d319f220898b84a8ffe27c872cb6d70d90bd7211af11c3b2c08
+MD5 b16ab90b6b83806a03c27aef26c4d0f0 files/3.14.0/apcupsd.in.patch 273
+RMD160 46efa88a7716a0e26f905528335e8d4994a9b704 files/3.14.0/apcupsd.in.patch 273
+SHA256 c07f3085f5b39d319f220898b84a8ffe27c872cb6d70d90bd7211af11c3b2c08 files/3.14.0/apcupsd.in.patch 273
+AUX 3.14.0/apcupsd.initd 804 RMD160 5c4f9914a0a347337826ce1c489de4b5e107257e SHA1 e01fcfcaa8bba3c39887cbaa94f67d7bde4a0170 SHA256 f9b925bfc2d30507e2685391e4a9d701adc6c83ae029aadc8a705bfde6d6cc0b
+MD5 84a274e9a51552d401cc1b356e2cb6df files/3.14.0/apcupsd.initd 804
+RMD160 5c4f9914a0a347337826ce1c489de4b5e107257e files/3.14.0/apcupsd.initd 804
+SHA256 f9b925bfc2d30507e2685391e4a9d701adc6c83ae029aadc8a705bfde6d6cc0b files/3.14.0/apcupsd.initd 804
+AUX 3.14.0/etc.patch 1476 RMD160 0e93c67b37637fb6913d771c3c10cf49a85478ad SHA1 4a1dc295661edc8f8283c20bf689012d6419d917 SHA256 cf6372fe37625f5418fcca42b41d6c3b9424ad1a8b66c8ad5ca64fc39731c295
+MD5 66f236828b3cb6b36bcd64d4dda1fe23 files/3.14.0/etc.patch 1476
+RMD160 0e93c67b37637fb6913d771c3c10cf49a85478ad files/3.14.0/etc.patch 1476
+SHA256 cf6372fe37625f5418fcca42b41d6c3b9424ad1a8b66c8ad5ca64fc39731c295 files/3.14.0/etc.patch 1476
+AUX 3.14.0/no-parallel.patch 339 RMD160 c6e50aa5b22438e02e17df4fda41c7cae371217f SHA1 4d20db0882272b9c472b1ea994d115310bcab6d3 SHA256 3bcd10a6f7c623496a75d8cc321becbc24162372936dab4e696b0322c46e4c62
+MD5 1f8ffc6c5b825f0b2d4a7be5743cd44a files/3.14.0/no-parallel.patch 339
+RMD160 c6e50aa5b22438e02e17df4fda41c7cae371217f files/3.14.0/no-parallel.patch 339
+SHA256 3bcd10a6f7c623496a75d8cc321becbc24162372936dab4e696b0322c46e4c62 files/3.14.0/no-parallel.patch 339
DIST apcupsd-3.10.15.tar.gz 3858266 RMD160 a8f0b69a5622057ccf8ff97c1f1f56ef1305d9c1 SHA1 538465f21986b4736a846bf2fbd1d9bc26f2e14c SHA256 04179f7369a3a24816e94605b973ba739a2b22e80e2765159f457515a6c96e5a
DIST apcupsd-3.10.16.tar.gz 5037822 RMD160 e0db09c40c9ae103ac7fce66280050d0fa328688 SHA1 81da5a239f609f918c22a418d02646d157f463e4 SHA256 2d9f280fde4b9e64cc8bba8e79d1f0e153a35dfe4aaec02cfc00cf7bc0bec31e
DIST apcupsd-3.10.17.tar.gz 5662277 RMD160 6d1766a8f957d0a08811371d0473e8bf6bd854ef SHA1 b3c236cb12986b27b55b213eabe7c0b501697d33 SHA256 8eb6d0dd5fb8973356dd4e335de4e5df3fc559bff4713a87fd29798a46d5e78c
@@ -105,6 +125,7 @@ DIST apcupsd-3.10.18.tar.gz 5698299 RMD160 ebaf99e097d836ff8858cf653a825928058f5
DIST apcupsd-3.12.2.tar.gz 4219660 RMD160 0076affa09d1dcd5efda36d30a22161c797b9bde SHA1 fc15bf94be00dfaf255a2f4a0bced717525670e9 SHA256 755cd2bffc4090c58979a87ed3f9135afd1846153feb8a39fad95f745adbd347
DIST apcupsd-3.12.3.tar.gz 4222539 RMD160 0f801e9405f79af6d70e56868d222f80f8bb1583 SHA1 cd5b342ad7766af72999bb6f97447e9144ee3544 SHA256 871dc9957998f9f23a92d3e2bfd38a28aad0a7972a9bd6652c1d045f3db45132
DIST apcupsd-3.12.4.tar.gz 4223158 RMD160 a54c2f6d71c902d7963a1c65a3850f657aabaa88 SHA1 a36212d9634d36beda2318d85b882209763f2473 SHA256 e2c789089a71f8bafc2812a5e20b73f5420e4c234961afb53a30f6ff891640ba
+DIST apcupsd-3.14.0.tar.gz 4356614 RMD160 583527a79fdf3965676c310b801331e89e724d91 SHA1 1caba59ce56a445e7f09825d729770edd495a53b SHA256 3d30e5234115b466b97434d8c74f0cfc96c3735add7eb725066e5043ffbd66aa
EBUILD apcupsd-3.10.15-r1.ebuild 2438 RMD160 42ab7e7b60f9e125d58a0265da0d5b9dcadf77f6 SHA1 04990d121dfbd23b3d33968646668b2231a5e191 SHA256 d42a593b25aa96f42e5889aa0d093758b1434872241ae6c1f9dfa144a6343c51
MD5 5dca72915f1d61e8c0b63ba6a9e2819e apcupsd-3.10.15-r1.ebuild 2438
RMD160 42ab7e7b60f9e125d58a0265da0d5b9dcadf77f6 apcupsd-3.10.15-r1.ebuild 2438
@@ -141,10 +162,14 @@ EBUILD apcupsd-3.12.4.ebuild 3020 RMD160 2a82a750526eff235c61f541ad4ed92a8e90bac
MD5 c35dce4d81f05664f8d54afe4f9b7aad apcupsd-3.12.4.ebuild 3020
RMD160 2a82a750526eff235c61f541ad4ed92a8e90bac8 apcupsd-3.12.4.ebuild 3020
SHA256 ab7c3ed80c4677c60332050b42974db44a3ac661faba32db0948eec574706e09 apcupsd-3.12.4.ebuild 3020
-MISC ChangeLog 15076 RMD160 a6c95adbc3b15d8ab976932004caed122a469f4a SHA1 539e4b2ef5a34b5d63a40fd2953235f03d1143c3 SHA256 447e9475c021a5bf80b7c9dfeb679d9095d99acaf0055da71f157d67e5bf5f0d
-MD5 f1a294fe49e7b046f697c8bde881851c ChangeLog 15076
-RMD160 a6c95adbc3b15d8ab976932004caed122a469f4a ChangeLog 15076
-SHA256 447e9475c021a5bf80b7c9dfeb679d9095d99acaf0055da71f157d67e5bf5f0d ChangeLog 15076
+EBUILD apcupsd-3.14.0.ebuild 3367 RMD160 bd9adefff16b34e2545e2b82fd8602f8d65c77dc SHA1 6bd5dbe2c1fe1a66000f548f7a5a242e8b9ba85c SHA256 dd7107d42bed18a9b9f891c5676fcf4262d8abd145bf66e278d80ad87a779af7
+MD5 3e32935f28907d6ca0111e05d4583ee6 apcupsd-3.14.0.ebuild 3367
+RMD160 bd9adefff16b34e2545e2b82fd8602f8d65c77dc apcupsd-3.14.0.ebuild 3367
+SHA256 dd7107d42bed18a9b9f891c5676fcf4262d8abd145bf66e278d80ad87a779af7 apcupsd-3.14.0.ebuild 3367
+MISC ChangeLog 15174 RMD160 fbc557238d0716fc0d2bd5cac1a70c1b2dab70d3 SHA1 c35c1a0729fc8293b95a3bd78f63e3b6ff2d6927 SHA256 b030dfa07bfce994967d0a345d4de97175c89ffa3fec8247ea520b4edcb2bfb1
+MD5 641134b3a62a6044ff1f6d7d7e0d29a8 ChangeLog 15174
+RMD160 fbc557238d0716fc0d2bd5cac1a70c1b2dab70d3 ChangeLog 15174
+SHA256 b030dfa07bfce994967d0a345d4de97175c89ffa3fec8247ea520b4edcb2bfb1 ChangeLog 15174
MISC metadata.xml 226 RMD160 e0ca1098a8ced8b212c797e8d3343fed766ba485 SHA1 360c056f345a7b50026e93de38b0167f4193904f SHA256 ab1d24920d852e21a852c10c1ec15d5d0cfe91752a67e9eca902177081d6e1c2
MD5 27ae5add10fc42e77804f1ecd768df87 metadata.xml 226
RMD160 e0ca1098a8ced8b212c797e8d3343fed766ba485 metadata.xml 226
@@ -176,3 +201,6 @@ SHA256 d58799a245c99f70317f119d8a5efa2743aec4dc47d4b4299bed0e75e8b3a9f4 files/di
MD5 c3ff7448e5d220ac620e4b47c6f07152 files/digest-apcupsd-3.12.4 247
RMD160 7d8135db6d69f367b6f756836b61d75921c3bb00 files/digest-apcupsd-3.12.4 247
SHA256 d5ada22441893d49204b66ed425a7b2b9081e985824ebb9a55b67b3001e98a42 files/digest-apcupsd-3.12.4 247
+MD5 9d563f9052e442e771dea633380b4d4b files/digest-apcupsd-3.14.0 247
+RMD160 a1bf73ad7499fc9873cb3990f5906fa5637089a9 files/digest-apcupsd-3.14.0 247
+SHA256 d096fb8c2d39c4e4b257c7481b1d61a67f8af4765bc7cb0444924c0d971f618c files/digest-apcupsd-3.14.0 247
diff --git a/sys-power/apcupsd/apcupsd-3.14.0.ebuild b/sys-power/apcupsd/apcupsd-3.14.0.ebuild
new file mode 100644
index 000000000000..9d509dbabe00
--- /dev/null
+++ b/sys-power/apcupsd/apcupsd-3.14.0.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.0.ebuild,v 1.1 2007/05/02 21:12:23 tantive Exp $
+
+WEBAPP_MANUAL_SLOT="yes"
+inherit eutils webapp
+
+DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown"
+HOMEPAGE="http://www.apcupsd.org/"
+SRC_URI="mirror://sourceforge/apcupsd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="doc snmp usb cgi threads ncurses nls gnome"
+
+DEPEND="doc? ( virtual/tetex dev-tex/latex2html )
+ cgi? ( >=media-libs/gd-1.8.4 )
+ ncurses? ( sys-libs/ncurses )
+ nls? ( sys-devel/gettext )
+ snmp? ( net-analyzer/net-snmp )
+ gnome? ( >=x11-libs/gtk+-2.4.0
+ >=gnome-base/gconf-2.0 )"
+RDEPEND="${DEPEND}
+ virtual/mta"
+
+pkg_setup() {
+ use cgi && webapp_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}/apcupsd.in.patch
+ epatch "${FILESDIR}"/${PV}/etc.patch
+ epatch "${FILESDIR}"/${PV}/no-parallel.patch
+
+ epatch "${FILESDIR}"/${P}-apccontrol-gentoo.patch
+}
+
+src_compile() {
+ local myconf
+ use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=${MY_CGIBINDIR}"
+ use usb && myconf="${myconf} --with-upstype=usb --with-upscable=usb --enable-usb"
+ use !usb && myconf="${myconf} --with-upstype=apcsmart --with-upscable=apcsmart --disable-usb"
+
+ # We force the DISTNAME to gentoo so it will use gentoo's layout also
+ # when installed on non-linux systems.
+ DISTNAME=gentoo APCUPSD_MAIL=/usr/sbin/sendmail ./configure \
+ --prefix=/usr \
+ --sbindir=/sbin \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc/apcupsd \
+ --with-pwrfail-dir=/etc/apcupsd \
+ --with-lock-dir=/var/lock \
+ --with-pid-dir=/var/run \
+ --with-log-dir=/var/log \
+ --with-nis-port=3551 \
+ --enable-net \
+ $(use_enable ncurses powerflute) \
+ $(use_enable threads pthreads) \
+ $(use_enable snmp net-snmp) \
+ $(use_enable nls) \
+ $(use_enable gnome gapcmon) \
+ ${myconf} \
+ || die
+ emake || die "emake failed"
+
+ if use doc; then
+ einfo "Building full documentation..."
+ cd ${S}/doc/latex
+ make texcheck tex web pdf
+ fi
+}
+
+src_install() {
+ use cgi && webapp_src_preinst
+
+ emake DESTDIR="${D}" install || die "installed failed"
+ rm -f "${D}"/etc/init.d/halt
+
+ insinto /etc/apcupsd
+ newins examples/safe.apccontrol safe.apccontrol
+
+ dodoc ChangeLog* ReleaseNotes
+ mv doc/apctest.man doc/apctest.8; doman doc/apctest.8
+
+ if use doc; then
+ einfo "Installing full documentation..."
+ newdoc doc/latex/apcupsd.pdf manual.pdf
+ dohtml -r doc/latex/apcupsd/*
+ fi
+
+ if use cgi; then
+ mv ${D}/etc/apcupsd/apcupsd.css ${D}${MY_CGIBINDIR}
+ webapp_src_install
+ fi
+
+ rm "${D}"/etc/init.d/apcupsd
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+}
+
+pkg_postinst() {
+ if use cgi; then
+ elog If you are upgrading from a previous version, please note
+ elog that the CGI interface is now installed using webapp-config.
+ elog /var/www/apcupsd is no longer present.
+ webapp_pkg_postinst
+ fi
+
+ elog ""
+ elog "Since version 3.14.0 you can use multiple apcupsd instances to"
+ elog "control more than one UPS in a single box."
+ elog "To do this, create a link between /etc/init.d/apcupsd to a new"
+ elog "/etc/init.d/apcupsd.something, and it will then load the"
+ elog "configuration file at /etc/apcupsd/something.conf."
+ elog ""
+}
+
+pkg_prerm() {
+ use cgi && webapp_pkg_prerm
+}
diff --git a/sys-power/apcupsd/files/3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch b/sys-power/apcupsd/files/3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch
new file mode 100644
index 000000000000..4162a73390bc
--- /dev/null
+++ b/sys-power/apcupsd/files/3.14.0/apcupsd-3.14.0-apccontrol-gentoo.patch
@@ -0,0 +1,30 @@
+Index: apcupsd-3.14.0/platforms/apccontrol.in
+===================================================================
+--- apcupsd-3.14.0.orig/platforms/apccontrol.in
++++ apcupsd-3.14.0/platforms/apccontrol.in
+@@ -18,7 +18,7 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+
+-APCPID=@PIDDIR@/apcupsd.pid
++SERVICE=${SERVICE-apcupsd}
+ APCUPSD=@sbindir@/apcupsd
+ SHUTDOWN=@SHUTDOWN@
+ SCRIPTSHELL=@SCRIPTSHELL@
+@@ -120,15 +120,7 @@ case "$1" in
+ echo "Remote Shutdown. Beginning Shutdown Sequence." | ${WALL}
+ ;;
+ restartme)
+- echo -n "Restarting APCUPSD Power Management: "
+- THEPID=`cat ${APCPID}`
+- kill ${THEPID}
+- rm -f ${APCPID}
+- rm -f @PWRFAILDIR@/powerfail
+- rm -f @nologdir@/nologin
+- sleep 5
+- `${APCUPSD}`
+- echo "apcupsd"
++ /etc/init.d/${SERVICE} restart
+ ;;
+ startselftest)
+ ;;
diff --git a/sys-power/apcupsd/files/3.14.0/apcupsd.in.patch b/sys-power/apcupsd/files/3.14.0/apcupsd.in.patch
new file mode 100644
index 000000000000..69dad9d74d1c
--- /dev/null
+++ b/sys-power/apcupsd/files/3.14.0/apcupsd.in.patch
@@ -0,0 +1,15 @@
+--- platforms/gentoo/apcupsd.in
++++ platforms/gentoo/apcupsd.in
+@@ -6,6 +6,12 @@
+ APCPID=@PIDDIR@/apcupsd.pid
+ APCUPSD=@sbindir@/apcupsd
+
++depend() {
++ after hotplug
++ after usb
++ after net
++}
++
+ start() {
+ rm -f /etc/apcupsd/powerfail
+ ebegin "Starting APC UPS daemon"
diff --git a/sys-power/apcupsd/files/3.14.0/apcupsd.initd b/sys-power/apcupsd/files/3.14.0/apcupsd.initd
new file mode 100644
index 000000000000..7475a181a2bb
--- /dev/null
+++ b/sys-power/apcupsd/files/3.14.0/apcupsd.initd
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/files/3.14.0/apcupsd.initd,v 1.1 2007/05/02 21:12:23 tantive Exp $
+
+INSTANCE="${SVCNAME#*.}"
+if [ -z "${INSTANCE}" ] || [ "${SVCNAME}" = "apcupsd" ]; then
+ INSTANCE="apcupsd"
+fi
+
+depend() {
+ use net
+}
+
+start() {
+ rm -f /etc/apcupsd/powerfail
+
+ export SERVICE="${SVCNAME}"
+
+ ebegin "Starting APC UPS daemon"
+ start-stop-daemon \
+ --start --pidfile "/var/run/${SVCNAME}.pid" \
+ --exec /sbin/apcupsd -- \
+ -f "/etc/apcupsd/${INSTANCE}.conf" \
+ -P "/var/run/${SVCNAME}.pid"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping APC UPS daemon"
+ start-stop-daemon \
+ --stop --pidfile "/var/run/${SVCNAME}.pid" \
+ --exec /sbin/apcupsd
+ eend $?
+}
diff --git a/sys-power/apcupsd/files/3.14.0/etc.patch b/sys-power/apcupsd/files/3.14.0/etc.patch
new file mode 100644
index 000000000000..cc8370b7618b
--- /dev/null
+++ b/sys-power/apcupsd/files/3.14.0/etc.patch
@@ -0,0 +1,61 @@
+*** platforms/etc.bak/changeme.in 2007-02-18 14:58:16.000000000 +0100
+--- platforms/etc/changeme.in 2007-02-18 15:01:36.000000000 +0100
+***************
+*** 13,18 ****
+--- 13,19 ----
+ #
+ (
+ echo "Subject: $MSG"
++ echo "To: $SYSADMIN"
+ echo " "
+ echo "$MSG"
+ echo " "
+*** platforms/etc.bak/commfailure.in 2007-02-18 14:58:16.000000000 +0100
+--- platforms/etc/commfailure.in 2007-02-18 15:01:56.000000000 +0100
+***************
+*** 13,18 ****
+--- 13,19 ----
+ #
+ (
+ echo "Subject: $MSG"
++ echo "To: $SYSADMIN"
+ echo " "
+ echo "$MSG"
+ echo " "
+*** platforms/etc.bak/commok.in 2007-02-18 14:58:16.000000000 +0100
+--- platforms/etc/commok.in 2007-02-18 15:02:24.000000000 +0100
+***************
+*** 13,18 ****
+--- 13,19 ----
+ #
+ (
+ echo "Subject: $MSG"
++ echo "To: $SYSADMIN"
+ echo " "
+ echo "$MSG"
+ echo " "
+*** platforms/etc.bak/offbattery.in 2007-02-18 14:58:16.000000000 +0100
+--- platforms/etc/offbattery.in 2007-02-18 15:04:43.000000000 +0100
+***************
+*** 13,18 ****
+--- 13,19 ----
+ #
+ (
+ echo "Subject: $MSG"
++ echo "To: $SYSADMIN"
+ echo " "
+ echo "$MSG"
+ echo " "
+*** platforms/etc.bak/onbattery.in 2007-02-18 14:58:16.000000000 +0100
+--- platforms/etc/onbattery.in 2007-02-18 15:04:47.000000000 +0100
+***************
+*** 13,18 ****
+--- 13,19 ----
+ #
+ (
+ echo "Subject: $MSG"
++ echo "To: $SYSADMIN"
+ echo " "
+ echo "$MSG"
+ echo " "
+
diff --git a/sys-power/apcupsd/files/3.14.0/no-parallel.patch b/sys-power/apcupsd/files/3.14.0/no-parallel.patch
new file mode 100644
index 000000000000..a2aa4c398d1c
--- /dev/null
+++ b/sys-power/apcupsd/files/3.14.0/no-parallel.patch
@@ -0,0 +1,13 @@
+upstream forces this cruft
+
+--- autoconf/targets.mak
++++ autoconf/targets.mak
+@@ -5,6 +5,8 @@
+ #
+ # Copyright (C) 1999-2002 Riccardo Facchetti <riccardo@master.oasi.gpa.it>
+
++.NOTPARALLEL:
++
+ # Tell versions [3.59,3.63) of GNU make not to export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/sys-power/apcupsd/files/digest-apcupsd-3.14.0 b/sys-power/apcupsd/files/digest-apcupsd-3.14.0
new file mode 100644
index 000000000000..f13bb68e4c21
--- /dev/null
+++ b/sys-power/apcupsd/files/digest-apcupsd-3.14.0
@@ -0,0 +1,3 @@
+MD5 334fe3413c08f14acec0226e71e98e0a apcupsd-3.14.0.tar.gz 4356614
+RMD160 583527a79fdf3965676c310b801331e89e724d91 apcupsd-3.14.0.tar.gz 4356614
+SHA256 3d30e5234115b466b97434d8c74f0cfc96c3735add7eb725066e5043ffbd66aa apcupsd-3.14.0.tar.gz 4356614