From e3be9438432be79a2ca8258f60b55516caf407e3 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Sun, 19 Mar 2006 23:01:48 +0000 Subject: [PATCH] update debian files from maintainer --- ipmitool/debian/changelog | 30 +++++++++ ipmitool/debian/control | 10 +-- ipmitool/debian/ipmitool.ipmievd.init | 92 +++++++++++++++++++++++++++ ipmitool/debian/rules | 1 + 4 files changed, 128 insertions(+), 5 deletions(-) create mode 100644 ipmitool/debian/ipmitool.ipmievd.init diff --git a/ipmitool/debian/changelog b/ipmitool/debian/changelog index c01f345..4018a1b 100644 --- a/ipmitool/debian/changelog +++ b/ipmitool/debian/changelog @@ -1,3 +1,33 @@ +ipmitool (1.8.6-2) unstable; urgency=low + + * Add ia64 as an supported arch. (Closes: #355930) + + -- Petter Reinholdtsen Fri, 10 Mar 2006 23:34:50 +0100 + +ipmitool (1.8.6-1) unstable; urgency=low + + * New upstream version. + - Avoid crashing when setting lan IP address. (Closes: #351205) + * Avoid changing history by reverding upstream change + to email addresses in debian/changelog. + * Correct typo in control file: Suggest -> Suggests. Thanks + to Philipp Matthias Hahn for the report. + * Add init.d/ipmievd script. Based on script from Elmar Hoffmann, + slightly modified to use lsb-base functions. Added dependency on + lsb-base. (Closes: #345994) + + -- Petter Reinholdtsen Sun, 26 Feb 2006 10:31:14 +0100 + +ipmitool (1.8.2-2) unstable; urgency=low + + * Add build-dependency on 'libreadline5-dev | libreadline-dev' to make + sure all archs get readline support. (Closes: #326341) + * Add build-dependency on libssl-dev to enable SSL support on + all archs. + * Updated Standards-Version to 3.6.2.1. (No updates required) + + -- Petter Reinholdtsen Sat, 3 Sep 2005 19:18:51 +0200 + ipmitool (1.8.2-1) unstable; urgency=low * New upstream release. diff --git a/ipmitool/debian/control b/ipmitool/debian/control index 2f51264..1135522 100644 --- a/ipmitool/debian/control +++ b/ipmitool/debian/control @@ -3,13 +3,13 @@ Section: utils Priority: optional Maintainer: Petter Reinholdtsen Uploaders: Duncan Laurie -Build-Depends: debhelper (>> 4.0.0), -Standards-Version: 3.6.1 +Build-Depends: debhelper (>> 4.0.0), libreadline5-dev | libreadline-dev, libssl-dev +Standards-Version: 3.6.2.1 Package: ipmitool -Architecture: i386 amd64 -Depends: ${shlibs:Depends} -Suggest: openipmi +Architecture: i386 amd64 ia64 +Depends: ${shlibs:Depends}, lsb-base +Suggests: openipmi Description: utility for IPMI control with kernel driver or LAN interface A utility for managing and configuring devices that support the Intelligent Platform Management Interface. IPMI is an open standard diff --git a/ipmitool/debian/ipmitool.ipmievd.init b/ipmitool/debian/ipmitool.ipmievd.init new file mode 100644 index 0000000..1783d1a --- /dev/null +++ b/ipmitool/debian/ipmitool.ipmievd.init @@ -0,0 +1,92 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: ipmievd +# Required-Start: $local_fs $remote_fs $syslog +# Required-Stop: $local_fs $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: IPMI event daemon +# Description: ipmievd is a daemon which will listen for events +# from the BMC that are being sent to the SEL and +# also log those messages to syslog. +### END INIT INFO +# +# Author: Elmar Hoffmann +# Licence: This script is public domain using the same +# licence as ipmitool itself. +# Modified by: Petter Reinholdtsen + +set -e + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DESC="IPMI event daemon" +NAME=ipmievd +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Gracefully exit if the package has been removed. +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions +. /etc/default/rcS + +# Options used by ipmievd. +# +# "open" uses the asynchronous event notification from the OpenIPMI +# kernel driver, "sel" uses active polling of the contents of the SEL +# for new events. +# +# Need to force 'daemon' mode, to make sure messages are sent to +# syslog and the program forks into the background. +# +# Se ipmievd(8) for more info. +IPMIEVD_OPTIONS="open daemon" + +# Read config file if it is present. +[ -f /etc/default/$NAME ] && . /etc/default/$NAME + +# +# Function that starts the daemon/service. +# +d_start() { + start-stop-daemon --start --quiet --exec $DAEMON -- $IPMIEVD_OPTIONS +} + +# +# Function that stops the daemon/service. +# +d_stop() { + start-stop-daemon --stop --quiet --name $NAME --exec $DAEMON +} + +CODE=0 + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_begin_msg "Starting $DESC" "$NAME" + d_start || CODE=$? + [ "$VERBOSE" != no ] && log_end_msg $CODE + exit $CODE + ;; + stop) + log_begin_msg "Stopping $DESC" "$NAME" + d_stop || CODE=$? + log_end_msg $CODE + exit $CODE + ;; + restart|force-reload) + log_begin_msg "Restarting $DESC" "$NAME" + d_stop || true + sleep 1 + d_start || CODE=$? + log_end_msg $CODE + exit $CODE + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/ipmitool/debian/rules b/ipmitool/debian/rules index 4cee460..670e801 100755 --- a/ipmitool/debian/rules +++ b/ipmitool/debian/rules @@ -91,6 +91,7 @@ binary-common: dh_testroot dh_installdocs dh_installchangelogs + dh_installinit --name ipmievd dh_link dh_strip dh_compress