summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2004-05-24 22:32:27 +0000
committerMichael Imhof <tantive@gentoo.org>2004-05-24 22:32:27 +0000
commit12a4861ee7b7239a3e6297da3129fe9527d76704 (patch)
tree42cd000709b7661cc96b843af239cf7ba90f8267 /sys-apps/apcupsd
parentarm KEYWORDS (diff)
downloadgentoo-2-12a4861ee7b7239a3e6297da3129fe9527d76704.tar.gz
gentoo-2-12a4861ee7b7239a3e6297da3129fe9527d76704.tar.bz2
gentoo-2-12a4861ee7b7239a3e6297da3129fe9527d76704.zip
Fixed path to stylesheet. Closes 51452.
Diffstat (limited to 'sys-apps/apcupsd')
-rw-r--r--sys-apps/apcupsd/ChangeLog7
-rw-r--r--sys-apps/apcupsd/Manifest32
-rw-r--r--sys-apps/apcupsd/apcupsd-3.10.10-r2.ebuild107
-rw-r--r--sys-apps/apcupsd/files/digest-apcupsd-3.10.10-r22
4 files changed, 132 insertions, 16 deletions
diff --git a/sys-apps/apcupsd/ChangeLog b/sys-apps/apcupsd/ChangeLog
index 070612427bec..828a27395437 100644
--- a/sys-apps/apcupsd/ChangeLog
+++ b/sys-apps/apcupsd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/apcupsd
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/apcupsd/ChangeLog,v 1.31 2004/04/27 21:00:49 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apcupsd/ChangeLog,v 1.32 2004/05/24 22:32:27 tantive Exp $
+
+*apcupsd-3.10.10-r2 (25 May 2004)
+
+ 25 May 2004; Michael Imhof <tantive@gentoo.org> apcupsd-3.10.10-r2.ebuild:
+ Fixed path to stylesheet. Closes 51452.
27 Apr 2004; Aron Griffis <agriffis@gentoo.org> apcupsd-3.10.10-r1.ebuild,
apcupsd-3.10.10.ebuild, apcupsd-3.10.8.ebuild, apcupsd-3.10.9.ebuild:
diff --git a/sys-apps/apcupsd/Manifest b/sys-apps/apcupsd/Manifest
index 42f8a466f5ff..7fac931158bb 100644
--- a/sys-apps/apcupsd/Manifest
+++ b/sys-apps/apcupsd/Manifest
@@ -1,28 +1,30 @@
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 9067349ccaef2914863749b2d0f5900f apcupsd-3.10.10.ebuild 2552
+MD5 caf87beed0c7dec56bc4f54f8a6a3136 apcupsd-3.10.10-r1.ebuild 2597
MD5 54a6c7b38d6d772747f72283ce71130f ChangeLog 5835
MD5 8572c924bc31bb95a1cee057698a5c00 apcupsd-3.10.9.ebuild 2551
-MD5 9067349ccaef2914863749b2d0f5900f apcupsd-3.10.10.ebuild 2552
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
MD5 94a35386c23e70ee32ca40bc35608e1a apcupsd-3.10.8.ebuild 2551
-MD5 caf87beed0c7dec56bc4f54f8a6a3136 apcupsd-3.10.10-r1.ebuild 2597
+MD5 be29fd6a8f66dc8f753f4675ded5cbb8 apcupsd-3.10.10-r2.ebuild 2724
+MD5 41859fb08df1a1b50385b2e4a187a5cc files/digest-apcupsd-3.10.10-r2 124
MD5 c5a0f1d4de26b7e7e76641d5c722cd9f files/digest-apcupsd-3.10.8 123
-MD5 ab17d3fa671f63d263570aebe6f611b1 files/digest-apcupsd-3.10.9 123
-MD5 41859fb08df1a1b50385b2e4a187a5cc files/digest-apcupsd-3.10.10 124
MD5 41859fb08df1a1b50385b2e4a187a5cc files/digest-apcupsd-3.10.10-r1 124
+MD5 41859fb08df1a1b50385b2e4a187a5cc files/digest-apcupsd-3.10.10 124
+MD5 ab17d3fa671f63d263570aebe6f611b1 files/digest-apcupsd-3.10.9 123
MD5 0a6d9da1e13f3a3a37fc77104eb8e2f2 files/3.10.5/apache.conf 163
-MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.8/apache.conf 157
-MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.8/apcupsd.in.patch 315
-MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.8/smtp.patch 2663
-MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.8/ucd-snmp.patch 425
-MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.9/apache.conf 157
-MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.9/apcupsd.in.patch 315
MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.9/smtp.patch 2663
MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.9/ucd-snmp.patch 425
-MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.6/apache.conf 157
+MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.9/apache.conf 157
+MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.9/apcupsd.in.patch 315
MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.6/smtp.patch 2663
-MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.6/apcupsd.in.patch 315
MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.6/ucd-snmp.patch 425
-MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.10/apache.conf 157
-MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.10/apcupsd.in.patch 315
+MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.6/apache.conf 157
+MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.6/apcupsd.in.patch 315
+MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.8/smtp.patch 2663
+MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.8/ucd-snmp.patch 425
+MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.8/apache.conf 157
+MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.8/apcupsd.in.patch 315
MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.10/smtp.patch 2663
MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.10/ucd-snmp.patch 425
MD5 a587dd06ee42560a7ece7a73ed769f04 files/3.10.10/apccontrol.diff 340
+MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.10/apache.conf 157
+MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.10/apcupsd.in.patch 315
diff --git a/sys-apps/apcupsd/apcupsd-3.10.10-r2.ebuild b/sys-apps/apcupsd/apcupsd-3.10.10-r2.ebuild
new file mode 100644
index 000000000000..ee6ab2cc242f
--- /dev/null
+++ b/sys-apps/apcupsd/apcupsd-3.10.10-r2.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apcupsd/apcupsd-3.10.10-r2.ebuild,v 1.1 2004/05/24 22:32:27 tantive Exp $
+
+inherit eutils
+
+IUSE="doc snmp usb apache2"
+
+S=${WORKDIR}/${P}
+DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown"
+SRC_URI="mirror://sourceforge/apcupsd/${P}.tar.gz
+ ftp://ftp.apcupsd.com/pub/apcupsd/contrib/gd1.2.tar.gz"
+HOMEPAGE="http://www.sibbald.com/apcupsd/"
+KEYWORDS="x86 ~amd64 ~ppc ~sparc"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND=">=sys-apps/baselayout-1.8.4
+ virtual/glibc
+ virtual/mta
+ snmp? ( net-analyzer/ucd-snmp )
+ sys-libs/ncurses"
+RDEPEND="${DEPEND}
+ usb? ( sys-apps/hotplug )"
+
+XPIDDIR=/var/run
+XLOGDIR=/var/log
+XLOCKDIR=/var/lock
+XSYSCONFDIR=/etc/apcupsd
+XPWRFAILDIR=${XSYSCONFDIR}
+
+src_unpack() {
+ unpack ${A}
+ cp -a ${WORKDIR}/gd1.2 ${S}/src/
+ cd ${S}/platforms/gentoo
+ epatch ${FILESDIR}/${PV}/apcupsd.in.patch
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/ucd-snmp.patch
+ epatch ${FILESDIR}/${PV}/apccontrol.diff
+ # fix path to stylesheet
+ sed -i -e 's:^#define CSS_DIR "/css/multimon.css":#define CSS_DIR "multimon.css":' src/cgi/multimoncss.c
+}
+
+src_compile() {
+ local myconf
+ use snmp && myconf="--enable-snmp"
+ APCUPSD_MAIL=/usr/sbin/sendmail ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/sbin \
+ --sysconfdir=${XSYSCONFDIR} \
+ --with-pwrfail-dir=${XPWRFAILDIR} \
+ --with-lock-dir=${XLOCKDIR} \
+ --with-pid-dir=${XPIDDIR} \
+ --with-log-dir=${XLOGDIR} \
+ --with-upstype=usb \
+ --with-upscable=usb \
+ --with-serial-dev=/dev/usb/hid/hiddev[0-9] \
+ --with-net-port=6666 \
+ --with-nis-port=3551 \
+ --enable-usb \
+ --enable-net \
+ --enable-oldnet \
+ --enable-master-slave \
+ --enable-powerflute \
+ --enable-pthreads \
+ --with-css-dir=/var/www/apcupsd \
+ --with-cgi-bin=/var/www/apcupsd \
+ --enable-cgi \
+ ${myconf} \
+ || die
+ make || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die "installed failed"
+
+ use apache2 || insinto /etc/apache/conf/addon-modules
+ use apache2 || newins ${FILESDIR}/${PV}/apache.conf apcupsd.conf
+
+ use apache2 && insinto /etc/apache2/conf/modules.d
+ use apache2 && newins ${FILESDIR}/${PV}/apache.conf 60_apcupsd.conf
+
+ insinto /etc/apcupsd
+ newins examples/safe.apccontrol safe.apccontrol
+
+ cd ${D}/etc/apcupsd
+ epatch ${FILESDIR}/${PV}/smtp.patch
+
+ ln -s onbattery powerout
+
+ if [ "`use doc`x" != "x" ]
+ 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-apps/apcupsd/files/digest-apcupsd-3.10.10-r2 b/sys-apps/apcupsd/files/digest-apcupsd-3.10.10-r2
new file mode 100644
index 000000000000..881b15a192e5
--- /dev/null
+++ b/sys-apps/apcupsd/files/digest-apcupsd-3.10.10-r2
@@ -0,0 +1,2 @@
+MD5 b69ccf4f4196582ab3e26bf6af937610 apcupsd-3.10.10.tar.gz 3767971
+MD5 d9a0ddf7918c93ca28fa5832a4af54d8 gd1.2.tar.gz 64595