summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-03-14 20:37:15 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-03-14 20:37:15 +0000
commitc02932e0369e7591fd58e4a9857c2ef4031493db (patch)
treedfec5765314e29ca0fb23172f077dc6c0c941b3d /sys-power/apcupsd
parent2.4 series version bump. (diff)
downloadgentoo-2-c02932e0369e7591fd58e4a9857c2ef4031493db.tar.gz
gentoo-2-c02932e0369e7591fd58e4a9857c2ef4031493db.tar.bz2
gentoo-2-c02932e0369e7591fd58e4a9857c2ef4031493db.zip
Old version: depend on gtk2/glib2 only. Revision bump: implement the kernel configuration checks as per bug #296476; don't use webapp-config as the CGIs can only be configured with the system configuration files in /etc; drop the HAL configuration file; disable strict aliasing.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'sys-power/apcupsd')
-rw-r--r--sys-power/apcupsd/ChangeLog13
-rw-r--r--sys-power/apcupsd/apcupsd-3.14.7.ebuild8
-rw-r--r--sys-power/apcupsd/apcupsd-3.14.8-r1.ebuild (renamed from sys-power/apcupsd/apcupsd-3.14.8.ebuild)58
3 files changed, 40 insertions, 39 deletions
diff --git a/sys-power/apcupsd/ChangeLog b/sys-power/apcupsd/ChangeLog
index 1cf90c3bb2c3..ba2fb810501c 100644
--- a/sys-power/apcupsd/ChangeLog
+++ b/sys-power/apcupsd/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sys-power/apcupsd
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.64 2010/03/06 19:59:54 armin76 Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.65 2011/03/14 20:37:14 flameeyes Exp $
+
+*apcupsd-3.14.8-r1 (14 Mar 2011)
+
+ 14 Mar 2011; Diego E. Pettenò <flameeyes@gentoo.org> apcupsd-3.14.7.ebuild,
+ -apcupsd-3.14.8.ebuild, +apcupsd-3.14.8-r1.ebuild:
+ Old version: depend on gtk2/glib2 only. Revision bump: implement the kernel
+ configuration checks as per bug #296476; don't use webapp-config as the CGIs
+ can only be configured with the system configuration files in /etc; drop the
+ HAL configuration file; disable strict aliasing.
06 Mar 2010; Raúl Porcel <armin76@gentoo.org> apcupsd-3.14.7.ebuild:
alpha stable
diff --git a/sys-power/apcupsd/apcupsd-3.14.7.ebuild b/sys-power/apcupsd/apcupsd-3.14.7.ebuild
index cfa3c7b5f4e7..e2f983853229 100644
--- a/sys-power/apcupsd/apcupsd-3.14.7.ebuild
+++ b/sys-power/apcupsd/apcupsd-3.14.7.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.7.ebuild,v 1.7 2010/03/06 19:59:54 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.7.ebuild,v 1.8 2011/03/14 20:37:14 flameeyes Exp $
WEBAPP_MANUAL_SLOT="yes"
WEBAPP_OPTIONAL="yes"
@@ -20,8 +20,8 @@ DEPEND="
${WEBAPP_DEPEND} )
nls? ( sys-devel/gettext )
snmp? ( net-analyzer/net-snmp )
- gnome? ( >=x11-libs/gtk+-2.4.0
- >=dev-libs/glib-2.0
+ gnome? ( =x11-libs/gtk+-2*
+ =dev-libs/glib-2*
>=gnome-base/gconf-2.0 )"
RDEPEND="${DEPEND}
virtual/mailx"
diff --git a/sys-power/apcupsd/apcupsd-3.14.8.ebuild b/sys-power/apcupsd/apcupsd-3.14.8-r1.ebuild
index 2a3ce99fa824..262c14156be0 100644
--- a/sys-power/apcupsd/apcupsd-3.14.8.ebuild
+++ b/sys-power/apcupsd/apcupsd-3.14.8-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.8.ebuild,v 1.1 2010/01/17 23:35:10 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.14.8-r1.ebuild,v 1.1 2011/03/14 20:37:15 flameeyes Exp $
-WEBAPP_MANUAL_SLOT="yes"
-WEBAPP_OPTIONAL="yes"
-inherit eutils webapp linux-info
+EAPI=3
+
+inherit eutils linux-info flag-o-matic
DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown"
HOMEPAGE="http://www.apcupsd.org/"
@@ -16,39 +16,36 @@ KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
IUSE="snmp usb cgi nls gnome kernel_linux"
DEPEND="
- cgi? ( >=media-libs/gd-1.8.4
- ${WEBAPP_DEPEND} )
+ cgi? ( >=media-libs/gd-1.8.4 )
nls? ( sys-devel/gettext )
snmp? ( net-analyzer/net-snmp )
- gnome? ( >=x11-libs/gtk+-2.4.0
- >=dev-libs/glib-2.0
+ gnome? ( >=x11-libs/gtk+-2.4.0:2
+ dev-libs/glib:2
>=gnome-base/gconf-2.0 )"
RDEPEND="${DEPEND}
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() {
- use cgi && webapp_pkg_setup
-
- if use kernel_linux &&
- use usb &&
- linux_config_exists &&
- !linux_chkconfig_present USB_HIDDEV; then
- ewarn "Note: to be able to use the USB support for ${PN} you're going to need"
- ewarn "the CONFIG_USB_HIDDEV option enabled in your kernel."
- ewarn "The option hasn't been found enabled, do so before trying to use"
- ewarn "${PN} with USB UPSes."
+ if use kernel_linux && use usb && linux_config_exists; then
+ check_extra_config
fi
}
-src_compile() {
+src_configure() {
local myconf
- use cgi && myconf="${myconf} --enable-cgi --with-cgi-bin=${MY_CGIBINDIR}"
+ 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 --enable-usb --with-dev= "
else
myconf="${myconf} --with-upstype=apcsmart --with-upscable=smart --disable-usb"
fi
+ append-flags -fno-strict-aliasing
+
# We force the DISTNAME to gentoo so it will use gentoo's layout also
# when installed on non-linux systems.
econf \
@@ -66,7 +63,9 @@ src_compile() {
${myconf} \
APCUPSD_MAIL=/bin/mail \
|| die "econf failed"
+}
+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.
@@ -75,8 +74,6 @@ src_compile() {
}
src_install() {
- use cgi && webapp_src_preinst
-
emake DESTDIR="${D}" install || die "installed failed"
rm -f "${D}"/etc/init.d/halt
@@ -88,8 +85,6 @@ src_install() {
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"
@@ -97,6 +92,9 @@ src_install() {
newinitd "${FILESDIR}/${PN}.powerfail.init" "${PN}".powerfail || die "newinitd failed"
fi
+ # remove hal settings, we don't really want to have it around still.
+ rm -r "${D}"/usr/share/hal
+
# 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!
keepdir /var/lock
@@ -106,10 +104,8 @@ src_install() {
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
+ elog "The cgi-bin directory for ${PN} is /usr/libexec/${PN}/cgi-bin."
+ elog "Set up your ScriptAlias or symbolic links accordingly."
fi
elog ""
@@ -130,7 +126,3 @@ pkg_postinst() {
elog ''
fi
}
-
-pkg_prerm() {
- use cgi && webapp_pkg_prerm
-}