--- edac-utils-0.12.orig/src/etc/edac.init.in +++ edac-utils-0.12/src/etc/edac.init.in @@ -6,22 +6,25 @@ # Produced at Lawrence Livermore National Laboratory. # Written by Mark Grondona # UCRL-CODE-230739. +# Modified by Yaroslav Halchenko 2007 for Debian OS ############################################################################### # chkconfig: 345 40 60 ############################################################################### ### BEGIN INIT INFO # Provides: edac -# Required-Start: $named $time +# Required-Start: $local_fs $named $time +# Required-Stop: $local_fs $named $time # Default-Start: 3 5 # Default-Stop: 0 1 2 6 -# Description: Initialize EDAC drivers for machine hardware +# Short-Description: Initialize EDAC +# Description: Initialize EDAC: load DIMM labels into EDAC ### END INIT INFO ############################################################################### unset SERVICE SERVICE="edac" - +DESC="Memory Error Detection and Correction" prefix="@prefix@" exec_prefix="@exec_prefix@" sbindir="@sbindir@" @@ -42,37 +45,34 @@ ############################################################################### +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +. /lib/lsb/init-functions + +############################################################################### + service_start () { # Start the service. Required by LSB. # -# Assume that if EDAC_DRIVER is not set, then EDAC is configured -# automatically, thus return successfully, but don't do anything. -# [ -n "$EDAC_DRIVER" ] || return 0 - echo -n "Starting ${SERVICE}: " modprobe $EDAC_DRIVER - STATUS=$? - case $STATUS in - 0) echo success ;; - 5) echo No EDAC support for this hardware. ;; - *) echo failure ;; + rc=$? + case $rc in + 0) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 5) log_failure_msg ": No EDAC support for this hardware"; log_end_msg 1 ;; + *) log_failure_msg ": Unknown return code $rc. Please file a bug report"; log_end_msg 1;; esac } -############################################################################### - service_stop () { - echo -n "Disabling ${SERVICE}: " - if [ -n "$EDAC_DRIVER" ]; then - modprobe -r $EDAC_DRIVER - STATUS=$? - [ $STATUS -eq 0 ] && echo success || echo failure - else - echo "Not supported for this configuration." - STATUS=6 - fi + # Stop the service -- unload the module + [ -n "$EDAC_DRIVER" ] || return 0 + modprobe -r $EDAC_DRIVER + return $? } ############################################################################### @@ -81,29 +81,36 @@ { # Print the current status of the service. Required by LSB. # - edac-ctl --status - STATUS=0 + log_daemon_msg "Status of $DESC" + $EDAC --status + rc=0 } ############################################################################### -STATUS=4 - case "$1" in start) + [ "$VERBOSE" != no ] && log_daemon_msg "Loading drivers for $DESC" "${SERVICE} " service_start ;; stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Unloading drivers for $DESC" "${SERVICE} " service_stop ;; status) service_status ;; + restart|force-reload) + log_daemon_msg "Forcing reload of drivers for $DESC" "${SERVICE}" + service_stop || log_end_msg 1 + service_start && log_end_msg 0 || log_end_msg 1 + + ;; *) - COMMANDS="start|stop|status" - echo "Usage: $0 {${COMMANDS}}" - exit 2 + COMMANDS="{start|stop|status|restart|force-reload}" + echo "Usage: $0 ${COMMANDS}" >&2 + exit 3 ;; esac -exit $STATUS +: --- edac-utils-0.12.orig/debian/changelog +++ edac-utils-0.12/debian/changelog @@ -0,0 +1,24 @@ +edac-utils (0.12-1) unstable; urgency=low + + * New upstream release: + - installation of udev rules for edac-utils + - init file does nothing by default + * Boosted policy version to 3.7.3 (no changes) + * Build-depends on chrpath to fight rpath + + -- Yaroslav Halchenko Thu, 19 Jun 2008 01:13:42 -0400 + +edac-utils (0.10-2) unstable; urgency=low + + * Init script fixes: not printing starting message if VERBOSE==no, missing "no + effect" operation is added at the end (closes: #456644) + * Init script: added $local_fs as the required for start/stop, + meaningful message for error code 2 returned by starting command in init.d + + -- Yaroslav Halchenko Wed, 02 Jan 2008 13:04:22 -0500 + +edac-utils (0.10-1) unstable; urgency=low + + * Initial release (Closes: #445860) + + -- Yaroslav Halchenko Sat, 08 Dec 2007 23:48:08 -0500 --- edac-utils-0.12.orig/debian/compat +++ edac-utils-0.12/debian/compat @@ -0,0 +1 @@ +5 --- edac-utils-0.12.orig/debian/control +++ edac-utils-0.12/debian/control @@ -0,0 +1,93 @@ +Source: edac-utils +Section: admin +Priority: extra +Maintainer: Yaroslav Halchenko +Uploaders: Tim Small +Build-Depends: cdbs, debhelper (>= 5), autotools-dev, libsysfs-dev, chrpath +Standards-Version: 3.7.3 +Homepage: http://sourceforge.net/projects/edac-utils +Vcs-Git: http://git.onerussian.com/vcs/edac-utils +Vcs-Browser: http://git.onerussian.com/?p=edac-utils + +Package: edac-utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6) +Recommends: dmidecode +Description: report kernel-detected PCI and ECC RAM errors + This package contains the user-space utilities for use with the EDAC + kernel subsystem. EDAC (Error Detection and Correction) is a set of + Linux kernel modules for handling hardware-related errors. Currently + its major focus is ECC memory error handling. However it also detects + and reports PCI bus parity errors. + . + PCI parity errors are supported on all architectures (and are a + mandatory part of the PCI specification). + . + Main memory ECC drivers are memory controller specific. At the time + of writing, drivers exist for many x86-specific chipsets and CPUs, + and some PowerPC, and MIPS systems. + . + This package provides command lines tools + +Package: libedac-dev +Section: libdevel +Architecture: any +Depends: libedac1 (= ${binary:Version}) +Description: report kernel-detected PCI and ECC RAM errors + This package contains the user-space utilities for use with the EDAC + kernel subsystem. EDAC (Error Detection and Correction) is a set of + Linux kernel modules for handling hardware-related errors. Currently + its major focus is ECC memory error handling. However it also detects + and reports PCI bus parity errors. + . + PCI parity errors are supported on all architectures (and are a + mandatory part of the PCI specification). + . + Main memory ECC drivers are memory controller specific. At the time + of writing, drivers exist for many x86-specific chipsets and CPUs, + and some PowerPC, and MIPS systems. + . + This package contains development files for the library + +Package: libedac1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Provides: libedac +Description: report kernel-detected PCI and ECC RAM errors + This package contains the user-space utilities for use with the EDAC + kernel subsystem. EDAC (Error Detection and Correction) is a set of + Linux kernel modules for handling hardware-related errors. Currently + its major focus is ECC memory error handling. However it also detects + and reports PCI bus parity errors. + . + PCI parity errors are supported on all architectures (and are a + mandatory part of the PCI specification). + . + Main memory ECC drivers are memory controller specific. At the time + of writing, drivers exist for many x86-specific chipsets and CPUs, + and some PowerPC, and MIPS systems. + . + This package includes shared library + +Package: libedac1-dbg +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libedac1 (= ${binary:Version}) +Provides: libedac +Description: report kernel-detected PCI and ECC RAM errors + This package contains the user-space utilities for use with the EDAC + kernel subsystem. EDAC (Error Detection and Correction) is a set of + Linux kernel modules for handling hardware-related errors. Currently + its major focus is ECC memory error handling. However it also detects + and reports PCI bus parity errors. + . + PCI parity errors are supported on all architectures (and are a + mandatory part of the PCI specification). + . + Main memory ECC drivers are memory controller specific. At the time + of writing, drivers exist for many x86-specific chipsets and CPUs, + and some PowerPC, and MIPS systems. + . + This package includes shared library with debugging symbols + not stripped --- edac-utils-0.12.orig/debian/control.in +++ edac-utils-0.12/debian/control.in @@ -0,0 +1,46 @@ +#define RUNWITH sed -e "/#include \"description.in\"/r debian/description.in" -e "/#.*/d" +Source: edac-utils +Section: admin +Priority: extra +Maintainer: Yaroslav Halchenko +Uploaders: Tim Small +Build-Depends: cdbs, debhelper (>= 5), autotools-dev, libsysfs-dev +Standards-Version: 3.7.2 +Homepage: http://sourceforge.net/projects/edac-utils +Vcs-Git: http://git.onerussian.com/vcs/edac-utils +Vcs-Browser: http://git.onerussian.com/?p=edac-utils + +Package: edac-utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6) +Recommends: dmidecode +#include "description.in" + . + This package provides command lines tools + +Package: libedac-dev +Section: libdevel +Architecture: any +Depends: libedac1 (= ${binary:Version}) +#include "description.in" + . + This package contains development files for the library + +Package: libedac1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Provides: libedac +#include "description.in" + . + This package includes shared library + +Package: libedac1-dbg +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libedac1 (= ${binary:Version}) +Provides: libedac +#include "description.in" + . + This package includes shared library with debugging symbols + not stripped --- edac-utils-0.12.orig/debian/copyright +++ edac-utils-0.12/debian/copyright @@ -0,0 +1,34 @@ +This package was originally debianized by Tim Small + on Thu, 21 Jun 2007 17:21:21 +0100. + +Packaging was finalized by Yaroslav Halchenko +some time in Nov-Dec 2007. + +It was downloaded from http://sourceforge.net/projects/edac-utils + +Upstream Author: Mark Grondona + +Copyright: 2001-2007 The Regents of the University of California + +License: + + This package 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; either version 2 of the License, or + (at your option) any later version. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Tim Small , 2007, +Yaroslav O. Halchenko and is licensed under the +GPL, see above. --- edac-utils-0.12.orig/debian/description.in +++ edac-utils-0.12/debian/description.in @@ -0,0 +1,13 @@ +Description: report kernel-detected PCI and ECC RAM errors + This package contains the user-space utilities for use with the EDAC + kernel subsystem. EDAC (Error Detection and Correction) is a set of + Linux kernel modules for handling hardware-related errors. Currently + its major focus is ECC memory error handling. However it also detects + and reports PCI bus parity errors. + . + PCI parity errors are supported on all architectures (and are a + mandatory part of the PCI specification). + . + Main memory ECC drivers are memory controller specific. At the time + of writing, drivers exist for many x86-specific chipsets and CPUs, + and some PowerPC, and MIPS systems. --- edac-utils-0.12.orig/debian/dirs +++ edac-utils-0.12/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- edac-utils-0.12.orig/debian/docs +++ edac-utils-0.12/debian/docs @@ -0,0 +1,3 @@ +NEWS +README +TODO --- edac-utils-0.12.orig/debian/edac-utils.edac.default +++ edac-utils-0.12/debian/edac-utils.edac.default @@ -0,0 +1,4 @@ +# If automated loading of driver for EDAC fails for you, specify +# desired driver to be handled by init.d script +# +# EDAC_DRIVER= --- edac-utils-0.12.orig/debian/edac-utils.install +++ edac-utils-0.12/debian/edac-utils.install @@ -0,0 +1,6 @@ +etc/init.d/* +etc/edac/* +usr/bin/edac-util +usr/sbin/edac-ctl +usr/share/man/man1/edac-util.1 +usr/share/man/man8/edac-ctl.8 --- edac-utils-0.12.orig/debian/libedac-dev.install +++ edac-utils-0.12/debian/libedac-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/share/man/man3/edac.3 +usr/lib/*.a +usr/lib/*.so +usr/lib/*.la --- edac-utils-0.12.orig/debian/libedac1.install +++ edac-utils-0.12/debian/libedac1.install @@ -0,0 +1 @@ +usr/lib/libedac.so.* --- edac-utils-0.12.orig/debian/rules +++ edac-utils-0.12/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk + +DEB_CONFIGURE_USER_FLAGS=--disable-rpath + +INIT_SCRIPT=debian/edac-utils.edac.init +UDEV_RULES=debian/edac-utils.udev + +$(INIT_SCRIPT): build + cp debian/tmp/etc/init.d/edac $@ +$(UDEV_RULES): build + cp src/etc/udev.rules $@ + # and lets take care about rpath hard way now + chrpath -d debian/tmp/usr/bin/edac-util + +install/edac-utils:: $(INIT_SCRIPT) $(UDEV_RULES) + +clean:: + -rm -f $(INIT_SCRIPT) + +DEB_DH_INSTALL_SOURCEDIR:=debian/tmp +DEB_DH_INSTALLINIT_ARGS:=--name=edac -- defaults 50 + +# Add here any variable or target overrides you need. +debian/control:: debian/control.in + sed -e "/#include \"description.in\"/r debian/description.in" -e "/#.*/d" $^ >| $@ + --- edac-utils-0.12.orig/debian/watch +++ edac-utils-0.12/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://sf.net/edac-utils/edac-utils-(.*)\.tar\.bz2 debian git-import-orig +