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>
(cherry picked from commit 774770240a)
r14.0.x
gregory guy 5 years ago committed by Slávek Banko
parent abe309c94f
commit 9c839f7a33
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -20,8 +20,12 @@ set( TDENETWORKMANAGER_VERSION "0.9" )
##### include essential cmake modules ########### ##### include essential cmake modules ###########
include( FindPkgConfig ) include( FindPkgConfig )
include( CheckSymbolExists ) include( CheckFunctionExists )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles ) include( CheckCXXSourceCompiles )
@ -43,14 +47,21 @@ endif( )
##### optional stuff ############################ ##### 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 ) # option( WITH_LDAP "Enable LDAP support" OFF )
##### user requested modules #################### ##### user requested modules ####################
option( BUILD_ALL "Build all" ON ) option( BUILD_ALL "Build all" OFF )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks ########################## ##### configure checks ##########################
@ -60,9 +71,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings ################# ###### global compiler settings #################
add_definitions( add_definitions( -DHAVE_CONFIG_H -UQT_NO_ASCII_CAST )
-DHAVE_CONFIG_H
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) 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 ######################## ##### source directories ########################
add_subdirectory( tdenetworkmanager ) add_subdirectory( ${PROJECT_NAME} )
##### write configure files ##################### ##### write configure files #####################

@ -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"

@ -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

@ -9,10 +9,15 @@
# #
################################################# #################################################
tde_conditional_add_subdirectory( BUILD_DOC doc )
add_subdirectory( pics ) add_subdirectory( pics )
add_subdirectory( src ) add_subdirectory( src )
add_subdirectory( vpn-plugins ) 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}
)

@ -6,4 +6,6 @@
# #
################################################# #################################################
tde_create_handbook( DESTINATION tdenetworkmanager ) add_subdirectory( man )
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,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

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

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

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

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

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

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

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

Loading…
Cancel
Save