AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H
+/* Use libatasmart */
+#undef HAVE_ATASMART
+
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
CoreFoundation framework. */
#undef HAVE_CFLOCALECOPYCURRENT
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for psensor 0.6.2.15.
+# Generated by GNU Autoconf 2.68 for psensor 0.6.2.16.
#
# Report bugs to <jeanfi@gmail.com>.
#
# Identity of this package.
PACKAGE_NAME='psensor'
PACKAGE_TARNAME='psensor'
-PACKAGE_VERSION='0.6.2.15'
-PACKAGE_STRING='psensor 0.6.2.15'
+PACKAGE_VERSION='0.6.2.16'
+PACKAGE_STRING='psensor 0.6.2.16'
PACKAGE_BUGREPORT='jeanfi@gmail.com'
PACKAGE_URL='http://wpitchoune.net/psensor'
LIBNOTIFY_TRUE
LIBNOTIFY_LIBS
LIBNOTIFY_CFLAGS
+ATASMART_FALSE
+ATASMART_TRUE
+ATASMART_LIBS
+ATASMART_CFLAGS
GCONF_LIBS
GCONF_CFLAGS
GTK_FALSE
GTK_LIBS
GCONF_CFLAGS
GCONF_LIBS
+ATASMART_CFLAGS
+ATASMART_LIBS
LIBNOTIFY_CFLAGS
LIBNOTIFY_LIBS
APPINDICATOR_CFLAGS
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures psensor 0.6.2.15 to adapt to many kinds of systems.
+\`configure' configures psensor 0.6.2.16 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of psensor 0.6.2.15:";;
+ short | recursive ) echo "Configuration of psensor 0.6.2.16:";;
esac
cat <<\_ACEOF
GCONF_CFLAGS
C compiler flags for GCONF, overriding pkg-config
GCONF_LIBS linker flags for GCONF, overriding pkg-config
+ ATASMART_CFLAGS
+ C compiler flags for ATASMART, overriding pkg-config
+ ATASMART_LIBS
+ linker flags for ATASMART, overriding pkg-config
LIBNOTIFY_CFLAGS
C compiler flags for LIBNOTIFY, overriding pkg-config
LIBNOTIFY_LIBS
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-psensor configure 0.6.2.15
+psensor configure 0.6.2.16
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by psensor $as_me 0.6.2.15, which was
+It was created by psensor $as_me 0.6.2.16, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
# Define the identity of the package.
PACKAGE='psensor'
- VERSION='0.6.2.15'
+ VERSION='0.6.2.16'
cat >>confdefs.h <<_ACEOF
### Optional
+# check libatasmart
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
+$as_echo_n "checking for ATASMART... " >&6; }
+
+if test -n "$ATASMART_CFLAGS"; then
+ pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ATASMART_LIBS"; then
+ pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
+ else
+ ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ATASMART_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
+$as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
+$as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
+else
+ ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
+ ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+$as_echo "#define HAVE_ATASMART 1" >>confdefs.h
+
+fi
+
+ if test -n "$ATASMART_LIBS"; then
+ ATASMART_TRUE=
+ ATASMART_FALSE='#'
+else
+ ATASMART_TRUE='#'
+ ATASMART_FALSE=
+fi
+
+
+
+
# Check libnotify
LIBNOTIFY_LIBS=
as_fn_error $? "conditional \"GTK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
+ as_fn_error $? "conditional \"ATASMART\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by psensor $as_me 0.6.2.15, which was
+This file was extended by psensor $as_me 0.6.2.16, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-psensor config.status 0.6.2.15
+psensor config.status 0.6.2.16
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
# Origin: gettext-0.16
PACKAGE = psensor
-VERSION = 0.6.2.15
+VERSION = 0.6.2.16
PACKAGE_BUGREPORT = jeanfi@gmail.com
SHELL = /bin/sh
top_srcdir = ..
-prefix = /usr
+prefix = /usr/local
exec_prefix = ${prefix}
datarootdir = ${prefix}/share
datadir = ${datarootdir}
# We use $(mkdir_p).
# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
-# ${SHELL} /mnt/nfs4/users/jporsini/work/wpitchoune.net/svnpub/psensor/trunk/install-sh does not start with $(SHELL), so we add it.
+# ${SHELL} /home/jporsini/work/wpitchoune.net/svnpub/psensor/trunk/install-sh does not start with $(SHELL), so we add it.
# In automake >= 1.10, /bin/mkdir -p is derived from ${MKDIR_P}, which is defined
# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
# versions, $(mkinstalldirs) and $(install_sh) are unused.
-mkinstalldirs = $(SHELL) ${SHELL} /mnt/nfs4/users/jporsini/work/wpitchoune.net/svnpub/psensor/trunk/install-sh -d
-install_sh = $(SHELL) ${SHELL} /mnt/nfs4/users/jporsini/work/wpitchoune.net/svnpub/psensor/trunk/install-sh
+mkinstalldirs = $(SHELL) ${SHELL} /home/jporsini/work/wpitchoune.net/svnpub/psensor/trunk/install-sh -d
+install_sh = $(SHELL) ${SHELL} /home/jporsini/work/wpitchoune.net/svnpub/psensor/trunk/install-sh
MKDIR_P = /bin/mkdir -p
mkdir_p = /bin/mkdir -p
src/rsensor.c
src/server/server.c
src/lib/amd.c
-src/lib/hdd.c
+src/lib/hdd_atasmart.c
+src/lib/hdd_hddtemp.c
src/lib/log.c
src/lib/nvidia.c
src/lib/lmsensor.c
msgstr ""
"Project-Id-Version: psensor 0.6.0.9\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
+"POT-Creation-Date: 2011-12-11 12:29+0100\n"
"PO-Revision-Date: 2011-02-07 21:18+0100\n"
"Last-Translator: Jean-Philippe Orsini <jeanfi@gmail.com>\n"
"Language-Team: Oriya\n"
msgid "Enables debug mode."
msgstr "Activée"
-#: src/main.c:421 src/server/server.c:352
+#: src/main.c:421 src/server/server.c:354
#, c-format
msgid "Try `%s --help' for more information.\n"
msgstr "Essayez `%s --help' pour plus d'informations.\n"
msgid "HTTP Request: %s\n"
msgstr "Requete HTTP: %s\n"
-#: src/server/server.c:366
+#: src/server/server.c:368
#, c-format
msgid "ERROR: no sensors detected\n"
msgstr "ERREUR: Aucune sonde detectee\n"
-#: src/server/server.c:373
+#: src/server/server.c:375
#, c-format
msgid "ERROR: Fail to create web server\n"
msgstr "ERREUR: Echec de la creation du serveur Web\n"
-#: src/server/server.c:377
+#: src/server/server.c:379
#, fuzzy, c-format
msgid "Web server started on port: %d"
msgstr "Server Web demarre sur le port: %d\n"
-#: src/server/server.c:378
+#: src/server/server.c:380
#, fuzzy, c-format
msgid "WWW directory: %s"
msgstr "WWW repertoire: %s\n"
-#: src/server/server.c:379
+#: src/server/server.c:381
#, fuzzy, c-format
msgid "URL: http://localhost:%d"
msgstr "URL: http://localhost:%d\n"
msgstr ""
"ERREUR: Impossible de récuperer la valeur de la sous-fonctionnalité %s: %s\n"
-#: src/lib/hdd.c:58
+#: src/lib/hdd_hddtemp.c:59
#, fuzzy, c-format
msgid "ERROR: hdd fetch, failed to open socket\n"
msgstr "ERREUR: hdd_fetch, écher d'ouverture de la socket\n"
-#: src/lib/hdd.c:72
+#: src/lib/hdd_hddtemp.c:73
#, fuzzy, c-format
msgid "ERROR: hdd fetch, failed to open connection\n"
msgstr "ERREUR: hdd_fetch, écher de l'ouverture de la connection\n"
-#: src/lib/hdd.c:182
+#: src/lib/hdd_hddtemp.c:183
#, c-format
msgid "ERROR: wrong hdd string: %s"
msgstr "ERREUR: mauvaise chaine hdd: %s"
-#: src/lib/hdd.c:252
+#: src/lib/hdd_hddtemp.c:253
#, c-format
msgid "ERROR: wrong hdd string: %s\n"
msgstr "ERREUR: mauvaise chaine hdd: %s\n"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
+"POT-Creation-Date: 2011-12-11 12:29+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Enables debug mode."
msgstr ""
-#: src/main.c:421 src/server/server.c:352
+#: src/main.c:421 src/server/server.c:354
#, c-format
msgid "Try `%s --help' for more information.\n"
msgstr ""
msgid "HTTP Request: %s\n"
msgstr ""
-#: src/server/server.c:366
+#: src/server/server.c:368
#, c-format
msgid "ERROR: no sensors detected\n"
msgstr ""
-#: src/server/server.c:373
+#: src/server/server.c:375
#, c-format
msgid "ERROR: Fail to create web server\n"
msgstr ""
-#: src/server/server.c:377
+#: src/server/server.c:379
#, c-format
msgid "Web server started on port: %d"
msgstr ""
-#: src/server/server.c:378
+#: src/server/server.c:380
#, c-format
msgid "WWW directory: %s"
msgstr ""
-#: src/server/server.c:379
+#: src/server/server.c:381
#, c-format
msgid "URL: http://localhost:%d"
msgstr ""
msgid "ERROR: Cannot get the number of adapters!\n"
msgstr ""
-#: src/lib/hdd.c:58
+#: src/lib/hdd_hddtemp.c:59
#, c-format
msgid "ERROR: hdd fetch, failed to open socket\n"
msgstr ""
-#: src/lib/hdd.c:72
+#: src/lib/hdd_hddtemp.c:73
#, c-format
msgid "ERROR: hdd fetch, failed to open connection\n"
msgstr ""
-#: src/lib/hdd.c:182
+#: src/lib/hdd_hddtemp.c:183
#, c-format
msgid "ERROR: wrong hdd string: %s"
msgstr ""
-#: src/lib/hdd.c:252
+#: src/lib/hdd_hddtemp.c:253
#, c-format
msgid "ERROR: wrong hdd string: %s\n"
msgstr ""
msgstr ""
"Project-Id-Version: psensor\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
+"POT-Creation-Date: 2011-12-11 12:29+0100\n"
"PO-Revision-Date: 2011-04-10 13:11+0000\n"
"Last-Translator: zeugma <Unknown>\n"
"Language-Team: Turkish <tr@li.org>\n"
msgid "Enables debug mode."
msgstr ""
-#: src/main.c:421 src/server/server.c:352
+#: src/main.c:421 src/server/server.c:354
#, c-format
msgid "Try `%s --help' for more information.\n"
msgstr "Daha fazla bilgi için `%s --help' yazın.\n"
msgid "HTTP Request: %s\n"
msgstr ""
-#: src/server/server.c:366
+#: src/server/server.c:368
#, c-format
msgid "ERROR: no sensors detected\n"
msgstr ""
-#: src/server/server.c:373
+#: src/server/server.c:375
#, c-format
msgid "ERROR: Fail to create web server\n"
msgstr ""
-#: src/server/server.c:377
+#: src/server/server.c:379
#, c-format
msgid "Web server started on port: %d"
msgstr ""
-#: src/server/server.c:378
+#: src/server/server.c:380
#, c-format
msgid "WWW directory: %s"
msgstr ""
-#: src/server/server.c:379
+#: src/server/server.c:381
#, c-format
msgid "URL: http://localhost:%d"
msgstr ""
msgid "ERROR: Cannot get the number of adapters!\n"
msgstr ""
-#: src/lib/hdd.c:58
+#: src/lib/hdd_hddtemp.c:59
#, c-format
msgid "ERROR: hdd fetch, failed to open socket\n"
msgstr ""
-#: src/lib/hdd.c:72
+#: src/lib/hdd_hddtemp.c:73
#, c-format
msgid "ERROR: hdd fetch, failed to open connection\n"
msgstr ""
-#: src/lib/hdd.c:182
+#: src/lib/hdd_hddtemp.c:183
#, c-format
msgid "ERROR: wrong hdd string: %s"
msgstr ""
-#: src/lib/hdd.c:252
+#: src/lib/hdd_hddtemp.c:253
#, c-format
msgid "ERROR: wrong hdd string: %s\n"
msgstr ""
msgstr ""
"Project-Id-Version: psensor 0.6.0.10\n"
"Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
+"POT-Creation-Date: 2011-12-11 12:29+0100\n"
"PO-Revision-Date: 2011-06-06 08:57+0000\n"
"Last-Translator: royclark <Unknown>\n"
"Language-Team: Chinese (simplified)\n"
msgid "Enables debug mode."
msgstr ""
-#: src/main.c:421 src/server/server.c:352
+#: src/main.c:421 src/server/server.c:354
#, c-format
msgid "Try `%s --help' for more information.\n"
msgstr ""
msgid "HTTP Request: %s\n"
msgstr ""
-#: src/server/server.c:366
+#: src/server/server.c:368
#, c-format
msgid "ERROR: no sensors detected\n"
msgstr ""
-#: src/server/server.c:373
+#: src/server/server.c:375
#, c-format
msgid "ERROR: Fail to create web server\n"
msgstr ""
-#: src/server/server.c:377
+#: src/server/server.c:379
#, c-format
msgid "Web server started on port: %d"
msgstr ""
-#: src/server/server.c:378
+#: src/server/server.c:380
#, c-format
msgid "WWW directory: %s"
msgstr ""
-#: src/server/server.c:379
+#: src/server/server.c:381
#, c-format
msgid "URL: http://localhost:%d"
msgstr ""
msgid "ERROR: Cannot get the number of adapters!\n"
msgstr ""
-#: src/lib/hdd.c:58
+#: src/lib/hdd_hddtemp.c:59
#, c-format
msgid "ERROR: hdd fetch, failed to open socket\n"
msgstr ""
-#: src/lib/hdd.c:72
+#: src/lib/hdd_hddtemp.c:73
#, c-format
msgid "ERROR: hdd fetch, failed to open connection\n"
msgstr ""
-#: src/lib/hdd.c:182
+#: src/lib/hdd_hddtemp.c:183
#, c-format
msgid "ERROR: wrong hdd string: %s"
msgstr ""
-#: src/lib/hdd.c:252
+#: src/lib/hdd_hddtemp.c:253
#, c-format
msgid "ERROR: wrong hdd string: %s\n"
msgstr ""
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
color.h color.c \
log.h log.c \
psensor.h psensor.c\
- hdd.h hdd.c\
+ hdd.h\
nvidia.h \
lmsensor.h lmsensor.c \
p_io.h p_io.c \
url.c url.h
+AM_CPPFLAGS=
+
+if ATASMART
+libpsensor_a_SOURCES += hdd_atasmart.c
+LIBS += $(ATASMART_LIBS)
+AM_CPPFLAGS += $(ATASMART_CFLAGS)
+else
+libpsensor_a_SOURCES += hdd_hddtemp.c
+endif
+
if NVIDIA
libpsensor_a_SOURCES += nvidia.c
endif
-AM_CPPFLAGS=
-
if LIBATIADL
LIBS += $(LIBATIADL_LIBS)
AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
-@NVIDIA_TRUE@am__append_1 = nvidia.c
-@LIBATIADL_TRUE@am__append_2 = $(LIBATIADL_LIBS)
-@LIBATIADL_TRUE@am__append_3 = $(LIBATIADL_CFLAGS)
-@LIBATIADL_TRUE@am__append_4 = amd.c
-@LIBATIADL_FALSE@am__append_5 = -pedantic
-@GTOP_TRUE@am__append_6 = cpu.c
-@GTOP_TRUE@am__append_7 = $(GTOP_LIBS)
-@GTOP_TRUE@am__append_8 = $(GTOP_CFLAGS)
-@JSON_TRUE@am__append_9 = psensor_json.h psensor_json.c
-@JSON_TRUE@am__append_10 = $(JSON_LIBS)
-@JSON_TRUE@am__append_11 = $(JSON_CFLAGS)
+@ATASMART_TRUE@am__append_1 = hdd_atasmart.c
+@ATASMART_TRUE@am__append_2 = $(ATASMART_LIBS)
+@ATASMART_TRUE@am__append_3 = $(ATASMART_CFLAGS)
+@ATASMART_FALSE@am__append_4 = hdd_hddtemp.c
+@NVIDIA_TRUE@am__append_5 = nvidia.c
+@LIBATIADL_TRUE@am__append_6 = $(LIBATIADL_LIBS)
+@LIBATIADL_TRUE@am__append_7 = $(LIBATIADL_CFLAGS)
+@LIBATIADL_TRUE@am__append_8 = amd.c
+@LIBATIADL_FALSE@am__append_9 = -pedantic
+@GTOP_TRUE@am__append_10 = cpu.c
+@GTOP_TRUE@am__append_11 = $(GTOP_LIBS)
+@GTOP_TRUE@am__append_12 = $(GTOP_CFLAGS)
+@JSON_TRUE@am__append_13 = psensor_json.h psensor_json.c
+@JSON_TRUE@am__append_14 = $(JSON_LIBS)
+@JSON_TRUE@am__append_15 = $(JSON_CFLAGS)
subdir = src/lib
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
libpsensor_a_AR = $(AR) $(ARFLAGS)
libpsensor_a_LIBADD =
am__libpsensor_a_SOURCES_DIST = amd.h cpu.h measure.h measure.c \
- color.h color.c log.h log.c psensor.h psensor.c hdd.h hdd.c \
- nvidia.h lmsensor.h lmsensor.c p_io.h p_io.c url.c url.h \
- nvidia.c amd.c cpu.c psensor_json.h psensor_json.c
-@NVIDIA_TRUE@am__objects_1 = libpsensor_a-nvidia.$(OBJEXT)
-@LIBATIADL_TRUE@am__objects_2 = libpsensor_a-amd.$(OBJEXT)
-@GTOP_TRUE@am__objects_3 = libpsensor_a-cpu.$(OBJEXT)
-@JSON_TRUE@am__objects_4 = libpsensor_a-psensor_json.$(OBJEXT)
+ color.h color.c log.h log.c psensor.h psensor.c hdd.h nvidia.h \
+ lmsensor.h lmsensor.c p_io.h p_io.c url.c url.h hdd_atasmart.c \
+ hdd_hddtemp.c nvidia.c amd.c cpu.c psensor_json.h \
+ psensor_json.c
+@ATASMART_TRUE@am__objects_1 = libpsensor_a-hdd_atasmart.$(OBJEXT)
+@ATASMART_FALSE@am__objects_2 = libpsensor_a-hdd_hddtemp.$(OBJEXT)
+@NVIDIA_TRUE@am__objects_3 = libpsensor_a-nvidia.$(OBJEXT)
+@LIBATIADL_TRUE@am__objects_4 = libpsensor_a-amd.$(OBJEXT)
+@GTOP_TRUE@am__objects_5 = libpsensor_a-cpu.$(OBJEXT)
+@JSON_TRUE@am__objects_6 = libpsensor_a-psensor_json.$(OBJEXT)
am_libpsensor_a_OBJECTS = libpsensor_a-measure.$(OBJEXT) \
libpsensor_a-color.$(OBJEXT) libpsensor_a-log.$(OBJEXT) \
- libpsensor_a-psensor.$(OBJEXT) libpsensor_a-hdd.$(OBJEXT) \
- libpsensor_a-lmsensor.$(OBJEXT) libpsensor_a-p_io.$(OBJEXT) \
- libpsensor_a-url.$(OBJEXT) $(am__objects_1) $(am__objects_2) \
- $(am__objects_3) $(am__objects_4)
+ libpsensor_a-psensor.$(OBJEXT) libpsensor_a-lmsensor.$(OBJEXT) \
+ libpsensor_a-p_io.$(OBJEXT) libpsensor_a-url.$(OBJEXT) \
+ $(am__objects_1) $(am__objects_2) $(am__objects_3) \
+ $(am__objects_4) $(am__objects_5) $(am__objects_6)
libpsensor_a_OBJECTS = $(am_libpsensor_a_OBJECTS)
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@ $(am__append_2) $(am__append_7) $(am__append_10)
+LIBS = @LIBS@ $(am__append_2) $(am__append_6) $(am__append_11) \
+ $(am__append_14)
LTLIBICONV = @LTLIBICONV@
LTLIBINTL = @LTLIBINTL@
LTLIBOBJS = @LTLIBOBJS@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
noinst_LIBRARIES = libpsensor.a
-libpsensor_a_CFLAGS = -Wall -Werror $(am__append_5)
+libpsensor_a_CFLAGS = -Wall -Werror $(am__append_9)
libpsensor_a_SOURCES = amd.h cpu.h measure.h measure.c color.h color.c \
- log.h log.c psensor.h psensor.c hdd.h hdd.c nvidia.h \
- lmsensor.h lmsensor.c p_io.h p_io.c url.c url.h \
- $(am__append_1) $(am__append_4) $(am__append_6) \
- $(am__append_9)
-AM_CPPFLAGS = $(am__append_3) $(am__append_8) $(am__append_11)
+ log.h log.c psensor.h psensor.c hdd.h nvidia.h lmsensor.h \
+ lmsensor.c p_io.h p_io.c url.c url.h $(am__append_1) \
+ $(am__append_4) $(am__append_5) $(am__append_8) \
+ $(am__append_10) $(am__append_13)
+AM_CPPFLAGS = $(am__append_3) $(am__append_7) $(am__append_12) \
+ $(am__append_15)
EXTRA_DIST = $(libpsensor_a_SOURCES) \
amd.c \
cpu.c \
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-amd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-color.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-cpu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-hdd.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-hdd_atasmart.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-hdd_hddtemp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-lmsensor.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-log.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpsensor_a-measure.Po@am__quote@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-psensor.obj `if test -f 'psensor.c'; then $(CYGPATH_W) 'psensor.c'; else $(CYGPATH_W) '$(srcdir)/psensor.c'; fi`
-libpsensor_a-hdd.o: hdd.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-hdd.o -MD -MP -MF $(DEPDIR)/libpsensor_a-hdd.Tpo -c -o libpsensor_a-hdd.o `test -f 'hdd.c' || echo '$(srcdir)/'`hdd.c
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-hdd.Tpo $(DEPDIR)/libpsensor_a-hdd.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdd.c' object='libpsensor_a-hdd.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-hdd.o `test -f 'hdd.c' || echo '$(srcdir)/'`hdd.c
-
-libpsensor_a-hdd.obj: hdd.c
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-hdd.obj -MD -MP -MF $(DEPDIR)/libpsensor_a-hdd.Tpo -c -o libpsensor_a-hdd.obj `if test -f 'hdd.c'; then $(CYGPATH_W) 'hdd.c'; else $(CYGPATH_W) '$(srcdir)/hdd.c'; fi`
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-hdd.Tpo $(DEPDIR)/libpsensor_a-hdd.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdd.c' object='libpsensor_a-hdd.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-hdd.obj `if test -f 'hdd.c'; then $(CYGPATH_W) 'hdd.c'; else $(CYGPATH_W) '$(srcdir)/hdd.c'; fi`
-
libpsensor_a-lmsensor.o: lmsensor.c
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-lmsensor.o -MD -MP -MF $(DEPDIR)/libpsensor_a-lmsensor.Tpo -c -o libpsensor_a-lmsensor.o `test -f 'lmsensor.c' || echo '$(srcdir)/'`lmsensor.c
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-lmsensor.Tpo $(DEPDIR)/libpsensor_a-lmsensor.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-url.obj `if test -f 'url.c'; then $(CYGPATH_W) 'url.c'; else $(CYGPATH_W) '$(srcdir)/url.c'; fi`
+libpsensor_a-hdd_atasmart.o: hdd_atasmart.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-hdd_atasmart.o -MD -MP -MF $(DEPDIR)/libpsensor_a-hdd_atasmart.Tpo -c -o libpsensor_a-hdd_atasmart.o `test -f 'hdd_atasmart.c' || echo '$(srcdir)/'`hdd_atasmart.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-hdd_atasmart.Tpo $(DEPDIR)/libpsensor_a-hdd_atasmart.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdd_atasmart.c' object='libpsensor_a-hdd_atasmart.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-hdd_atasmart.o `test -f 'hdd_atasmart.c' || echo '$(srcdir)/'`hdd_atasmart.c
+
+libpsensor_a-hdd_atasmart.obj: hdd_atasmart.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-hdd_atasmart.obj -MD -MP -MF $(DEPDIR)/libpsensor_a-hdd_atasmart.Tpo -c -o libpsensor_a-hdd_atasmart.obj `if test -f 'hdd_atasmart.c'; then $(CYGPATH_W) 'hdd_atasmart.c'; else $(CYGPATH_W) '$(srcdir)/hdd_atasmart.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-hdd_atasmart.Tpo $(DEPDIR)/libpsensor_a-hdd_atasmart.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdd_atasmart.c' object='libpsensor_a-hdd_atasmart.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-hdd_atasmart.obj `if test -f 'hdd_atasmart.c'; then $(CYGPATH_W) 'hdd_atasmart.c'; else $(CYGPATH_W) '$(srcdir)/hdd_atasmart.c'; fi`
+
+libpsensor_a-hdd_hddtemp.o: hdd_hddtemp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-hdd_hddtemp.o -MD -MP -MF $(DEPDIR)/libpsensor_a-hdd_hddtemp.Tpo -c -o libpsensor_a-hdd_hddtemp.o `test -f 'hdd_hddtemp.c' || echo '$(srcdir)/'`hdd_hddtemp.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-hdd_hddtemp.Tpo $(DEPDIR)/libpsensor_a-hdd_hddtemp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdd_hddtemp.c' object='libpsensor_a-hdd_hddtemp.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-hdd_hddtemp.o `test -f 'hdd_hddtemp.c' || echo '$(srcdir)/'`hdd_hddtemp.c
+
+libpsensor_a-hdd_hddtemp.obj: hdd_hddtemp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-hdd_hddtemp.obj -MD -MP -MF $(DEPDIR)/libpsensor_a-hdd_hddtemp.Tpo -c -o libpsensor_a-hdd_hddtemp.obj `if test -f 'hdd_hddtemp.c'; then $(CYGPATH_W) 'hdd_hddtemp.c'; else $(CYGPATH_W) '$(srcdir)/hdd_hddtemp.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-hdd_hddtemp.Tpo $(DEPDIR)/libpsensor_a-hdd_hddtemp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdd_hddtemp.c' object='libpsensor_a-hdd_hddtemp.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -c -o libpsensor_a-hdd_hddtemp.obj `if test -f 'hdd_hddtemp.c'; then $(CYGPATH_W) 'hdd_hddtemp.c'; else $(CYGPATH_W) '$(srcdir)/hdd_hddtemp.c'; fi`
+
libpsensor_a-nvidia.o: nvidia.c
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpsensor_a_CFLAGS) $(CFLAGS) -MT libpsensor_a-nvidia.o -MD -MP -MF $(DEPDIR)/libpsensor_a-nvidia.Tpo -c -o libpsensor_a-nvidia.o `test -f 'nvidia.c' || echo '$(srcdir)/'`nvidia.c
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libpsensor_a-nvidia.Tpo $(DEPDIR)/libpsensor_a-nvidia.Po
+++ /dev/null
-/*
- * Copyright (C) 2010-2011 jeanfi@gmail.com
- *
- * This program 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 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
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA
- */
-#include <locale.h>
-#include <libintl.h>
-#define _(str) gettext(str)
-
-/*
- Following code is based on GNOME sensors applet code hddtemp-plugin.c
- see http://sensors-applet.sourceforge.net/
-*/
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <unistd.h>
-
-#include "psensor.h"
-
-#define HDDTEMP_SERVER_IP_ADDRESS "127.0.0.1"
-#define HDDTEMP_PORT_NUMBER 7634
-#define HDDTEMP_OUTPUT_BUFFER_LENGTH 4048
-
-struct hdd_info {
- char *name;
- int temp;
-};
-
-static char *fetch()
-{
- int sockfd;
- ssize_t n = 1;
- int output_length = 0;
- char *pc;
- char *buffer;
- struct sockaddr_in address;
-
- sockfd = socket(AF_INET, SOCK_STREAM, 0);
- if (sockfd == -1) {
- fprintf(stderr, _("ERROR: hdd fetch, failed to open socket\n"));
- return NULL;
- }
-
- address.sin_family = AF_INET;
- address.sin_addr.s_addr = inet_addr(HDDTEMP_SERVER_IP_ADDRESS);
- address.sin_port = htons(HDDTEMP_PORT_NUMBER);
-
- buffer = NULL;
-
- if (connect(sockfd,
- (struct sockaddr *)&address,
- (socklen_t) sizeof(address)) == -1) {
- fprintf(stderr,
- _("ERROR: hdd fetch, failed to open connection\n"));
- } else {
- buffer = malloc(HDDTEMP_OUTPUT_BUFFER_LENGTH);
-
- pc = buffer;
- while ((n = read(sockfd,
- pc,
- HDDTEMP_OUTPUT_BUFFER_LENGTH -
- output_length)) > 0) {
-
- output_length += n;
- pc = &pc[n];
- }
-
- buffer[output_length] = '\0';
- }
-
- close(sockfd);
-
- return buffer;
-}
-
-static int str_index(char *str, char d)
-{
- char *c;
- int i;
-
- if (!str || *str == '\0')
- return -1;
-
- c = str;
-
- i = 0;
- while (*c) {
- if (*c == d)
- return i;
- i++;
- c++;
- }
-
- return -1;
-}
-
-static struct psensor *
-create_sensor(char *id, char *name, int values_max_length)
-{
- return psensor_create(id, name, SENSOR_TYPE_HDD_TEMP,
- values_max_length);
-}
-
-static char *next_hdd_info(char *string, struct hdd_info *info)
-{
- char *c;
- int idx_name_n, i, temp;
-
- if (!string || strlen(string) <= 5 /* at least 5 pipes */
- || string[0] != '|')
- return NULL;
-
- /* skip first pipe */
- c = string + 1;
-
- /* name */
- idx_name_n = str_index(c, '|');
-
- if (idx_name_n == -1)
- return NULL;
- c = c + idx_name_n + 1;
-
- /* skip label */
- i = str_index(c, '|');
- if (i == -1)
- return NULL;
- c = c + i + 1;
-
- /* temp */
- i = str_index(c, '|');
- if (i == -1)
- return NULL;
- temp = atoi(c);
- c = c + i + 1;
-
- /* skip unit */
- i = str_index(c, '|');
- if (i == -1)
- return NULL;
- c = c + i + 1;
-
- info->name = malloc(idx_name_n + 1);
- strncpy(info->name, string + 1, idx_name_n);
- info->name[idx_name_n] = '\0';
-
- info->temp = temp;
-
- return c;
-}
-
-struct psensor **hdd_psensor_list_add(struct psensor **sensors,
- int values_max_length)
-{
- char *hddtemp_output = fetch();
- char *c;
- struct hdd_info info;
- struct psensor **result;
-
- if (!hddtemp_output)
- return sensors;
-
- if (hddtemp_output[0] != '|') {
- fprintf(stderr,
- _("ERROR: wrong hdd string: %s"), hddtemp_output);
-
- free(hddtemp_output);
-
- return sensors;
- }
-
- c = hddtemp_output;
-
- result = sensors;
-
- while (c && (c = next_hdd_info(c, &info))) {
- struct psensor *sensor;
- struct psensor **tmp_sensors;
-
- char *id = malloc(strlen("hdd ") + strlen(info.name) + 1);
- strcpy(id, "hdd ");
- strcat(id, info.name);
-
- sensor = create_sensor(id, info.name, values_max_length);
-
- tmp_sensors = psensor_list_add(result, sensor);
-
- if (result != sensors)
- free(result);
-
- result = tmp_sensors;
- }
-
- free(hddtemp_output);
-
- return result;
-}
-
-static void update(struct psensor **sensors, struct hdd_info *info)
-{
- struct psensor **sensor_cur = sensors;
-
- while (*sensor_cur) {
- if ((*sensor_cur)->type == SENSOR_TYPE_HDD_TEMP
- && !strcmp((*sensor_cur)->id + 4, info->name))
- psensor_set_current_value(*sensor_cur,
- (float)info->temp);
-
- sensor_cur++;
- }
-}
-
-void hdd_psensor_list_update(struct psensor **sensors)
-{
- char *hddtemp_output = fetch();
-
- if (!hddtemp_output)
- return;
-
- if (hddtemp_output[0] == '|') {
-
- char *c = hddtemp_output;
- struct hdd_info info;
- info.name = NULL;
- info.temp = 0;
-
- while (c && (c = next_hdd_info(c, &info))) {
-
- update(sensors, &info);
-
- free(info.name);
- }
- } else {
- fprintf(stderr,
- _("ERROR: wrong hdd string: %s\n"), hddtemp_output);
- }
-
- free(hddtemp_output);
-}
--- /dev/null
+/*
+ * Copyright (C) 2010-2011 jeanfi@gmail.com
+ *
+ * This program 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 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
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+#include <locale.h>
+#include <libintl.h>
+#define _(str) gettext(str)
+
+#include <stdlib.h>
+#include <atasmart.h>
+
+#include "hdd.h"
+#include "log.h"
+
+struct psensor **hdd_psensor_list_add(struct psensor **sensors,
+ int values_max_length)
+{
+
+ log_debug("hdd_psensor_list_add");
+
+ return sensors;
+}
+
+void hdd_psensor_list_update(struct psensor **sensors)
+{
+}
--- /dev/null
+/*
+ * Copyright (C) 2010-2011 jeanfi@gmail.com
+ *
+ * This program 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 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
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+#include <locale.h>
+#include <libintl.h>
+#define _(str) gettext(str)
+
+/*
+ Following code is based on GNOME sensors applet code hddtemp-plugin.c
+ see http://sensors-applet.sourceforge.net/
+*/
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <unistd.h>
+
+#include "hdd.h"
+#include "psensor.h"
+
+#define HDDTEMP_SERVER_IP_ADDRESS "127.0.0.1"
+#define HDDTEMP_PORT_NUMBER 7634
+#define HDDTEMP_OUTPUT_BUFFER_LENGTH 4048
+
+struct hdd_info {
+ char *name;
+ int temp;
+};
+
+static char *fetch()
+{
+ int sockfd;
+ ssize_t n = 1;
+ int output_length = 0;
+ char *pc;
+ char *buffer;
+ struct sockaddr_in address;
+
+ sockfd = socket(AF_INET, SOCK_STREAM, 0);
+ if (sockfd == -1) {
+ fprintf(stderr, _("ERROR: hdd fetch, failed to open socket\n"));
+ return NULL;
+ }
+
+ address.sin_family = AF_INET;
+ address.sin_addr.s_addr = inet_addr(HDDTEMP_SERVER_IP_ADDRESS);
+ address.sin_port = htons(HDDTEMP_PORT_NUMBER);
+
+ buffer = NULL;
+
+ if (connect(sockfd,
+ (struct sockaddr *)&address,
+ (socklen_t) sizeof(address)) == -1) {
+ fprintf(stderr,
+ _("ERROR: hdd fetch, failed to open connection\n"));
+ } else {
+ buffer = malloc(HDDTEMP_OUTPUT_BUFFER_LENGTH);
+
+ pc = buffer;
+ while ((n = read(sockfd,
+ pc,
+ HDDTEMP_OUTPUT_BUFFER_LENGTH -
+ output_length)) > 0) {
+
+ output_length += n;
+ pc = &pc[n];
+ }
+
+ buffer[output_length] = '\0';
+ }
+
+ close(sockfd);
+
+ return buffer;
+}
+
+static int str_index(char *str, char d)
+{
+ char *c;
+ int i;
+
+ if (!str || *str == '\0')
+ return -1;
+
+ c = str;
+
+ i = 0;
+ while (*c) {
+ if (*c == d)
+ return i;
+ i++;
+ c++;
+ }
+
+ return -1;
+}
+
+static struct psensor *
+create_sensor(char *id, char *name, int values_max_length)
+{
+ return psensor_create(id, name, SENSOR_TYPE_HDD_TEMP,
+ values_max_length);
+}
+
+static char *next_hdd_info(char *string, struct hdd_info *info)
+{
+ char *c;
+ int idx_name_n, i, temp;
+
+ if (!string || strlen(string) <= 5 /* at least 5 pipes */
+ || string[0] != '|')
+ return NULL;
+
+ /* skip first pipe */
+ c = string + 1;
+
+ /* name */
+ idx_name_n = str_index(c, '|');
+
+ if (idx_name_n == -1)
+ return NULL;
+ c = c + idx_name_n + 1;
+
+ /* skip label */
+ i = str_index(c, '|');
+ if (i == -1)
+ return NULL;
+ c = c + i + 1;
+
+ /* temp */
+ i = str_index(c, '|');
+ if (i == -1)
+ return NULL;
+ temp = atoi(c);
+ c = c + i + 1;
+
+ /* skip unit */
+ i = str_index(c, '|');
+ if (i == -1)
+ return NULL;
+ c = c + i + 1;
+
+ info->name = malloc(idx_name_n + 1);
+ strncpy(info->name, string + 1, idx_name_n);
+ info->name[idx_name_n] = '\0';
+
+ info->temp = temp;
+
+ return c;
+}
+
+struct psensor **hdd_psensor_list_add(struct psensor **sensors,
+ int values_max_length)
+{
+ char *hddtemp_output = fetch();
+ char *c;
+ struct hdd_info info;
+ struct psensor **result;
+
+ if (!hddtemp_output)
+ return sensors;
+
+ if (hddtemp_output[0] != '|') {
+ fprintf(stderr,
+ _("ERROR: wrong hdd string: %s"), hddtemp_output);
+
+ free(hddtemp_output);
+
+ return sensors;
+ }
+
+ c = hddtemp_output;
+
+ result = sensors;
+
+ while (c && (c = next_hdd_info(c, &info))) {
+ struct psensor *sensor;
+ struct psensor **tmp_sensors;
+
+ char *id = malloc(strlen("hdd ") + strlen(info.name) + 1);
+ strcpy(id, "hdd ");
+ strcat(id, info.name);
+
+ sensor = create_sensor(id, info.name, values_max_length);
+
+ tmp_sensors = psensor_list_add(result, sensor);
+
+ if (result != sensors)
+ free(result);
+
+ result = tmp_sensors;
+ }
+
+ free(hddtemp_output);
+
+ return result;
+}
+
+static void update(struct psensor **sensors, struct hdd_info *info)
+{
+ struct psensor **sensor_cur = sensors;
+
+ while (*sensor_cur) {
+ if ((*sensor_cur)->type == SENSOR_TYPE_HDD_TEMP
+ && !strcmp((*sensor_cur)->id + 4, info->name))
+ psensor_set_current_value(*sensor_cur,
+ (float)info->temp);
+
+ sensor_cur++;
+ }
+}
+
+void hdd_psensor_list_update(struct psensor **sensors)
+{
+ char *hddtemp_output = fetch();
+
+ if (!hddtemp_output)
+ return;
+
+ if (hddtemp_output[0] == '|') {
+
+ char *c = hddtemp_output;
+ struct hdd_info info;
+ info.name = NULL;
+ info.temp = 0;
+
+ while (c && (c = next_hdd_info(c, &info))) {
+
+ update(sensors, &info);
+
+ free(info.name);
+ }
+ } else {
+ fprintf(stderr,
+ _("ERROR: wrong hdd string: %s\n"), hddtemp_output);
+ }
+
+ free(hddtemp_output);
+}
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AMTAR = @AMTAR@
APPINDICATOR_CFLAGS = @APPINDICATOR_CFLAGS@
APPINDICATOR_LIBS = @APPINDICATOR_LIBS@
+ATASMART_CFLAGS = @ATASMART_CFLAGS@
+ATASMART_LIBS = @ATASMART_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@