diff options
author | Michael Imhof <tantive@gentoo.org> | 2004-02-24 15:39:46 +0000 |
---|---|---|
committer | Michael Imhof <tantive@gentoo.org> | 2004-02-24 15:39:46 +0000 |
commit | 5251f47037dc2c046b08fd4d039a2d9ecc6bf854 (patch) | |
tree | ff92ad7faeb766ddac4e34e4577b6758f8f3f6c5 /sys-apps/apcupsd | |
parent | Add patch for -Z ps option for SELinux. (Manifest recommit) (diff) | |
download | gentoo-2-5251f47037dc2c046b08fd4d039a2d9ecc6bf854.tar.gz gentoo-2-5251f47037dc2c046b08fd4d039a2d9ecc6bf854.tar.bz2 gentoo-2-5251f47037dc2c046b08fd4d039a2d9ecc6bf854.zip |
Version bumped.
Diffstat (limited to 'sys-apps/apcupsd')
-rw-r--r-- | sys-apps/apcupsd/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/apcupsd/Manifest | 25 | ||||
-rw-r--r-- | sys-apps/apcupsd/apcupsd-3.10.10.ebuild | 102 | ||||
-rw-r--r-- | sys-apps/apcupsd/files/3.10.10/apache.conf | 8 | ||||
-rw-r--r-- | sys-apps/apcupsd/files/3.10.10/apcupsd.in.patch | 15 | ||||
-rw-r--r-- | sys-apps/apcupsd/files/3.10.10/smtp.patch | 112 | ||||
-rw-r--r-- | sys-apps/apcupsd/files/3.10.10/ucd-snmp.patch | 14 | ||||
-rw-r--r-- | sys-apps/apcupsd/files/digest-apcupsd-3.10.10 | 2 |
8 files changed, 275 insertions, 12 deletions
diff --git a/sys-apps/apcupsd/ChangeLog b/sys-apps/apcupsd/ChangeLog index 71c83fc6dca5..e7533535f99f 100644 --- a/sys-apps/apcupsd/ChangeLog +++ b/sys-apps/apcupsd/ChangeLog @@ -1,6 +1,13 @@ # 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.28 2004/01/27 20:58:56 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/apcupsd/ChangeLog,v 1.29 2004/02/24 15:39:46 tantive Exp $ + +*apcupsd-3.10.10 (24 Feb 2004) + + 24 Feb 2004; Michael Imhof <tantive@gentoo.org> apcupsd-3.10.10.ebuild, + files/3.10.10/apache.conf, files/3.10.10/apcupsd.in.patch, + files/3.10.10/smtp.patch, files/3.10.10/ucd-snmp.patch: + Version bumped. 27 Jan 2004; Michael Imhof <tantive@gentoo.org> apcupsd-3.10.9.ebuild: Marked x86. diff --git a/sys-apps/apcupsd/Manifest b/sys-apps/apcupsd/Manifest index f4e0790178b9..d9bd69d2469c 100644 --- a/sys-apps/apcupsd/Manifest +++ b/sys-apps/apcupsd/Manifest @@ -1,21 +1,24 @@ -MD5 6ddd9dcf2b5e174b5a657309d42a571f apcupsd-3.10.8.ebuild 2535 -MD5 7676d6e83cd6b250a5d90231782f0479 apcupsd-3.10.9.ebuild 2535 -MD5 80034f9031fbe63cd922b1bf2881bb20 ChangeLog 5232 +MD5 be70d2facba134c360e9f9ce77c3d63a apcupsd-3.10.9-r1.ebuild 2795 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 fa626eb4fbc61b0f48e0840e5558318b apcupsd-3.10.10.ebuild 2796 +MD5 80034f9031fbe63cd922b1bf2881bb20 ChangeLog 5232 +MD5 7676d6e83cd6b250a5d90231782f0479 apcupsd-3.10.9.ebuild 2535 +MD5 6ddd9dcf2b5e174b5a657309d42a571f apcupsd-3.10.8.ebuild 2535 MD5 b9d053cc2c8faa3c1a0f0998770799b0 apcupsd-3.10.6.ebuild 2527 MD5 f66859d42d0af37659622f78b276a8bc files/digest-apcupsd-3.10.6 123 MD5 c5a0f1d4de26b7e7e76641d5c722cd9f files/digest-apcupsd-3.10.8 123 +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.6/apache.conf 157 +MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.9/smtp.patch 2663 +MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.9/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.6/smtp.patch 2663 MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.6/ucd-snmp.patch 425 +MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.6/apache.conf 157 MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.6/apcupsd.in.patch 315 -MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.6/smtp.patch 2663 -MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.8/apache.conf 157 +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.8/smtp.patch 2663 -MD5 69cfaea0e3937c778c710b8120cbd379 files/3.10.9/apache.conf 157 -MD5 ac24c9a1e199dfd66650ca55ce1e33f4 files/3.10.9/ucd-snmp.patch 425 -MD5 2a93b5c4f2574caa199b3d93cf838e8c files/3.10.9/apcupsd.in.patch 315 -MD5 8f1a2aa4fd0307c2cfe3733e8454d3c2 files/3.10.9/smtp.patch 2663 diff --git a/sys-apps/apcupsd/apcupsd-3.10.10.ebuild b/sys-apps/apcupsd/apcupsd-3.10.10.ebuild new file mode 100644 index 000000000000..afe2e54bbce9 --- /dev/null +++ b/sys-apps/apcupsd/apcupsd-3.10.10.ebuild @@ -0,0 +1,102 @@ +# 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.ebuild,v 1.1 2004/02/24 15:39:46 tantive Exp $ + +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 +} + +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/3.10.10/apache.conf b/sys-apps/apcupsd/files/3.10.10/apache.conf new file mode 100644 index 000000000000..21305d257846 --- /dev/null +++ b/sys-apps/apcupsd/files/3.10.10/apache.conf @@ -0,0 +1,8 @@ +Alias /apcupsd/ /var/www/apcupsd/ + +<Directory "/var/www/apcupsd/"> + AllowOverride AuthConfig + Options ExecCGI + Order allow,deny + Allow from all +</Directory> diff --git a/sys-apps/apcupsd/files/3.10.10/apcupsd.in.patch b/sys-apps/apcupsd/files/3.10.10/apcupsd.in.patch new file mode 100644 index 000000000000..7bcb0f41c086 --- /dev/null +++ b/sys-apps/apcupsd/files/3.10.10/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-apps/apcupsd/files/3.10.10/smtp.patch b/sys-apps/apcupsd/files/3.10.10/smtp.patch new file mode 100644 index 000000000000..d0c6bbcbdd48 --- /dev/null +++ b/sys-apps/apcupsd/files/3.10.10/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-apps/apcupsd/files/3.10.10/ucd-snmp.patch b/sys-apps/apcupsd/files/3.10.10/ucd-snmp.patch new file mode 100644 index 000000000000..af9c363b2328 --- /dev/null +++ b/sys-apps/apcupsd/files/3.10.10/ucd-snmp.patch @@ -0,0 +1,14 @@ +--- src/drivers/snmp/snmp.c 2003-04-05 14:58:00.000000000 +0200 ++++ src/drivers/snmp/snmp.c 2003-08-21 14:25:11.000000000 +0200 +@@ -245,7 +245,10 @@ + return ret; + } + +-int snmp_ups_program_eeprom(UPSINFO *ups, int command, char *data) ++/*int snmp_ups_program_eeprom(UPSINFO *ups, int command, char *data) ++ * Modified for debian ++*/ ++int snmp_ups_program_eeprom(UPSINFO *ups, int command, void *data) + { + return 0; + } diff --git a/sys-apps/apcupsd/files/digest-apcupsd-3.10.10 b/sys-apps/apcupsd/files/digest-apcupsd-3.10.10 new file mode 100644 index 000000000000..881b15a192e5 --- /dev/null +++ b/sys-apps/apcupsd/files/digest-apcupsd-3.10.10 @@ -0,0 +1,2 @@ +MD5 b69ccf4f4196582ab3e26bf6af937610 apcupsd-3.10.10.tar.gz 3767971 +MD5 d9a0ddf7918c93ca28fa5832a4af54d8 gd1.2.tar.gz 64595 |