diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-05-16 20:50:46 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-05-16 20:50:46 +0000 |
commit | d681e204c7134d68b2e579729ceb73d2b516e387 (patch) | |
tree | 7a74daf08d038ab386fad56317d5056f5c6cf421 /sys-power/apcupsd | |
parent | Fix dependencies (bug #269502). (diff) | |
download | historical-d681e204c7134d68b2e579729ceb73d2b516e387.tar.gz historical-d681e204c7134d68b2e579729ceb73d2b516e387.tar.bz2 historical-d681e204c7134d68b2e579729ceb73d2b516e387.zip |
Version bump.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'sys-power/apcupsd')
-rw-r--r-- | sys-power/apcupsd/ChangeLog | 8 | ||||
-rw-r--r-- | sys-power/apcupsd/Manifest | 10 | ||||
-rw-r--r-- | sys-power/apcupsd/apcupsd-3.14.6.ebuild | 112 |
3 files changed, 125 insertions, 5 deletions
diff --git a/sys-power/apcupsd/ChangeLog b/sys-power/apcupsd/ChangeLog index a2456e081ebe..84f48d4e8dce 100644 --- a/sys-power/apcupsd/ChangeLog +++ b/sys-power/apcupsd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-power/apcupsd # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.44 2009/03/22 15:22:28 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.45 2009/05/16 20:50:46 flameeyes Exp $ + +*apcupsd-3.14.6 (16 May 2009) + + 16 May 2009; Diego E. Pettenò <flameeyes@gentoo.org> + +apcupsd-3.14.6.ebuild: + Version bump. 22 Mar 2009; Diego E. Pettenò <flameeyes@gentoo.org> files/apcupsd.powerfail.init: diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest index 622f6940b1d7..b42b357f34b5 100644 --- a/sys-power/apcupsd/Manifest +++ b/sys-power/apcupsd/Manifest @@ -16,15 +16,17 @@ AUX apcupsd.powerfail.init 520 RMD160 24f766871652220523a18885f41f6608f29ab670 S DIST apcupsd-3.10.18.tar.gz 5698299 RMD160 ebaf99e097d836ff8858cf653a825928058f54dd SHA1 a4e0f968be13c833ec25869f686e44c5a34e7964 SHA256 ae42d64e5cb29c8ce291f634139b5c81e888c95686f5c70ac9c250a1d8c02a38 DIST apcupsd-3.12.4.tar.gz 4223158 RMD160 a54c2f6d71c902d7963a1c65a3850f657aabaa88 SHA1 a36212d9634d36beda2318d85b882209763f2473 SHA256 e2c789089a71f8bafc2812a5e20b73f5420e4c234961afb53a30f6ff891640ba DIST apcupsd-3.14.5.tar.gz 4172931 RMD160 76dadfb241b69a9603cc6f06ef4549a1aa3ac55e SHA1 c28685a2ccd0565b4c5d9e972773b18a915562a9 SHA256 f48a75139d5701d13444128da6f9f6feea04da8524e8ba3bce2c21bdbedba49e +DIST apcupsd-3.14.6.tar.gz 4269348 RMD160 67ff929e10373661545c588a7fba630ffdfe3ab9 SHA1 19d33626a7002f86ede5d1784697b08dacb3fc6c SHA256 ddfeb4dd90a5c6d4cc8a487492efeb75f8c3ce1c955948bde97cebad51e8d1a3 EBUILD apcupsd-3.10.18-r1.ebuild 2614 RMD160 4136189b375cdd5b50fa1e98bcff757406ea8e66 SHA1 de25eb0d627ca017c4f5d27119ffaba709125735 SHA256 f5004d36d0c5a41df6c4fa9fe5e2cc3c49894a7aef927e79cfb72a1cce04ee39 EBUILD apcupsd-3.12.4.ebuild 3028 RMD160 257a1dcc849ba616569693b7fb685c7be4a5d6f8 SHA1 41a0e20c82b02fe9158f3a45bd816fa66c4ac46a SHA256 86c0a2f5ffe869f5ea0db0220264d1109dcab7f4c395533e8dd5c87c478b59c9 EBUILD apcupsd-3.14.5-r2.ebuild 3623 RMD160 0cf070c17b229abae6ce63695ed5daab377236f3 SHA1 f1ef1feb3788bce643b08b69d99336ea6937b6f9 SHA256 defe94c26ef8cf6cb9dc2d1809236ec7d3d6468cc659ab2fbdbbe247ed264ee6 -MISC ChangeLog 20411 RMD160 e59025454e5b931a13e7bc2a20cfb6d25a33d7cd SHA1 c69f21a9aa32c4c4fe6bba38225b106d51ee093e SHA256 48db9bdab416e06c7c8471eb7ad9b210c948db1e750d0dd01ffaed54268724b1 +EBUILD apcupsd-3.14.6.ebuild 3247 RMD160 a1f11c4b65d743ed97181f00942257aa99b534a7 SHA1 6a7d48ce70e2699b18260af71cd0fffa47794a83 SHA256 a5cd152f29d3447b4600fd29e5c8db7bbe4f17d6d17c828bd2668652499003e2 +MISC ChangeLog 20541 RMD160 90a0a4a15833e679f795adc09d22ee5bc1d20d60 SHA1 2d95b97ed61074d3275835e30cbdffaae231315b SHA256 df55319d28946d33ec0267160c9882f729164407e5f02ebbdcdc7b44ec9024fd MISC metadata.xml 237 RMD160 2a4fab832a64fbdafe2cd6f59b141b2aa80797ac SHA1 75878fb1a17b8617882c9e02331a6643d647882b SHA256 368acc29aa9214adaa137c17b114b16c6a021c4dfc9efa5f3440e968db04a9b3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAknGV7kACgkQAiZjviIA2XiDVgCghNq0JVsE5xHYSV/ofq0fC16h -nlsAni4X9WMEjW8R+F8UHUMztmtdcQEy -=Bej2 +iEYEARECAAYFAkoPJy0ACgkQAiZjviIA2XiFAwCfS8YbJhw9NR4GIW09mu8pyzWq +JBUAoJuXlzcluftewx5S+vRD0EEX/P20 +=buEh -----END PGP SIGNATURE----- diff --git a/sys-power/apcupsd/apcupsd-3.14.6.ebuild b/sys-power/apcupsd/apcupsd-3.14.6.ebuild new file mode 100644 index 000000000000..56e93859e753 --- /dev/null +++ b/sys-power/apcupsd/apcupsd-3.14.6.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.6.ebuild,v 1.1 2009/05/16 20:50:46 flameeyes Exp $ + +WEBAPP_MANUAL_SLOT="yes" +WEBAPP_OPTIONAL="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="snmp usb cgi nls gnome" + +DEPEND=" + cgi? ( >=media-libs/gd-1.8.4 + ${WEBAPP_DEPEND} ) + nls? ( sys-devel/gettext ) + snmp? ( net-analyzer/net-snmp ) + gnome? ( >=x11-libs/gtk+-2.4.0 + >=dev-libs/glib-2.0 + >=gnome-base/gconf-2.0 )" +RDEPEND="${DEPEND} + virtual/mailx" + +pkg_setup() { + use cgi && webapp_pkg_setup +} + +src_compile() { + local myconf + use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=${MY_CGIBINDIR}" + if use usb; then + myconf="${myconf} --with-upstype=usb --with-upscable=usb --enable-usb --with-dev= " + else + myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart --disable-usb" + 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 \ + --with-log-dir=/var/log \ + --with-nis-port=3551 \ + --enable-net --enable-pcnet \ + --with-distname=gentoo \ + $(use_enable snmp net-snmp) \ + $(use_enable gnome gapcmon) \ + ${myconf} \ + APCUPSD_MAIL=/bin/mail \ + || die "econf failed" + emake || die "emake failed" +} + +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 + doman doc/*.8 doc/*.5 || die "doman failed" + + dohtml -r doc/manual/* || die "dodoc failed" + + use cgi && webapp_src_install + + rm "${D}"/etc/init.d/apcupsd + newinitd "${FILESDIR}/${PN}.init.2" "${PN}" || die "newinitd failed" + newinitd "${FILESDIR}/${PN}.powerfail.init" "${PN}".powerfail || die "newinitd failed" +} + +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 "" + + if [ -d "${ROOT}"/etc/runlevels/shutdown -a \ + ! -e "${ROOT}"/etc/runlevels/shutdown/"${PN}".powerfail ] ; then + 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 '' + fi +} + +pkg_prerm() { + use cgi && webapp_pkg_prerm +} |