summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt15
-rw-r--r--src/doc/CMakeLists.txt1
-rw-r--r--src/doc/en/CMakeLists.txt1
-rw-r--r--src/doc/man/CMakeLists.txt5
-rw-r--r--src/doc/man/knetstats.153
-rw-r--r--src/src/CMakeLists.txt38
-rw-r--r--src/src/pics/CMakeLists.txt6
7 files changed, 119 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..93766be
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,15 @@
+add_subdirectory( src )
+tde_conditional_add_subdirectory( BUILD_DOC doc )
+
+
+##### icons
+
+tde_install_icons( ${PROJECT_NAME} )
+
+
+##### other data
+
+install(
+ FILES ${PROJECT_NAME}.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
diff --git a/src/doc/CMakeLists.txt b/src/doc/CMakeLists.txt
new file mode 100644
index 0000000..6d0aa9f
--- /dev/null
+++ b/src/doc/CMakeLists.txt
@@ -0,0 +1 @@
+tde_auto_add_subdirectories( )
diff --git a/src/doc/en/CMakeLists.txt b/src/doc/en/CMakeLists.txt
new file mode 100644
index 0000000..ba3ef3e
--- /dev/null
+++ b/src/doc/en/CMakeLists.txt
@@ -0,0 +1 @@
+tde_create_handbook( DESTINATION ${PROJECT_NAME} )
diff --git a/src/doc/man/CMakeLists.txt b/src/doc/man/CMakeLists.txt
new file mode 100644
index 0000000..8512250
--- /dev/null
+++ b/src/doc/man/CMakeLists.txt
@@ -0,0 +1,5 @@
+INSTALL(
+ FILES ${PROJECT_NAME}.1
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/src/doc/man/knetstats.1 b/src/doc/man/knetstats.1
new file mode 100644
index 0000000..7197c48
--- /dev/null
+++ b/src/doc/man/knetstats.1
@@ -0,0 +1,53 @@
+'\" -*- coding: us-ascii -*-
+.if \n(.g .ds T< \\FC
+.if \n(.g .ds T> \\F[\n[.fam]]
+.de URL
+\\$2 \(la\\$1\(ra\\$3
+..
+.if \n(.g .mso www.tmac
+.TH knetstats 1 "16 Oct 2005" "" ""
+.SH NAME
+knetstats \- A system tray icon, which indicates network activity
+.SH SYNOPSIS
+'nh
+.fi
+.ad l
+\fBknetstats\fR \kx
+.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
+'in \n(.iu+\nxu
+[\fB--help \fIPrint options to console.\fB\fR]
+'in \n(.iu-\nxu
+.ad b
+'hy
+.SH DESCRIPTION
+This manual page documents briefly the
+\fBknetstats\fR
+commands.
+.PP
+This manual page was written for the Debian distribution.
+Instead, it has documentation in the GNU
+Info format; see below.
+.PP
+\fBknetstats\fR is a program that provides a system tray icon. This icon provides two
+LED's, which begin to blink if there is network traffic.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax,
+with long options starting with two dashes (`-'). A summary of
+options is included below. For a complete description, see the
+Info files.
+.TP
+\*(T<\fB\-h\fR\*(T> \*(T<\fB\-\-help\fR\*(T>
+Show summary of options.
+.TP
+\*(T<\fB\-v\fR\*(T> \*(T<\fB\-\-version\fR\*(T>
+Show version of program.
+.SH "SEE ALSO"
+.SH AUTHOR
+This manual page was written by windheus <\*(T<thomas@0x5c.net\*(T>> for
+the Debian system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU General Public License, Version 2 any
+later version published by the Free Software Foundation.
+.PP
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL.
diff --git a/src/src/CMakeLists.txt b/src/src/CMakeLists.txt
new file mode 100644
index 0000000..4b74eac
--- /dev/null
+++ b/src/src/CMakeLists.txt
@@ -0,0 +1,38 @@
+add_subdirectory( pics )
+
+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}
+)
+
+
+##### knetstats (executable)
+
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ configurebase.ui
+ configure.cpp
+ statisticsbase.ui
+ main.cpp
+ knetstats.cpp
+ knetstatsview.cpp
+ statistics.cpp
+ chart.cpp
+ interface.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+ tdeui-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/src/pics/CMakeLists.txt b/src/src/pics/CMakeLists.txt
new file mode 100644
index 0000000..e7d1781
--- /dev/null
+++ b/src/src/pics/CMakeLists.txt
@@ -0,0 +1,6 @@
+file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
+
+install(
+ FILES ${_pics}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics
+)