summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-05-15 23:43:08 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-05-15 23:43:08 +0000
commit5eb28242b8b1f1a6aae5aa63b78e2fb1c25fe7d1 (patch)
treea9fe4ff41acb67246d7a49adab0eb45eef041f1b /sys-power/nut/files
parentVersion bump. You can record DVDs with cdrecord now. Be aware of the licens... (diff)
downloadhistorical-5eb28242b8b1f1a6aae5aa63b78e2fb1c25fe7d1.tar.gz
historical-5eb28242b8b1f1a6aae5aa63b78e2fb1c25fe7d1.tar.bz2
historical-5eb28242b8b1f1a6aae5aa63b78e2fb1c25fe7d1.zip
Bug #111701 - Move from www-apps to sys-power.
Package-Manager: portage-2.1_rc1-r2
Diffstat (limited to 'sys-power/nut/files')
-rw-r--r--sys-power/nut/files/digest-nut-2.0.03
-rw-r--r--sys-power/nut/files/digest-nut-2.0.0-r13
-rw-r--r--sys-power/nut/files/digest-nut-2.0.1_pre43
-rwxr-xr-xsys-power/nut/files/upsd.rc626
-rwxr-xr-xsys-power/nut/files/upsdrv.rc621
-rwxr-xr-xsys-power/nut/files/upsdrv.rc6-r121
-rwxr-xr-xsys-power/nut/files/upsmon.rc620
7 files changed, 97 insertions, 0 deletions
diff --git a/sys-power/nut/files/digest-nut-2.0.0 b/sys-power/nut/files/digest-nut-2.0.0
new file mode 100644
index 000000000000..783df5868fa7
--- /dev/null
+++ b/sys-power/nut/files/digest-nut-2.0.0
@@ -0,0 +1,3 @@
+MD5 84649ad95809737b5ffc19efdd9e9952 nut-2.0.0.tar.gz 530492
+RMD160 7f36296b61b79fe13d78c65a66aa034b60e1c0d2 nut-2.0.0.tar.gz 530492
+SHA256 5015eda31ffae1e899c6b80d9c0c943e24fae1934591a50018f01e2622ebf9b8 nut-2.0.0.tar.gz 530492
diff --git a/sys-power/nut/files/digest-nut-2.0.0-r1 b/sys-power/nut/files/digest-nut-2.0.0-r1
new file mode 100644
index 000000000000..783df5868fa7
--- /dev/null
+++ b/sys-power/nut/files/digest-nut-2.0.0-r1
@@ -0,0 +1,3 @@
+MD5 84649ad95809737b5ffc19efdd9e9952 nut-2.0.0.tar.gz 530492
+RMD160 7f36296b61b79fe13d78c65a66aa034b60e1c0d2 nut-2.0.0.tar.gz 530492
+SHA256 5015eda31ffae1e899c6b80d9c0c943e24fae1934591a50018f01e2622ebf9b8 nut-2.0.0.tar.gz 530492
diff --git a/sys-power/nut/files/digest-nut-2.0.1_pre4 b/sys-power/nut/files/digest-nut-2.0.1_pre4
new file mode 100644
index 000000000000..137dd0b8c5d2
--- /dev/null
+++ b/sys-power/nut/files/digest-nut-2.0.1_pre4
@@ -0,0 +1,3 @@
+MD5 399f79406e07aa2a689bc6a119b0fcad nut-2.0.1-pre4.tar.gz 563526
+RMD160 5b0a3ab8a400e70f308471aa7b1fbcaa8052f739 nut-2.0.1-pre4.tar.gz 563526
+SHA256 6a374f34e155ef2f09c10c046ef34a628fe4cb9970973c88c57cbca16d78624f nut-2.0.1-pre4.tar.gz 563526
diff --git a/sys-power/nut/files/upsd.rc6 b/sys-power/nut/files/upsd.rc6
new file mode 100755
index 000000000000..ebe6414b06e7
--- /dev/null
+++ b/sys-power/nut/files/upsd.rc6
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net upsdrv
+ before upsmon
+}
+
+start() {
+ ebegin "Starting upsd"
+ # clean up first
+ pkill -u root -x upsd
+ sleep 1s
+ rm -f /var/state/nut/upsd.pid
+ # now start up
+ start-stop-daemon --start --quiet --exec /usr/sbin/upsd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping upsd"
+ start-stop-daemon --stop --quiet --pidfile /var/lib/nut/upsd.pid
+ eend $?
+}
diff --git a/sys-power/nut/files/upsdrv.rc6 b/sys-power/nut/files/upsdrv.rc6
new file mode 100755
index 000000000000..85a0c84debad
--- /dev/null
+++ b/sys-power/nut/files/upsdrv.rc6
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsdrv.rc6,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net
+ before upsd
+}
+
+start() {
+ ebegin "Starting UPS drivers"
+ /sbin/upsdrvctl start
+ eend $? "Failed to start UPS drivers!"
+}
+
+stop() {
+ ebegin "Stopping UPS drivers"
+ /sbin/upsdrvctl stop
+ eend $? "Failed to stop UPS drivers!"
+}
diff --git a/sys-power/nut/files/upsdrv.rc6-r1 b/sys-power/nut/files/upsdrv.rc6-r1
new file mode 100755
index 000000000000..fef39d17ac91
--- /dev/null
+++ b/sys-power/nut/files/upsdrv.rc6-r1
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsdrv.rc6-r1,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net
+ before upsd
+}
+
+start() {
+ ebegin "Starting UPS drivers"
+ /usr/sbin/upsdrvctl start
+ eend $? "Failed to start UPS drivers!"
+}
+
+stop() {
+ ebegin "Stopping UPS drivers"
+ /usr/sbin/upsdrvctl stop
+ eend $? "Failed to stop UPS drivers!"
+}
diff --git a/sys-power/nut/files/upsmon.rc6 b/sys-power/nut/files/upsmon.rc6
new file mode 100755
index 000000000000..ba488c7d8ce5
--- /dev/null
+++ b/sys-power/nut/files/upsmon.rc6
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsmon.rc6,v 1.1 2006/05/15 23:43:08 robbat2 Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting upsmon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/upsmon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping upsmon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/upsmon.pid
+ eend $?
+}