Drop automake build support.

Add basic cmake build instructions in INSTALL.
version.h (return knetload version) has moved to the "knetload"
folder.
Rework the README and INSTALL files.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/3/head
gregory guy 5 years ago
parent db515d1574
commit 67a885d834
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 = http://system@scm.trinitydesktop.org/scm/git/tde-common-admin
[submodule "cmake"] [submodule "cmake"]
path = cmake path = cmake
url = http://system@scm.trinitydesktop.org/scm/git/tde-common-cmake url = http://system@scm.trinitydesktop.org/scm/git/tde-common-cmake

@ -1,6 +1,25 @@
Basic Installation Basic Installation
================== ==================
Knetload relies on cmake to build.
Here are suggested default options:
-DCMAKE_INSTALL_PREFIX="/opt/trinity" \
-DCONFIG_INSTALL_DIR="/etc/trinity" \
-DSYSCONF_INSTALL_DIR="/etc" \
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_VERBOSE_MAKEFILE="ON" \
-DCMAKE_SKIP_RPATH="OFF" \
-DBUILD_ALL="ON" \
-DWITH_ALL_OPTIONS="ON
##### the following instructions, kept as a reference, are basically obsolete - October 19 2019 #####
These are generic installation instructions. These are generic installation instructions.
The `configure' shell script attempts to guess correct values for The `configure' shell script attempts to guess correct values for

@ -1,21 +0,0 @@
AUTOMAKE_OPTIONS = foreign 1.5
include admin/deps.am
include admin/Doxyfile.am
############################################################################
# #
# KNetLoad is copyright (c) 1999-2000, Markus Gustavsson #
# (c) 2002, Ben Burton #
# #
# 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. #
# #
############################################################################
EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README TODO
SUBDIRS=$(TOPSUBDIRS)

@ -1,20 +0,0 @@
AUTOMAKE_OPTIONS = foreign 1.5
include admin/deps.am
include admin/Doxyfile.am
############################################################################
# #
# KNetLoad is copyright (c) 1999-2000, Markus Gustavsson #
# (c) 2002, Ben Burton #
# #
# 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. #
# #
############################################################################
EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README TODO

@ -1,14 +0,0 @@
all:
@echo "This Makefile is only for the CVS repository"
@echo "This will be deleted before making the distribution"
@echo ""
@if test ! -d admin; then \
echo "Please recheckout this module!" ;\
echo "for cvs: use checkout once and after that update again" ;\
echo "for cvsup: checkout kde-common from cvsup and" ;\
echo " link kde-common/admin to ./admin" ;\
exit 1 ;\
fi
$(MAKE) -f admin/Makefile.common cvs
.SILENT:

