From 3974b80745717853cadb1cc680573d898d056a73 Mon Sep 17 00:00:00 2001 From: dsomero Date: Fri, 21 May 2010 23:46:55 -0400 Subject: system/watchdog: Removed (download link broken) --- system/watchdog/README | 25 ------ system/watchdog/doinst.sh | 23 ------ .../watchdog/patches/watchdog-5.7-slackware.diff | 22 ------ system/watchdog/rc.watchdog | 43 ----------- system/watchdog/slack-desc | 19 ----- system/watchdog/watchdog.SlackBuild | 88 ---------------------- system/watchdog/watchdog.info | 10 --- 7 files changed, 230 deletions(-) delete mode 100644 system/watchdog/README delete mode 100644 system/watchdog/doinst.sh delete mode 100644 system/watchdog/patches/watchdog-5.7-slackware.diff delete mode 100644 system/watchdog/rc.watchdog delete mode 100644 system/watchdog/slack-desc delete mode 100644 system/watchdog/watchdog.SlackBuild delete mode 100644 system/watchdog/watchdog.info diff --git a/system/watchdog/README b/system/watchdog/README deleted file mode 100644 index 63459e151c..0000000000 --- a/system/watchdog/README +++ /dev/null @@ -1,25 +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. - -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/char/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-5.6/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... -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/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.7-slackware.diff b/system/watchdog/patches/watchdog-5.7-slackware.diff deleted file mode 100644 index 20bf0e3d32..0000000000 --- a/system/watchdog/patches/watchdog-5.7-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.7/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/rc.watchdog b/system/watchdog/rc.watchdog deleted file mode 100644 index 7e07dff61f..0000000000 --- a/system/watchdog/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/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 1b5a8649dc..0000000000 --- a/system/watchdog/watchdog.SlackBuild +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/sh - -# Slackware build script for watchdog - -# Written by Menno Duursma - -# 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.7} -ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -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" -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 -mkdir -p $PKG/etc/rc.d -cat $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.new - -# Compress man pages -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) - -# Copy program documentation into the package -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 -# Also, include the SlackBuild script in the documentation directory -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG - -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 5ade6b5e3e..0000000000 --- a/system/watchdog/watchdog.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="watchdog" -VERSION="5.7" -HOMEPAGE="http://sourceforge.net/projects/watchdog" -DOWNLOAD="http://www.ibiblio.org/pub/Linux/system/daemons/watchdog/watchdog-5.7.tar.gz" -MD5SUM="31766450ecfc9aff70fe966c0b9df06d" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -MAINTAINER="Menno Duursma" -EMAIL="druiloor@zonnet.nl" -APPROVED="Erik Hanson" -- cgit v1.2.3