Drop automake build support.

Add basic cmake build instructions.
Delete LEEME, LIESMICH and LISEZMOI files.
Delete empty file NEWS.
Rework of the FAQ, INSTALL and README files.
Add detection for the lm-sensors and math libc libraries.
Move the ksensors.desktop file into XDG_APPS_INSTALL_DIR directory,
see TDE/tde#26 and bug 2408.
Add French description and comments in the ksensors.desktop file.
Some cosmetics here and there.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/4/head
gregory guy 5 years ago
parent 862f549cc8
commit e383a9d6ae
No known key found for this signature in database
GPG Key ID: 3BCCA0F7AB4536F4

3
.gitmodules vendored

@ -1,6 +1,3 @@
[submodule "admin"]
path = admin
url = https://scm.trinitydesktop.org/scm/git/tde-common-admin
[submodule "cmake"] [submodule "cmake"]
path = cmake path = cmake
url = https://scm.trinitydesktop.org/scm/git/tde-common-cmake url = https://scm.trinitydesktop.org/scm/git/tde-common-cmake

@ -24,3 +24,25 @@ tde_setup_largefiles( )
if( WITH_GCC_VISIBILITY ) if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( ) tde_setup_gcc_visibility( )
endif( ) endif( )
##### check for lm-sensors
find_path( SENSORS_INCLUDE_DIRS "sensors/sensors.h" )
if( SENSORS_INCLUDE_DIRS )
set( SENSORS_INCLUDE_DIRS "${SENSORS_INCLUDE_DIRS}" )
find_library( SENSORS_LIBRARIES sensors )
if( SENSORS_LIBRARIES )
set( SENSORS_LIBRARIES "${SENSORS_LIBRARIES}" )
endif()
else()
tde_message_fatal( "lm-sensors library is required but was not found on your system" )
endif()
##### check for the math libc
find_library( MATH_LIBC m )
if( MATH_LIBC )
set( MATH_LIBC "${MATH_LIBC}" )
endif()

11
FAQ

@ -9,9 +9,10 @@ KSensors Frequent Asked Questions
Enable TDE System Tray applet before execute ksensors. Enable TDE System Tray applet before execute ksensors.
Menu TDE -> Panel Configuration -> Add -> Applet -> System Tray Menu TDE -> Panel Configuration -> Add -> Applet -> System Tray
2. I'm compiling KSensors in TDE, and configure does not find TQt libraries. 2. Which lm-sensors modules do I need for my motherboard?
Run the script: sensors-detect
Add TQt dir path to ./configure, for example: Please read the warning in the man page before (man sensors-detect).
./configure --prefix=/opt/trinity --with-qt-dir=/opt/trinity/lib/tqt
3. How to set SUID bit for hddtemp file?
chmod +s hddtemp
WARNING: Setting suid bit can be a security flaw.

@ -1,167 +1,16 @@
Basic Installation Basic Installation
================== ==================
These are generic installation instructions. Ksensors relies on cmake to build.
The `configure' shell script attempts to guess correct values for Here are suggested default options:
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package. -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
It may also create one or more `.h' files containing system-dependent -DCONFIG_INSTALL_DIR="/etc/trinity" \
definitions. Finally, it creates a shell script `config.status' that -DSYSCONF_INSTALL_DIR="/etc/trinity" \
you can run in the future to recreate the current configuration, a file -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
`config.cache' that saves the results of its tests to speed up -DCMAKE_BUILD_TYPE=RelWithDebInfo \
reconfiguring, and a file `config.log' containing compiler output -DCMAKE_VERBOSE_MAKEFILE="ON" \
(useful mainly for debugging `configure'). -DCMAKE_SKIP_RPATH="OFF" \
-DBUILD_ALL="ON" \
If you need to do unusual things to compile the package, please try -DWITH_ALL_OPTIONS="ON"
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes a while. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Type `make install' to install the programs and any data files and
documentation.
4. You can remove the program binaries and object files from the
source code directory by typing `make clean'.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made.
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

64
LEEME