@ -1,28 +1,34 @@
KNETLoad KNETLoad - a network throughput meter for Kicker (TDE panel).
This file should only be read as a fast description. The online
KNetLoad handbook contains more detailed information.
This is a network throughput meter for Kicker (the TDE panel). It will
show the traffic on a network device with two diagrams, one for outgoing and
one for incoming data. KNetLoad can read almost any device that is listed
in the /proc/net/dev file, which includes eth0, ppp0, ippp0 and many others;
even non predefined devices can be typed into the program. The colors, style
and speed of the diagrams can be configured.
To bring up the settings menu, simply right click on the diagram. Before Knetload is a network throughput meter for Kicker for the TDE panel.
KNetLoad will work you must define what device it should use, and set the It will show the traffic on a network device with two diagrams, one for
correct scaling value which depends on the speed of your network device. outgoing and the other for incoming data. It can read almost any device
that is listed in the /proc/net/dev file which includes eth0, ppp0,
ippp0 and many others; even non predefined devices can be typed into the
program. The colors, the style and the speed the diagrams can be
configured.
To bring up the settings menu, simply right click on the diagram. Before
KNetLoad can work you have to define what device it should use and you
should also set the correct scaling value which depends on the speed of
your network device.
Left click on the diagram to bring up a small information box which will Left click on the diagram to bring up a small information box which will
show the exact input and output speeds in text form, and the total amount show the exact input and output speeds in text form and the total amount
of outgoing and incoming data. of outgoing and incoming data.
Install:
./configure
make
make install
Markus Gustavsson <mighty@fragzone.se> CONTRIBUTING
==============
If you wish to contribute to Knetload (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

12769
aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

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

@ -1,237 +0,0 @@
/* config.h.in. Generated from configure.in by autoheader. */
/* 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 if you have res_init */
#undef HAVE_RES_INIT
/* Define if you have the res_init prototype */
#undef HAVE_RES_INIT_PROTO
/* Define if you have a STL implementation by SGI */
#undef HAVE_SGI_STL
/* 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/bitypes.h> header file. */
#undef HAVE_SYS_BITYPES_H
/* 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
/* 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 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 `short', as computed by sizeof. */
#undef SIZEOF_SHORT
/* 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
/* If we use arts volume */
#undef USE_ARTS
/* Version number of package */
#undef VERSION
/* Defined if compiling without arts */
#undef WITHOUT_ARTS
/*
* 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_RES_INIT_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
int res_init(void);
#ifdef __cplusplus
}
#endif
#endif
#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#endif
#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#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
/* type to use in place of socklen_t if not defined */
#undef kde_socklen_t
/* type to use in place of socklen_t if not defined (deprecated, use
kde_socklen_t) */
#undef ksize_t

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

@ -1,141 +0,0 @@
dnl =======================================================
dnl FILE: ./admin/configure.in.min
dnl =======================================================
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., 51 Franklin Street, Fifth Floor,
dnl Boston, MA 02110-1301, 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(knetload-2.3, "3.2.92") 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.2)
AC_PATH_KDE
dnl =======================================================
dnl FILE: configure.in.in
dnl =======================================================
#MIN_CONFIG(3.2)
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
if test "$build_arts" = "yes"; then
AC_DEFINE(USE_ARTS, 1, [If we use arts volume])
LIB_ARTS="-lartskde"
AC_SUBST(LIB_ARTS)
fi
KDE_INIT_DOXYGEN([The API Reference], [Version $VERSION])
AM_MAINTAINER_MODE
KDE_CREATE_SUBDIRSLIST
AM_CONDITIONAL(icons_SUBDIR_included, test "x$icons_SUBDIR_included" = xyes)
AM_CONDITIONAL(knetload_SUBDIR_included, test "x$knetload_SUBDIR_included" = xyes)
AM_CONDITIONAL(po_SUBDIR_included, test "x$po_SUBDIR_included" = xyes)
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ icons/Makefile ])
AC_CONFIG_FILES([ knetload/Makefile ])
AC_CONFIG_FILES([ po/Makefile ])
AC_CONFIG_FILES([ po/ar/Makefile ])
AC_CONFIG_FILES([ po/bs/Makefile ])
AC_CONFIG_FILES([ po/ca/Makefile ])
AC_CONFIG_FILES([ po/cs/Makefile ])
AC_CONFIG_FILES([ po/da/Makefile ])
AC_CONFIG_FILES([ po/de/Makefile ])
AC_CONFIG_FILES([ po/en_GB/Makefile ])
AC_CONFIG_FILES([ po/es/Makefile ])
AC_CONFIG_FILES([ po/et/Makefile ])
AC_CONFIG_FILES([ po/fr/Makefile ])
AC_CONFIG_FILES([ po/is/Makefile ])
AC_CONFIG_FILES([ po/it/Makefile ])
AC_CONFIG_FILES([ po/ja/Makefile ])
AC_CONFIG_FILES([ po/nb/Makefile ])
AC_CONFIG_FILES([ po/nl/Makefile ])
AC_CONFIG_FILES([ po/pt/Makefile ])
AC_CONFIG_FILES([ po/pt_BR/Makefile ])
AC_CONFIG_FILES([ po/ro/Makefile ])
AC_CONFIG_FILES([ po/sr/Makefile ])
AC_CONFIG_FILES([ po/sv/Makefile ])
AC_CONFIG_FILES([ po/ta/Makefile ])
AC_CONFIG_FILES([ po/tr/Makefile ])
AC_CONFIG_FILES([ po/xx/Makefile ])
AC_CONFIG_FILES([ po/zh_CN/Makefile ])
AC_CONFIG_FILES([ po/zh_TW/Makefile ])
AC_OUTPUT
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
# And if so, warn when they don't match
if test "$kde_libs_prefix" != "$given_prefix"; then
# And if kde doesn't know about the prefix yet
echo ":"`tde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
if test $? -ne 0; then
echo ""
echo "Warning: you chose to install this package in $given_prefix,"
echo "but KDE was found in $kde_libs_prefix."
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
echo "that TDEDIRS contains it, e.g. export TDEDIRS=$given_prefix:$kde_libs_prefix"
echo "Then restart KDE."
echo ""
fi
fi
fi
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,12 +0,0 @@
#MIN_CONFIG(3.2)
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
if test "$build_arts" = "yes"; then
AC_DEFINE(USE_ARTS, 1, [If we use arts volume])
LIB_ARTS="-lartskde"
AC_SUBST(LIB_ARTS)
fi
KDE_INIT_DOXYGEN([The API Reference], [Version $VERSION])
AM_MAINTAINER_MODE

@ -1,3 +0,0 @@
KDE_LANG = en
KDE_DOCS = AUTO
SUBDIRS = $(AUTODIRS)

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

@ -1,18 +0,0 @@
############################################################################
# #
# KNetLoad action icons. #
# #
# KNetLoad is copyright (c) 1999-2000, Markus Gustavsson #
# (c) 2002, Ben Burton #
# #
# 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. #
# #
############################################################################
iconsdir = $(kde_datadir)/knetload/icons
icons_ICON = AUTO

@ -1,54 +0,0 @@
############################################################################
# #
# Main KNetLoad sources. #
# #
# KNetLoad is copyright (c) 1999-2000, Markus Gustavsson #
# (c) 2002, Ben Burton #
# #
# 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. #
# #
############################################################################
INCLUDES = $(all_includes)
bin_PROGRAMS = knetload
knetload_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
knetload_LDADD = $(LIB_TDEUI)
knetload_SOURCES = \
devicedialog.cpp \
icontoggleaction.cpp \
knetdock.cpp \
knetload.cpp \
knetproc.cpp \
main.cpp \
scaledialog.cpp \
speeddialog.cpp \
statdock.cpp \
statpopup.cpp
noinst_HEADERS = \
devicedialog.h \
icontoggleaction.h \
knetdock.h \
knetload.h \
knetproc.h \
scaledialog.h \
speeddialog.h \
statdock.h \
statpopup.h
METASOURCES = AUTO
xdg_apps_DATA = knetload.desktop
KDE_ICON = knetload
messages: rc.cpp
$(XGETTEXT) *.cpp *.h -o $(podir)/knetload.pot

@ -12,7 +12,7 @@
***************************************************************************/ ***************************************************************************/
#include "knetload.h" #include "knetload.h"
#include "../version.h" #include "version.h"
#include <tdeaboutdata.h> #include <tdeaboutdata.h>
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>

@ -1 +0,0 @@
SUBDIRS = ar bs ca cs da de en_GB es et fr is it ja nb nl pt pt_BR ro sr sv ta tr xx zh_CN zh_TW

@ -1,5 +0,0 @@
KDE_LANG = ar
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = bs
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = ca
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = cs
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = da
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = de
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = en_GB
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = es
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = et
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = fr
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = is
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = it
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = ja
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = nb
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = nl
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = pt
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = pt_BR
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = ro
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = sr
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = sv
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = ta
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = tr
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = zh_CN
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,5 +0,0 @@
KDE_LANG = zh_TW
SUBDIRS = $(AUTODIRS)
POFILES = AUTO

@ -1,4 +0,0 @@
doc
icons
knetload
po
Loading…
Cancel
Save