summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2005-08-01 17:04:16 +0000
committerMichael Imhof <tantive@gentoo.org>2005-08-01 17:04:16 +0000
commit443135b27dd949e89481f8629cf31f245f872b04 (patch)
treea2865569268854262c5e326a5457fb8fad6dcbf8 /sys-power/apcupsd
parentMake aclocal work for systems without gdk-pixbuf already installed. (diff)
downloadhistorical-443135b27dd949e89481f8629cf31f245f872b04.tar.gz
historical-443135b27dd949e89481f8629cf31f245f872b04.tar.bz2
historical-443135b27dd949e89481f8629cf31f245f872b04.zip
Version bumped. Should close #100614.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-power/apcupsd')
-rw-r--r--sys-power/apcupsd/ChangeLog9
-rw-r--r--sys-power/apcupsd/Manifest37
-rw-r--r--sys-power/apcupsd/apcupsd-3.10.18.ebuild100
-rw-r--r--sys-power/apcupsd/files/3.10.18/apache.conf8
-rw-r--r--sys-power/apcupsd/files/3.10.18/apcupsd.in.patch15
-rw-r--r--sys-power/apcupsd/files/3.10.18/smtp.patch112
-rw-r--r--sys-power/apcupsd/files/digest-apcupsd-3.10.181
7 files changed, 270 insertions, 12 deletions
diff --git a/sys-power/apcupsd/ChangeLog b/sys-power/apcupsd/ChangeLog
index ebee5715322b..fc9fde9f68f1 100644
--- a/sys-power/apcupsd/ChangeLog
+++ b/sys-power/apcupsd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-power/apcupsd
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.5 2005/05/05 02:31:30 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.6 2005/08/01 17:04:16 tantive Exp $
+
+*apcupsd-3.10.18 (01 Aug 2005)
+
+ 01 Aug 2005; Michael Imhof <tantive@gentoo.org>
+ +files/3.10.18/apache.conf, +files/3.10.18/apcupsd.in.patch,
+ +files/3.10.18/smtp.patch, +apcupsd-3.10.18.ebuild:
+ Version bumped. Should close #100614.
05 May 2005; Mike Frysinger <vapier@gentoo.org> apcupsd-3.10.15-r1.ebuild,
apcupsd-3.10.16-r3.ebuild, apcupsd-3.10.17.ebuild:
diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest
index 47f614b90255..b45a7481aa65 100644
--- a/sys-power/apcupsd/Manifest
+++ b/sys-power/apcupsd/Manifest
@@ -1,17 +1,32 @@
-MD5 ce58378336c8c030fdd761f3ce384ca3 ChangeLog 11189
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 fa8c4988501225d5763b770d88f81102 apcupsd-3.10.17.ebuild 2588
+MD5 27ae5add10fc42e77804f1ecd768df87 metadata.xml 226
MD5 90addc3e3ec4f77230cd7f491e1da84a apcupsd-3.10.15-r1.ebuild 2421
+MD5 49b2b6d79b0fa05f07016b7eafc2d3fa ChangeLog 11430
MD5 4080a872f94b93a8e92d1b446c9c6d64 apcupsd-3.10.16-r3.ebuild 2627
-MD5 27ae5add10fc42e77804f1ecd768df87 metadata.xml 226
-MD5 fa8c4988501225d5763b770d88f81102 apcupsd-3.10.17.ebuild 2588
-MD5 ec48a12c6d8b56aeffbeaa629f8835ad files/digest-apcupsd-3.10.15-r1 68
+MD5 f06b1d0a6b130686a110322e2964aa38 apcupsd-3.10.18.ebuild 2589
+MD5 0477fe3f08b01a504eb26e6763f3982e files/digest-apcupsd-3.10.18 68
MD5 ed12d329ca566b8f2632d425828ea5d7 files/digest-apcupsd-3.10.16-r3 68
MD5 659d5670233b274842418c62ef15aafb files/digest-apcupsd-3.10.17 68
-MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.15/apache.conf 157
-MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.15/apcupsd.in.patch 315
-MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.15/smtp.patch 2663
-MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.16/apache.conf 157
-MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.16/apcupsd.in.patch 315
-MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.16/smtp.patch 2663
+MD5 ec48a12c6d8b56aeffbeaa629f8835ad files/digest-apcupsd-3.10.15-r1 68
+MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.17/smtp.patch 2663
MD5 27ad4b6b56ea3aef2a89dded4c19b656 files/3.10.17/apache.conf 163
MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.17/apcupsd.in.patch 315
-MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.17/smtp.patch 2663
+MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.18/smtp.patch 2663
+MD5 27ad4b6b56ea3aef2a89dded4c19b656 files/3.10.18/apache.conf 163
+MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.18/apcupsd.in.patch 315
+MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.16/smtp.patch 2663
+MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.16/apache.conf 157
+MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.16/apcupsd.in.patch 315
+MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.15/smtp.patch 2663
+MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.15/apache.conf 157
+MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.15/apcupsd.in.patch 315
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFC7lZRKtJO8LeSoosRAobdAJ0cSi1RyooZyZhmE6NeUyB4munx5wCfbR/f
+O2luBsFC67kutE6vhaT+mL0=
+=Ru3E
+-----END PGP SIGNATURE-----
diff --git a/sys-power/apcupsd/apcupsd-3.10.18.ebuild b/sys-power/apcupsd/apcupsd-3.10.18.ebuild
new file mode 100644
index 000000000000..b53556670e0f
--- /dev/null
+++ b/sys-power/apcupsd/apcupsd-3.10.18.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.10.18.ebuild,v 1.1 2005/08/01 17:04:16 tantive Exp $
+
+inherit eutils depend.apache
+
+need_apache
+
+DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown"
+HOMEPAGE="http://www.sibbald.com/apcupsd/"
+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"
+
+DEPEND="snmp? ( net-analyzer/net-snmp )
+ cgi? ( >=media-libs/gd-1.8.4
+ net-www/apache )
+ 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
+}
+
+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=/usr/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
+ insinto ${APACHE_MODULEDIR}
+ newins ${FILEDIR}/${PV}/apache.conf 60_apcupsd.conf
+ fi
+
+ 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; 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/3.10.18/apache.conf b/sys-power/apcupsd/files/3.10.18/apache.conf
new file mode 100644
index 000000000000..3156ab7976de
--- /dev/null
+++ b/sys-power/apcupsd/files/3.10.18/apache.conf
@@ -0,0 +1,8 @@
+ScriptAlias /apcupsd/ /var/www/apcupsd/
+
+<Directory "/var/www/apcupsd/">
+ AllowOverride AuthConfig
+ Options ExecCGI
+ Order allow,deny
+ Allow from all
+</Directory>
diff --git a/sys-power/apcupsd/files/3.10.18/apcupsd.in.patch b/sys-power/apcupsd/files/3.10.18/apcupsd.in.patch
new file mode 100644
index 000000000000..7bcb0f41c086
--- /dev/null
+++ b/sys-power/apcupsd/files/3.10.18/apcupsd.in.patch
@@ -0,0 +1,15 @@
+--- apcupsd.in 2002-09-14 14:03:18.000000000 +0200
++++ apcupsd.in.new 2003-11-06 16:34:28.000000000 +0100
+@@ -6,6 +6,12 @@
+ APCPID=@PIDDIR@/apcupsd.pid
+ APCUPSD=@sbindir@/apcupsd
+
++depend() {
++ after hotplug
++ after usb
++ after net
++}
++
+ start() {
+ rm -f /etc/apcupsd/powerfail
+ ebegin "Starting APC UPS daemon"
diff --git a/sys-power/apcupsd/files/3.10.18/smtp.patch b/sys-power/apcupsd/files/3.10.18/smtp.patch
new file mode 100644
index 000000000000..d0c6bbcbdd48
--- /dev/null
+++ b/sys-power/apcupsd/files/3.10.18/smtp.patch
@@ -0,0 +1,112 @@
+diff -u old/changeme new/changeme
+--- old/changeme 2003-11-01 11:31:10.000000000 -0500
++++ new/changeme 2003-11-01 11:27:09.000000000 -0500
+@@ -13,9 +13,10 @@
+ #
+ (
+ echo "Subject: $MSG"
+- echo " "
++ echo "To: $SYSADMIN"
++ echo
+ echo "$MSG"
+ echo " "
+ /usr/sbin/apcaccess status
+-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
++) | $APCUPSD_MAIL $SYSADMIN
+ exit 0
+diff -u old/commfailure new/commfailure
+--- old/commfailure 2003-11-01 11:31:26.000000000 -0500
++++ new/commfailure 2003-11-01 11:27:13.000000000 -0500
+@@ -13,9 +13,10 @@
+ #
+ (
+ echo "Subject: $MSG"
+- echo " "
++ echo "To: $SYSADMIN"
++ echo
+ echo "$MSG"
+ echo " "
+ /usr/sbin/apcaccess status
+-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
++) | $APCUPSD_MAIL $SYSADMIN
+ exit 0
+diff -u old/commok new/commok
+--- old/commok 2003-11-01 11:31:33.000000000 -0500
++++ new/commok 2003-11-01 11:27:16.000000000 -0500
+@@ -13,9 +13,10 @@
+ #
+ (
+ echo "Subject: $MSG"
+- echo " "
++ echo "To: $SYSADMIN"
++ echo
+ echo "$MSG"
+ echo " "
+ /usr/sbin/apcaccess status
+-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
++) | $APCUPSD_MAIL $SYSADMIN
+ exit 0
+diff -u old/mainsback new/mainsback
+--- old/mainsback 2003-11-01 11:30:55.000000000 -0500
++++ new/mainsback 2003-11-01 11:27:21.000000000 -0500
+@@ -13,9 +13,10 @@
+ #
+ (
+ echo "Subject: $MSG"
+- echo " "
++ echo "To: $SYSADMIN"
++ echo
+ echo "$MSG"
+ echo " "
+ /usr/sbin/apcaccess status
+-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
++) | $APCUPSD_MAIL $SYSADMIN
+ exit 0
+diff -u old/masterconnect new/masterconnect
+--- old/masterconnect 2003-11-01 11:31:43.000000000 -0500
++++ new/masterconnect 2003-11-01 11:27:30.000000000 -0500
+@@ -13,9 +13,10 @@
+ #
+ (
+ echo "Subject: $MSG"
+- echo " "
++ echo "To: $SYSADMIN"
++ echo
+ echo "$MSG"
+ echo " "
+ /usr/sbin/apcaccess status
+-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
++) | $APCUPSD_MAIL $SYSADMIN
+ exit 0
+diff -u old/mastertimeout new/mastertimeout
+--- old/mastertimeout 2003-11-01 11:31:52.000000000 -0500
++++ new/mastertimeout 2003-11-01 11:27:33.000000000 -0500
+@@ -13,9 +13,10 @@
+ #
+ (
+ echo "Subject: $MSG"
+- echo " "
++ echo "To: $SYSADMIN"
++ echo
+ echo "$MSG"
+ echo " "
+ /usr/sbin/apcaccess status
+-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
++) | $APCUPSD_MAIL $SYSADMIN
+ exit 0
+diff -u old/onbattery new/onbattery
+--- old/onbattery 2003-11-01 11:32:03.000000000 -0500
++++ new/onbattery 2003-11-01 11:27:35.000000000 -0500
+@@ -13,9 +13,10 @@
+ #
+ (
+ echo "Subject: $MSG"
+- echo " "
++ echo "To: $SYSADMIN"
++ echo
+ echo "$MSG"
+ echo " "
+ /usr/sbin/apcaccess status
+-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
++) | $APCUPSD_MAIL $SYSADMIN
+ exit 0
diff --git a/sys-power/apcupsd/files/digest-apcupsd-3.10.18 b/sys-power/apcupsd/files/digest-apcupsd-3.10.18
new file mode 100644
index 000000000000..34355c479450
--- /dev/null
+++ b/sys-power/apcupsd/files/digest-apcupsd-3.10.18
@@ -0,0 +1 @@
+MD5 64104a1fface0253e77318ca84948bac apcupsd-3.10.18.tar.gz 5698299