@ -1,64 +0,0 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
Informacion General
---------------------
KSensors es un LMSensors Frontend para KDE.
Debes instalar los drivers LMSensors para poder
usarlo (http://www.netroedge.com/~lm78/):
En Mandrake 8.1:
urpmi lm_utils lm_utils-devel
Luego ejecuta el script:
sensors-detect
Que indicara los modulos necesarios que hay que instalar para
poder leer los sensores de temperatura, etc de la placa base.
Nuevo Soporte para monitorizar la temperatura de discos duros
-------------------------------------------------------------
KSensors puede monitorizar la temperatura de los discos
duros, gracias al programa HDDTemp de Emmanuel Varagnat.
Puedes bajarte HDDTemp de: http://coredump.free.fr
HDDTemp debe estar en PATH para que KSensors lo pueda utilizar.
Para que hddtemp funcione correctamente es necesario
activar el bit SUID, para ello teclear:
chmod +s hddtemp
ATENCION: Activar el bit suid de un programa puede suponer
un problema de seguridad.
Compilar e instalar KSensors en KDE 3.x
---------------------------------------
tar -zxvf ksensors-0.7.3.tar.gz
cd ksensors-0.7.3
./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3
make
make install
* Reemplaza /opt/kde3 y /usr/lib/qt3 con los directorios de tu KDE3 y qt3
Como desinstalar
---------------
cd ksensors-0.7.3
make uninstall
Informacion de contacto
-----------------------
No dudes en contactar conmigo si tienes problemas para hacer
funcionar el programa o para notificar fallos, questiones,
peticiones, etc.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------

@ -1,56 +0,0 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
Allgemeine Informationen
------------------------
Dies ist ein lmsensors Frontend, Sie müssen zuerst die lmsensors Treiber
installieren, um es zu benutzen (http://www.netroedge.com/~lm78/):
In Mandrake versuchen Sie:
urpmi lm_utils lm_utils-devel
Dann starten Sie das Script:
sensors-detect
es listet die Module auf, die Sie für Ihr Motherboard installieren müssen.
Diese Software wurde nur auf meinem Motherboard (PII866 Asus CUBX-L)
getestet. Ich weiß nicht, ob es mit anderen Motherboards problemlos
funktioniert. Versuchen Sie es.
KSensors kompilieren und installieren
-------------------------------------
Dieses Programm wird standardmäßig in /usr/local/kde installiert.
In den neuesten Distributionen (Debian woody, Mandrake, usw.)
liegt das KDE Verzeichnis in /usr. In diesem Fall müssen Sie das
Verzeichnis mit dem --prefix Argument konfigurieren.
tar -zxvf ksensors-0.7.3.tar.gz
cd ksensors-0.7.3
./configure --prefix=/usr
make
make install
Deinstallieren
--------------
cd ksensors-0.7.3
make uninstall
Kontakt Information
-------------------
Kontakten Sie mich, wenn Sie Probleme haben, diese Software
zu benutzen, oder um Fehler zu melden, Fragen zu stellen,
Rückmeldungen zu geben usw.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------

@ -1,69 +0,0 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
Information Générales
---------------------
Ce programme est un front-end pour lmsensors, vous devez installer les drivers
lmsensors avant de l'utiliser (http://www.netroedge.com/~lm78/):
Avec une Mandrake 8.1, essayez:
urpmi lm_utils lm_utils-devel
Ensuite, executez le script:
sensors-detect
il vous montrera les modules de lm-sensors que vous devez installer pour
votre carte-mère.
Ce programme a été testé uniquement sur ma carte-mère (PII866 Asus CUBX-L).
Je ne sais pas s'il marche correctement avec d'autres carte-mères, essayez.
NOUVEAU : Surveillance de la température des disques durs
---------------------------------------------------------
KSensors peut maintenant afficher les températures de vos disques durs
(uniquement les disques durs récents).
Vous devez pour cela installer le programme HDDtemp écrit par Emmanuel
Varagnat. HDDTemp doit se trouver dans la variable PATH pour que KSensors
puisse l'utiliser.
Vous pouvez télécharger HDDTemp à l'adresse http://coredump.free.fr.
Le bit SUID bit doit être activé, tapez:
chmod +s hddtemp
ATTENTION: Activer un bit SUID peut créer un trou de sécurité.
Compilation et installation de KSensors avec KDE 3.x
----------------------------------------------------
tar -zxvf ksensors-0.7.3.tar.gz
cd ksensors-0.7.3
./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3
make
make install
* Remplacez /opt/kde3 et /usr/lib/qt3 par vos répertoires KDE3 et QT3.
Comment désinstaller
--------------------
cd ksensors-0.7.3
make uninstall
Contact
-------
Contactez moi (en anglais ou en espagnol) si vous avez des problèmes pour
executer ce programme ou pour m'indiquer des bugs, pour me poser des
questions, faire des demandes, etc.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------

@ -1,22 +0,0 @@
SUBDIRS = $(TOPSUBDIRS)
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
$(top_srcdir)/subdirs:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
package-messages:
$(MAKE) -f admin/Makefile.common package-messages
$(MAKE) -C po merge
EXTRA_DIST = admin COPYING configure.in.in
dist-hook:
cd $(top_distdir) && perl admin/am_edit -padmin
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs

@ -1 +0,0 @@

@ -1,65 +1,24 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
General Information KSensors - An lm-sensors frontend for TDE.
---------------------
This is a lmsensors frontend, you must install lmsensors
drivers before using it (http://www.netroedge.com/~lm78/):
In Mandrake 8.1 try: Ksensors is a lm-sensors for monitoring a motherboard.
urpmi lm_utils lm_utils-devel It allows you to access information from temperature and fan speed
sensors.
Then run the script: Ksensors relies on lm-sensors to work, (https://github.com/lm-sensors/lm-sensors).
sensors-detect Ksensors is able to show the temperature of the harddisks with the help
it will show the lm-sensors modules you must install for your motherboard. of HDDTemp (https://savannah.nongnu.org/projects/hddtemp).
This software is only tested in my motherboard (PII866 Asus CUBX-L).
I don't know if works well with others motherboards, try it.
New Harddisk temperature monitoring support CONTRIBUTING
------------------------------------------ ==============
Now KSensors can show harddisk temperatures (only in modern harddisks).
You must install HDDtemp program from Emmanuel Varagnat.
HDDTemp must be in PATH to allow KSensors use it.
You can download HDDTemp from http://coredump.free.fr.
SUID bit of hddtemp file must by set, type:
chmod +s hddtemp
WARNING: Setting suid bit can be a security flaw.
Compile and install KSensors in KDE 3.x
---------------------------------------
tar -zxvf ksensors-0.7.3.tar.gz
cd ksensors-0.7.3
./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3
make
make install
* Replace /opt/kde3 and /usr/lib/qt3 with your KDE3 and QT3 directories.
Howto Uninstall
---------------
cd ksensors-0.7.3
make uninstall
Contact info
-------------
Contact me if you have problems to run this software or to
notify bugs, questions, requests, etc.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------
If you wish to contribute to Ksensors (TDE), you might do so:
- TDE Gitea Workspace (TGW) collaboration tool.
https://mirror.git.trinitydesktop.org/gitea
- TDE Weblate Translation Workspace (TWTW) collaboration tool.
https://mirror.git.trinitydesktop.org/weblate

File diff suppressed because it is too large Load Diff

11725
aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

@ -1 +0,0 @@
Subproject commit 68f23556e638353e46b444d3a4863a64936bd36a

@ -1,229 +0,0 @@
/* config.h.in. Generated from configure.in by autoheader. */
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* Define if you have the CoreAudio API */
#undef HAVE_COREAUDIO
/* Define to 1 if you have the <crt_externs.h> header file. */
#undef HAVE_CRT_EXTERNS_H
/* Defines if your system has the crypt function */
#undef HAVE_CRYPT
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if you have libjpeg */
#undef HAVE_LIBJPEG
/* Define if you have libpng */
#undef HAVE_LIBPNG
/* Define if you have a working libpthread (will enable threaded code) */
#undef HAVE_LIBPTHREAD
/* Define if you have libz */
#undef HAVE_LIBZ
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if your system needs _NSGetEnviron to set up the environment */
#undef HAVE_NSGETENVIRON
/* Define to 1 if you have the <pthread/linuxthreads/pthread.h> header file.
*/
#undef HAVE_PTHREAD_LINUXTHREADS_PTHREAD_H
/* Define if you have the res_init function */
#undef HAVE_RES_INIT
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have strlcat */
#undef HAVE_STRLCAT
/* Define if you have the strlcat prototype */
#undef HAVE_STRLCAT_PROTO
/* Define if you have strlcpy */
#undef HAVE_STRLCPY
/* Define if you have the strlcpy prototype */
#undef HAVE_STRLCPY_PROTO
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `vsnprintf' function. */
#undef HAVE_VSNPRINTF
/* Suffix for lib directories */
#undef KDELIBSUFF
/* Define a safe value for MAXPATHLEN */
#undef KDEMAXPATHLEN
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* The size of `char *', as computed by sizeof. */
#undef SIZEOF_CHAR_P
/* The size of `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of `long', as computed by sizeof. */
#undef SIZEOF_LONG
/* The size of `size_t', as computed by sizeof. */
#undef SIZEOF_SIZE_T
/* The size of `unsigned long', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_LONG
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif
/*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I'm too lazy to write a configure test as long as only
* unixware is related
*/
#ifdef _UNIXWARE
#define HAVE_BOOLEAN
#endif
/*
* AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
* that defines bzero.
*/
#if defined(_AIX)
#include <strings.h>
#endif
#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
# include <sys/time.h>
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#endif
#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern "C"
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#endif
#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern "C"
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#endif
/*
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/
#if !defined(HAVE_VSNPRINTF) || defined(hpux)
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
#else
#include <varargs.h>
#endif
#ifdef __cplusplus
extern "C"
#endif
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#ifdef __cplusplus
extern "C"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif
#if defined(__SVR4) && !defined(__svr4__)
#define __svr4__ 1
#endif
/* Compatibility define */
#undef ksize_t
/* Define the real type of socklen_t */
#undef socklen_t

@ -1,2 +0,0 @@
./admin/configure.in.min
configure.in.in

@ -1,84 +0,0 @@
dnl This file is part of the KDE libraries/packages
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
dnl This file is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Library General Public License for more details.
dnl You should have received a copy of the GNU Library General Public License
dnl along with this library; see the file COPYING.LIB. If not, write to
dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
dnl Boston, MA 02111-1307, USA.
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acinclude.m4) dnl a source file from your sub dir
dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH
dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM
dnl Perform program name transformation
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(ksensors, 0.7.3) dnl searches for some needed programs
KDE_SET_PREFIX
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS
KDE_USE_TQT(3.0.0)
AC_PATH_KDE
#MIN_CONFIG(3.0.0)
dnl PACKAGE set before
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN
KDE_CREATE_SUBDIRSLIST
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ doc/Makefile ])
AC_CONFIG_FILES([ doc/en/Makefile ])
AC_CONFIG_FILES([ po/Makefile ])
AC_CONFIG_FILES([ src/Makefile ])
AC_CONFIG_FILES([ src/pics/Makefile ])
AC_CONFIG_FILES([ src/sounds/Makefile ])
AC_OUTPUT
if test "$all_tests" = "bad"; then
if test ! "$cache_file" = "/dev/null"; then
echo ""
echo "Please remove the file $cache_file after changing your setup"
echo "so that configure will find the changes next time."
echo ""
fi
else
echo ""
echo "Good - your configure finished. Start make now"
echo ""
fi

@ -1,6 +0,0 @@
#MIN_CONFIG(3.0.0)
AM_INIT_AUTOMAKE(ksensors, 0.7.3)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN

@ -1,6 +0,0 @@
# the SUBDIRS is filled automatically by am_edit. If files are
# in this directory they are installed into the english dir
KDE_LANG = en
KDE_DOCS = ksensors
SUBDIRS = $(AUTODIRS)

@ -1,2 +0,0 @@
KDE_DOCS = ksensors
KDE_LANG = en

@ -1 +0,0 @@
POFILES = AUTO

@ -1,9 +1,13 @@
add_subdirectory( pics )
add_subdirectory( sounds )
include_directories( include_directories(
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
${SENSORS_INCLUDE_DIRS}
) )
link_directories( link_directories(
@ -32,8 +36,8 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
LINK LINK
tdeui-shared tdeui-shared
tdecore-shared tdecore-shared
sensors ${SENSORS_LIBRARIES}
m ${MATH_LIBC}
DESTINATION ${BIN_INSTALL_DIR} DESTINATION ${BIN_INSTALL_DIR}
) )
@ -53,11 +57,5 @@ install(
install( install(
FILES ${PROJECT_NAME}.desktop FILES ${PROJECT_NAME}.desktop
DESTINATION ${APPS_INSTALL_DIR}/System DESTINATION ${XDG_APPS_INSTALL_DIR}
) )
##### other directories
add_subdirectory( pics )
add_subdirectory( sounds )

@ -1,61 +0,0 @@
# set the include path for X, qt and TDE
INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = ksensors.h aboutcfgdesign.h \
cpupanel.h cputimepanel.h generalcfgdesign.h generalcfg.h \
hdsensorslist.h i8ksensorslist.h infopanels.h ksensorscfg.h \
ksensors.h ksensorssplash.h lmsensordockpanel.h lmsensor.h \
lmsensorpanel.h lmsensorsalarms.h lmsensorscfgdesign.h \
lmsensorscfg.h lmsensorschip.h lmsensorsdock.h lmsensors.h \
lmsensorswidget.h palettecfgdesign.h palettecfg.h panel.h \
panelsgroup.h processexec.h procinfo.h qbarmeter.h \
qdialarc.h qlcddraw.h qlcdstring.h rampanel.h sensor.h \
sensorslist.h systemcfgdesign.h systemcfg.h uptimepanel.h
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/ksensors.pot
#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = ksensors
# the application source, library search path, and link libraries
ksensors_SOURCES = main.cpp ksensors.cpp aboutcfgdesign.ui \
cpupanel.cpp cputimepanel.cpp generalcfg.cpp \
generalcfgdesign.ui hdsensorslist.cpp i8ksensorslist.cpp \
infopanels.cpp ksensorscfg.cpp \
ksensorssplash.cpp lmsensor.cpp lmsensordockpanel.cpp \
lmsensorpanel.cpp lmsensorsalarms.cpp lmsensorscfg.cpp \
lmsensorscfgdesign.ui lmsensorschip.cpp lmsensors.cpp \
lmsensorsdock.cpp lmsensorswidget.cpp palettecfg.cpp \
palettecfgdesign.ui panel.cpp panelsgroup.cpp \
processexec.cpp procinfo.cpp qbarmeter.cpp \
qdialarc.cpp qlcdraw.cpp qlcdstring.cpp \
rampanel.cpp sensor.cpp sensorslist.cpp \
systemcfg.cpp systemcfgdesign.ui uptimepanel.cpp
ksensors_LDFLAGS = $(TDE_RPATH) $(all_libraries)
ksensors_LDADD = $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_TQT) -lsensors -lm
# this is where the desktop file will go
shelldesktopdir = $(kde_appsdir)/System
shelldesktop_DATA = ksensors.desktop
# and for autostart
autostartdir = $(prefix)/share/autostart
autostart_DATA = ksensors.desktop
# this is where the shell's XML-GUI resource file goes
shellrcdir = $(kde_datadir)/ksensors
shellrc_DATA = ksensorsui.rc
SUBDIRS = pics sounds

@ -7,9 +7,11 @@ Type=Application
Comment=Monitoring of temperatures, voltages and fan speeds Comment=Monitoring of temperatures, voltages and fan speeds
Comment[de]=Überwachung von Temperaturen, Spannungen und Lüfterdrehzahlen Comment[de]=Überwachung von Temperaturen, Spannungen und Lüfterdrehzahlen
Comment[fr]=Surveillance de la temperature, du voltage et de la vitesse des ventilateurs
GenericName=Lm-Sensors Frontend GenericName=Lm-Sensors Frontend
GenericName[de]=Grafische Oberfläche für LM-Sensors GenericName[de]=Grafische Oberfläche für LM-Sensors
GenericName[fr]=Interface graphique pour lm-sensors
X-DocPath=ksensors/index.html X-DocPath=ksensors/index.html
X-TDE-autostart-after=panel X-TDE-autostart-after=panel

@ -1,62 +0,0 @@
####### tdevelop will overwrite this part!!! (begin)##########
INCLUDES = $(all_includes)
EXTRA_DIST = thermometer.png thermometer18x18.png motherboard.png ksensorssplash.png ksensorsdocked.png ksensorsbackground.png harddisk.png earth.png cooler.png cooler18x18.png computers.png battery.png battery18x18.png lo32-app-ksensors.png lo16-app-ksensors.png hi32-app-ksensors.png hi16-app-ksensors.png
install-data-local:
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/thermometer.png $(kde_datadir)/ksensors/pics/thermometer.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/thermometer18x18.png $(kde_datadir)/ksensors/pics/thermometer18x18.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/motherboard.png $(kde_datadir)/ksensors/pics/motherboard.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/ksensorssplash.png $(kde_datadir)/ksensors/pics/ksensorssplash.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/ksensorsdocked.png $(kde_datadir)/ksensors/pics/ksensorsdocked.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/ksensorsbackground.png $(kde_datadir)/ksensors/pics/ksensorsbackground.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/harddisk.png $(kde_datadir)/ksensors/pics/harddisk.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/earth.png $(kde_datadir)/ksensors/pics/earth.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/cooler.png $(kde_datadir)/ksensors/pics/cooler.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/cooler18x18.png $(kde_datadir)/ksensors/pics/cooler18x18.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/computers.png $(kde_datadir)/ksensors/pics/computers.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/battery.png $(kde_datadir)/ksensors/pics/battery.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/battery18x18.png $(kde_datadir)/ksensors/pics/battery18x18.png
$(mkinstalldirs) $(kde_icondir)/locolor/32x32/apps/
$(INSTALL_DATA) $(srcdir)/lo32-app-ksensors.png $(kde_icondir)/locolor/32x32/apps/ksensors.png
$(mkinstalldirs) $(kde_icondir)/locolor/16x16/apps/
$(INSTALL_DATA) $(srcdir)/lo16-app-ksensors.png $(kde_icondir)/locolor/16x16/apps/ksensors.png
$(mkinstalldirs) $(kde_icondir)/hicolor/32x32/apps/
$(INSTALL_DATA) $(srcdir)/hi32-app-ksensors.png $(kde_icondir)/hicolor/32x32/apps/ksensors.png
$(mkinstalldirs) $(kde_icondir)/hicolor/16x16/apps/
$(INSTALL_DATA) $(srcdir)/hi16-app-ksensors.png $(kde_icondir)/hicolor/16x16/apps/ksensors.png
uninstall-local:
-rm -f $(kde_datadir)/ksensors/pics/thermometer.png
-rm -f $(kde_datadir)/ksensors/pics/thermometer18x18.png
-rm -f $(kde_datadir)/ksensors/pics/motherboard.png
-rm -f $(kde_datadir)/ksensors/pics/ksensorssplash.png
-rm -f $(kde_datadir)/ksensors/pics/ksensorsdocked.png
-rm -f $(kde_datadir)/ksensors/pics/ksensorsbackground.png
-rm -f $(kde_datadir)/ksensors/pics/harddisk.png
-rm -f $(kde_datadir)/ksensors/pics/earth.png
-rm -f $(kde_datadir)/ksensors/pics/cooler.png
-rm -f $(kde_datadir)/ksensors/pics/cooler18x18.png
-rm -f $(kde_datadir)/ksensors/pics/computers.png
-rm -f $(kde_datadir)/ksensors/pics/battery.png
-rm -f $(kde_datadir)/ksensors/pics/battery18x18.png
-rm -f $(kde_icondir)/locolor/32x32/apps/ksensors.png
-rm -f $(kde_icondir)/locolor/16x16/apps/ksensors.png
-rm -f $(kde_icondir)/hicolor/32x32/apps/ksensors.png
-rm -f $(kde_icondir)/hicolor/16x16/apps/ksensors.png
####### tdevelop will overwrite this part!!! (end)############

@ -1,13 +0,0 @@
####### tdevelop will overwrite this part!!! (begin)##########
INCLUDES = $(all_includes)
EXTRA_DIST = ksensors_alert.wav
install-data-local:
$(mkinstalldirs) $(kde_sounddir)
$(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(kde_sounddir)/ksensors_alert.wav
uninstall-local:
rm -f $(kde_sounddir)/ksensors_alert.wav
####### tdevelop will overwrite this part!!! (end)############

@ -1,3 +0,0 @@
doc
po
src
Loading…
Cancel
Save