aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2016-01-11 02:44:59 +0000
committerStuart Shelton <stuart@shelton.me>2016-01-11 02:44:59 +0000
commit8e23fb17caa0976619b3b372ddc2548b37b6a08d (patch)
treea2a9cd701eea46f85a458da9d967f02082e2e64a /sys-power
parentUpdate sys-libs/glibc-2.19-r1, sys-libs/glibc-2.20-r2, sys-libs/glibc-2.21-r1 (diff)
downloadsrcshelton-8e23fb17caa0976619b3b372ddc2548b37b6a08d.tar.gz
srcshelton-8e23fb17caa0976619b3b372ddc2548b37b6a08d.tar.bz2
srcshelton-8e23fb17caa0976619b3b372ddc2548b37b6a08d.zip
Add sys-power/apcupsd-3.14.13
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/apcupsd/Manifest2
-rw-r--r--sys-power/apcupsd/apcupsd-3.14.13.ebuild162
2 files changed, 164 insertions, 0 deletions
diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest
index 5cee9907..fafb0fa8 100644
--- a/sys-power/apcupsd/Manifest
+++ b/sys-power/apcupsd/Manifest
@@ -11,8 +11,10 @@ AUX apcupsd.powerfail.init 520 SHA256 eee773aa07175674085cb0ab7ed2c071fcc04fc053
AUX apcupsd.service 111 SHA256 fef0b088daa7d652b8c30e6105318cff547ad2504627efabd014083eabc7182d SHA512 011e3e52e7909f36fb73b6064277a69e5db41263cfc72bda07e326172396d5318cd2b050f1fb84c4cc6da7a247c0035c36c55322ffb234a1cfa7bf13ba492889 WHIRLPOOL 940b6eb812c010f32b4bf54fd3e1b8d0a47890fd88acd8451bccbf6d17ab894915b179c110dda561c120e346ed20ca481f47761b9a5bac1e3b323457fbbc6f5a
DIST apcupsd-3.14.10.tar.gz 1336852 SHA256 0707b5ec9916fbde9e44eb8d18037c8d8f75dfd6aeef51aba5487e189eef2032 SHA512 f95918bff783cb60fa40b03a532ee7447293b0542f44f2f9ecf36ee028df3aa414f01e2b834a28fc319d88ec2e84c81314cd546b5628554176f2ca47fdc66bbc WHIRLPOOL 1fb40a5199eb8dfcd287bab08c2bbf51f02a3657ba615e16395d5f377bc9a5b6144db24b83ef5e9172ff970a715f87f685118a035c00372c34702984fac02d38
DIST apcupsd-3.14.12.tar.gz 2014699 SHA256 1b4f703cb19cfdf44daf173dc8394cafd30fee0b30a0c75a7d19db622454a440 SHA512 2ed409ce4c7c7af667cecf0c73c47315d7516c696383c811945ead720afc146fe2ceda0efef722c3208a1b41a7d4661c9544bc4fe37a36ca4779a5dc1621f3d4 WHIRLPOOL 13a2491e4ad5446ba91a075f7408e48e94a35885288c9ee6108891d89412be5c81f69f4ab5064f86b8bece8c0de44357e4c378d05aad5d9d27bd85f0d95a83d5
+DIST apcupsd-3.14.13.tar.gz 1935043 SHA256 57ecbde01d0448bf8c4dbfe0ad016724ae66ab98adf2de955bf2be553c5d03f9 SHA512 74f7763de268626e24f9dd99090b01d5bff35c2fde769039104105ec27941673d1613c41fcac11e3d97d2fe5c364bcc0459847fcba5d2f7f1aac85795d6d8570 WHIRLPOOL 4b6fb18848aa597bae1066a7f195747f9edfdee75a27e43e3d14e3153d4b434829c5863b7e92c0704ea652583b8c5885fd01fe7280abe93bf1c6cfc370434f73
EBUILD apcupsd-3.14.10-r1.ebuild 4106 SHA256 4b16ea408b67ceac28b5940fe0e7b261f09ec2d9e995a3134a40083fab485f9a SHA512 3e2daacdd3034c705b365a1032c033acad47cd78ae538aa5e12002b5715c738f2d6d357d394b195df3efb00c0530e96c933f62221d3dbd469b0c3cc7adf1eff8 WHIRLPOOL 96fcc3dc10d4e9ba9c5d9f98bcd34f805bcced8639edf0138143a2845bde5273c628e1e0fa5e2258e1ca9935d315b5c0efbbca8a042ab55e41823b926655eac0
EBUILD apcupsd-3.14.10-r2.ebuild 4223 SHA256 0eacd497d6b82c9a92f3444698007b08a75a060bad7443309c8c25f93fae397f SHA512 e3586d453b028a4d44d9c823a944907f47d6ea1a1d5fa887941052417601579149d1e6dc8e521d47bf68fc1ae1fc24150e5cc9ca7b0beb0a80d36c1ef307a61e WHIRLPOOL 28adb4150904bea7ba3038a9fb4df595b7a61f9061305883a2fad61fc7cbef9c0262035e185c97cdd65fea06cf415d413564ecb38b5c51d5e6bce36e23d1ae71
EBUILD apcupsd-3.14.10-r6.ebuild 4380 SHA256 d9451799a5d14deafdbc81a5a4a064964033c3f28544d0a53458f83ada1b6cbc SHA512 fb32641050e82e24a4a02a5e901211d1802eb3234eef95cbd58e8738a1910c2fdbb39be3a4effad8002b61c83e5fd8792de49366d5977dc5d3b0b8515f23f94f WHIRLPOOL 39fd5ff89166cab70b5c639290aec3397585bf9c0d8d046998c7f48878b30dfa13a43d4b392166a9e3169d2ceb954f6579140cf851d57d45f4390a38f09e0179
EBUILD apcupsd-3.14.12-r1.ebuild 4805 SHA256 c38e97a7dec1c767150803fd07279d3e901d7c9dc6f9694fab621df04184623c SHA512 71346989df35103e58d770fd7fb3d8f2bdeebebc8c95079fafd965356b501a2b42bea13892b636838cb35f6854f90d198f3fd443fbc18bd35edac68665847e35 WHIRLPOOL a1d2e39f3ff173760686b9812c10d2ac8fc712d9a7e5d48e4d0182b66348928e0bacacc577d21a1a15486e041cba5a98d450f1e819710463c95c4d0e3ea6f810
EBUILD apcupsd-3.14.12.ebuild 4760 SHA256 73de4255407b8f3590128f77f3877275be292431798f50522b6d8e5bb8786aa8 SHA512 9f7f43e5f716c98d0562725067317ea40f4735210e7bdb31497062d6fa304dc83380783febde4704495897c4f118c9a7b7931d50d07912078a6d108630cfb2fc WHIRLPOOL a0eafe311ab166237b1fe0c458f5956153483db482b67bc7cbcae1de413207cae718635123d69cf260dc26b186c1d6c0cd7954b5e5854d075f121abd4475743f
+EBUILD apcupsd-3.14.13.ebuild 4805 SHA256 db5ab233d4ad79856cf0632dde82bdfc011a0b6990703df739e91a331273cd2d SHA512 e639659f993a773a7c396d6de7a61c6434a2de9377d5807e14af042638fffc0c07bbc6bb5893b618ffa2efe543b087738208d557ca71132c2cf1b546df777cf7 WHIRLPOOL 2b63626a947e6b52a4effc6e317f3f1c9bf051abf77abb8ec9cca9e5cfface5d2036258c1f8e70a71ba915c45ff69d2966c8d18886141a166db6b1ca976a80e0
diff --git a/sys-power/apcupsd/apcupsd-3.14.13.ebuild b/sys-power/apcupsd/apcupsd-3.14.13.ebuild
new file mode 100644
index 00000000..21e1e8b1
--- /dev/null
+++ b/sys-power/apcupsd/apcupsd-3.14.13.ebuild
@@ -0,0 +1,162 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: ce3e408365ffa6c5f149ea3a96974b25c4ab8df9 $
+
+EAPI=5
+
+inherit eutils linux-info flag-o-matic systemd udev
+
+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="~amd64 ~arm ~ppc ~x86 ~x86-fbsd"
+IUSE="snmp +usb cgi dumb gnome kernel_linux +modbus +net nls +powerchute +smart systemd udev"
+
+DEPEND="
+ || ( >=sys-apps/util-linux-2.23[tty-helpers(-)]
+ <=sys-apps/sysvinit-2.88-r4
+ sys-freebsd/freebsd-ubin
+ )
+ cgi? ( >=media-libs/gd-1.8.4 )
+ nls? ( sys-devel/gettext )
+ snmp? ( >=net-analyzer/net-snmp-5.7.2 )
+ gnome? ( >=x11-libs/gtk+-2.4.0:2
+ dev-libs/glib:2
+ >=gnome-base/gconf-2.0 )"
+RDEPEND="${DEPEND}
+ sys-apps/openrc
+ virtual/mailx"
+
+CONFIG_CHECK="~USB_HIDDEV ~HIDRAW"
+ERROR_USB_HIDDEV="CONFIG_USB_HIDDEV: needed to access USB-attached UPSes"
+ERROR_HIDRAW="CONFIG_HIDRAW: needed to access USB-attached UPSes"
+
+pkg_setup() {
+ if use kernel_linux && use usb && linux_config_exists; then
+ check_extra_config
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-3.14.9-aliasing.patch"
+}
+
+src_configure() {
+ local myconf="--disable-net-snmp --disable-test"
+ use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=/usr/libexec/${PN}/cgi-bin"
+ if use usb; then
+ myconf="${myconf} --with-upstype=usb --with-upscable=usb --with-dev= "
+ elif use modbus; then
+ myconf="${myconf} --with-upstype=modbus --with-upscable=modbus"
+ else
+ myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart"
+ fi
+
+ if use net; then
+ myconf="${myconf} --with-nis-port=3551 $(use_enable powerchute pcnet )"
+ else
+ sed -i -e '/^NISSRV_ENABLED=yes$/{s:yes:no:}' configure || die "NIS patch failed"
+ fi
+
+ # We force the DISTNAME to gentoo so it will use gentoo's layout also
+ # when installed on non-linux systems.
+ econf \
+ --sbindir=/sbin \
+ --sysconfdir=/etc/apcupsd \
+ --with-pwrfail-dir=/etc/apcupsd \
+ --with-lock-dir=/var/lock \
+ --with-pid-dir=/var/run/apcupsd \
+ --with-log-dir=/var/log \
+ --with-distname=gentoo \
+ $(use_enable dumb ) \
+ $(use_enable gnome gapcmon) \
+ $(use_enable modbus ) \
+ $(use_enable net ) \
+ $(use_enable smart apcsmart ) \
+ $(use_enable snmp ) \
+ $(use_enable usb ) \
+ ${myconf} \
+ APCUPSD_MAIL=/bin/mail
+}
+
+src_compile() {
+ # Workaround for bug #280674; upstream should really just provide
+ # the text files in the distribution, but I wouldn't count on them
+ # doing that anytime soon.
+ MANPAGER=$(type -p cat) \
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "installed failed"
+ rm -f "${D}"/etc/init.d/halt
+
+ insinto /etc/apcupsd
+ newins examples/safe.apccontrol safe.apccontrol
+ doins "${FILESDIR}"/apcupsd.conf
+
+ dodoc ChangeLog* ReleaseNotes
+ doman doc/*.8 doc/*.5
+
+ dohtml -r doc/manual/*
+
+ rm "${D}"/etc/init.d/apcupsd
+ newinitd "${FILESDIR}/${PN}.init.4" "${PN}"
+ newinitd "${FILESDIR}/${PN}.powerfail.init" "${PN}".powerfail
+
+ if use systemd; then
+ systemd_dounit "${FILESDIR}"/${PN}.service
+ systemd_dotmpfilesd "${FILESDIR}"/${PN}-tmpfiles.conf
+ else
+ # Without this it'll crash at startup. When merging in ROOT= this
+ # won't be created by default, so we want to make sure we got it!
+ if [[ "${ROOT:-/}" != "/" ]]; then
+ keepdir /var/lock
+ fowners root:uucp /var/lock
+ fperms 0775 /var/lock
+ fi
+ fi
+
+ # remove hal settings, we don't really want to have it around still.
+ rm -r "${D}"/usr/share/hal
+
+ # replace it with our udev rules if we're in Linux
+ if use udev && use kernel_linux; then
+ udev_newrules "${FILESDIR}"/apcupsd-udev.rules 60-${PN}.rules
+ fi
+
+}
+
+pkg_postinst() {
+ if use cgi; then
+ elog "The cgi-bin directory for ${PN} is /usr/libexec/${PN}/cgi-bin."
+ elog "Set up your ScriptAlias or symbolic links accordingly."
+ 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 with openRC."
+ 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 ""
+
+ elog 'If you want apcupsd to power off your UPS when it'
+ elog 'shuts down your system in a power failure, you must'
+ elog 'add apcupsd.powerfail to your shutdown runlevel:'
+ elog ''
+ elog ' \e[01m rc-update add apcupsd.powerfail shutdown \e[0m'
+ elog ''
+
+ if use kernel_linux; then
+ elog "Starting from version 3.14.9-r1, ${PN} installs udev rules"
+ elog "for persistent device naming. If you have multiple UPS"
+ elog "connected to the machine, you can point them to the devices"
+ elog "in /dev/apcups/by-id directory."
+ fi
+}
+
+# vi: set diffopt=iwhite,filler: