Browse Source

Update the cmake build system, see issue #2 (some cleanup)

Add a man page taken from the Debian packaging system.
Add README and Install file with basic description as well as basic
build instructions with cmake.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/3/head
gregory guy 3 years ago
parent
commit
774770240a
No known key found for this signature in database
GPG Key ID: 3BCCA0F7AB4536F4
  1. 27
      CMakeLists.txt
  2. 16
      INSTALL
  3. 21
      README
  4. 13
      tdenetworkmanager/CMakeLists.txt
  5. 4
      tdenetworkmanager/doc/CMakeLists.txt
  6. 5
      tdenetworkmanager/doc/man/CMakeLists.txt
  7. 145
      tdenetworkmanager/doc/man/tdenetworkmanager.1
  8. 3
      tdenetworkmanager/src/CMakeLists.txt
  9. 1
      tdenetworkmanager/src/configwidgets/CMakeLists.txt
  10. 8
      tdenetworkmanager/vpn-plugins/CMakeLists.txt
  11. 3
      tdenetworkmanager/vpn-plugins/openvpn/src/CMakeLists.txt
  12. 3
      tdenetworkmanager/vpn-plugins/pptp/src/CMakeLists.txt
  13. 3
      tdenetworkmanager/vpn-plugins/strongswan/src/CMakeLists.txt
  14. 3
      tdenetworkmanager/vpn-plugins/vpnc/src/CMakeLists.txt

27
CMakeLists.txt

@ -20,8 +20,12 @@ set( TDENETWORKMANAGER_VERSION "0.9" )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( CheckSymbolExists )
include( FindPkgConfig )
include( CheckFunctionExists )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
@ -43,14 +47,21 @@ endif( )
##### optional stuff ############################
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" OFF )
option( WITH_OPENVPN "Enable openvpn support" ${WITH_ALL_OPTIONS} )
option( WITH_PPTP "Enable pptp support" ${WITH_ALL_OPTIONS} )
option( WITH_VPNC "Enable vpnc support" ${WITH_ALL_OPTIONS} )
option( WITH_STRONGSWAN "Enable strongswan support" ${WITH_ALL_OPTIONS} )
# option( WITH_LDAP "Enable LDAP support" OFF )
##### user requested modules ####################
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
option( BUILD_ALL "Build all" OFF )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks ##########################
@ -60,9 +71,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
)
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
@ -71,7 +80,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
##### source directories ########################
add_subdirectory( tdenetworkmanager )
add_subdirectory( ${PROJECT_NAME} )
##### write configure files #####################

16
INSTALL

@ -0,0 +1,16 @@
Basic Installation
==================
Tdenetworkmanager relies on cmake to build.
Here are suggested default options:
-DCMAKE_INSTALL_PREFIX="/opt/trinity" \
-DCONFIG_INSTALL_DIR="/etc/trinity" \
-DSYSCONF_INSTALL_DIR="/etc/trinity" \
-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"

21
README

