hddtemp: add from OE-Classic and update
PATCH 1/1 hddtemp: add from OE-Classic and update
hddtemp is unmaintained upstream so we have to do a bit of patching. All patches sourced from Debian/Fedora, except hddtemp-no-nls-support.patch which came from OE-Classic.
Other improvements:
* Install initscript
* Make LICENSE more accurate
* Add LIC_FILES_CHKSUM
* inherit gettext to avoid error during configure
--- .../hddtemp-0.3-beta15-autodetect-717479.patch | 90 + .../recipes-support/hddtemp/files/hddtemp-db.patch | 133 + .../hddtemp/files/hddtemp-no-nls-support.patch | 66 + meta-oe/recipes-support/hddtemp/files/hddtemp.db | 523 ++ .../hddtemp/files/hddtemp_0.3-beta15-52.diff | 7545 ++++++++++++++++++++ .../recipes-support/hddtemp/hddtemp_0.3-beta15.bb | 30 + 6 files changed, 8387 insertions(+) create mode 100644 meta-oe/recipes-support/hddtemp/files/hddtemp-0.3-beta15-autodetect-717479.patch create mode 100644 meta-oe/recipes-support/hddtemp/files/hddtemp-db.patch create mode 100644 meta-oe/recipes-support/hddtemp/files/hddtemp-no-nls-support.patch create mode 100644 meta-oe/recipes-support/hddtemp/files/hddtemp.db create mode 100644 meta-oe/recipes-support/hddtemp/files/hddtemp_0.3-beta15-52.diff create mode 100644 meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb
meta-oe/recipes-support/hddtemp/files/hddtemp-0.3-beta15-autodetect-717479.patch new file +90 -0
@@ -0,0 +1,90 @@ +Auto-detect disks if none specified + +Refer to: +https://bugzilla.redhat.com/show_bug.cgi?id=717479 + +diff -up hddtemp-0.3-beta15/doc/hddtemp.8~ hddtemp-0.3-beta15/doc/hddtemp.8 +--- hddtemp-0.3-beta15/doc/hddtemp.8~ 2011-08-18 00:36:05.689001470 +0300 ++++ hddtemp-0.3-beta15/doc/hddtemp.8 2011-08-18 00:44:46.753006253 +0300 +@@ -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" +diff -up hddtemp-0.3-beta15/src/hddtemp.c~ hddtemp-0.3-beta15/src/hddtemp.c +--- hddtemp-0.3-beta15/src/hddtemp.c~ 2011-08-18 00:36:05.638996861 +0300 ++++ hddtemp-0.3-beta15/src/hddtemp.c 2011-08-18 00:35:55.485060798 +0300 +@@ -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(); +@@ -419,11 +421,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; +@@ -434,6 +431,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 */ +@@ -527,6 +541,7 @@ int main(int argc, char* argv[]) { + else { + do_direct_mode(ldisks); + } ++ globfree(&diskglob); + + return ret; + }
meta-oe/recipes-support/hddtemp/files/hddtemp-db.patch new file +133 -0
133 lines not on this page · raw message
meta-oe/recipes-support/hddtemp/files/hddtemp-no-nls-support.patch new file +66 -0
66 lines not on this page · raw message
meta-oe/recipes-support/hddtemp/files/hddtemp.db new file +523 -0
523 lines not on this page · raw message
meta-oe/recipes-support/hddtemp/files/hddtemp_0.3-beta15-52.diff new file +7545 -0
2,188 lines not on this page · raw message
meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb new file +30 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.
Quoted 11 lines · Paul Eggleton
hddtemp is unmaintained upstream so we have to do a bit of patching. All patches sourced from Debian/Fedora, except hddtemp-no-nls-support.patch which came from OE-Classic.
Other improvements:
* Install initscript
* Make LICENSE more accurate
* AddLIC_FILES_CHKSUM
* inherit gettext to avoid error during configureSigned-off-by Paul Eggleton <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br