summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2006-03-22 23:00:35 +0000
committerMichael Imhof <tantive@gentoo.org>2006-03-22 23:00:35 +0000
commit278d51c3e5d3355a9e79b7e9fba3df3875a43b50 (patch)
tree26833508fb1303538d99d058b11b9bd72ad7a7e9 /sys-power/apcupsd
parentStable on x86; bug #126119 (diff)
downloadgentoo-2-278d51c3e5d3355a9e79b7e9fba3df3875a43b50.tar.gz
gentoo-2-278d51c3e5d3355a9e79b7e9fba3df3875a43b50.tar.bz2
gentoo-2-278d51c3e5d3355a9e79b7e9fba3df3875a43b50.zip
Moved binaries to /sbin.
(Portage version: 2.1_pre6-r5)
Diffstat (limited to 'sys-power/apcupsd')
-rw-r--r--sys-power/apcupsd/ChangeLog7
-rw-r--r--sys-power/apcupsd/Manifest16
-rw-r--r--sys-power/apcupsd/apcupsd-3.12.2-r1.ebuild116
-rw-r--r--sys-power/apcupsd/files/digest-apcupsd-3.12.2-r13
4 files changed, 131 insertions, 11 deletions
diff --git a/sys-power/apcupsd/ChangeLog b/sys-power/apcupsd/ChangeLog
index d5507ba4022e..f0b06a8810ac 100644
--- a/sys-power/apcupsd/ChangeLog
+++ b/sys-power/apcupsd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-power/apcupsd
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.14 2006/03/19 22:49:08 tantive Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.15 2006/03/22 23:00:35 tantive Exp $
+
+*apcupsd-3.12.2-r1 (22 Mar 2006)
+
+ 22 Mar 2006; Michael Imhof <tantive@gentoo.org> +apcupsd-3.12.2-r1.ebuild:
+ Moved binaries to /sbin.
*apcupsd-3.12.2 (19 Mar 2006)
diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest
index 4f23e77e01c9..2b7473cec2a8 100644
--- a/sys-power/apcupsd/Manifest
+++ b/sys-power/apcupsd/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 80ea698f906abe22b0d4c96691dfa18a ChangeLog 12901
RMD160 98b07029d7a534f232921145be7dfed8f0079105 ChangeLog 12901
SHA256 8f7e21359e92d036f41e0075e0385a34b6036e1f48975c43fd9c7ad3d2a0080f ChangeLog 12901
@@ -19,6 +16,9 @@ SHA256 552711e51eddebe17358abe62e6939bc785eb54bd27a0d28910d4b17d25b84f8 apcupsd-
MD5 379cc7a11341db7b6186cb42376596c7 apcupsd-3.10.18-r2.ebuild 3172
RMD160 7aa3bb8eedeb783fe7112c9099743c170c088ebf apcupsd-3.10.18-r2.ebuild 3172
SHA256 42c944661a74a7fe566c0e9c3d24f0e7dc10d562f5eea60faa7046b01092cead apcupsd-3.10.18-r2.ebuild 3172
+MD5 dae3d9b6a4108a9e6fcfdaa4dccf3cdd apcupsd-3.12.2-r1.ebuild 3173
+RMD160 563cebc65a9331518bdcc5b381b8aa28c516ca88 apcupsd-3.12.2-r1.ebuild 3173
+SHA256 2a055d20455b4fbf88e104150bbadbc7463ccb71fb10e0bb9f4943a7848c2b7b apcupsd-3.12.2-r1.ebuild 3173
MD5 1d5065e3f38789c2b8bb156a3035b95e apcupsd-3.12.2.ebuild 3177
RMD160 c6755d4cf1c95119af4fcaebb2c22e8fad6add2b apcupsd-3.12.2.ebuild 3177
SHA256 66be1a01eaea96c497d9b77201f6df1869acd8b1aa0052f491b7a7fb60b645c3 apcupsd-3.12.2.ebuild 3177
@@ -91,13 +91,9 @@ SHA256 45730367d24563d1f23754b2c2ec072644958cef6b6f388ac846a33f92ad8542 files/di
MD5 06d14a07f56b8e37942a35aca6775fb7 files/digest-apcupsd-3.12.2 247
RMD160 a7659388f720f0d6baf34de057fcc2046e8b1ea9 files/digest-apcupsd-3.12.2 247
SHA256 d5a28f7712874ee6af744bead8a58cbf5a74d9816070a924905badaf2a4a6649 files/digest-apcupsd-3.12.2 247
+MD5 06d14a07f56b8e37942a35aca6775fb7 files/digest-apcupsd-3.12.2-r1 247
+RMD160 a7659388f720f0d6baf34de057fcc2046e8b1ea9 files/digest-apcupsd-3.12.2-r1 247
+SHA256 d5a28f7712874ee6af744bead8a58cbf5a74d9816070a924905badaf2a4a6649 files/digest-apcupsd-3.12.2-r1 247
MD5 27ae5add10fc42e77804f1ecd768df87 metadata.xml 226
RMD160 e0ca1098a8ced8b212c797e8d3343fed766ba485 metadata.xml 226
SHA256 ab1d24920d852e21a852c10c1ec15d5d0cfe91752a67e9eca902177081d6e1c2 metadata.xml 226
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2.1 (GNU/Linux)
-
-iD8DBQFEHeANKtJO8LeSoosRApBcAJ9INlhR6/Mgd5S4OX+oSDXPf25UMwCgoFPS
-Dm/9RBzJHRNaqrLATxm/7+Y=
-=ncD6
------END PGP SIGNATURE-----
diff --git a/sys-power/apcupsd/apcupsd-3.12.2-r1.ebuild b/sys-power/apcupsd/apcupsd-3.12.2-r1.ebuild
new file mode 100644
index 000000000000..02511f743c53
--- /dev/null
+++ b/sys-power/apcupsd/apcupsd-3.12.2-r1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.12.2-r1.ebuild,v 1.1 2006/03/22 23:00:35 tantive Exp $
+
+inherit eutils depend.apache
+
+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 ~ppc ~sparc ~x86"
+IUSE="doc snmp usb apache2 cgi threads ncurses nls lighttpd"
+
+DEPEND="snmp? ( net-analyzer/net-snmp )
+ cgi? ( >=media-libs/gd-1.8.4
+ apache2? ( >=net-www/apache-2.0.54-r30 )
+ lighttpd? ( www-servers/lighttpd )
+ )
+ ncurses? ( sys-libs/ncurses )
+ nls? ( sys-devel/gettext )"
+RDEPEND="${DEPEND}
+ virtual/mta"
+
+XPIDDIR=/var/run
+XLOGDIR=/var/log
+XLOCKDIR=/var/lock
+XSYSCONFDIR=/etc/apcupsd
+XPWRFAILDIR=${XSYSCONFDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/platforms/gentoo
+ epatch ${FILESDIR}/${PV}/apcupsd.in.patch
+
+ cd ${S}/platforms
+ epatch ${FILESDIR}/${PV}/etc.patch
+
+ # Avoid usage of install -s, leave to portage stripping binaries
+ sed -i -e 's:(INSTALL_PROGRAM) -s:(INSTALL_PROGRAM):g' \
+ ${S}/src/Makefile.in ${S}/src/cgi/Makefile.in
+}
+
+src_compile() {
+ local myconf
+ use cgi && myconf="${myconf} --enable-cgi --with-css-dir=/var/www/apcupsd --with-cgi-bin=/var/www/apcupsd"
+ 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 \
+ --sysconfdir=${XSYSCONFDIR} \
+ --with-pwrfail-dir=${XPWRFAILDIR} \
+ --with-lock-dir=${XLOCKDIR} \
+ --with-pid-dir=${XPIDDIR} \
+ --with-log-dir=${XLOGDIR} \
+ --with-net-port=6666 \
+ --with-nis-port=3551 \
+ --enable-net \
+ --enable-oldnet \
+ --enable-master-slave \
+ $(use_enable ncurses powerflute) \
+ $(use_enable threads pthreads) \
+ $(use_enable snmp net-snmp) \
+ $(use_enable nls) \
+ ${myconf} \
+ || die
+ make || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "installed failed"
+ rm -f "${D}"/etc/init.d/halt
+
+ if use cgi; then
+ if use apache2; then
+ insinto ${APACHE2_MODULES_CONFDIR}
+ newins ${FILESDIR}/${PV}/apache.conf 60_apcupsd.conf
+ fi
+
+ if use lighttpd; then
+ insinto /etc/lighttpd
+ newins ${FILESDIR}/${PV}/apcupsd-lighttpd.conf apcupsd.conf
+ einfo "The configuration file ${ROOT}/etc/lighttpd/apcupsd.conf should"
+ einfo "be included in lighttpd.conf configuration file to enable apcupsd"
+ einfo "alias and cgi execution."
+ fi
+ fi
+
+ insinto /etc/apcupsd
+ newins examples/safe.apccontrol safe.apccontrol
+
+ cd ${D}/etc/apcupsd
+
+ ln -s onbattery powerout
+
+ if use doc; then
+ einfo "Installing full documentation into /usr/share/doc/${P}..."
+ cd ${S}/doc
+ dodoc README.*
+ docinto developers_manual
+ dodoc developers_manual/*
+ docinto logo
+ dodoc logo/*
+ docinto manual
+ dodoc manual/*
+ docinto old_documents
+ dodoc old_documents/*
+ docinto vim
+ dodoc vim/*
+ fi
+}
diff --git a/sys-power/apcupsd/files/digest-apcupsd-3.12.2-r1 b/sys-power/apcupsd/files/digest-apcupsd-3.12.2-r1
new file mode 100644
index 000000000000..ba41a20289a5
--- /dev/null
+++ b/sys-power/apcupsd/files/digest-apcupsd-3.12.2-r1
@@ -0,0 +1,3 @@
+MD5 f771fafbc06551e7820bd3d277b5cce3 apcupsd-3.12.2.tar.gz 4219660
+RMD160 0076affa09d1dcd5efda36d30a22161c797b9bde apcupsd-3.12.2.tar.gz 4219660
+SHA256 755cd2bffc4090c58979a87ed3f9135afd1846153feb8a39fad95f745adbd347 apcupsd-3.12.2.tar.gz 4219660