diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2007-03-05 22:40:06 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2007-03-05 22:40:06 +0000 |
commit | 346cf3c2d8785408451b06024a271cc7211efe78 (patch) | |
tree | 40b51ce2fc100e568ef4054ae9be53e14a6f03b6 /app-admin | |
parent | Removing myself from metadata.xml as I'm stepping back. (diff) | |
download | gentoo-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')
-rw-r--r-- | app-admin/sysrqd/ChangeLog | 11 | ||||
-rw-r--r-- | app-admin/sysrqd/Manifest | 24 | ||||
-rw-r--r-- | app-admin/sysrqd/files/digest-sysrqd-9 | 3 | ||||
-rw-r--r-- | app-admin/sysrqd/files/sysrqd-9-config.patch | 14 | ||||
-rwxr-xr-x | app-admin/sysrqd/files/sysrqd.init | 32 | ||||
-rw-r--r-- | app-admin/sysrqd/metadata.xml | 15 | ||||
-rw-r--r-- | app-admin/sysrqd/sysrqd-9.ebuild | 55 |
7 files changed, 154 insertions, 0 deletions
diff --git a/app-admin/sysrqd/ChangeLog b/app-admin/sysrqd/ChangeLog new file mode 100644 index 000000000000..fcfd1153a3c9 --- /dev/null +++ b/app-admin/sysrqd/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-admin/sysrqd +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/sysrqd/ChangeLog,v 1.1 2007/03/05 22:40:06 wschlich Exp $ + +*sysrqd-9 (05 Mar 2007) + + 05 Mar 2007; Wolfram Schlich <wschlich@gentoo.org> + +files/sysrqd-9-config.patch, +files/sysrqd.init, +metadata.xml, + +sysrqd-9.ebuild: + Initial import wrt bug #169104 + diff --git a/app-admin/sysrqd/Manifest b/app-admin/sysrqd/Manifest new file mode 100644 index 000000000000..2b334bc1c56e --- /dev/null +++ b/app-admin/sysrqd/Manifest @@ -0,0 +1,24 @@ +AUX sysrqd-9-config.patch 561 RMD160 dda44448863418331a2e6aaa4a480e8e92513c59 SHA1 ef9aa8754533000cbb7da19cfd80e038f9f4e777 SHA256 01ebb5cbfccb2ef1adda37f3416e88b10d01a9ed864facabb31b5fd2a95ce28f +MD5 35e330d72bc6ee5c264581f92a80b39e files/sysrqd-9-config.patch 561 +RMD160 dda44448863418331a2e6aaa4a480e8e92513c59 files/sysrqd-9-config.patch 561 +SHA256 01ebb5cbfccb2ef1adda37f3416e88b10d01a9ed864facabb31b5fd2a95ce28f files/sysrqd-9-config.patch 561 +AUX sysrqd.init 712 RMD160 b19b1eee58186acc9c31a7ce06cef129d814b251 SHA1 3b09d989e0d2808095b8c272cf46ea74fb4fea86 SHA256 1312893c10b20d6080c0bcb53d4adcf56d66429675dc72c18f7565dd428dded0 +MD5 b80bea1cf68d5807dc7653669b3a3293 files/sysrqd.init 712 +RMD160 b19b1eee58186acc9c31a7ce06cef129d814b251 files/sysrqd.init 712 +SHA256 1312893c10b20d6080c0bcb53d4adcf56d66429675dc72c18f7565dd428dded0 files/sysrqd.init 712 +DIST sysrqd-9.tar.gz 4188 RMD160 efad126dd4a3e64df077bedb9dedac0189a983af SHA1 55b1067e856ee4dd058ee721bc85907e740ff9eb SHA256 836723b6001a33e3b5684dca20ba7734732c337d21ba3b6a481a0304642e81e4 +EBUILD sysrqd-9.ebuild 1339 RMD160 b68846b45223b92b981b29913f3ce56b0326a446 SHA1 d402a50bdf55c2cc320a7f2887d69a1a80514766 SHA256 dc18d1231bf2cfc03fcc277edf1593100a50284cc3b38379f47b723f42ff303d +MD5 8cebb42a7ae2f8033d3a87a755f97161 sysrqd-9.ebuild 1339 +RMD160 b68846b45223b92b981b29913f3ce56b0326a446 sysrqd-9.ebuild 1339 +SHA256 dc18d1231bf2cfc03fcc277edf1593100a50284cc3b38379f47b723f42ff303d sysrqd-9.ebuild 1339 +MISC ChangeLog 316 RMD160 05ceaa169ea5184d482f7de19a39a9369aac248a SHA1 de22eb0834e994d8d360c0dbf9fba03bcc1ff281 SHA256 3c6c42c7f1a76af2dac9f8a1d44c8c4d958f3dc9f242bbbf8f9a470198329ba4 +MD5 b16d58bf0f64aeab85ea4db7256c77b4 ChangeLog 316 +RMD160 05ceaa169ea5184d482f7de19a39a9369aac248a ChangeLog 316 +SHA256 3c6c42c7f1a76af2dac9f8a1d44c8c4d958f3dc9f242bbbf8f9a470198329ba4 ChangeLog 316 +MISC metadata.xml 538 RMD160 920d790ec42de53798cdc10a55ddeecb0635e85c SHA1 33fcfe1e3791ab26f364fea629c6ec42324277d9 SHA256 d03810a1941a72ff902f282a8fa76065ad9b13b0213ac3e52cb9eb64be2df105 +MD5 d5e3feba57346352e821111c8ed605d7 metadata.xml 538 +RMD160 920d790ec42de53798cdc10a55ddeecb0635e85c metadata.xml 538 +SHA256 d03810a1941a72ff902f282a8fa76065ad9b13b0213ac3e52cb9eb64be2df105 metadata.xml 538 +MD5 91a1536fe4fa193c062ad211b46f6555 files/digest-sysrqd-9 220 +RMD160 5d27f5f6b9d322f3651b9e1944cecb41d4068eb6 files/digest-sysrqd-9 220 +SHA256 21da79a08e51a6f57947a443fa39333d05f63aa126b7a8a2a46a8017201eded4 files/digest-sysrqd-9 220 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 $? +} diff --git a/app-admin/sysrqd/metadata.xml b/app-admin/sysrqd/metadata.xml new file mode 100644 index 000000000000..b66b907e9dab --- /dev/null +++ b/app-admin/sysrqd/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>wschlich@gentoo.org</email> + <name>Wolfram Schlich</name> + <description>Primary maintainer</description> +</maintainer> +<longdescription> +sysrqd is a small daemon intended to manage Linux Sysrq over network. +Its philosophy is to be very responsive under heavy load and try to +be somehow reliable. Authentication is made by clear password. +</longdescription> +</pkgmetadata> diff --git a/app-admin/sysrqd/sysrqd-9.ebuild b/app-admin/sysrqd/sysrqd-9.ebuild new file mode 100644 index 000000000000..459a3aa4fc25 --- /dev/null +++ b/app-admin/sysrqd/sysrqd-9.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/sysrqd/sysrqd-9.ebuild,v 1.1 2007/03/05 22:40:06 wschlich Exp $ + +inherit eutils toolchain-funcs + +IUSE="" +DESCRIPTION="daemon providing access to the kernel sysrq functions via network" +HOMEPAGE="http://julien.danjou.info/sysrqd.html" +SRC_URI="http://julien.danjou.info/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +DEPEND="" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-config.patch +} + +src_compile() { + $(tc-getCC) ${CFLAGS} -o sysrqd sysrqd.c +} + +src_install() { + + dosbin sysrqd + newinitd ${FILESDIR}/sysrqd.init sysrqd + + local bindip='127.0.0.1' secret + declare -i secret + let secret=${RANDOM}*${RANDOM}*${RANDOM}*${RANDOM} + echo ${bindip} > sysrqd.bind + echo ${secret} > sysrqd.secret + + diropts -m 0700 -o root -g root + dodir /etc/sysrqd + insinto /etc/sysrqd + insopts -m 0600 -o root -g root + doins sysrqd.bind + doins sysrqd.secret + + dodoc README ChangeLog +} + +pkg_postinst() { + einfo + einfo "Be sure to change the initial secret in /etc/sysrqd/sysrqd.secret !" + einfo "As a security precaution, sysrqd is configured to only listen on" + einfo "127.0.0.1 by default. Change the content of /etc/sysrqd/sysrqd.bind" + einfo "to an IPv4 address you want it to listen on or remove the file" + einfo "to make it listen on any IP address (0.0.0.0)." + einfo +} |