@ -0,0 +1,21 @@
tdenetworkmanager - a TDE systray applet for controlling networking
Tdenetworkmanager is a systray applet for controlling network
connections managed by a TDE network backend. It is mainly written for
the Trinity Desktop Environment but also works for other desktop
environments like GNOME or Xfce.
CONTRIBUTING
==============
If you wish to contribute to Knetstats (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

13
tdenetworkmanager/CMakeLists.txt

@ -9,10 +9,15 @@
#
#################################################
tde_conditional_add_subdirectory( BUILD_DOC doc )
add_subdirectory( pics )
add_subdirectory( src )
add_subdirectory( src )
add_subdirectory( vpn-plugins )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
install( FILES tdenetworkmanager.conf DESTINATION ${DBUS_SYS_DIR} )
install(
FILES tdenetworkmanager.conf
DESTINATION ${DBUS_SYS_DIR}
)

4
tdenetworkmanager/doc/CMakeLists.txt

@ -6,4 +6,6 @@
#
#################################################
tde_create_handbook( DESTINATION tdenetworkmanager )
add_subdirectory( man )
tde_create_handbook( DESTINATION ${PROJECT_NAME} )

5
tdenetworkmanager/doc/man/CMakeLists.txt

@ -0,0 +1,5 @@
INSTALL(
FILES ${PROJECT_NAME}.1
DESTINATION ${MAN_INSTALL_DIR}/man1
COMPONENT doc
)

145
tdenetworkmanager/doc/man/tdenetworkmanager.1

@ -0,0 +1,145 @@
.\" This file was generated by kdemangen.pl
.TH TDENETWORKMANAGER 1 "Feb 2006" "Trinity Desktop Environment" "A NetworkManager front-end for TDE"
.SH NAME
tdenetworkmanager
\- A NetworkManager front-end for TDE
.SH SYNOPSIS
tdenetworkmanager [Qt\-options] [TDE\-options]
.SH DESCRIPTION
A NetworkManager front-end for TDE
.SH OPTIONS
.SS Generic options:
.TP
.B \-\-help
Show help about options
.TP
.B \-\-help\-qt
Show Qt specific options
.TP
.B \-\-help\-tde
Show TDE specific options
.TP
.B \-\-help\-all
Show all options
.TP
.B \-\-author
Show author information
.TP
.B \-v, \-\-version
Show version information
.TP
.B \-\-license
Show license information
.TP
.B \-\-
End of options
.SS
.SS TDE options:
.TP
.B \-\-caption <caption>
Use 'caption' as name in the titlebar
.TP
.B \-\-icon <icon>
Use 'icon' as the application icon
.TP
.B \-\-miniicon <icon>
Use 'icon' as the icon in the titlebar
.TP
.B \-\-config <filename>
Use alternative configuration file
.TP
.B \-\-dcopserver <server>
Use the DCOP Server specified by 'server'
.TP
.B \-\-nocrashhandler
Disable crash handler, to get core dumps
.TP
.B \-\-waitforwm
Waits for a WM_NET compatible windowmanager
.TP
.B \-\-style <style>
sets the application GUI style
.TP
.B \-\-geometry <geometry>
sets the client geometry of the main widget - see man X for the argument format
.TP
.B \-\-nofork
Don't run in the background.
.SS Qt options:
.TP
.B \-\-display <displayname>
Use the X-server display 'displayname'
.TP
.B \-\-session <sessionId>
Restore the application for the given 'sessionId'
.TP
.B \-\-cmap
Causes the application to install a private color
map on an 8-bit display
.TP
.B \-\-ncols <count>
Limits the number of colors allocated in the color
cube on an 8-bit display, if the application is
using the QApplication::ManyColor color
specification
.TP
.B \-\-nograb
tells Qt to never grab the mouse or the keyboard
.TP
.B \-\-dograb
running under a debugger can cause an implicit
-nograb, use -dograb to override
.TP
.B \-\-sync
switches to synchronous mode for debugging
.TP
.B \-\-fn, \-\-font <fontname>
defines the application font
.TP
.B \-\-bg, \-\-background <color>
sets the default background color and an
application palette (light and dark shades are
calculated)
.TP
.B \-\-fg, \-\-foreground <color>
sets the default foreground color
.TP
.B \-\-btn, \-\-button <color>
sets the default button color
.TP
.B \-\-name <name>
sets the application name
.TP
.B \-\-title <title>
sets the application title (caption)
.TP
.B \-\-visual TrueColor
forces the application to use a TrueColor visual on
an 8-bit display
.TP
.B \-\-inputstyle <inputstyle>
sets XIM (X Input Method) input style. Possible
values are onthespot, overthespot, offthespot and
root
.TP
.B \-\-im <XIM server>
set XIM server
.TP
.B \-\-noxim
disable XIM
.TP
.B \-\-reverse
mirrors the whole layout of widgets
.SS
.SH SEE ALSO
.BR networkmanager (1)
.SH AUTHORS
.nf
Timo Hoenig <thoenig@suse.de>
.br
Stefan Bogner <sbogner@suse.de>
.br
Will Stephenson <wstephenson@suse.de>
.br

3
tdenetworkmanager/src/CMakeLists.txt

@ -9,8 +9,6 @@
#
#################################################
add_definitions( -UTQT_NO_ASCII_CAST )
add_subdirectory( configwidgets )
include_directories(
@ -23,7 +21,6 @@ include_directories(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
)
link_directories(

1
tdenetworkmanager/src/configwidgets/CMakeLists.txt

@ -18,7 +18,6 @@ include_directories(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
)

8
tdenetworkmanager/vpn-plugins/CMakeLists.txt

@ -9,7 +9,7 @@
#
#################################################
add_subdirectory( openvpn )
add_subdirectory( pptp )
add_subdirectory( strongswan )
add_subdirectory( vpnc )
tde_conditional_add_subdirectory( WITH_OPENVPN openvpn )
tde_conditional_add_subdirectory( WITH_PPTP pptp )
tde_conditional_add_subdirectory( WITH_VPNC vpnc )
tde_conditional_add_subdirectory( WITH_STRONGSWAN strongswan )

3
tdenetworkmanager/vpn-plugins/openvpn/src/CMakeLists.txt

@ -9,8 +9,6 @@
#
#################################################
add_definitions( -UTQT_NO_ASCII_CAST )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
@ -20,7 +18,6 @@ include_directories(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
)
link_directories(

3
tdenetworkmanager/vpn-plugins/pptp/src/CMakeLists.txt

@ -9,8 +9,6 @@
#
#################################################
add_definitions( -UTQT_NO_ASCII_CAST )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
@ -20,7 +18,6 @@ include_directories(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
)
link_directories(

3
tdenetworkmanager/vpn-plugins/strongswan/src/CMakeLists.txt

@ -9,8 +9,6 @@
#
#################################################
add_definitions( -UTQT_NO_ASCII_CAST )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
@ -20,7 +18,6 @@ include_directories(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
)
link_directories(

3
tdenetworkmanager/vpn-plugins/vpnc/src/CMakeLists.txt

@ -9,8 +9,6 @@
#
#################################################
add_definitions( -UTQT_NO_ASCII_CAST )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
@ -20,7 +18,6 @@ include_directories(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
)
link_directories(

Loading…
Cancel
Save