[Goodies-commits] r5567 - xfce4-sensors-plugin/trunk
Fabian Nowak
timystery at xfce.org
Sat Oct 11 13:11:48 CEST 2008
Author: timystery
Date: 2008-10-11 11:11:48 +0000 (Sat, 11 Oct 2008)
New Revision: 5567
Modified:
xfce4-sensors-plugin/trunk/NEWS
xfce4-sensors-plugin/trunk/TODO
xfce4-sensors-plugin/trunk/configure.in.in
Log:
- first steps towards hddtemp with some extensions in configure.in.in
Modified: xfce4-sensors-plugin/trunk/NEWS
===================================================================
--- xfce4-sensors-plugin/trunk/NEWS 2008-10-11 10:07:19 UTC (rev 5566)
+++ xfce4-sensors-plugin/trunk/NEWS 2008-10-11 11:11:48 UTC (rev 5567)
@@ -10,7 +10,10 @@
0.9.0: support for hddtemp
0.10.0: accelerators in options dialog, some cleanup in options dialog, colored
bars possible, bars are arranged more carfeully in panel
-0.11.0: Modular sensors interface suitable for extension of further
- system-specific routines and libraries. New configure stuff.
+0.11.0: Modular sensors interface suitable for extension of further
+ system-specific routines and libraries. New configure stuff.
Added po/LINGUAS.
+ Separate application replacing recommendation for xsensors.
+ Build libraries for backends that are used from both the plugin and the program
+ Plans: libnotify, netcat for hddtemp
Modified: xfce4-sensors-plugin/trunk/TODO
===================================================================
--- xfce4-sensors-plugin/trunk/TODO 2008-10-11 10:07:19 UTC (rev 5566)
+++ xfce4-sensors-plugin/trunk/TODO 2008-10-11 11:11:48 UTC (rev 5567)
@@ -1,9 +1,6 @@
TODO
======
-- Build separate application replacing recommendation for xsensors.
- * Build libraries for backends that are used from both the plugin and the program
- * Use a separate include folder for the building process
- Add tooltip onto sensors items list: "You can change values, names and colours by double-clicking the entry, editing the content, and pressing »Return« or selecting a different field."
Modified: xfce4-sensors-plugin/trunk/configure.in.in
===================================================================
--- xfce4-sensors-plugin/trunk/configure.in.in 2008-10-11 10:07:19 UTC (rev 5566)
+++ xfce4-sensors-plugin/trunk/configure.in.in 2008-10-11 11:11:48 UTC (rev 5567)
@@ -80,7 +80,7 @@
if test x"$enable_hddtemp" = x"auto"; then
AC_CHECK_PROG([hddtemp], [hddtemp], [yes], [], [$PATH:/sbin:/usr/sbin:/usr/local/sbin])
- if test "$hddtemp" = "yes"; then
+ if test x"$hddtemp" = x"yes"; then
enable_hddtemp=yes
else
enable_hddtemp=no
@@ -107,6 +107,59 @@
AM_CONDITIONAL([HAVE_HDDTEMP], [test x$enable_hddtemp = x"yes"])
+
+
+
+dnl Check for netcat for hddtemp to be used
+AC_ARG_ENABLE([netcat], [AC_HELP_STRING([--enable-netcat], [Use netcat to read your hddtemp temperature @<:@default=auto@:>@])],
+[],
+[
+ enable_netcat=auto
+])
+
+if test x"$enable_netcat" = x"auto"; then
+AC_CHECK_PROG([netcat], [netcat], [yes], [], [$PATH:/sbin:/usr/sbin:/usr/local/sbin])
+AC_CHECK_PROG([nc], [nc], [yes], [], [$PATH:/sbin:/usr/sbin:/usr/local/sbin])
+if test x"$netcat" = x"yes" -o x"$nc" = x"yes"; then
+ enable_netcat=yes
+ else
+ enable_netcat=no
+ fi
+fi
+
+if test x"$enable_netcat" = x"yes"; then
+ AC_DEFINE([HAVE_NETCAT], [1], [Define to 1 if hddtemp is desired])
+
+ AC_ARG_WITH([pathnetcat], [AC_HELP_STRING([--with-pathnetcat], [Specify path to netcat @<:@default=auto@:>@])],
+ [
+ NETCAT_PATH=$withval
+ ], [
+ AC_MSG_CHECKING([for netcat path])
+ NETCAT_PATH=([`whereis -b netcat | sed 's/.*\ \(\/[a-zA-Z0-9\-\/.]*bin[A-Za-z0-9\-\/.]*netcat\).*/\1/'`])
+ if test x"$NETCAT_PATH" = x"netcat:"; then
+ NETCAT_PATH=([`whereis -b nc | sed 's/.*\ \(\/[a-zA-Z0-9\-\/.]*bin[A-Za-z0-9\-\/.]*netcat\).*/\1/'`])
+ fi;
+
+ AC_MSG_RESULT([$NETCAT_PATH])
+ ])
+
+ AC_DEFINE_UNQUOTED([NETCAT_PATH], ["$NETCAT_PATH"], [Complete path to netcat])
+ AC_SUBST([NETCAT_PATH])
+
+ AC_DEFINE_UNQUOTED([NETCAT_HOST], ["localhost"], [Host for netcat])
+ AC_SUBST([NETCAT_HOST])
+
+ AC_DEFINE_UNQUOTED([HDDTEMP_PORT], ["7634"], [Port for hddtemp with netcat])
+ AC_SUBST([HDDTEMP_PORT])
+fi
+
+AM_CONDITIONAL([HAVE__NETCAT], [test x$enable_netcat = x"yes"])
+
+
+
+
+
+
dnl Check for interface for /proc/acpi to be used
AC_ARG_ENABLE([procacpi], [AC_HELP_STRING([--enable-procacpi], [Use /proc/acpi to read your CPU temperature @<:@default=yes@:>@])],
[],
@@ -240,6 +293,11 @@
echo "* hddtemp: $HDDTEMP (Make sure it is user-executable with UID bit set "
echo " and user member of the respective group)"
fi
+
+if test x"$enable_netcat" = x"yes"; then
+echo " netcat: $NETCAT_PATH on $HDDTEMP_HOST:$HDDTEMP_PORT"
+fi
+
if test x"$enable_libsensors" = x"yes"; then
echo "* libsensors"
fi
More information about the Goodies-commits
mailing list