--- salinfo-1.2.orig/Makefile +++ salinfo-1.2/Makefile @@ -1,3 +1,4 @@ +DESTDIR := mandir := /usr/share/man sbindir := /usr/sbin logdir := /var/log/salinfo @@ -30,12 +31,18 @@ # package. install: salinfo_decode salinfo_decode_all - mkdir -p $(prefix)$(mandir)/man8 - mkdir -p $(prefix)$(logrotate) $(prefix)$(sbindir) $(prefix)$(initdir) $(prefix)$(sysconfigdir) - mkdir -p $(prefix)$(logdir) $(prefix)$(logdir)/raw $(prefix)$(logdir)/decoded - cp -a salinfo_decode.8 $(prefix)$(mandir)/man8 - cp -a salinfo_decode salinfo_decode_all $(prefix)$(sbindir) - cp -a salinfo-etc-sysconfig-salinfo_decode_all $(prefix)$(sysconfigdir)/salinfo_decode_all - chmod a+x salinfo-etc-init.d-salinfo_decode_all - cp -a salinfo-etc-init.d-salinfo_decode_all $(prefix)$(initdir)/salinfo_decode_all - cp -a salinfo-logrotate.d-salinfo_decode $(prefix)$(logrotate)/salinfo_decode + mkdir -p $(DESTDIR)$(prefix)$(mandir)/man8 +## The Debian package uses dh_installlogrotate instead +# mkdir -p $(prefix)$(logrotate) $(prefix)$(sbindir) $(prefix)$(initdir) $(prefix)$(sysconfigdir) + mkdir -p $(DESTDIR)$(prefix)$(sbindir) + mkdir -p $(DESTDIR)$(prefix)$(logdir) \ + $(DESTDIR)$(prefix)$(logdir)/raw/old \ + $(DESTDIR)$(prefix)$(logdir)/decoded/old + cp -a salinfo_decode.8 $(DESTDIR)$(mandir)/man8 + cp -a salinfo_decode salinfo_decode_all $(DESTDIR)$(prefix)$(sbindir) +## The Debian package uses a more debian-like initscript +# cp -a salinfo-etc-sysconfig-salinfo_decode_all $(prefix)$(sysconfigdir)/salinfo_decode_all +# chmod a+x salinfo-etc-init.d-salinfo_decode_all +# cp -a salinfo-etc-init.d-salinfo_decode_all $(prefix)$(initdir)/salinfo_decode_all +## The Debian package uses dh_installlogrotate instead +# cp -a salinfo-logrotate.d-salinfo_decode $(prefix)$(logrotate)/salinfo_decode --- salinfo-1.2.orig/debian/compat +++ salinfo-1.2/debian/compat @@ -0,0 +1 @@ +7 --- salinfo-1.2.orig/debian/changelog +++ salinfo-1.2/debian/changelog @@ -0,0 +1,63 @@ +salinfo (1.2-2) unstable; urgency=low + + * Update Standards-Version to 3.8.1 + * Update debhelper build-dep to 7 + * Use dh_prep instead of the deprecated dh_clean + * Capitalize "Linux" in the description for lintian + * Don't ignore make clean error + * Create a machine-readable copyright file + + -- dann frazier Thu, 18 Jun 2009 15:12:43 -0600 + +salinfo (1.2-1) unstable; urgency=low + + * New upstream release + * Update Standards-Version to 3.7.2 + * Add LSB section to initscript + + -- dann frazier Thu, 26 Oct 2006 16:37:21 -0600 + +salinfo (1.1-1) unstable; urgency=low + + * New upstream release + + -- dann frazier Thu, 30 Mar 2006 14:40:23 -0700 + +salinfo (1.0-1) unstable; urgency=low + + * New upstream release + * Update standards-version + + -- dann frazier Mon, 9 Jan 2006 16:46:52 -0700 + +salinfo (0.7-2) unstable; urgency=low + + * Don't silently exit when a SIGCHLD is received. For reference, see: + http://marc.theaimsgroup.com/?l=linux-ia64&m=111299534429862&w=2 + + -- dann frazier Tue, 19 Apr 2005 20:19:44 -0600 + +salinfo (0.7-1) unstable; urgency=low + + * New upstream release + + -- dann frazier Fri, 15 Oct 2004 10:55:01 -0600 + +salinfo (0.6-1) unstable; urgency=low + + * New upstream release + + -- dann frazier Mon, 04 Oct 2004 18:01:53 -0600 + +salinfo (0.5-2) unstable; urgency=low + + * Ignore directories when logrotating. Closes: #256246 + * Add a salinfo manpage. Closes: #253744 + + -- dann frazier Sun, 27 Jun 2004 14:10:19 -0600 + +salinfo (0.5-1) unstable; urgency=low + + * Initial Release. + + -- dann frazier Wed, 05 May 2004 23:38:33 -0600 --- salinfo-1.2.orig/debian/control +++ salinfo-1.2/debian/control @@ -0,0 +1,15 @@ +Source: salinfo +Section: admin +Priority: optional +Maintainer: dann frazier +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.1 + +Package: salinfo +Architecture: ia64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Monitor and decode events from Itanium firmware + SAL (System Abstraction Layer) provides useful diagnostic information that + can be extracted via a /proc interface in the Linux kernel. salinfo provides + a daemon that can monitor and capture this information into /var/log for + analysis. --- salinfo-1.2.orig/debian/salinfo.logrotate +++ salinfo-1.2/debian/salinfo.logrotate @@ -0,0 +1,43 @@ +/var/log/salinfo/raw/* { + weekly + ## no point in rotating more than once - the timestampped filename + ## will be unique - this just insures the file gets compressed and moved + ## to the old directory at some point. + rotate 1 + olddir /var/log/salinfo/raw/old + compress + nocreate + missingok + ## override size. these files should never be very big, there just may + ## be a lot of them + size 0 + ## this will only run if a log gets rotated, so old files won't get + ## deleted if no new logs are being generated; but that also means that + ## space used by the logs isn't increasing either + sharedscripts + postrotate + find /var/log/salinfo/*/old -type f -mtime +21 -exec rm {} \; + endscript +} + +/var/log/salinfo/decoded/* { + weekly + ## no point in rotating more than once - the timestampped filename + ## will be unique - this just insures the file gets compressed and moved + ## to the old directory at some point. + rotate 1 + olddir /var/log/salinfo/decoded/old + compress + nocreate + missingok + ## override size. these files should never be very big, there just may + ## be a lot of them + size 0 + ## this will only run if a log gets rotated, so old files won't get + ## deleted if no new logs are being generated; but that also means that + ## space used by the logs isn't increasing either + sharedscripts + postrotate + find /var/log/salinfo/*/old -type f -mtime +21 -exec rm {} \; + endscript +} --- salinfo-1.2.orig/debian/rules +++ salinfo-1.2/debian/rules @@ -0,0 +1,83 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +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 + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/salinfo. + $(MAKE) install DESTDIR=$(CURDIR)/debian/salinfo + + +# 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 + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf + dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime + dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + 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 --- salinfo-1.2.orig/debian/salinfo.default +++ salinfo-1.2/debian/salinfo.default @@ -0,0 +1,12 @@ +# Defaults for salinfo initscript +# sourced by /etc/init.d/salinfo +# installed at /etc/default/salinfo by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="-D /var/log/salinfo" +SALINFO_TYPES="cmc cpe mca init" +SALINFO_LOGDIR="/var/log/salinfo" --- salinfo-1.2.orig/debian/salinfo.init +++ salinfo-1.2/debian/salinfo.init @@ -0,0 +1,93 @@ +#! /bin/sh +# +# salinfo initscript +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# Modified for salinfo by dann frazier +# + +### BEGIN INIT INFO +# Provides: salinfo +# Required-Start: $syslog +# Required-Stop: $syslog +# Should-Start: $local_fs +# Should-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SAL log monitor +# Description: Watch for and extrace pending logs from SAL +# (System Abstraction Layer) +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/salinfo_decode +NAME=salinfo +DESC="salinfo decode daemons" + +test -x $DAEMON || exit 0 + +# Include salinfo defaults if available +if [ -f /etc/default/salinfo ] ; then + . /etc/default/salinfo +fi + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + for t in $SALINFO_TYPES; do + start-stop-daemon --start --quiet -b -m --pidfile /var/run/$NAME-$t.pid \ + --exec $DAEMON -- -t $t $DAEMON_OPTS + done + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + for t in $SALINFO_TYPES; do + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME-$t.pid \ + --exec $DAEMON + done + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + for t in $SALINFO_TYPES; do + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME-$t.pid --exec $DAEMON + done + sleep 1 + for t in $SALINFO_TYPES; do + start-stop-daemon --start --quiet -b -m --pidfile \ + /var/run/$NAME-$t.pid --exec $DAEMON -- -t $t $DAEMON_OPTS + done + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- salinfo-1.2.orig/debian/copyright +++ salinfo-1.2/debian/copyright @@ -0,0 +1,97 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=59&sc=0 +Name: salinfo +Maintainer: Bjorn Helgaas +Source: http://www.kernel.org/pub/linux/kernel/people/helgaas/ + +Files: * +Copyright: +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: debian/* +Copyright: dann frazier +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: efi.h +Copyright: 1999, VA Linux Systems + 1999, Walt Drummond + 1999, 2002, Hewlett-Packard Co. +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: mca.c +Copyright: 2003, Hewlett-Packard Co + 2002, Dell Computer Corporation + Matt Domsch (Matt_Domsch@dell.com) + 2002, Intel + Jenna Hall (jenna.s.hall@intel.com) + 2001, Intel + Fred Lewis (frederick.v.lewis@intel.com) + 2000, Intel + Chuck Fleckenstein (cfleck@co.intel.com) + 1999, Silicon Graphics, Inc. + Vijay Chander(vijay@engr.sgi.com) +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: mca.h +Copyright: 1999, Silicon Graphics, Inc. + Vijay Chander (vijay@engr.sgi.com) + Srinivasa Thirumalachar (sprasad@engr.sgi.com) +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: pal.h +Copyright: 1998-2001, Hewlett-Packard Co + 1999, VA Linux Systems + 1999, Walt Drummond + 1999, Srinivasa Prasad Thirumalachar +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: sal.h +Copyright: 2001, Intel + 2002, Jenna Hall + 2001, Fred Lewis + 1998, 1999, 2001, 2003 Hewlett-Packard Co + 1999 Srinivasa Prasad Thirumalachar +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: salinfo_decode.8 +Copyright: 2003, 2005, Silicon Graphics, Inc. All Rights Reserved +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: salinfo_decode_all.c +Copyright: 2005, Silicon Graphics, Inc +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. + +Files: salinfo_decode.c +Copyright: 2003, Hewlett-Packard Co + 2004, 2005, Silicon Graphics, Inc +License: GPL-2+ + On Debian systems the full text of the GNU General Public + License can be found in the `/usr/share/common-licenses/GPL-2' + file. +