--- sysrqd-9.orig/debian/init.d +++ sysrqd-9/debian/init.d @@ -0,0 +1,51 @@ +#! /bin/sh +# +# sysrqd init script - Julien Danjou +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/sysrqd +NAME=sysrqd +DESC="sysrq daemon" +SECRET=/etc/sysrqd.secret + +test -x $DAEMON || exit 0 +test -f $SECRET || exit 0 + +# Include sysrqd defaults if available +if [ -f /etc/default/sysrqd ] ; then + . /etc/default/sysrqd +fi + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- sysrqd-9.orig/debian/dirs +++ sysrqd-9/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- sysrqd-9.orig/debian/README.Debian +++ sysrqd-9/debian/README.Debian @@ -0,0 +1,18 @@ +sysrqd for Debian +----------------- + +To set up your password: +echo "mypassword" > /etc/sysrqd.secret && chmod 0600 /etc/sysrqd.secret + +Then, you will be able to telnet to port 4094/tcp. + +% telnet localhost 4094 +Trying 127.0.0.1... +Connected to localhost.localdomain. +Escape character is '^]'. +sysrqd password: hello +sysrq> s +sysrq> u +sysrq> q + + -- Julien Danjou , Mon, 29 Aug 2005 17:26:14 +0200 --- sysrqd-9.orig/debian/changelog +++ sysrqd-9/debian/changelog @@ -0,0 +1,41 @@ +sysrqd (9-1) unstable; urgency=low + + * New upstream release. + + -- Julien Danjou Fri, 19 Jan 2007 16:40:43 +0100 + +sysrqd (8-1) unstable; urgency=low + + * New upstrem release. + + -- Julien Danjou Tue, 11 Jul 2006 11:49:23 +0200 + +sysrqd (6-1) unstable; urgency=low + + * New upstream release + - Fix error with pidfile (Closes: #367489) + * Port number is now 880, and documented in README.Debian (Closes: #367492) + * Fix init.d script (Closes: #367490) + * Bump standards version + + -- Julien Danjou Tue, 16 May 2006 15:20:15 +0200 + +sysrqd (5-1) unstable; urgency=low + + * New upstream release + + -- Julien Danjou Mon, 1 May 2006 12:00:32 +0200 + +sysrqd (4-1) unstable; urgency=low + + * New upstream release + * Change init.d script, now it can be stopped + + -- Julien Danjou Sun, 30 Apr 2006 22:12:25 +0200 + +sysrqd (3-1) unstable; urgency=low + + * Initial release (Closes: #361271) + + -- Julien Danjou Wed, 12 Apr 2006 15:45:15 +0200 + --- sysrqd-9.orig/debian/compat +++ sysrqd-9/debian/compat @@ -0,0 +1 @@ +4 --- sysrqd-9.orig/debian/control +++ sysrqd-9/debian/control @@ -0,0 +1,16 @@ +Source: sysrqd +Section: admin +Priority: optional +Maintainer: Julien Danjou +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.7.2 + +Package: sysrqd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: small daemon intended to manage Linux SysRq over network + Permits to execute usual SysRq commands by network, like: + sync, umount, reboot, poweroff, sak, term, etc. + . + Its philosophy is to be very responsive under heavy load and + try to be somehow reliable. Authentication is made by clear password. --- sysrqd-9.orig/debian/copyright +++ sysrqd-9/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Julien Danjou on +Mon, 29 Aug 2005 17:26:14 +0200. + +It was downloaded from http://julien.danjou.info/sysrqd.html + +Copyright Holder: Julien Danjou + +License: + + This software is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this software; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- sysrqd-9.orig/debian/rules +++ sysrqd-9/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/sysrqd. + $(MAKE) install DESTDIR=$(CURDIR)/debian/sysrqd + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installinit + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- sysrqd-9.orig/debian/docs +++ sysrqd-9/debian/docs @@ -0,0 +1 @@ +README