summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2003-08-02 20:34:52 +0000
committerBrian Jackson <iggy@gentoo.org>2003-08-02 20:34:52 +0000
commitd63ed381e7987d0d22fedc7d2ffed1b7a4fbff52 (patch)
tree90c7e54fe6514b95d22c398e7873110425b09ab9 /net-misc/powerd
parentnew package thanks to Tiemo Kieft <blubber@timesdesign.nl> bug # 24333 (diff)
downloadhistorical-d63ed381e7987d0d22fedc7d2ffed1b7a4fbff52.tar.gz
historical-d63ed381e7987d0d22fedc7d2ffed1b7a4fbff52.tar.bz2
historical-d63ed381e7987d0d22fedc7d2ffed1b7a4fbff52.zip
new package thanks to Tiemo Kieft <blubber@timesdesign.nl> bug # 24333
Diffstat (limited to 'net-misc/powerd')
-rw-r--r--net-misc/powerd/Manifest2
-rw-r--r--net-misc/powerd/files/digest-powerd-2.0.21
-rw-r--r--net-misc/powerd/files/powerd-init20
-rw-r--r--net-misc/powerd/metadata.xml14
-rw-r--r--net-misc/powerd/powerd-2.0.2.ebuild40
5 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/powerd/Manifest b/net-misc/powerd/Manifest
index ba983f2753bb..81af916e87db 100644
--- a/net-misc/powerd/Manifest
+++ b/net-misc/powerd/Manifest
@@ -1,3 +1,5 @@
+MD5 f4886e9da756f61d1b49949d57849d4a ChangeLog 421
+MD5 858a61140842be247fabf80aa3e660b9 metadata.xml 432
MD5 00535257ae90d87ec7cc2903fcc071e7 powerd-2.0.2.ebuild 918
MD5 e04b3f1b7350599bef3b1266737389a5 files/digest-powerd-2.0.2 63
MD5 bd02a31b26f2752f9d828738ce04fe04 files/powerd-init 333
diff --git a/net-misc/powerd/files/digest-powerd-2.0.2 b/net-misc/powerd/files/digest-powerd-2.0.2
new file mode 100644
index 000000000000..ba355fc0db1a
--- /dev/null
+++ b/net-misc/powerd/files/digest-powerd-2.0.2
@@ -0,0 +1 @@
+MD5 de283f67a1a64dee59d8f52c4c094569 powerd-2.0.2.tar.gz 64857
diff --git a/net-misc/powerd/files/powerd-init b/net-misc/powerd/files/powerd-init
new file mode 100644
index 000000000000..484277603ba0
--- /dev/null
+++ b/net-misc/powerd/files/powerd-init
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ after local
+}
+
+start() {
+ ebegin "Starting powerd"
+ start-stop-daemon --start --exec /usr/sbin/powerd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping powerd"
+ killall powerd
+ eend $?
+}
+
diff --git a/net-misc/powerd/metadata.xml b/net-misc/powerd/metadata.xml
new file mode 100644
index 000000000000..4837ebb6ff7f
--- /dev/null
+++ b/net-misc/powerd/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>iggy@gentoo.org</email>
+ <name>Brian Jackson</name>
+ <description>Actively maintained</description>
+ </maintainer>
+ <longdescription>
+ Package to notify networked computers of power failure as read from an UPS.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-misc/powerd/powerd-2.0.2.ebuild b/net-misc/powerd/powerd-2.0.2.ebuild
new file mode 100644
index 000000000000..62b137fca40a
--- /dev/null
+++ b/net-misc/powerd/powerd-2.0.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+inherit eutils
+
+IUSE=""
+
+DESCRIPTION="Generic UPS daemon"
+HOMEPAGE="http://power.sourceforge.net/"
+
+S=${WORKDIR}/${P}
+SRC_URI="http://belnet.dl.sourceforge.net/sourceforge/power/${P}.tar.gz"
+KEYWORDS="x86"
+LICENSE="GPL-2"
+SLOT="0"
+
+src_unpack() {
+ unpack ${A} || die
+}
+
+src_compile() {
+ cd ${S}
+ ./configure --prefix=${D}
+ emake || die
+}
+
+src_install() {
+ dosbin powerd
+ dobin detectups
+ dodoc powerd.conf.monitor powerd.conf.peer README FAQ INSTALL
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/powerd-init powerd
+}
+
+pkg_postinst() {
+ einfo "Add the following lines to your /etc/inittab, then do kill -SIGHUP 1"
+ einfo "pf:12345:powerfail:/sbin/shutdown -h +10 Power failure."
+ einfo "po:12345:powerokwait:/sbin/shutdown -c Power restored"
+ einfo "Change the +10 in whatever shutdown timeout you want."
+}