added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,37 @@
From d195f8cfe41991573128ccdcd3a0ed0267aa5e33 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 28 Jun 2017 19:44:46 -0700
Subject: [PATCH] backtrace: Replace struct ucontext with ucontext_t
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/backtrace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backtrace.c b/src/backtrace.c
index 69bee99..dc35f8f 100644
--- a/src/backtrace.c
+++ b/src/backtrace.c
@@ -42,7 +42,7 @@
#define MAX_BTSIZE 64
void backtrace_handler(int n, siginfo_t *ist, void *extra) {
- static struct ucontext *puc;
+ static ucontext_t *puc;
static void *btinfo[MAX_BTSIZE];
static char **messages = NULL;
static size_t btsize = 0;
@@ -58,7 +58,7 @@ void backtrace_handler(int n, siginfo_t *ist, void *extra) {
#define SIC_CASE(c) case c: strerr = #c
- puc = (struct ucontext *)extra;
+ puc = (ucontext_t *)extra;
switch(n) {
case SIGSEGV:
switch(ist->si_code) {
--
2.13.2

View File

@@ -0,0 +1,703 @@
From d7e6fe2ac69333c2d943a4b8eb139373d1fb2ce2 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 31 Dec 2019 18:08:09 -0800
Subject: [PATCH] configure.ac: Rename to configure.ac and use external gettext
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
configure.ac | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 configure.ac
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,81 @@
+dnl Process this file with autoconf to produce a configure script.
+
+# Initialization
+AC_INIT
+AC_CONFIG_SRCDIR([Makefile.am])
+AC_CONFIG_HEADERS([config.h])
+
+# Determine the host and build type. The target is always a PIC.
+AC_CANONICAL_HOST
+
+AM_INIT_AUTOMAKE(hddtemp, 0.3-beta15)
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+
+# append the host alias to the tools for cross compiling
+AC_HEADER_STDC
+AC_CHECK_HEADERS(fcntl.h)
+AC_CHECK_HEADERS(iconv.h)
+AC_CHECK_HEADERS(netinet/in.h)
+AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_STRUCT_TM
+
+dnl internationalization macros
+AM_GNU_GETTEXT([external])
+
+AC_CHECK_FUNCS([bindtextdomain textdomain iconv])
+
+dnl reasonable guesses for where stuff is installed
+dnl if we don't do that now, the config.h will use ${prefix}
+dnl for DEFAULT_DATABASE_PATH.
+if test "x$prefix" = "xNONE"; then
+ prefix="/usr/local"
+fi
+if test "x$exec_prefix" = "xNONE"; then
+ exec_prefix=$prefix
+fi
+
+AC_MSG_CHECKING([Location of hddtemp.db])
+DEFAULT_DATABASE_PATH=
+#db_path=\"`eval echo ${datadir}`/misc/hddtemp.db\"
+db_path=\"/usr/share/misc/hddtemp.db\"
+AC_ARG_WITH(db_path,
+ [ --with-db-path=PATH \
+ Default location of hddtemp.db file [/usr/share/misc/hddtemp.db]],
+ [ if test -d "$withval"; then
+ AC_MSG_FAILURE([new file name for db-path])
+ fi
+ DEFAULT_DATABASE_PATH="\"$withval\""
+ ],
+ [ DEFAULT_DATABASE_PATH="$db_path" ])
+AC_MSG_RESULT($DEFAULT_DATABASE_PATH)
+AC_DEFINE_UNQUOTED([DEFAULT_DATABASE_PATH], [$DEFAULT_DATABASE_PATH], [Default location of drive info database])
+
+#CFLAGS="$CFLAGS -Wall -fomit-frame-pointer -Wcast-align"
+CFLAGS="$CFLAGS -Wall -W -Wcast-align"
+
+# Substitute configuration variables
+AC_CONFIG_FILES([Makefile \
+po/Makefile.in \
+m4/Makefile \
+src/Makefile \
+doc/Makefile \
+])
+AC_OUTPUT
+
+AC_MSG_RESULT([
+
+hddtemp-$VERSION is now configured for $canonical_host_type
+
+ Build: $build
+ Host: $host
+ Source directory: $srcdir
+ Installation prefix: $prefix
+ C compiler: $CC $CFLAGS
+
+])
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,7 +12,7 @@ EXTRA_DIST = config.rpath autogen.sh \
README \
TODO
-SUBDIRS = intl po m4 src doc
+SUBDIRS = po m4 src doc
CLEANFILES = *~
--- a/configure.in
+++ /dev/null
@@ -1,83 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-
-# Initialization
-AC_INIT
-AC_CONFIG_SRCDIR([Makefile.am])
-AC_CONFIG_HEADERS([config.h])
-
-# Determine the host and build type. The target is always a PIC.
-AC_CANONICAL_HOST
-
-AM_INIT_AUTOMAKE(hddtemp, 0.3-beta15)
-
-dnl Checks for programs.
-AC_PROG_CC
-AC_PROG_INSTALL
-
-# append the host alias to the tools for cross compiling
-AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h)
-AC_CHECK_HEADERS(iconv.h)
-AC_CHECK_HEADERS(netinet/in.h)
-AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_STRUCT_TM
-
-dnl internationalization macros
-AM_GNU_GETTEXT_VERSION
-AM_GNU_GETTEXT
-#AM_GNU_GETTEXT([external])
-
-AC_CHECK_FUNCS([bindtextdomain textdomain iconv])
-
-dnl reasonable guesses for where stuff is installed
-dnl if we don't do that now, the config.h will use ${prefix}
-dnl for DEFAULT_DATABASE_PATH.
-if test "x$prefix" = "xNONE"; then
- prefix="/usr/local"
-fi
-if test "x$exec_prefix" = "xNONE"; then
- exec_prefix=$prefix
-fi
-
-AC_MSG_CHECKING([Location of hddtemp.db])
-DEFAULT_DATABASE_PATH=
-#db_path=\"`eval echo ${datadir}`/misc/hddtemp.db\"
-db_path=\"/usr/share/misc/hddtemp.db\"
-AC_ARG_WITH(db_path,
- [ --with-db-path=PATH \
- Default location of hddtemp.db file [/usr/share/misc/hddtemp.db]],
- [ if test -d "$withval"; then
- AC_MSG_FAILURE([new file name for db-path])
- fi
- DEFAULT_DATABASE_PATH="\"$withval\""
- ],
- [ DEFAULT_DATABASE_PATH="$db_path" ])
-AC_MSG_RESULT($DEFAULT_DATABASE_PATH)
-AC_DEFINE_UNQUOTED([DEFAULT_DATABASE_PATH], [$DEFAULT_DATABASE_PATH], [Default location of drive info database])
-
-#CFLAGS="$CFLAGS -Wall -fomit-frame-pointer -Wcast-align"
-CFLAGS="$CFLAGS -Wall -W -Wcast-align"
-
-# Substitute configuration variables
-AC_CONFIG_FILES([Makefile intl/Makefile \
-po/Makefile.in \
-m4/Makefile \
-src/Makefile \
-doc/Makefile \
-])
-AC_OUTPUT
-
-AC_MSG_RESULT([
-
-hddtemp-$VERSION is now configured for $canonical_host_type
-
- Build: $build
- Host: $host
- Source directory: $srcdir
- Installation prefix: $prefix
- C compiler: $CC $CFLAGS
-
-])
--- a/intl/ChangeLog
+++ /dev/null
@@ -1,4 +0,0 @@
-2005-02-24 GNU <bug-gnu-gettext@gnu.org>
-
- * Version 0.14.2 released.
-
--- a/intl/Makefile.in
+++ /dev/null
@@ -1,500 +0,0 @@
-# Makefile for directory with message catalog handling library of GNU gettext
-# Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Library General Public License as published
-# by the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program 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
-# Library General Public License for more details.
-#
-# You should have received a copy of the GNU Library General Public
-# License along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-# USA.
-
-PACKAGE = @PACKAGE@
-VERSION = @VERSION@
-
-SHELL = /bin/sh
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-top_builddir = ..
-VPATH = $(srcdir)
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-transform = @program_transform_name@
-libdir = @libdir@
-includedir = @includedir@
-datadir = @datadir@
-localedir = $(datadir)/locale
-gettextsrcdir = $(datadir)/gettext/intl
-aliaspath = $(localedir)
-subdir = intl
-
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-MKINSTALLDIRS = @MKINSTALLDIRS@
-mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
-
-l = @INTL_LIBTOOL_SUFFIX_PREFIX@
-
-AR = ar
-CC = @CC@
-LIBTOOL = @LIBTOOL@
-RANLIB = @RANLIB@
-YACC = @INTLBISON@ -y -d
-YFLAGS = --name-prefix=__gettext
-
-DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
--DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \
--DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
--Dset_relocation_prefix=libintl_set_relocation_prefix \
--Drelocate=libintl_relocate \
--DDEPENDS_ON_LIBICONV=1 @DEFS@
-CPPFLAGS = @CPPFLAGS@
-CFLAGS = @CFLAGS@
-LDFLAGS = @LDFLAGS@
-LIBS = @LIBS@
-
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
-
-HEADERS = \
- gmo.h \
- gettextP.h \
- hash-string.h \
- loadinfo.h \
- plural-exp.h \
- eval-plural.h \
- localcharset.h \
- relocatable.h \
- xsize.h \
- printf-args.h printf-args.c \
- printf-parse.h wprintf-parse.h printf-parse.c \
- vasnprintf.h vasnwprintf.h vasnprintf.c \
- os2compat.h \
- libgnuintl.h.in
-SOURCES = \
- bindtextdom.c \
- dcgettext.c \
- dgettext.c \
- gettext.c \
- finddomain.c \
- loadmsgcat.c \
- localealias.c \
- textdomain.c \
- l10nflist.c \
- explodename.c \
- dcigettext.c \
- dcngettext.c \
- dngettext.c \
- ngettext.c \
- plural.y \
- plural-exp.c \
- localcharset.c \
- relocatable.c \
- langprefs.c \
- localename.c \
- log.c \
- printf.c \
- osdep.c \
- os2compat.c \
- intl-compat.c
-OBJECTS = \
- bindtextdom.$lo \
- dcgettext.$lo \
- dgettext.$lo \
- gettext.$lo \
- finddomain.$lo \
- loadmsgcat.$lo \
- localealias.$lo \
- textdomain.$lo \
- l10nflist.$lo \
- explodename.$lo \
- dcigettext.$lo \
- dcngettext.$lo \
- dngettext.$lo \
- ngettext.$lo \
- plural.$lo \
- plural-exp.$lo \
- localcharset.$lo \
- relocatable.$lo \
- langprefs.$lo \
- localename.$lo \
- log.$lo \
- printf.$lo \
- osdep.$lo \
- intl-compat.$lo
-DISTFILES.common = Makefile.in \
-config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
-DISTFILES.generated = plural.c
-DISTFILES.normal = VERSION
-DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \
-libgnuintl.h_vms Makefile.vms \
-libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc
-DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
-COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h
-
-all: all-@USE_INCLUDED_LIBINTL@
-all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
-all-no: all-no-@BUILD_INCLUDED_LIBINTL@
-all-no-yes: libgnuintl.$la
-all-no-no:
-
-libintl.a libgnuintl.a: $(OBJECTS)
- rm -f $@
- $(AR) cru $@ $(OBJECTS)
- $(RANLIB) $@
-
-libintl.la libgnuintl.la: $(OBJECTS)
- $(LIBTOOL) --mode=link \
- $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
- $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) -lc \
- -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
- -rpath $(libdir) \
- -no-undefined
-
-# Libtool's library version information for libintl.
-# Before making a gettext release, the gettext maintainer must change this
-# according to the libtool documentation, section "Library interface versions".
-# Maintainers of other packages that include the intl directory must *not*
-# change these values.
-LTV_CURRENT=7
-LTV_REVISION=1
-LTV_AGE=4
-
-.SUFFIXES:
-.SUFFIXES: .c .y .o .lo .sin .sed
-
-.c.o:
- $(COMPILE) $<
-
-.y.c:
- $(YACC) $(YFLAGS) --output $@ $<
- rm -f $*.h
-
-bindtextdom.lo: $(srcdir)/bindtextdom.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
-dcgettext.lo: $(srcdir)/dcgettext.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
-dgettext.lo: $(srcdir)/dgettext.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
-gettext.lo: $(srcdir)/gettext.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
-finddomain.lo: $(srcdir)/finddomain.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
-loadmsgcat.lo: $(srcdir)/loadmsgcat.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
-localealias.lo: $(srcdir)/localealias.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
-textdomain.lo: $(srcdir)/textdomain.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
-l10nflist.lo: $(srcdir)/l10nflist.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
-explodename.lo: $(srcdir)/explodename.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
-dcigettext.lo: $(srcdir)/dcigettext.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
-dcngettext.lo: $(srcdir)/dcngettext.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
-dngettext.lo: $(srcdir)/dngettext.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
-ngettext.lo: $(srcdir)/ngettext.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
-plural.lo: $(srcdir)/plural.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
-plural-exp.lo: $(srcdir)/plural-exp.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
-localcharset.lo: $(srcdir)/localcharset.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
-relocatable.lo: $(srcdir)/relocatable.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
-langprefs.lo: $(srcdir)/langprefs.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/langprefs.c
-localename.lo: $(srcdir)/localename.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
-log.lo: $(srcdir)/log.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
-printf.lo: $(srcdir)/printf.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c
-osdep.lo: $(srcdir)/osdep.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
-intl-compat.lo: $(srcdir)/intl-compat.c
- $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
-
-ref-add.sed: $(srcdir)/ref-add.sin
- sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
- mv t-ref-add.sed ref-add.sed
-ref-del.sed: $(srcdir)/ref-del.sin
- sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
- mv t-ref-del.sed ref-del.sed
-
-INCLUDES = -I. -I$(srcdir) -I..
-
-libgnuintl.h: $(srcdir)/libgnuintl.h.in
- sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
- -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
- -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
- -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
- < $(srcdir)/libgnuintl.h.in > libgnuintl.h
-
-libintl.h: libgnuintl.h
- cp libgnuintl.h libintl.h
-
-charset.alias: $(srcdir)/config.charset
- $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
- mv t-$@ $@
-
-check: all
-
-# We must not install the libintl.h/libintl.a files if we are on a
-# system which has the GNU gettext() function in its C library or in a
-# separate library.
-# If you want to use the one which comes with this version of the
-# package, you have to use `configure --with-included-gettext'.
-install: install-exec install-data
-install-exec: all
- if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
- && test '@USE_INCLUDED_LIBINTL@' = yes; then \
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
- $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
- $(LIBTOOL) --mode=install \
- $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
- if test "@RELOCATABLE@" = yes; then \
- dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
- if test -n "$$dependencies"; then \
- rm -f $(DESTDIR)$(libdir)/libintl.la; \
- fi; \
- fi; \
- else \
- : ; \
- fi
- if test "$(PACKAGE)" = "gettext-tools" \
- && test '@USE_INCLUDED_LIBINTL@' = no \
- && test @GLIBC2@ != no; then \
- $(mkinstalldirs) $(DESTDIR)$(libdir); \
- $(LIBTOOL) --mode=install \
- $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
- rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
- $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
- $(LIBTOOL) --mode=uninstall \
- rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
- else \
- : ; \
- fi
- if test '@USE_INCLUDED_LIBINTL@' = yes; then \
- test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
- temp=$(DESTDIR)$(libdir)/t-charset.alias; \
- dest=$(DESTDIR)$(libdir)/charset.alias; \
- if test -f $(DESTDIR)$(libdir)/charset.alias; then \
- orig=$(DESTDIR)$(libdir)/charset.alias; \
- sed -f ref-add.sed $$orig > $$temp; \
- $(INSTALL_DATA) $$temp $$dest; \
- rm -f $$temp; \
- else \
- if test @GLIBC21@ = no; then \
- orig=charset.alias; \
- sed -f ref-add.sed $$orig > $$temp; \
- $(INSTALL_DATA) $$temp $$dest; \
- rm -f $$temp; \
- fi; \
- fi; \
- $(mkinstalldirs) $(DESTDIR)$(localedir); \
- test -f $(DESTDIR)$(localedir)/locale.alias \
- && orig=$(DESTDIR)$(localedir)/locale.alias \
- || orig=$(srcdir)/locale.alias; \
- temp=$(DESTDIR)$(localedir)/t-locale.alias; \
- dest=$(DESTDIR)$(localedir)/locale.alias; \
- sed -f ref-add.sed $$orig > $$temp; \
- $(INSTALL_DATA) $$temp $$dest; \
- rm -f $$temp; \
- else \
- : ; \
- fi
-install-data: all
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
- $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
- $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
- dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
- for file in $$dists; do \
- $(INSTALL_DATA) $(srcdir)/$$file \
- $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
- dists="$(DISTFILES.generated)"; \
- for file in $$dists; do \
- if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
- $(INSTALL_DATA) $$dir/$$file \
- $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- dists="$(DISTFILES.obsolete)"; \
- for file in $$dists; do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-
-install-strip: install
-
-installdirs:
- if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
- && test '@USE_INCLUDED_LIBINTL@' = yes; then \
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
- else \
- : ; \
- fi
- if test "$(PACKAGE)" = "gettext-tools" \
- && test '@USE_INCLUDED_LIBINTL@' = no \
- && test @GLIBC2@ != no; then \
- $(mkinstalldirs) $(DESTDIR)$(libdir); \
- else \
- : ; \
- fi
- if test '@USE_INCLUDED_LIBINTL@' = yes; then \
- test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
- $(mkinstalldirs) $(DESTDIR)$(localedir); \
- else \
- : ; \
- fi
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
- else \
- : ; \
- fi
-
-# Define this as empty until I found a useful application.
-installcheck:
-
-uninstall:
- if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
- && test '@USE_INCLUDED_LIBINTL@' = yes; then \
- rm -f $(DESTDIR)$(includedir)/libintl.h; \
- $(LIBTOOL) --mode=uninstall \
- rm -f $(DESTDIR)$(libdir)/libintl.$la; \
- else \
- : ; \
- fi
- if test "$(PACKAGE)" = "gettext-tools" \
- && test '@USE_INCLUDED_LIBINTL@' = no \
- && test @GLIBC2@ != no; then \
- rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
- else \
- : ; \
- fi
- if test '@USE_INCLUDED_LIBINTL@' = yes; then \
- if test -f $(DESTDIR)$(libdir)/charset.alias; then \
- temp=$(DESTDIR)$(libdir)/t-charset.alias; \
- dest=$(DESTDIR)$(libdir)/charset.alias; \
- sed -f ref-del.sed $$dest > $$temp; \
- if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
- rm -f $$dest; \
- else \
- $(INSTALL_DATA) $$temp $$dest; \
- fi; \
- rm -f $$temp; \
- fi; \
- if test -f $(DESTDIR)$(localedir)/locale.alias; then \
- temp=$(DESTDIR)$(localedir)/t-locale.alias; \
- dest=$(DESTDIR)$(localedir)/locale.alias; \
- sed -f ref-del.sed $$dest > $$temp; \
- if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
- rm -f $$dest; \
- else \
- $(INSTALL_DATA) $$temp $$dest; \
- fi; \
- rm -f $$temp; \
- fi; \
- else \
- : ; \
- fi
- if test "$(PACKAGE)" = "gettext-tools"; then \
- for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-
-info dvi ps pdf html:
-
-$(OBJECTS): ../config.h libgnuintl.h
-bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h
-dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
-explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
-dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
-dcigettext.$lo: $(srcdir)/eval-plural.h
-localcharset.$lo: $(srcdir)/localcharset.h
-localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
-printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c
-
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES)
- here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
-
-ctags: CTAGS
-
-CTAGS: $(HEADERS) $(SOURCES)
- here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
-
-id: ID
-
-ID: $(HEADERS) $(SOURCES)
- here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
-
-
-mostlyclean:
- rm -f *.a *.la *.o *.obj *.lo core core.*
- rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
- rm -f -r .libs _libs
-
-clean: mostlyclean
-
-distclean: clean
- rm -f Makefile ID TAGS
- if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
- rm -f ChangeLog.inst $(DISTFILES.normal); \
- else \
- : ; \
- fi
-
-maintainer-clean: distclean
- @echo "This command is intended for maintainers to use;"
- @echo "it deletes files that may require special tools to rebuild."
-
-
-# GNU gettext needs not contain the file `VERSION' but contains some
-# other files which should not be distributed in other packages.
-distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
-dist distdir: Makefile
- if test "$(PACKAGE)" = "gettext-tools"; then \
- : ; \
- else \
- if test "$(PACKAGE)" = "gettext-runtime"; then \
- additional="$(DISTFILES.gettext)"; \
- else \
- additional="$(DISTFILES.normal)"; \
- fi; \
- $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
- for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
- if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
- cp -p $$dir/$$file $(distdir); \
- done; \
- fi
-
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status
-# This would be more efficient, but doesn't work any more with autoconf-2.57,
-# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
-# cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-# Tell versions [3.59,3.63) of GNU make not to export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

View File

@@ -0,0 +1,33 @@
From c5ca31940d1d1889ef2cc6974c18ff24ab406748 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 31 Aug 2022 16:42:23 -0700
Subject: [PATCH] sata.c: Declare ata_get_powermode prototype
Fixes build warnings/errors
sata.c:127:10: error: call to undeclared function 'ata_get_powermode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
| switch(ata_get_powermode(dsk->fd))
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/sata.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/sata.c b/src/sata.c
index d67621f..4172245 100644
--- a/src/sata.c
+++ b/src/sata.c
@@ -52,7 +52,8 @@
(((u16)(__x) & (u16)0xff00U) >> 8) )); \
})
-
+extern enum e_powermode ata_get_powermode(int device);
+
static int sata_probe(int device) {
int bus_num;
unsigned char cmd[4] = { WIN_IDENTIFY, 0, 0, 1 };
--
2.37.3

View File

@@ -0,0 +1,92 @@
Auto-detect disks if none specified
Refer to:
https://bugzilla.redhat.com/show_bug.cgi?id=717479
Index: hddtemp-0.3-beta15/doc/hddtemp.8
===================================================================
--- hddtemp-0.3-beta15.orig/doc/hddtemp.8
+++ hddtemp-0.3-beta15/doc/hddtemp.8
@@ -19,7 +19,7 @@
hddtemp \- Utility to monitor hard drive temperature
.SH SYNOPSIS
.B hddtemp
-.RI [ options ] " [type:]disk" ...
+.RI [ options ] " [[type:]disk]" ...
.SH "DESCRIPTION"
.PP
.B hddtemp
@@ -35,7 +35,8 @@ You can specify one or more device drive
with a
.B type
like PATA, SATA or SCSI to force hddtemp too use one of these type
-(because detection can fail).
+(because detection can fail). If no paths are specified, autodetection of
+installed drives is attempted.
.SH "OPTIONS"
Index: hddtemp-0.3-beta15/src/hddtemp.c
===================================================================
--- hddtemp-0.3-beta15.orig/src/hddtemp.c
+++ hddtemp-0.3-beta15/src/hddtemp.c
@@ -54,6 +54,7 @@
#include <linux/hdreg.h>
#include <ctype.h>
#include <assert.h>
+#include <glob.h>
// Application specific includes
#include "ata.h"
@@ -255,6 +256,7 @@ int main(int argc, char* argv[]) {
int ret = 0;
int show_db;
struct disk * ldisks;
+ glob_t diskglob;
backtrace_sigsegv();
backtrace_sigill();
@@ -423,11 +425,6 @@ int main(int argc, char* argv[]) {
exit(0);
}
- if(argc - optind <= 0) {
- fprintf(stderr, _("Too few arguments: you must specify one drive, at least.\n"));
- exit(1);
- }
-
if(debug) {
/* argc = optind + 1;*/
quiet = 1;
@@ -438,6 +435,23 @@ int main(int argc, char* argv[]) {
exit(1);
}
+ memset(&diskglob, 0, sizeof(glob_t));
+ if(argc - optind <= 0) {
+ if(glob("/dev/[hs]d[a-z]", 0, NULL, &diskglob) == 0) {
+ argc = diskglob.gl_pathc;
+ argv = diskglob.gl_pathv;
+ optind = 0;
+ } else {
+ argc = 0;
+ }
+ }
+
+ if(argc - optind <= 0) {
+ globfree(&diskglob);
+ fprintf(stderr, _("Too few arguments: you must specify one drive, at least.\n"));
+ exit(1);
+ }
+
init_bus_types();
/* collect disks informations */
@@ -531,6 +545,7 @@ int main(int argc, char* argv[]) {
else {
do_direct_mode(ldisks);
}
+ globfree(&diskglob);
return ret;
}

View File

@@ -0,0 +1,66 @@
diff -ru hddtemp-0.3-beta15.orig/configure.in hddtemp-0.3-beta15/configure.in
--- hddtemp-0.3-beta15.orig/configure.in 2005-10-17 20:14:19.000000000 +0100
+++ hddtemp-0.3-beta15/configure.in 2008-06-27 00:00:46.000000000 +0100
@@ -17,6 +17,7 @@
# append the host alias to the tools for cross compiling
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h)
+AC_CHECK_HEADERS(iconv.h)
AC_CHECK_HEADERS(netinet/in.h)
AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
@@ -29,6 +30,8 @@
AM_GNU_GETTEXT
#AM_GNU_GETTEXT([external])
+AC_CHECK_FUNCS([bindtextdomain textdomain iconv])
+
dnl reasonable guesses for where stuff is installed
dnl if we don't do that now, the config.h will use ${prefix}
dnl for DEFAULT_DATABASE_PATH.
diff -ru hddtemp-0.3-beta15.orig/src/hddtemp.c hddtemp-0.3-beta15/src/hddtemp.c
--- hddtemp-0.3-beta15.orig/src/hddtemp.c 2006-04-19 03:37:35.000000000 +0100
+++ hddtemp-0.3-beta15/src/hddtemp.c 2008-06-26 23:59:40.000000000 +0100
@@ -276,8 +276,12 @@
backtrace_sigbus();
setlocale (LC_ALL, "");
+#ifdef HAVE_BINDTEXTDOMAIN
bindtextdomain (PACKAGE, LOCALEDIR);
+#endif
+#ifdef HAVE_TEXTDOMAIN
textdomain (PACKAGE);
+#endif
show_db = debug = numeric = quiet = wakeup = af_hint = syslog_interval = 0;
unit = DEFAULT;
diff -ru hddtemp-0.3-beta15.orig/src/utf8.c hddtemp-0.3-beta15/src/utf8.c
--- hddtemp-0.3-beta15.orig/src/utf8.c 2006-04-19 03:37:02.000000000 +0100
+++ hddtemp-0.3-beta15/src/utf8.c 2008-06-27 00:02:15.000000000 +0100
@@ -23,7 +23,9 @@
// Standard includes
#include <stdlib.h>
+#ifdef HAVE_ICONV_H
#include <iconv.h>
+#endif
#include <langinfo.h>
#include <locale.h>
#include <string.h>
@@ -34,6 +36,7 @@
static char *iconv_from_utf8_to_locale(const char *string, const char* fallback_string)
{
+#ifdef HAVE_ICONV
const size_t buffer_inc = 80; // Increment buffer size in 80 bytes step
const char *charset;
iconv_t cd;
@@ -93,6 +96,8 @@
if (dest_buffer != NULL)
free(dest_buffer); // free buffer
free(src_buffer); // free string
+#endif
+
return strdup(fallback_string); // and return fallback string
}

View File

@@ -0,0 +1,531 @@
#
# Insert a regular expression for support of the model or the serie of your hard drive.
# If you don't know what to put in the second field, put the number
# that appears most often for your brand :o)
# A value of zero meens that we know that the drive doesn't have
# a temperature sensor (you can set the unit to C or F).
#
############################################################################
# The following list was found at (http://www.almico.com/forumharddisks.php)
# If your drive is in the list send me a mail.
#
# Manufacturer Model Size Notes
# FUJITSU FUJITSU MPF3102AH 10.0GB
# FUJITSU FUJITSU MPG3204AH E 20.0GB
# FUJITSU FUJITSU MPG3307AT 30.0GB
# FUJITSU FUJITSU MPG3409AH 40.0GB
# FUJITSU FUJITSU MPG3409AH EF 40.0GB
# HITACHI HITACHI_DK23CA-10 9.8GB
# HITACHI HITACHI_DK23CA-15 14.7GB
# SAMSUNG SAMSUNG SV3012H 29.4GB
# SEAGATE ST310210A 10.0GB
# SEAGATE ST310211A 9.8GB
# SEAGATE ST310215A 10.0GB
# SEAGATE ST315320A 14.9GB
# SEAGATE ST320410A 19.6GB
# SEAGATE ST320413A 19.6GB
# SEAGATE ST320420A 19.9GB
# SEAGATE ST330610A 29.3GB
# SEAGATE ST330620A 29.3GB
# SEAGATE ST330621A 29.3GB
# SEAGATE ST330630A 29.9GB
# SEAGATE ST340016A 39.1GB
# SEAGATE ST340810ACE 39.1GB
# SEAGATE ST380020ACE 78.2GB
# WESTERN DIGITAL WDC AC210200D 10.0GB
# WESTERN DIGITAL WDC AC29100D 8.9GB
# WESTERN DIGITAL WDC AC420400D 19.9GB
# WESTERN DIGITAL WDC WD102AA 10.0GB
#
#################################################
########################################
############# ExcelStor drives
########################################
# "ExcelStor Technology CT215" ??? ? "ExcelStor CT215"
"ExcelStor Technology J3.0" 194 C "ExcelStor Technology 3xy (xy GB)"
"ExcelStor Technology J6.0" 194 C "ExcelStor Technology 6xy (xy GB)"
"ExcelStor Technology J680" 194 C "ExcelStor Technology J680 (80 GB)"
"ExcelStor Technology J860" 194 C "ExcelStor Technology J860 (60 GB)"
"ExcelStor Technology J880" 194 C "ExcelStor Technology J880 (80 GB)"
########################################
############# Fujitsu drives
########################################
"FUJITSU MHM2100AT" 0 C "Fujitsu MHM2100AT"
"FUJITSU MHN2150AT" 194 C "Fujitsu MHN2150AT"
"FUJITSU MHN2200AT" 194 C "Fujitsu MHN2200AT"
"FUJITSU MHN2300AT" 194 C "Fujitsu MHN2300AT"
"FUJITSU MHR2020AT" 194 C "Fujitsu MHR2020AT"
"FUJITSU MHR2030AT" 194 C "Fujitsu MHR2030AT"
"FUJITSU MHS2030AT" 194 C "Fujitsu MHS2030AT"
"FUJITSU MHS2040AT" 194 C "Fujitsu MHS2040AT"
"FUJITSU MHS2060AT" 194 C "Fujitsu MHS2060AT (Apple PowerBook G4)"
"FUJITSU MHT2030AC" 194 C "Fujitsu Mobile 30GB, 2MB, 4200RPM (automotive)"
"FUJITSU MHT2030AT" 194 C "Fujitsu MHT2030AT"
"FUJITSU MHT2040AH" 194 C "Fujitsu MHT2040AH"
"FUJITSU MHT2040AT" 194 C "Fujitsu MHT2040AT"
"FUJITSU MHT2060AH" 194 C "Fujitsu MHT2060AH"
"FUJITSU MHT2060AT" 194 C "Fujitsu MHT2060AT"
"FUJITSU MHT2080AH" 194 C "Fujitsu MHT2080AH"
"FUJITSU MHU2100AT" 194 C "Fujitsu MHU2100AT 100GB, 8MB (4200RPM)"
"FUJITSU MHV2100AH" 194 C "FUJITSU MHV2100AH"
"FUJITSU MHV2100AT" 194 C "FUJITSU MHV2100AT"
"FUJITSU MHV2100BH" 194 C "FUJITSU MHV2100BH"
"FUJITSU MHV2060AH" 194 C "FUJITSU MHV2060AH"
"FUJITSU MHV2080[AB]H" 194 C "FUJITSU MHV2080AH"
"FUJITSU MPF3204AH" 194 C "Fujitsu MPF3204AH"
"FUJITSU MPG3204AT.*" 194 C "Fujitsu MPG3204AT"
"FUJITSU MPG3307AT" 194 C "Fujitsu MPG3307AT"
"FUJITSU MPG3409AT.*" 194 C "Fujitsu MPG3409AT E"
"FUJITSU MPG3409AH.*" 194 C "Fujitsu MPG3409AH E"
"FUJITSU MPG3204AH" 194 C "Fujitsu MPG3204AH"
"FUJITSU MPG3102AT E" 194 C "FUJITSU MPG3102AT E"
########################################
############# Hitachi drives
########################################
"HITACHI_DK13FA-40B" 194 C "Hitachi DK13FA-40B"
"HITACHI_DK228A-65" 0 C "Hitachi DK228A-65"
"HITACHI_DK23CA-(15|20|30|30B|75)" 194 C "Hitachi DK23CA series"
"HITACHI_DK23DA-[234]0" 194 C "Hitachi DK23DA series"
"HITACHI_DK23EA-[2346]0" 194 C "Hitachi DK23EA series"
"HITACHI_DK23EB-40" 194 C "Hitachi DK23EB series"
"HITACHI_DK23FA-[468]0" 194 C "Hitachi DK23FA series"
"HITACHI_DK23FB-[46]0" 194 C "Hitachi DK23FB series"
"HDS722516VLAT[28]0" 194 C "Hitachi Deskstar 7K250 160GB 2/8MB cache"
"HDS722525VLAT80" 194 C "Hitachi Deskstar 7K250 200/250GB, 7200RPM, 8MB, Parallel-ATA"
"HDS722512VLAT80" 194 C "Hitachi Deskstar 7K250 80GB"
"HDS722540VLAT20" 194 C "Hitachi Deskstar 7K250, 40GB, 7200RPM, 2MB cache"
"HDS722580VLAT20" 194 C "Deskstar 7K250 60GB"
"HDS724040KLSA80" 194 C "Hitachi Deskstar 7K250 400GB, 7200RPM, 8MB, Serial-ATA"
"HDS728080PLAT20" 194 C "Hitachi Deskstar 7K80 80GB"
"HDS722525VLSA80" 194 C "Hitachi Deskstar 7K250 250GB, 7200RPM, 8MB, SATA"
"HDS722516VLSA80" 194 C "Hitachi Deskstar 7K250 160GB 8Mo cache SATA"
"HDS722580VLSA80" 194 C "Hitachi Deskstar 7K250 80GB SATA"
"HDS728040PLAT20" 194 C "Hitachi Deskstar 7K80 40GB"
"HDS724040KLAT80" 194 C "Hitachi Deskstar 7K400 400GB 8Mo cache PATA"
"HDT7225(16|25)DLAT80" 194 C "Hitachi Deskstar T7K250 series, 7200RPM, 8MB, PATA"
"HDT722516DLA380 V43O" 194 C "Hitachi T7K250 SATA"
"HDT722525DLA380" 194 C "Hitachi Deskstar T7K250 250GB 8Mo cache SATAII"
"HDT725050VLA360" 194 C "Hitachi Deskstar T7K500 500GB, 7200RPM, 16MB, SATA II"
"HTE721010G9AT00" 194 C "Hitachi Travelstar 100GB (7200RPM)"
"HTE726060M9AT00" 194 C "Hitachi Travelstar 60GB (7200RPM)"
"HTS424030M9AT00" 194 C "Hitachi Travelstar 30GB (4200RPM)"
"HTS424040M9AT00" 194 C "Hitachi Travelstar 4K40 40GB 2MB cache (4200RPM)"
"HTS541010G9SA00" 194 C "Hitachi Travelstar 100GB SATA"
"HTS541040G9AT00" 194 C "Hitachi Travelstar 40GB (5400RPM)"
"HTS541080G9AT00" 194 C "Hitachi Travelstar 80GB (5400RPM)"
"HTS548020M9AT00" 194 C "Hitachi Travelstar 20GB (5400RPM)"
"HTS548030M9AT00" 194 C "Hitachi Travelstar 30GB (5400RPM)"
"HTS548040M9AT00" 194 C "Hitachi Travelstar 40GB (5400RPM)"
"HTS548060M9AT00" 194 C "Hitachi Travelstar 60GB (5400RPM)"
"HTS548080M9AT00" 194 C "Hitachi Travelstar 80GB (5400RPM)"
"HTS721080G9AT00" 194 C "Hitachi Travelstar 7K100 80GB (7200RPM)"
"HTS726060M9AT00" 194 C "Hitachi Travelstar 60GB"
########################################
############# IBM drives
########################################
# DJSA serie is using F0h command to report temperature and also have
# SMART capabilties but it was reported not to work.
# "DJSA-2(30|32|10|20|05)" 0 C "IBM Travelstar 20GN, 32GH, 30GT series"
"IBM-DARA-212000" 0 C "IBM Travelstar 12GN"
"IBM-DTTA-35*" 0 C "IBM Deskstar 16GP serie"
# according to specifications they do not seems to have sensor
# but I prefer waiting for a report
#"IBM-DTTA-37*" 0 C "IBM Deskstar 14GXP serie"
"IBM-DJNA-35.*" 231 C "IBM Deskstar 25 GP serie"
"IBM-DJNA-37.*" 231 C "IBM Deskstar 22 GXP serie"
"IBM-DHEA-(34330|36480)" 0 C "IBM Deskstar 5 serie"
"IBM-DHEA-(34331|36481|38451)" 0 C "IBM Deskstar 8 serie"
"IBM-DPTA-37.*" 231 C "IBM Deskstar 34GXP serie"
"IBM-DPTA-35.*" 231 C "IBM Deskstar 37GP serie"
"IBM-DTLA-30[57]0[123467][05]" 194 C "IBM Deskstar 40GV & 75GXP series"
"IC25N0[1234]0ATCS04-0" 194 C "IBM Travelstar 40GN serie"
"IC25N0[24]0ATC[SX]05-0" 194 C "IBM Travelstar 40GNX serie"
"IC25N0(10|15|20|30)ATDA04-0" 194 C "IBM Travelstar 30GN serie"
"IC25N0[23468]0ATMR04*" 194 C "Hitachi Travelstar 80GN"
"IC25T048ATDA05-0" 194 C "IBM Travelstar 48GH serie"
"IC25T060ATC[SX]05-0" 194 C "IBM Travelstar 60GH serie"
"IC35L0[12346]0AVER07" 194 C "IBM Deskstar 60GXP serie"
"IC35L[01][02468]0AVV[AN]07*" 194 C "IBM Deskstar 120GXP serie"
"IC35L[01][23689]0AVV207*" 194 C "IBM Deskstar 180GXP serie"
########################################
############# Maxtor drives
########################################
#"Maxtor 2B0[012][04568]H1" ??? C "Maxtor Fireball 541DX"
"Maxtor 2F0[234]0[LJ]0" 194 C "Maxtor Fireball 3"
# which one must I trust ?
#"Maxtor 4D040H2" 9 C "Maxtor DiamondMax D540X-4D"
#"Maxtor 4D040H2" 0 C "Maxtor 4D040H2"
#"Maxtor 4D080H4" 12 C "Maxtor DiamondMax D540X-4D"
#"Maxtor 4D060H3" 12 C "Maxtor DiamondMax D540X-4D"
#"Maxtor 4D080H4" 9 C "Maxtor DiamondMax D540X-4D"
"MAXTOR 4K0[468]0H[234]" 194 C "Maxtor DiamondMax D540X serie"
"MAXTOR 4K020H1" 194 C "Maxtor 4K020H1"
"Maxtor 4A300J0" 194 C "Maxtor MaxLine II 300GB 5400RPM"
"Maxtor 4[RA](25|16|12|08|06)0[LJ]0" 194 C "Maxtor DiamondMax 16"
"Maxtor 5(1024|1369|2049|2732|3073|4098)U(2|3|4|6|8)" 0 C "Maxtor DiamondMax Plus 40"
"Maxtor 5A250J0" 194 C "Maxtor MaXline II 250GB 5400RPM"
"Maxtor 5A300J0" 194 C "Maxtor 5A300J0"
"Maxtor 5T0[24]0H[24]" 0 C "Maxtor DiamondMax Plus 60"
"Maxtor 6E0[234]0L0" 194 C "Maxtor DiamondMax Plus 8"
"MAXTOR 6L0[2468]0[LJ][1234]" 194 C "Maxtor DiamondMax Plus D740X family"
"Maxtor 6V320F0" 194 C "Maxtor Diamond Max 10 SATA II 320 GB"
"Maxtor 6Y(06|08|12|16|20|25)0[LPM]0" 194 C "Maxtor DiamondMax Plus 9"
"Maxtor 7L300[RS]0" 194 C "Maxtor 7L300R0 MaxLine+III 300GB 7200rpm"
"Maxtor 7Y250[PM]0" 194 C "Maxtor MaXLine Plus II 250GB 7200RPM"
"Maxtor 94098U8" 11 C "Maxtor DiamondMax 40 94098U8"
#"Maxtor 6(B|L)(08|12|16|20|25|30)0[RSPM]0" 194 C "Maxtor DiamondMax Plus 10"
"Maxtor 6B080M0" 194 C "Maxtor DiamondMax 10 80GB 8MB SATA"
"Maxtor 6B120M0" 194 C "Maxtor DiamondMax 10 120GB 8MB SATA"
"Maxtor 6B160M0" 194 C "Maxtor DiamondMax 10 160GB 8MB SATA"
"Maxtor 6B160P0" 194 C "Maxtor DiamondMax 10 160GB 8MB ATA/133"
"Maxtor 6B200M0" 194 C "Maxtor DiamondMax 10 200GB 8MB SATA"
"Maxtor 6B200P0" 194 C "Maxtor DiamondMax 10 200GB 8MB ATA/133"
"Maxtor 6B250R0" 194 C "Maxtor DiamondMax 10 250GB 16MB ATA/133"
"Maxtor 6B250S0" 194 C "Maxtor DiamondMax 10 250GB 16MB SATA"
"Maxtor 6B300R0" 194 C "Maxtor DiamondMax 10 300GB 16MB ATA/133"
"Maxtor 6B300S0" 194 C "Maxtor DiamondMax 10 300GB 16MB SATA"
"Maxtor 6L080L0" 194 C "Maxtor DiamondMax 10 80GB 2MB ATA/133 RoHS"
"Maxtor 6L080M0" 194 C "Maxtor DiamondMax 10 80GB 8MB SATA RoHS"
"Maxtor 6L080P0" 194 C "Maxtor DiamondMax 10 80GB 8MB ATA/133 RoHS"
"Maxtor 6L120M0" 194 C "Maxtor DiamondMax 10 120GB 8MB SATA RoHS"
"Maxtor 6L120P0" 194 C "Maxtor DiamondMax 10 120GB 8MB ATA/133 RoHS"
"Maxtor 6L160M0" 194 C "Maxtor DiamondMax 10 160GB 8MB SATA RoHS"
"Maxtor 6L160P0" 194 C "Maxtor DiamondMax 10 160GB 8MB ATA/133 RoHS"
"Maxtor 6L200M0" 194 C "Maxtor DiamondMax 10 200GB 8MB SATA RoHS"
"Maxtor 6L200P0" 194 C "Maxtor DiamondMax 10 200GB 8MB ATA/133 RoHS"
"Maxtor 6L250R0" 194 C "Maxtor DiamondMax 10 250GB 16MB ATA/133 RoHS"
"Maxtor 6L250S0" 194 C "Maxtor DiamondMax 10 250GB 16MB SATA RoHS"
"Maxtor 6L300R0" 194 C "Maxtor DiamondMax 10 300GB 16MB ATA/133 RoHS"
"Maxtor 6L300S0" 194 C "Maxtor DiamondMax 10 300GB 16MB SATA RoHS"
"Maxtor 6V080E0" 194 C "Maxtor DiamondMax 10 80GB 8MB SATAII RoHS"
"Maxtor 6V160E0" 194 C "Maxtor DiamondMax 10 160GB 8MB SATAII RoHS"
"Maxtor 6V200E0" 194 C "Maxtor DiamondMax 10 200GB 8MB SATAII RoHS"
"Maxtor 6V250F0" 194 C "Maxtor DiamondMax 10 250GB 16MB SATAII RoHS"
"Maxtor 6V300F0" 194 C "Maxtor DiamondMax 10 300GB 16MB SATAII RoHS"
########################################
############# Quantum drives
########################################
"QUANTUM FIREBALLP AS40.0" 0 C "Quantum Fireball AS40"
"QUANTUM FIREBALL CX10.2A" 0 C "Quantum Fireball CX10.2A"
#"QUANTUM FIREBALLlct10 20" 4 C "Quantum Fireball CT10 20GB"
# I suspect the QUANTUM FIREBALL_TM2110A to have a sensor in field 9...
# "QUANTUM FIREBALL_TM2110A" 9 C "Quantum Fireball TM2110A"
########################################
############# Samsung drives
########################################
# somenone reported a problem with the SP8004H which reports a temperature
# 10<31>C below the ambient temperature
"SAMSUNG HA(200|250)JC" 194 C "Samsung SpinPoint V120CE series"
"SAMSUNG HD160JJ" 194 C "Samsung 160GB, 7200RPM, 8MB cache, SATA"
"SAMSUNG HD160JJ/P" 194 C "Samsung SpinPoint P80 SD 160GB (7200RPM, 8MB cache)"
"SAMSUNG HD[30|32|40][01]L[DJ]" 194 C "Samsung SpinPoint T133 series (300-400MB)"
"SAMSUNG HD250KD" 194 C "Samsung SpinPoint T133 series (250 MB PATA)"
"SAMSUNG HD321KJ" 194 C "Samsung Spinpoint T166 (7200RPM, 16MB cache) - SATA"
"SAMSUNG HD501LJ" 194 C "Samsung HD501LJ"
"SAMSUNG MP0(302|402|603|804)H" 194 C "Samsung SpinPoint M40 2.5inch"
"SAMSUNG SW0434A" 0 C "Samsung SW0434A"
"SAMSUNG SP(2001|4002|6003|8004|40A2)H" 194 C "Samsung SpinPoint P40 serie"
"SAMSUNG SP(0612|0802|1203|1604|0812|1213|1614)N" 194 C "Samsung SpinPoint P80 serie"
"SAMSUNG SP(0612|0802|1203|1604|0812|1213|1614)C" 194 C "Samsung SpinPoint P80 series - SATA"
"SAMSUNG SP0411N" 194 C "Samsung SpinPoint PL40 serie"
"SAMSUNG SP0822N" 194 C "Samsung SP0822N"
"SAMSUNG SP(0812|1213|1614)C" 194 C "Samsung Spinpoint 160G SATA"
"SAMSUNG SP2[05]14N" 194 C "Samsung SpinPoint P120 series (7200RPM, 8MB cache)"
"SAMSUNG SP2[05]04C" 194 C "Samsung SpinPoint P120 series - SATA"
"SAMSUNG SV0432A" 0 C "Samsung SV0432A"
"SAMSUNG SV3002H" 0 C "Samsung SpinPoint V30 serie"
"SAMSUNG SV(2001|4002|4012|6003|8004)H" 194 C "Samsung SpinPoint V40 serie"
#"SAMSUNG SV(0221|0602|0813|1204)H" 9 C "Samsung SpinPoint V60 serie"
#"SAMSUNG SV1204H" 194 C "Samsung 120G"
"SAMSUNG SV(0401|0802|1203|1604)N" 194 C "Samsung SpinPoint V80 serie"
"SAMSUNG SV4012H" 194 C "Samsung 40GB, 5400RPM, 2MB cache"
########################################
############# Seagate drives
########################################
"Seagate Technology 1275MB - ST31276A" 0 C "Seagate ST31276A"
"ST3412A" 0 C "Seagate ST3412A"
"ST38641A" 0 C "Seagate ST38641A"
"ST310014A" 194 C "Seagate ST310014A"
"ST310210A" 0 C "Seagate ST310210A"
"ST310211A" 194 C "Seagate ST310211A"
"ST310220A" 0 C "Seagate ST310220A"
# SEAGATE ST313021A 13.0GB
"ST313021A" 0 C "Seagate U8 ST313021A"
"ST310240A" 0 C "Seagate Medalist 10240 Ultra ATA-3"
"ST315320A" 194 C "Seagate ST315320A"
"ST320423A" 0 C "Seagate U10 20423, Ultra ATA/66"
"ST320011A" 194 C "Seagate ST320011A"
"ST320014A" 194 C "Seagate ST320014A (5400 rpm, 20Gb)"
"ST320410A" 194 C "Seagate ST320410A"
"ST320413A" 194 C "Seagate ST320413A"
"ST320414A" 194 C "Seagate ST320414A"
"ST320420A" 194 C "Seagate Barracuda II ST320420A"
"ST330013A" 194 C "Seagate ST330013A Barracuda ATA V 30GB, 7200 rpm"
"ST330620A" 194 C "Seagate ST330620A"
"ST330621A" 194 C "Seagate ST330621A"
"ST330630A" 194 C "Seagate Barracuda ST330630A"
"ST340014A" 194 C "Seagate Barracuda 7200.7 40Gb"
"ST340015A" 194 C "Seagate Barracuda 5400.1 40GB"
"ST340016A" 194 C "Seagate ST340016A"
"ST340810A" 194 C "Seagate U Series 40810 (40Gb, Ultra ATA/100, 5400 rpm)"
"ST340823A" 194 C "Seagate U Series 5 40823"
"ST340824A" 194 C "Seagate Barracuda III"
"ST360015A" 194 C "Seagate Barracuda V ST360015A"
"ST360020A" 194 C "Seagate U Series 60020"
"ST360021A" 194 C "Seagate Barracuda IV ST360021A"
"ST380011A" 194 C "Seagate Barracuda 7200.7 80GB"
"ST380012A" 194 C "Seagate ST380012A 80GB"
"ST380013A" 194 C "Seagate Barracuda 7200.7 80GB"
"ST380013AS" 194 C "Seagate Barracuda 7200.7 80GB (Serial ATA)"
"ST380020A" 194 C "Seagate U Series 80020 (80Gb, Ultra ATA/100, 5400 rpm)"
"ST380021A" 194 C "Seagate Barracuda IV ST380021A"
"ST380022A" 194 C "Seagate Barracuda U7 80022, Ultra ATA/100"
"ST380023A" 194 C "Seagate Barracuda V ST380023A"
"ST380817AS" 194 C "Seagate Barracuda 7200.7 80GB - SATA"
"ST39111A" 194 C "Seagate ST39111A (from Sun Ultra)"
"ST3120020A" 194 C "Seagate ST3120020A"
"ST3120022A" 194 C "Seagate Baraccuda 7200.7 120GB"
"ST3120023A" 194 C "Seagate Barracuda V ST3120023A"
"ST3120024A" 194 C "Seagate Barracuda V ST3120024A"
"ST3120025ACE" 194 C "Seagate Barracuda V ST3120025ACE"
"ST3120026A" 194 C "Seagate Barracuda V ST3120026A"
"ST3160021A" 194 C "Seagate Barracuda 7200.7 - ST3160021A"
"ST3160023(A|AS)" 194 C "Seagate Barracuda V ST3160023A and AS (160Gb, ATA100 or Serial ATA)"
"ST316081[12](A|AS)" 194 C "Seagate Barracuda 7200.9 160GB"
"ST3160827AS" 194 C "Seagate Barracuda 7200.7 160GB (Serial ATA)"
"ST3200021A" 194 C "Seagate Barracuda 7200.7 Plus 200GB"
"ST3200822(A|AS)" 194 C "Seagate Barracuda 7200.7 Plus 200GB (PATA or SATA)"
"ST3200826A" 194 C "Seagate Barracuda 7200.8 200GB"
"ST3250623A" 194 C "Seagate Barracuda 7200.16 250GB"
"ST3250624AS" 194 C "Seagate Barracuda 7200.9 250GB SATA"
"ST3250624NS" 194 C "Seagate NL35 SATA (RAID-Edition) 7200 250GB"
"ST3250823A" 194 C "Seagate Barracuda 7200.8 250GB"
"ST3250823A" 194 C "Seagate Barracuda 7200.7 Plus 250GB"
"ST3250823NS" 194 C "Seagate NL35 SATA (RAID-Edition) 7200 250GB"
"ST3300831A" 194 C "Seagate 300GB ST3300831A"
"ST3400832A" 194 C "Seagate Barracuda 7200.8 Plus 400GB"
"ST3400633(A|AS)" 194 C "Seagate Barracuda 7200.7 400 GB"
"ST3500630NS" 194 C "Seagate"
"ST3400632NS" 194 C "Seagate"
"ST380[28]110(A|AS)" 194 C "Seagate Barracuda 7200.9 80 GB"
"ST910021A" 194 C "Seagate Momentus 7200.1 100GB"
"ST910082[35]A" 194 C "Seagate Momentus 5400.2 100GB"
"ST9120821A" 194 C "Seagate Momentus 5400.2 120GB"
"ST94019A" 194 C "Seagate ST94019A"
"ST94813A" 194 C "Seagate Momentus 5400.2 40GB"
"ST94[08]11A" 194 C "Seagate ST94011A"
"ST960821A" 194 C "Seagate ST960821A"
"ST960822A" 194 C "Seagate Momentus 5400.2 60GB"
"ST96812AS" 194 C "Seagate Momentus 5400.2 60GB SATA"
"ST9808211A" 194 C "Seagate Momentus 5400.2 80GB"
"ST98823AS" 194 C "Seagate Momentus 5400.2 80GB SATA"
########################################
############# TOSHIBA Laptops
########################################
"MK4313MAT" 220 C "Toshiba MK4313MAT"
"TOSHIBA MK1032GAX" 194 C "Toshiba MK1032GAX"
"TOSHIBA MK1032GSX" 194 C "Toshiba MK1032GSX"
"TOSHIBA MK1517GAP" 0 C "Toshiba MK1517GAP"
"TOSHIBA MK2018GAS" 226 F "Toshiba MK2018GAS"
"TOSHIBA MK2023GAS" 194 C "Toshiba MK2023GAS"
"TOSHIBA MK3017GAP" 0 C "Toshiba MK3017GAP"
"TOSHIBA MK3021GAS" 194 C "Toshiba MK3021GAS"
"TOSHIBA MK3025GAS" 194 C "Toshiba MK3025GAS"
#"TOSHIBA MK4019GAX" 222 C "Toshiba MK4019GAX"
"TOSHIBA MK4021GAS" 194 C "Toshiba MK4021GAS"
"TOSHIBA MK4025GAS" 194 C "Toshiba MK4025GAS 40 Go"
"TOSHIBA MK4026GAS" 194 C "Toshiba MK4026GAS 40 Go"
"TOSHIBA MK4032GAX" 194 C "Toshiba MK4032GAX"
"TOSHIBA MK6021GAS" 194 C "Toshiba MK6021GAS"
"TOSHIBA MK6022GAX" 194 C "Toshiba MK6022GAX"
"TOSHIBA MK6025GAS" 194 C "Toshiba MK6025GAS"
"TOSHIBA MK6026GAX" 194 C "Toshiba MK6026GAX"
"TOSHIBA MK8025GAS" 194 C "Toshiba MK8025GAS"
"TOSHIBA MK8026GAX" 194 C "Toshiba MK8026GAX"
"TOSHIBA MK8032GSX" 194 C "Toshiba MK8032GSX"
"MK4025GAS" 194 C "Toshiba MK4025GAS"
########################################
############# Western Digital drives
########################################
# WDC AC310100B and WDC AC2850F are reported not working
# no more informations were given
"WDC AC22000L" 0 C "Western Digital Caviar AC22000"
"WDC AC420400D" 231 C "Western Digital Caviar AC420400D"
"WDC AC418000D" 231 C "Western Digital AC418000D"
"WDC WD135BA" 231 C "Western Digital WD135BA"
"WDC WD100EB-00BHF0" 0 C "Western Digital 100EB-00BHF0"
"WDC WD200BB-00AUA1" 0 C "Western Digital Caviar WD200BB"
#"WDC WD200BB-60DGA0" 0 C "Western Digital Caviar WD200BB"
"WDC WD300BB-00CAA0" 0 C "Western Digital WD300BB"
"WDC WD360GD-00FNA0" 194 C "Western Digital SATA Raptor 36.7GB"
"WDC WD400BB-00CAA0" 0 C "Western Digital 400BB-00CAA0"
"WDC WD400BB-00[DJ][KH]A0" 194 C "Western Digital Caviar WD400BB"
"WDC WD400BB-23JHC0" 194 C "Western Digital 23JHC0"
#"WDC WD400BB-00GFA0" 0 C ""
"WDC WD400BB-55HEA0" 194 C "Western Digital Caviar WD400BB"
"WDC WD400BB-(18CA|00DE)A0" 0 C "Western Digital Caviar WD400BB"
"WDC WD400BB-75FJA1" 194 C "Western Digital Caviar WD400BB"
"WDC WD400EB-00CPF0" 0 C "Western Digital 400EB-00CPF0"
"WDC WD400JB-00(JJ|FM|FS)A0" 194 C "Western Digital Caviar 40GB Special Edition 8MB"
"WDC WD400JB-00ETA0" 194 C "Western Digital 400JB-00ETA0"
"WDC WD400JB-00JJC0" 194 C "Western Digital 400JB-00JJC0 40GB"
"WDC WD400LB-00DNA0" 194 C "Western Digital 400LB-00DNA0"
"WDC WD400UE-22HCT0" 194 C "Western Digital 40GB Notebook HDD"
"WDC WD400VE-75HDT1" 194 C "Western Digital Scorpio 40GB"
"WDC WD600BB-32BSA0" 0 C "Western Digital 600BB-32BSA0"
"WDC WD600JB-00ETA0" 194 C "Western Digital 600JB-00ETA0"
"WDC WD600LB-00DNA0" 194 C "Western Digital 60GB"
"WDC WD600VE-75HDT0" 194 C "Western Digital 600VE-75HDT0"
"WDC WD600VE-00HDT0" 194 C "Western Digital 600VE-00HDT0"
"WDC WD740GD-00FL21.0" 194 C "Western Digital SATA Raptor"
"WDC WD740GD-([05]0FL[AC][01]|75FLA1)" 194 C "Western Digital SATA Raptor 74GB 8MB"
"WDC WD800BB-00CAA1" 0 C "Western Digital WD800BB-00CAA1"
"WDC WD800BB-(00|22)DKA0" 194 C "Western Digital WD800BB 80 Go"
"WDC WD800BB-32CCB0" 194 C "Western Digital 800BB-32CCB0"
"WDC WD800BB-55HEA0" 194 C "Western Digital 800BB-55HEA0"
"WDC WD800BB-00JHA0" 194 C "Western Digital 800BB-00JHA0"
"WDC WD800BB-00JKA0" 194 C "Western Digital 800BB-00JKA0"
"WDC WD800BB-55JKA0" 194 C "Western Digital 800BB-55JKA0"
"WDC WD800BB-75FRA0" 194 C "Western Digital Caviar WD800BB"
"WDC WD800JB-00CRA1" 0 C "Western Digital Caviar WD800JB"
"WDC WD800JB-00(ET|FM|FS)A0" 194 C "Western Digital Caviar 80GB Special Edition 8MB"
"WDC WD800JB-00JJ[AC]0" 194 C "Western Digital WD800JB"
"WDC WD800JD-(00|55|75)(HK|JR|JN)[AC]0" 194 C "Western Digital SATA 80GB, 8MB Cache"
"WDC WD800LB-(00|55)DNA0" 194 C "Western Digital Caviar WD800LB 80 Go ATA-100"
"WDC WD800VE-07HDT0" 194 C "Western Digital 800VE-07HDT0"
"WDC WD1200BB-00(FTA|GUA)0" 194 C "Western Digital Caviar EIDE 2MB Cache"
"WDC WD1200JB-00(EV|FU|GV|RE)A0" 194 C "Western Digital Caviar 120GB Special Edition 8MB"
"WDC WD1200JB-22GVA0" 194 C "Western Digital Caviar 120GB"
"WDC WD1200JD-00(FYB|GBB|HBC)0" 194 C "Western Digital WD1200JD"
"WDC WD1200LB-55EDA0" 194 C "Western Digital WD1220LB"
"WDC WD1200SB-01KB[AC]0" 194 C "Western Digital Caviar RE (Raid Edition) 120 GB"
"WDC WD1600BB-00DWA0" 194 C "Western Digital Caviar WD1600BB"
"WDC WD1600JB-(00EV|00FU|00GV|22GV|75GV)A0" 194 C "Western Digital Caviar 160GB Special Edition 8MB"
"WDC WD2000BB-00FTA0" 194 C "Western Digital WD2000BB"
"WDC WD2000JB-(00EV|32EV|34EV|00FU|00GV|55GV|98GV|00KF)A0" 194 C "Western Digital Caviar 200GB Special Edition 8MB"
"WDC WD2000JB-00GVC0" 194 C "Western Digital WD2000JB"
"WDC WD2000JD-00FYB0" 194 C "Western Digital WD2000JD"
"WDC WD2000JS-00MHB1" 194 C "Western Digital SATA 200GB"
"WDC WD2500JB-(00RE|00EV|00FU|32FU|00GV|55GV)A0" 194 C "Western Digital Caviar 250GB Special Edition 8MB"
"WDC WD2500JB-00GVC0" 194 C "Western Digital 250GB"
"WDC WD2500JD-(00G|32H|75H)BB0" 194 C "Western Digital SATA Caviar 250GB Special Edition 8MB"
"WDC WD2500JD-40HBC0" 194 C "Western Digital WD2500JD-40HBC0"
"WDC WD2500PB-98FBA0" 194 C "Western Digital Caviar 250GB Special Edition 8MB"
"WDC WD2500PD-00FZB1" 194 C "Western Digital WD2500PD-00FZB1"
"WDC WD2500SD-01KCB0" 194 C "Western Digital Caviar RE 250GB 8MB"
"WDC WD3000JB-00KFA0" 194 C "Western Digital WD3000JB"
"WDC WD3200JB-00KFA0" 194 C "Western Digital Caviar 320GB 8MB"
"WDC WD4000KD-00NAB0" 194 C "Western Digital Caviar SE16 400GB 16MB"
"WDC WD4000YR-01PLB0" 194 C "Western Digital Caviar RE2 400GB 16MB"
"WD4000YS-01MPB0" 194 C "Western Digital RE2 7200 SATA II 400 GB"
# not sure for next
# "WDC WD1200JB-00CRA1" 9 C "Western Digital 1200JB-00CRA1"
# "WDC WD273BA" 9 C "Western Digital WD273BA"
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
########################################################################################################################
"ST3750640AS" 194 C "Seagate Barracuda 7200.10 SATA 750GB"
"ST3750840AS" 194 C "Seagate Barracuda 7200.10 SATA 750GB"
"ST3500630AS" 194 C "Seagate Barracuda 7200.10 SATA 500GB"
"ST3500830AS" 194 C "Seagate Barracuda 7200.10 SATA 500GB"
"ST3400620AS" 194 C "Seagate Barracuda 7200.10 SATA 400GB"
"ST3400620A" 194 C "Seagate Barracuda 7200.10 400GB"
"ST3400820AS" 194 C "Seagate Barracuda 7200.10 SATA 400GB"
"ST3320620AS" 194 C "Seagate Barracuda 7200.10 SATA 320GB"
"ST3320820AS" 194 C "Seagate Barracuda 7200.10 SATA 320GB"
"ST3300620AS" 194 C "Seagate Barracuda 7200.10 SATA 300GB"
"ST3300820AS" 194 C "Seagate Barracuda 7200.10 SATA 300GB"
"ST3250620AS" 194 C "Seagate Barracuda 7200.10 SATA 250GB"
"ST3250820AS" 194 C "Seagate Barracuda 7200.10 SATA 250GB"
"ST3250410AS" 194 C "Seagate Barracuda 7200.10 SATA 250GB"
"ST3250310AS" 194 C "Seagate Barracuda 7200.10 SATA 250GB"
"ST3200820AS" 194 C "Seagate Barracuda 7200.10 SATA 200GB"
"ST3160815AS" 194 C "Seagate Barracuda 7200.10 SATA 160GB"
"ST3160215AS" 194 C "Seagate Barracuda 7200.10 SATA 160GB"
"ST3120815AS" 194 C "Seagate Barracuda 7200.10 SATA 120GB"
"ST3120215AS" 194 C "Seagate Barracuda 7200.10 SATA 120GB"
"ST380815AS" 194 C "Seagate Barracuda 7200.10 SATA 80GB"
"ST380215AS" 194 C "Seagate Barracuda 7200.10 SATA 80GB"
"ST340815AS" 194 C "Seagate Barracuda 7200.10 SATA 40GB"
"ST340215AS" 194 C "Seagate Barracuda 7200.10 SATA 40GB"
"ST3300622AS" 194 C "Seagate Barracuda 7200.9 SATA2.5 300GB"
"ST3300831A" 194 C "Seagate Barracuda 7200.8 PATA 300GB"
"Maxtor 7(L|V)250(F|R|S)0" 194 C "Maxtor MaXLine III 250GB 7200rpm"
"Maxtor 7(L|V)300(F|R|S)0" 194 C "Maxtor MaXLine III 300GB 7200rpm"
"MAXTOR STM3320620AS" 194 C ""
"WDC WD1500ADFD-00NLR[01]" 194 C "Western Digital Raptor 150GB"
"WDC WD1600JS-00NCB1" 194 C "Western Digital Caviar 1600JS 160GB Sata"
"WDC WD1600SD-01KCC0" 194 C "Western Digital Caviar RE Serial ATA series"
"WDC WD2500JD-57HBC0" 194 C "Western Digital Caviar SE (Serial ATA) 250 GB"
"WDC WD2500JS" 194 C "Western Digital WD2500JS"
"WDC WD2500JS-41MVB1" 194 C "Western Digital SATAII Caviar 250GB Special Edition 8MB"
"WDC WD2500JD-00HBB0" 194 C "Western Digital SATA 250GB"
"WDC WD2500KS-00MJB0" 194 C "Western Digital SATA-II Caviar 250GB Special Edition 16MB"
"WDC WD2500YD-01NVB1" 194 C "Western Digital Caviar RE 250GB 16MB"
"WDC WD3000JS-00PDB0" 194 C "Western Digital WD3000JS"
"WDC WD3200KS-00PFB0" 194 C "Western Digital Caviar 320GB 16MB"
"WDC WD3200JD-22KLB0" 194 C "Western Digital Caviar SE 320GB 8MB"
"WDC WD3200SD-01KNB0" 194 C "Western Digital Caviar RE 320GB SATA 8MB"

View File

@@ -0,0 +1,100 @@
#!/bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl
#
### BEGIN INIT INFO
# Provides: hddtemp
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: disk temperature monitoring daemon
# Description: hddtemp is a disk temperature monitoring daemon
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=hddtemp
DAEMON=/usr/sbin/$NAME
DESC="disk temperature monitoring daemon"
DISKS="/dev/hd[a-z] /dev/hd[a-z][a-z]"
DISKS="$DISKS /dev/sd[a-z] /dev/sd[a-z][a-z]"
DISKS="$DISKS /dev/sr[a-z] /dev/sr[a-z][a-z]"
INTERFACE="0.0.0.0"
PORT="7634"
SEPARATOR="|"
RUN_SYSLOG="0"
# Reads config file (will override defaults above)
[ -r /etc/default/hddtemp ] && . /etc/default/hddtemp
if [ -n "$RUN_SYSLOG" ] && [ "$RUN_SYSLOG" != "0" ] ; then
SYSLOG_ARG="-S $RUN_SYSLOG"
fi
if [ "$RUN_DAEMON" = "true" ] || [ "$RUN_DAEMON" = "yes" ] ; then
DAEMON_ARG="-d -l $INTERFACE -p $PORT -s $SEPARATOR"
fi
[ -x "$DAEMON" ] || exit 0
. /lib/lsb/init-functions
case "$1" in
start)
# master switch
if [ -n "$DAEMON_ARG" ] || [ -n "$SYSLOG_ARG" ] ; then
log_daemon_msg "Starting $DESC" "$NAME:"
CDROMS_LIST=$(sed -ne 's/^drive name:\t\+\(.*\)$/ \/dev\/\1/p' /proc/sys/dev/cdrom/info 2>/dev/null) || :
CDROMS_LIST="$CDROMS_LIST $(grep -sl '^ide-scsi ' /proc/ide/hd*/driver | awk -F / '{ print "/dev/"$4 }')"
for disk in $DISKS ; do
echo $CDROMS_LIST | grep -wq $disk && continue
echo $DISKS_NOPROBE | grep -wq $disk && continue
if $DAEMON -wn $OPTIONS $disk 2>/dev/null | grep -q '^[0-9]\+$' ; then
DISKS_LIST="$DISKS_LIST $disk";
fi
done
if [ -n "$DISKS_LIST" ] || [ -n "$DISKS_NOPROBE" ] ; then
start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_ARG $SYSLOG_ARG $OPTIONS $DISKS_NOPROBE $DISKS_LIST
ret=$?
log_progress_msg "$DISKS_NOPROBE$DISKS_LIST"
log_end_msg $ret
else
log_progress_msg "no disks with monitoring capability were found."
log_end_msg 0
fi
fi
;;
stop)
# master switch
if [ "$RUN_DAEMON" = "true" ] || [ "$RUN_DAEMON" = "yes" ] || [ "$RUN_SYSLOG" != "0" ] ; then
log_daemon_msg "Stopping $DESC" "$NAME"
start-stop-daemon --stop --oknodo --exec $DAEMON --retry 30
log_end_msg $?
fi
;;
force-reload|reload)
exit 3
;;
restart)
$0 stop && $0 start
;;
status)
status_of_proc $DAEMON $NAME
exit $?
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|status}" >&2
exit 1
;;
esac
exit 0

