summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2007-03-05 22:40:06 +0000
committerWolfram Schlich <wschlich@gentoo.org>2007-03-05 22:40:06 +0000
commit346cf3c2d8785408451b06024a271cc7211efe78 (patch)
tree40b51ce2fc100e568ef4054ae9be53e14a6f03b6 /app-admin/sysrqd/files
parentRemoving myself from metadata.xml as I'm stepping back. (diff)
downloadgentoo-2-346cf3c2d8785408451b06024a271cc7211efe78.tar.gz
gentoo-2-346cf3c2d8785408451b06024a271cc7211efe78.tar.bz2
gentoo-2-346cf3c2d8785408451b06024a271cc7211efe78.zip
Initial import wrt bug #169104
(Portage version: 2.1.2-r12)
Diffstat (limited to 'app-admin/sysrqd/files')
-rw-r--r--app-admin/sysrqd/files/digest-sysrqd-93
-rw-r--r--app-admin/sysrqd/files/sysrqd-9-config.patch14
-rwxr-xr-xapp-admin/sysrqd/files/sysrqd.init32
3 files changed, 49 insertions, 0 deletions
diff --git a/app-admin/sysrqd/files/digest-sysrqd-9 b/app-admin/sysrqd/files/digest-sysrqd-9
new file mode 100644
index 000000000000..1aeffc0cfb8e
--- /dev/null
+++ b/app-admin/sysrqd/files/digest-sysrqd-9
@@ -0,0 +1,3 @@
+MD5 907961ddad7ab58ed782516dbdd6691c sysrqd-9.tar.gz 4188
+RMD160 efad126dd4a3e64df077bedb9dedac0189a983af sysrqd-9.tar.gz 4188
+SHA256 836723b6001a33e3b5684dca20ba7734732c337d21ba3b6a481a0304642e81e4 sysrqd-9.tar.gz 4188
diff --git a/app-admin/sysrqd/files/sysrqd-9-config.patch b/app-admin/sysrqd/files/sysrqd-9-config.patch
new file mode 100644
index 000000000000..5f368ae4ead8
--- /dev/null
+++ b/app-admin/sysrqd/files/sysrqd-9-config.patch
@@ -0,0 +1,14 @@
+diff -urN sysrqd-9.orig/sysrqd.h sysrqd-9/sysrqd.h
+--- sysrqd-9.orig/sysrqd.h 2007-01-19 15:33:26.000000000 +0100
++++ sysrqd-9/sysrqd.h 2007-03-05 21:22:44.000000000 +0100
+@@ -4,8 +4,8 @@
+ #define BIND_MAX_LEN 16
+ #define PROMPT "sysrq> "
+ #define SYSRQ_TRIGGER_PATH "/proc/sysrq-trigger"
+-#define AUTH_FILE "/etc/sysrqd.secret"
+-#define BINDIP_FILE "/etc/sysrqd.bind"
++#define AUTH_FILE "/etc/sysrqd/sysrqd.secret"
++#define BINDIP_FILE "/etc/sysrqd/sysrqd.bind"
+ #define PID_FILE "/var/run/sysrqd.pid"
+ #define SYSRQD_PRIO -19
+ #define SYSRQD_LISTEN_PORT 4094
diff --git a/app-admin/sysrqd/files/sysrqd.init b/app-admin/sysrqd/files/sysrqd.init
new file mode 100755
index 000000000000..5150cff29761
--- /dev/null
+++ b/app-admin/sysrqd/files/sysrqd.init
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sysrqd/files/sysrqd.init,v 1.1 2007/03/05 22:40:06 wschlich Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ sysrqd_secret=/etc/sysrqd/sysrqd.secret
+ sysrqd_pidfile=/var/run/sysrqd.pid
+ if [ ! -e ${sysrqd_secret} ]; then
+ eerror "You need a '${sysrqd_secret}' containing a secret/password!"
+ eerror "Refusing to start."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --pidfile ${sysrqd_pidfile} --quiet --exec /usr/sbin/sysrqd
+ eend $?
+}
+
+stop() {
+ checkconfig || return 1
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile ${sysrqd_pidfile}
+ eend $?
+}