debian/0000755000000000000000000000000012247373052007173 5ustar debian/watch0000644000000000000000000000014212245462422010217 0ustar # watch control file for uscan version=3 http://sf.net/ledmon/ledmon-(.+)\.tar\.gz debian uupdate debian/source/0000755000000000000000000000000012245462422010471 5ustar debian/source/format0000644000000000000000000000001412245462422011677 0ustar 3.0 (quilt) debian/control0000644000000000000000000000160412247372701010577 0ustar Source: ledmon Section: admin Priority: optional Maintainer: Daniel Jared Dominguez Build-Depends: debhelper (>= 9), perl, libsgutils2-dev Standards-Version: 3.9.5 Homepage: http://ledmon.sourceforge.net/ Package: ledmon Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends}, openipmi Description: Enclosure LED Utilities ledmon and ledctl are userspace tools designed to control storage enclosure LEDs. The user must have root privileges to use these tools. . These tools use the SGPIO and SES-2 protocols to monitor and control LEDs. They been verified to work with Intel(R) storage controllers (i.e. the Intel(R) AHCI controller) and have not been tested with storage controllers of other vendors (especially SAS/SCSI controllers). . For backplane enclosures attached to ISCI controllers, support is limited to Intel(R) Intelligent Backplanes. debian/docs0000644000000000000000000000000712245462422010041 0ustar README debian/compat0000644000000000000000000000000212247210165010364 0ustar 9 debian/patches/0000755000000000000000000000000012247207450010620 5ustar debian/patches/respect-external-CFLAGS-CPPFLAGS-LDFLAGS.patch0000644000000000000000000000232212247207450020331 0ustar Description: Respect external CFLAGS, CPPFLAGS, LDFLAGS Author: Kamal Mostafa --- ledmon-0.79.orig/src/Makefile +++ ledmon-0.79/src/Makefile @@ -55,10 +55,14 @@ LEDCTL_OBJECTS=\ $(OUTDIR)/ledctl.o \ $(OBJECTS) -CFLAGS=-O0 -g -Wall DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE INCFLAGS=-I../config -LDFLAGS=-O0 -g $(DEFFLAGS) -lsgutils2 + +# CFLAGS+=-O0 -g +# LDFLAGS+=-O0 -g +CFLAGS+=-Wall +CPPFLAGS+=$(DEFFLAGS) $(INCFLAGS) +LDFLAGS+=-lsgutils2 SOURCES:=$(shell find -name "*.[cC]" -print) @@ -71,7 +75,7 @@ ledctl: $(OUTDIR)/.depend $(LEDCTL_OBJEC $(CC) $(LDLIBS) $(LEDCTL_OBJECTS) -o $@ $(LDFLAGS) $(OUTDIR)/%.o: %.c - $(CC) $(CFLAGS) $(DEFFLAGS) $(INCFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ all: $(OUTDIR)/.depend ledmon ledctl @@ -93,7 +97,7 @@ mrproper: clean $(OUTDIR)/.depend: $(SOURCES) mkdir -p $(OUTDIR) - $(CC) $(CFLAGS) $(DEFFLAGS) $(INCFLAGS) -M $^ | sed 's/^[a-z,0-9]/$(subst /,\/,$(OUTDIR))\/&/' > $(OUTDIR)/.depend + $(CC) $(CFLAGS) $(CPPFLAGS) -M $^ | sed 's/^[a-z,0-9]/$(subst /,\/,$(OUTDIR))\/&/' > $(OUTDIR)/.depend ifeq ($(filter install uninstall depend clean mrproper,$(MAKECMDGOALS)),) -include $(OUTDIR)/.depend debian/patches/series0000644000000000000000000000010312247207346012033 0ustar ldflags-order.patch respect-external-CFLAGS-CPPFLAGS-LDFLAGS.patch debian/patches/ldflags-order.patch0000644000000000000000000000103212245462422014362 0ustar LDFLAGS is specified too early, causing sgutils2 not to be found at the right time. --- a/src/Makefile +++ b/src/Makefile @@ -65,10 +65,10 @@ default: all ledmon: $(OUTDIR)/.depend $(LEDMON_OBJECTS) - $(CC) $(LDFLAGS) $(LDLIBS) $(LEDMON_OBJECTS) -o $@ + $(CC) $(LDLIBS) $(LEDMON_OBJECTS) -o $@ $(LDFLAGS) ledctl: $(OUTDIR)/.depend $(LEDCTL_OBJECTS) - $(CC) $(LDFLAGS) $(LDLIBS) $(LEDCTL_OBJECTS) -o $@ + $(CC) $(LDLIBS) $(LEDCTL_OBJECTS) -o $@ $(LDFLAGS) $(OUTDIR)/%.o: %.c $(CC) $(CFLAGS) $(DEFFLAGS) $(INCFLAGS) -c $< -o $@ debian/copyright0000644000000000000000000000213312245462422011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ledmon Source: http://sourceforge.net/projects/ledmon/files/ Files: * Copyright: 2009-2012 Intel Corporation License: GPL-2.0+ Files: debian/* Copyright: 2012 Dell Inc. License: GPL-2.0+ License: GPL-2.0+ 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 program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/changelog0000644000000000000000000000527612247373052011057 0ustar ledmon (0.79-0.2) unstable; urgency=low * Non-maintainer upload. * Fix FTBFS on non-Linux with "Architecture: linux-any" -- Kamal Mostafa Tue, 03 Dec 2013 07:16:30 -0800 ledmon (0.79-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release. * Adds support for NVME SSD devices (uses nvme/nvmhci block driver). * Fix small coding error in ledctl.pod * Update help info regarding reporting bugs * Make sure addr is null-terminated * Check if the directory 'holders' exists * Check device for NULL before dereferencing * ledctl documentation improvements * Do not use ISO C99 standard * Do not send LED command if state of block device has not changed * Change ledmon's behavior during rebuild. * Correct some style problems using kernel's checkpatch. * Remove indentation info * Correct indentation according to the Linux coding style using indent * Update Copyright year to 2013 * Fix support for Dell PCIe SSD Devices * More minor fixes revealed by a coverity scan * Minor fixes revealed by a coverity scan -- Kent Baxley Wed, 27 Nov 2013 15:33:27 -0600 ledmon (0.74-1) unstable; urgency=low * New upstream release: * restart of the ledmon's internal state when an unrecoverable error occurs (e.g. lack of disk's location) * logging level for not supported patterns changed from 'warning' to 'debug' * more detailed information about device change (name changed, missing) * added extra checks against device presence in sysfs (device may disappear at anytime: during rescan, initialization, sending command) * pattern "locate_off" fixed * SES-2 support for enclosures * New patterns (SES-2) in ledctl for drives in enclosures * Improved LED blinking and slot locations for AHCI and SCSI DA * ledctl and ledmon were converted to the raw bitstream (TX_GP) interface, so they do not need additional SGPIO support in the kernel now (by Dan Williams ) * the way ledctl works has been changed: so far turning on some LEDs did not change the state of all other LEDs of all controllers, now turning on some LEDs turns off all other LEDs of all controllers * ledctl's manual was corrected and updated -- Daniel Jared Dominguez Thu, 23 Aug 2012 16:28:32 -0500 ledmon (0.32-1) unstable; urgency=low * New upstream release * Fixes issue where HOTSPARE had higher priority than REBUILD -- Daniel Jared Dominguez Mon, 05 Mar 2012 11:41:06 -0600 ledmon (0.31-1) unstable; urgency=low * Initial release (Closes: #658815) -- Daniel Jared Dominguez Mon, 23 Jan 2012 13:45:41 -0600 debian/rules0000755000000000000000000000025412247210160010242 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v clean: $(MAKE) mrproper dh_clean %: dh $@