debian/0000755000000000000000000000000011756052000007162 5ustar debian/source/0000755000000000000000000000000011756051510010467 5ustar debian/source/format0000644000000000000000000000001411756051510011675 0ustar 3.0 (quilt) debian/edac-utils.edac.default0000644000000000000000000000020211756051510013454 0ustar # If automated loading of driver for EDAC fails for you, specify # desired driver to be handled by init.d script # # EDAC_DRIVER= debian/dirs0000644000000000000000000000002111756051510010044 0ustar usr/bin usr/sbin debian/watch0000644000000000000000000000021411756051510010215 0ustar version=3 opts="filenamemangle=s/.*\/(.*)/edac-utils-$1\.tar\.gz/" \ https://github.com/grondo/edac-utils/tags .*/tarball/(\d[\d\.a-z]+) debian/patches/0000755000000000000000000000000011756051510010616 5ustar debian/patches/series0000644000000000000000000000003711756051510012033 0ustar up_fix_manpage deb_init_script debian/patches/deb_init_script0000644000000000000000000001034011756051510013700 0ustar From: Yaroslav Halchenko Subject: Various changes to the init script provided by upstream to be more appropriate on Debian systems Created as a diff between release branch of pre 0.18 Debian releases and vanilla upstream releases Origin: Debian Last-Update: 2012-05-19 diff --git a/src/etc/edac.init.in b/src/etc/edac.init.in old mode 100644 new mode 100755 index 07aab94..4676ffd --- a/src/etc/edac.init.in +++ b/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 -# Default-Start: 3 5 -# Default-Stop: 0 1 2 6 -# Description: Initialize EDAC drivers for machine hardware +# Required-Start: $remote_fs $time +# Required-Stop: $remote_fs $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# 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@" @@ -45,6 +48,15 @@ done ############################################################################### +# 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. @@ -53,21 +65,24 @@ service_start () # automatically, thus return successfully, but don't do anything. # if [ -n "$EDAC_DRIVER" ]; then - echo -n "Starting ${SERVICE}: " + log_daemon_msg "Enabling ${DESC}" "$SERVICE" modprobe $EDAC_DRIVER STATUS=$? case $STATUS in - 0) echo success ;; - 5) echo No EDAC support for this hardware. ;; - *) echo failure ;; + 0) log_end_msg 0 ;; + 5) log_failure_msg "No EDAC support for this hardware"; log_end_msg 1 ;; + *) log_failure_msg "failure with exit code $STATUS"; log_end_msg 1 ;; esac + else + log_daemon_msg "Not enabling ${DESC} since EDAC_DRIVER is not set" + log_end_msg 0 fi - echo -n "Loading ${SERVICE} DIMM labels: " + log_daemon_msg "Loading DIMM labels for ${DESC}" "$SERVICE" $edac_ctl --register-labels --quiet STATUS=$? case $STATUS in - 0) echo success ;; - *) echo failure ;; + 0) log_end_msg 0 ;; + *) log_failure_msg "failure with exit code $STATUS"; log_end_msg 1 ;; esac } @@ -75,14 +90,18 @@ service_start () service_stop () { - echo -n "Disabling ${SERVICE}: " if [ -n "$EDAC_DRIVER" ]; then + modprobe -r $EDAC_DRIVER STATUS=$? - [ $STATUS -eq 0 ] && echo success || echo failure + case $STATUS in + 0) log_end_msg 0 ;; + *) log_failure_msg "failure with exit code $STATUS"; log_end_msg 1 ;; + esac else - echo "Not supported for this configuration." - STATUS=6 + [ "$VERBOSE" != no ] && log_daemon_msg "Not disabling $DESC since EDAC_DRIVER is not set" "$SERVICE" + # No need to complaint if no driver is provided + # STATUS=6 fi } @@ -92,7 +111,8 @@ service_status () { # Print the current status of the service. Required by LSB. # - edac-ctl --status + log_daemon_msg "Status of $DESC" + $edac_ctl --status STATUS=0 } @@ -110,11 +130,17 @@ case "$1" in 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 +# exit $STATUS +: debian/patches/up_fix_manpage0000644000000000000000000000103411756051510013521 0ustar From: Yaroslav Halchenko Subject: EL is not defined groff macro and imho is not necessary Origin: Debian Last-Update: 2012-05-19 --- a/src/util/edac-ctl.8.in +++ b/src/util/edac-ctl.8.in @@ -103,7 +103,6 @@ to read DMI information from the sysfs f If the sysfs files above do not exist, then \fBedac-ctl\fR will fall back to parsing output of the \fBdmidecode\fR(8) utility. Use of this utility will most often require that \fBedac-ctl\fR be run as root. -.EL .SH SEE ALSO \fBedac\fR(3), \fBedac-util\fR(1) debian/changelog0000644000000000000000000000406411756051510011045 0ustar edac-utils (0.18-1) unstable; urgency=low * Switched to 3.0 (quilt) format -- changes absorbed into deb_init_script patch * debian/watch - updated to monitor fresh github repository * debian/gbp.conf -- switching to build based on top of upstream's git * use dh_autoreconf to force autoreconf (Closes: #558500) * debian/control -- boosted policy to 3.9.3 (no further changes) * adjusted forgotten debian/control.in -- Yaroslav Halchenko Fri, 18 May 2012 22:22:14 -0400 edac-utils (0.16-1) unstable; urgency=low * New Upstream version 0.16 (closes: #542304) with cherry picked fixed for the library versioning from 0.16.1 (tagged upstream but not released) * Packaging: * Udev rules were abandoned upstream (closes: #542308) * Adjusted vcs paths in the header * Adjusted debian/watch to monitor upstream * Boosted policy to 3.8.3 * -dbg went to debug section * BF: adjusted init script to have runlevels in line with Debian, and Require- to not include named but use remote_fs for /usr (Closes: #541240), thanks Petter Reinholdtsen -- Yaroslav Halchenko Tue, 25 Aug 2009 14:56:02 -0400 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 debian/copyright0000644000000000000000000000260111756051510011121 0ustar 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-2008 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 (C) 2007-2009 Yaroslav O. Halchenko and is licensed under the GPL, see above. debian/libedac-dev.install0000644000000000000000000000010111756051510012706 0ustar usr/include/* usr/share/man/man3/edac.3 usr/lib/*.a usr/lib/*.so debian/rules0000755000000000000000000000124011756051510010244 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/autoreconf.mk DEB_CONFIGURE_USER_FLAGS=--disable-rpath INIT_SCRIPT=debian/edac-utils.edac.init $(INIT_SCRIPT): build cp debian/tmp/etc/init.d/edac $@ install/edac-utils:: $(INIT_SCRIPT) chrpath -d debian/tmp/usr/bin/edac-util 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" $^ >| $@ debian/libedac1.install0000644000000000000000000000002511756051510012220 0ustar usr/lib/libedac.so.* debian/docs0000644000000000000000000000002111756051510010033 0ustar NEWS README TODO debian/gbp.conf0000644000000000000000000000021511756051510010604 0ustar [DEFAULT] upstream-branch = master debian-branch = debian upstream-tag = %(version)s upstream-tree = branch debian-tag = debian/%(version)s debian/edac-utils.install0000644000000000000000000000017111756051510012610 0ustar 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 debian/control.in0000644000000000000000000000250711756051510011203 0ustar #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, chrpath, dh-autoreconf Standards-Version: 3.9.3 Homepage: http://sourceforge.net/projects/edac-utils Vcs-Git: git://git.onerussian.com/deb/edac-utils Vcs-Browser: http://git.onerussian.com/?p=deb/edac-utils.git 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: ${misc: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: debug 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 debian/description.in0000644000000000000000000000123211756051510012040 0ustar 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. debian/control0000644000000000000000000000735511756051510010604 0ustar Source: edac-utils Section: admin Priority: extra Maintainer: Yaroslav Halchenko Uploaders: Tim Small Build-Depends: cdbs, debhelper (>= 5), autotools-dev, libsysfs-dev, chrpath, dh-autoreconf Standards-Version: 3.9.3 Homepage: http://sourceforge.net/projects/edac-utils Vcs-Git: git://git.onerussian.com/deb/edac-utils Vcs-Browser: http://git.onerussian.com/?p=deb/edac-utils.git 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: ${misc: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: debug 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 debian/compat0000644000000000000000000000000211756051510010365 0ustar 5