parent
2d4111d067
commit
676a81fc78
@ -0,0 +1,77 @@
|
||||
############################################
|
||||
# #
|
||||
# Improvements and feedbacks are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
############################################
|
||||
|
||||
|
||||
cmake_minimum_required( VERSION 2.8 )
|
||||
|
||||
|
||||
#### general package setup
|
||||
|
||||
project( knetload )
|
||||
set( VERSION R14.1.0 )
|
||||
|
||||
|
||||
#### include essential cmake modules
|
||||
|
||||
include( FindPkgConfig )
|
||||
include( CheckIncludeFile )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckCSourceCompiles )
|
||||
include( CheckCXXSourceCompiles )
|
||||
|
||||
|
||||
#### include our cmake modules
|
||||
|
||||
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||
include( TDEMacros )
|
||||
|
||||
|
||||
##### setup install paths
|
||||
|
||||
include( TDESetupPaths )
|
||||
tde_setup_paths( )
|
||||
|
||||
|
||||
##### optional stuff
|
||||
|
||||
option( WITH_ALL_OPTIONS "Enable all optional support" ON )
|
||||
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||
|
||||
|
||||
##### user requested modules
|
||||
|
||||
option( BUILD_ALL "Build all" ON )
|
||||
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
|
||||
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||
|
||||
|
||||
##### configure checks
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
|
||||
###### global compiler settings
|
||||
|
||||
add_definitions( -DHAVE_CONFIG_H )
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||
|
||||
|
||||
##### directories
|
||||
|
||||
add_subdirectory( icons )
|
||||
add_subdirectory( knetload )
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
||||
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||
|
||||
|
||||
##### write configure files
|
||||
|
||||
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,43 @@
|
||||
###########################################
|
||||
# #
|
||||
# Improvements and feedback are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
###########################################
|
||||
|
||||
|
||||
# required stuff
|
||||
find_package( TQt )
|
||||
find_package( TDE )
|
||||
|
||||
tde_setup_architecture_flags( )
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
|
||||
##### check for gcc visibility
|
||||
|
||||
if( WITH_GCC_VISIBILITY )
|
||||
if( NOT UNIX )
|
||||
tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
|
||||
endif( NOT UNIX )
|
||||
set( __KDE_HAVE_GCC_VISIBILITY 1 )
|
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||
endif( WITH_GCC_VISIBILITY )
|
||||
|
||||
|
||||
##### gettext
|
||||
if( BUILD_TRANSLATIONS )
|
||||
include( FindGettext )
|
||||
if( GETTEXT_FOUND )
|
||||
set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
|
||||
CACHE FILEPATH "path to msgfmt executable" )
|
||||
endif( GETTEXT_FOUND )
|
||||
|
||||
if( NOT MSGFMT_EXECUTABLE )
|
||||
tde_message_fatal( "msgfmt is required but was not found on your system." )
|
||||
endif( NOT MSGFMT_EXECUTABLE )
|
||||
endif( BUILD_TRANSLATIONS )
|
@ -0,0 +1,8 @@
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
@ -0,0 +1 @@
|
||||
tde_auto_add_subdirectories( )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} )
|
@ -0,0 +1,5 @@
|
||||
INSTALL(
|
||||
FILES ${PROJECT_NAME}.1
|
||||
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||
COMPONENT doc
|
||||
)
|
@ -0,0 +1,56 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH KNETLOAD 1 "January 14, 2003"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
knetload \- a network meter for Kicker
|
||||
.SH SYNOPSIS
|
||||
.B knetload
|
||||
.RI "[ " generic-options " ]"
|
||||
.SH DESCRIPTION
|
||||
\fBKNetLoad\fP is a small program for Kicker (the TDE panel). It
|
||||
shows a recent history of network usage in the form of two
|
||||
configurable diagrams in the system tray, one for incoming and one
|
||||
for outgoing data.
|
||||
These diagrams have settings for colors and various different styles.
|
||||
.PP
|
||||
Left click on a diagram to bring up a small information box which
|
||||
will show the exact input and output rates in text form as well as
|
||||
the total amount incoming and outgoing data.
|
||||
.PP
|
||||
Note that before KNetLoad can be useful you must select which
|
||||
network device it should monitor and select an appropriate scaling
|
||||
value that reflects the speed of this network device.
|
||||
.PP
|
||||
KNetLoad can monitor almost any network device; if your device is
|
||||
not in the predefined list of devices (such as eth0, ppp0 and
|
||||
ippp0) then you can type in your own device.
|
||||
.SH OPTIONS
|
||||
For a full summary of options, run \fIknetload \-\-help\fP.
|
||||
.SH SEE ALSO
|
||||
Full user documentation is available through the TDE Help Centre.
|
||||
You can also enter the URL
|
||||
\fIhelp:/knetload/\fP
|
||||
directly into konqueror or you can run
|
||||
`\fIkhelpcenter help:/knetload/\fP'
|
||||
from the command-line.
|
||||
.PP
|
||||
If the TDE Help Centre is not installed then you can
|
||||
read this documentation in HTML format from
|
||||
\fI/usr/share/doc/tde/HTML/en/knetload/\fP.
|
||||
.SH AUTHOR
|
||||
KNetLoad was written by Flameeyes <dgp85@users.sourceforge.net>,
|
||||
Markus Gustavsson <mighty@fragzone.se> and Ben Burton <bab@debian.org>.
|
@ -0,0 +1 @@
|
||||
tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons )
|
@ -0,0 +1,49 @@
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
${TDE_LIB_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### knetload (executable)
|
||||
|
||||
tde_add_executable( ${PROJECT_NAME} AUTOMOC
|
||||
|
||||
SOURCES
|
||||
devicedialog.cpp
|
||||
icontoggleaction.cpp
|
||||
knetdock.cpp
|
||||
knetload.cpp
|
||||
knetproc.cpp
|
||||
main.cpp
|
||||
scaledialog.cpp
|
||||
speeddialog.cpp
|
||||
statdock.cpp
|
||||
statpopup.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### icons
|
||||
|
||||
tde_install_icons( ${PROJECT_NAME} )
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_NAME}.desktop
|
||||
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_auto_add_subdirectories( )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG ar )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG bs )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG ca )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG cs )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG da )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG de )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG en_GB )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG es )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG et )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG fr )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG is )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG it )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG ja )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG nb )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG nl )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG pt )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG pt_BR )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG ro )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG sr )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG sv )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG ta )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG tr )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG xx )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG zh_CN )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG zh_TW )
|
Loading…
Reference in new issue