summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-03-14 17:25:29 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-03-14 17:25:29 -0500
commit0eb993d06d68dc4c42f8d88506a696d9b50ea8fe (patch)
treedaeb3bce31cdf46f68c099b539d1d1186913b3f2 /system
parent840e9e14740b2ffa90986ab7be5451013615debd (diff)
downloadslackbuilds-0eb993d06d68dc4c42f8d88506a696d9b50ea8fe.tar.gz
system/watchdog: Removed (unmaintained)
Reference: http://lists.slackbuilds.org/pipermail/slackbuilds-users/2010-October/006570.html Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/watchdog/README6
-rw-r--r--system/watchdog/README.SLACKWARE25
-rw-r--r--system/watchdog/config/rc.watchdog43
-rw-r--r--system/watchdog/doinst.sh23
-rw-r--r--system/watchdog/patches/watchdog-5.9-slackware.diff22
-rw-r--r--system/watchdog/slack-desc19
-rw-r--r--system/watchdog/watchdog.SlackBuild95
-rw-r--r--system/watchdog/watchdog.info10
8 files changed, 0 insertions, 243 deletions
diff --git a/system/watchdog/README b/system/watchdog/README
deleted file mode 100644
index 04588c79f3..0000000000
--- a/system/watchdog/README
+++ /dev/null
@@ -1,6 +0,0 @@
-Linux watchdog timer daemon
-
-This service periodically writes to /dev/watchdog - in the event
-of it _not_ being able to do so, Linux may reset the system.
-
-See also: README.SLACKWARE
diff --git a/system/watchdog/README.SLACKWARE b/system/watchdog/README.SLACKWARE
deleted file mode 100644
index f42f476043..0000000000
--- a/system/watchdog/README.SLACKWARE
+++ /dev/null
@@ -1,25 +0,0 @@
-For this to work, a kernel driver for the aformentioned device needs
-to be loaded. The module may be found in:
- /lib/modules/`uname -r`/kernel/drivers/watchdog
-
-It can be configured to try and fix things (such as networking)
-before triggering a reboot. As 'repair.sh' may be able to do.
-See the examples included in /usr/doc/watchdog-*/examples
-
-This package also contains the 'wd_keepalive' program by Marcel Jansen
-which "can be run during critical periods when the normal watcdog
-shouldn't be run. It will read from the same configuration file;
-it will do no checks but will keep writing to the device.
-
-To enable the watchdog: make sure a kernel module gets loaded for it
-(at boot) such as the 'softdog' or an actual hardware driver...
-
-If you don't understand what this is all about, maybe watch:
-http://www.youtube.com/watch?v=GV_1p3n1fkU
-
-Then add the following to rc.local:
-
-# Start the watchdog timer deamon
-if [ -x /etc/rc.d/rc.watchdog ]; then
- /etc/rc.d/rc.watchdog start
-fi
diff --git a/system/watchdog/config/rc.watchdog b/system/watchdog/config/rc.watchdog
deleted file mode 100644
index 7e07dff61f..0000000000
--- a/system/watchdog/config/rc.watchdog
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-#
-# /etc/rc.d/rc.watchdog
-#
-# Start/stop/restart the watchdog timer service.
-
-watchdog_start() {
- if [ ! -e /dev/watchdog ]; then
- echo "$0: No /dev/watchdog device node seems to exist on this system."
- echo "$0: A kernel module probably needs to be loaded; please see:"
- echo "$0: /usr/src/linux/Documentation/watchdog/watchdog-api.txt"
- exit 0
- fi
- if [ -x /usr/sbin/watchdog -a -r /etc/watchdog.conf ]; then
- echo "Starting the watchdog timer service: /usr/sbin/watchdog"
- /usr/sbin/watchdog
- fi
-}
-
-watchdog_stop() {
- killall watchdog
-}
-
-watchdog_restart() {
- watchdog_stop
- sleep 10 # can take a while to die
- watchdog_start
-}
-
-case "$1" in
-'start')
- watchdog_start
- ;;
-'stop')
- watchdog_stop
- ;;
-'restart')
- watchdog_restart
- ;;
-*)
- echo $"Usage: $0 {start|stop|restart}"
-esac
-
diff --git a/system/watchdog/doinst.sh b/system/watchdog/doinst.sh
deleted file mode 100644
index 9d8334e29c..0000000000
--- a/system/watchdog/doinst.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
-# Keep same perms on rc.watchdog:
-if [ -e etc/rc.d/rc.watchdog ]; then
- cp -a etc/rc.d/rc.watchdog etc/rc.d/rc.watchdog.new.incoming
- cat etc/rc.d/rc.watchdog.new > etc/rc.d/rc.watchdog.new.incoming
- mv etc/rc.d/rc.watchdog.new.incoming etc/rc.d/rc.watchdog.new
-fi
-
-config etc/rc.d/rc.watchdog.new
-config etc/watchdog.conf.new
-
diff --git a/system/watchdog/patches/watchdog-5.9-slackware.diff b/system/watchdog/patches/watchdog-5.9-slackware.diff
deleted file mode 100644
index 022d7b7394..0000000000
--- a/system/watchdog/patches/watchdog-5.9-slackware.diff
+++ /dev/null
@@ -1,22 +0,0 @@
---- watchdog-5.4.orig/examples/repair.sh 2006-07-30 05:50:06.000000000 -0500
-+++ watchdog-5.9/examples/repair.sh 2008-03-02 12:58:08.086346303 -0600
-@@ -48,6 +48,9 @@
- elif [ -x /etc/init.d/networking ]; then
- # Debian
- /etc/init.d/networking stop
-+ elif [ -x /etc/rc.d/rc.inet1 ]; then
-+ # Slackware
-+ /etc/rc.d/rc.inet1 stop
- else
- ifconfig |
- awk '/Link/ {print $1}' |
-@@ -79,6 +82,9 @@
- elif [ -x /etc/rc.d/init.d/network ]; then
- # Redhat
- /etc/rc.d/init.d/network start
-+elif [ -x /etc/rc.d/rc.inet1 ]; then
-+ # Slackware
-+ /etc/rc.d/rc.inet1 start
- else
- echo "Couldn't find network script to relaunch networking. Please edit $0" | logger -i -t repair -p daemon.info
- exit $1
diff --git a/system/watchdog/slack-desc b/system/watchdog/slack-desc
deleted file mode 100644
index 1a7557f1d5..0000000000
--- a/system/watchdog/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':'.
-
- |-----handy-ruler-----------------------------------------------------|
-watchdog: watchdog (Linux watchdog timer daemon)
-watchdog:
-watchdog: This service periodically writes to /dev/watchdog - in the event
-watchdog: of it _not_ being able to do so; Linux may reset the system.
-watchdog:
-watchdog: It can be configured to try and fix things (such as networking)
-watchdog: before going about triggering reboot.
-watchdog:
-watchdog: The watchdog was written and is maintained by Michael Meskes
-watchdog: (based on example code by Alan Cox).
-watchdog:
diff --git a/system/watchdog/watchdog.SlackBuild b/system/watchdog/watchdog.SlackBuild
deleted file mode 100644
index b5348407a7..0000000000
--- a/system/watchdog/watchdog.SlackBuild
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/sh
-
-# Slackware build script for watchdog
-
-# Written by Menno Duursma <druiloor@zonnet.nl>
-
-# This program is free software. It comes without any warranty.
-# Granted WTFPL, Version 2, as published by Sam Hocevar. See
-# http://sam.zoy.org/wtfpl/COPYING for more details.
-
-PRGNAM=watchdog
-VERSION=${VERSION:-5.9}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
-
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
-set -e # Exit on most errors
-
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
-chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
-
-# Apply the Slackware support scripts patch
-patch -p1 --verbose < $CWD/patches/$PRGNAM-$VERSION-slackware.diff
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-make
-make install-strip DESTDIR=$PKG
-
-# Move config to .new; let doinst.sh handle it further
-mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
-
-# Add init script too
-install -D -m755 $CWD/config/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new
-
-# Install the repair script
-install -D -m755 examples/repair.sh $PKG/usr/sbin/repair
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a [A-Z][A-Z]* ChangeLog examples $PKG/usr/doc/$PRGNAM-$VERSION
-# Add the Debian doc for additional reference
-cp -a debian/README.debian $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/watchdog/watchdog.info b/system/watchdog/watchdog.info
deleted file mode 100644
index c93679d0a4..0000000000
--- a/system/watchdog/watchdog.info
+++ /dev/null
@@ -1,10 +0,0 @@
-PRGNAM="watchdog"
-VERSION="5.9"
-HOMEPAGE="http://sourceforge.net/projects/watchdog"
-DOWNLOAD="http://sourceforge.net/projects/watchdog/files/watchdog/5.9/watchdog-5.9.tar.gz"
-MD5SUM="d7cae3c9829f5d9a680764f314234867"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-MAINTAINER="Menno Duursma"
-EMAIL="druiloor@zonnet.nl"
-APPROVED="Erik Hanson"