View File

@@ -0,0 +1,35 @@
SUMMARY = "Hard disk temperature monitor daemon"
SECTION = "console/network"
LICENSE = "GPL-2.0-or-later"
PR = "r1"
SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/hddtemp/hddtemp-0.3-beta15.tar.bz2 \
file://hddtemp-no-nls-support.patch \
file://hddtemp_0.3-beta15-52.diff \
file://hddtemp-0.3-beta15-autodetect-717479.patch \
file://0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch \
file://0001-configure.ac-Rename-to-configure.ac-and-use-external.patch \
file://0001-sata.c-Declare-ata_get_powermode-prototype.patch \
file://hddtemp.db \
file://init \
"
SRC_URI[md5sum] = "8b829339e1ae9df701684ec239021bb8"
SRC_URI[sha256sum] = "618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b"
LIC_FILES_CHKSUM = "file://GPL-2;md5=eb723b61539feef013de476e68b5c50a"
inherit autotools gettext update-rc.d
FILES:${PN} += "/usr/share/misc/hddtemp.db"
do_install:append() {
install -d ${D}/usr/share/misc/
install -m 0644 ${WORKDIR}/hddtemp.db ${D}/usr/share/misc/hddtemp.db
install -d ${D}${sysconfdir}/init.d
install -m 0644 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hddtemp
}
INITSCRIPT_NAME = "hddtemp"
INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 20 0 1 6 ."