Signed-off-by: gregory guy <g-gregory@gmx.fr>
(cherry picked from commit ff65124f32
)
r14.0.x
parent
e4be9266bb
commit
59bf3e99b0
@ -0,0 +1,78 @@
|
||||
############################################
|
||||
# #
|
||||
# Improvements and feedbacks are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
############################################
|
||||
|
||||
|
||||
cmake_minimum_required( VERSION 2.8 )
|
||||
|
||||
|
||||
#### general package setup
|
||||
|
||||
project( kvpnc )
|
||||
set( VERSION R14.1.0 )
|
||||
|
||||
|
||||
#### include essential cmake modules
|
||||
|
||||
include( FindPkgConfig )
|
||||
include( CheckFunctionExists )
|
||||
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" OFF )
|
||||
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 -UQT_NO_ASCII_CAST )
|
||||
|
||||
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( src )
|
||||
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,56 @@
|
||||
###########################################
|
||||
# #
|
||||
# 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 support
|
||||
|
||||
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 )
|
||||
|
||||
|
||||
#### check for functions
|
||||
|
||||
find_library( LIBGCRYPT_LIBRARIES gcrypt )
|
||||
if( LIBGCRYPT_LIBRARIES )
|
||||
message( STATUS "Found libgcrypt: ${LIBGCRYPT_LIBRARIES}" )
|
||||
set( ADDITIONAL_LIBS ${ADDITIONAL_LIBS} ${LIBGCRYPT_LIBRARIES} )
|
||||
else()
|
||||
tde_message_fatal( "The libgcrypt library hasn't been found on your system!" )
|
||||
endif( LIBGCRYPT_LIBRARIES )
|
||||
|
||||
|
||||
##### 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} LANG de )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG en )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG fr )
|
@ -0,0 +1,5 @@
|
||||
INSTALL(
|
||||
FILES ${PROJECT_NAME}.1
|
||||
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||
COMPONENT doc
|
||||
)
|
@ -0,0 +1,69 @@
|
||||
.\" 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 KVPNC 1 "novembre 16, 2005"
|
||||
.\" 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
|
||||
kvpnc \- vpn clients frontend for TDE
|
||||
.SH SYNOPSIS
|
||||
.B kvpnc
|
||||
.RI [ options ]
|
||||
.br
|
||||
.SH DESCRIPTION
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
\fBkvpnc\fP is a TDE frontend for various vpn clients.
|
||||
.br
|
||||
It supports :
|
||||
.br
|
||||
* Cisco-compatible VPN client (vpnc)
|
||||
.br
|
||||
* IPSec (freeswan, openswan, racoon)
|
||||
.br
|
||||
* Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
|
||||
.br
|
||||
* Virtual Private Network daemon (openvpn)
|
||||
.SH OPTIONS
|
||||
All TDE and Qt programs accept some common command\-line options.
|
||||
.br
|
||||
Kvpnc has no application\-specific options.
|
||||
.PP
|
||||
.TP
|
||||
\fB\-\-help\fR
|
||||
Show help about options
|
||||
.TP
|
||||
\fB\-\-help\-qt\fR
|
||||
Show Qt specific options
|
||||
.TP
|
||||
\fB\-\-help\-tde\fR
|
||||
Show TDE specific options
|
||||
.TP
|
||||
\fB\-\-help\-all\fR
|
||||
Show all options
|
||||
.TP
|
||||
\fB\-\-author\fR
|
||||
Show author information
|
||||
.TP
|
||||
\fB\-v\fR, \fB\-\-version\fR
|
||||
Show version information
|
||||
.TP
|
||||
\fB\-\-license\fR
|
||||
Show license information
|
||||
.SH AUTHOR
|
||||
kvpnc was written by Christoph Thielecke <crissi99@gmx.de>.
|
||||
.PP
|
||||
This manual page was written by Fathi Boudra <fboudra@free.fr>,
|
||||
for the Debian project (but may be used by others).
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG sv )
|
@ -0,0 +1 @@
|
||||
add_subdirectory( en )
|
@ -0,0 +1 @@
|
||||
add_subdirectory( pcf )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION tdeioslave/pcf )
|
@ -0,0 +1 @@
|
||||
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
|
@ -0,0 +1,119 @@
|
||||
add_subdirectory( icons )
|
||||
|
||||
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}
|
||||
)
|
||||
|
||||
|
||||
##### kvpnc (executable)
|
||||
|
||||
tde_add_executable( ${PROJECT_NAME} AUTOMOC
|
||||
|
||||
SOURCES
|
||||
kvpnc.skel
|
||||
addnetworkroutedialogbase.ui ciscocertificateenrollmentbase.ui
|
||||
ciscocertificateenrollmentdatadialogbase.ui
|
||||
ciscocertificateenrollmentfinishwidgetbase.ui
|
||||
configconnectoptionsbase.ui configdaemonoptionsbase.ui
|
||||
configdebugoptionsbase.ui configgeneraloptions.ui
|
||||
confighelperprogramoptionsbase.ui configlogoptionsbase.ui
|
||||
displaycertdialogbase.ui enterpassworddialogbase.ui
|
||||
enterxauthinteractivepasscodedialogbase.ui
|
||||
generateopenvpnkeydialogbase.ui helpdialog.cpp helpdialogbase.ui
|
||||
importcertificatedialogbase.ui importopenvpnprofiledialogbase.ui
|
||||
importprofiledialogbase.ui kvpncimportprofileselectiondialogbase.ui
|
||||
logviewerdialogbase.ui mainviewbase.ui manageciscocertbase.ui
|
||||
newprofiledialogbase.ui newprofilewizardauthselection.ui
|
||||
newprofilewizardcert.ui newprofilewizardciscomanually.ui
|
||||
newprofilewizardciscoselection.ui newprofilewizardconnectionstatuscheck.ui
|
||||
newprofilewizardconnectoptions.ui newprofilewizardfreeswan.ui
|
||||
newprofilewizardgeneral.ui newprofilewizardnat.ui
|
||||
newprofilewizardnetwork.ui newprofilewizardnetworkroute.ui
|
||||
newprofilewizardopenvpn.ui newprofilewizardopenvpnauth.ui
|
||||
newprofilewizardopenvpnselection.ui newprofilewizardp12certselection.ui
|
||||
newprofilewizardpptp.ui newprofilewizardpsk.ui newprofilewizardracoon.ui
|
||||
newprofilewizardstart.ui newprofilewizardtypeselection.ui
|
||||
newprofilewizarduser.ui profilecertoptionsbase.ui
|
||||
profileciscooptionsbase.ui profilecmdexecafterconnectoptionsbase.ui
|
||||
profilecmdexecafterdisconnectoptionsbase.ui
|
||||
profilecmdexecbeforeconnectoptionsbase.ui
|
||||
profilecmdexecbeforedisconnectoptionsbase.ui
|
||||
profilegeneraloptionsbase.ui profileipsecoptionsbase.ui
|
||||
profilenetworkgeneraloptionsbase.ui profilenetworkhttpproxyoptionsbase.ui
|
||||
profilenetworknatoptionsbase.ui profilenetworkrouteoptionsbase.ui
|
||||
profilenetworkvirtualipoptionsbase.ui profileopenvpnoptionsbase.ui
|
||||
profilepptpoptionsbase.ui profilepskoptionsbase.ui
|
||||
profileracoonoptionsbase.ui profilesmartcardoptionsbase.ui
|
||||
profilesshoptionsbase.ui profileuseroptionsbase.ui
|
||||
profilevtunoptionsbase.ui toolsinfowidgetbase.ui
|
||||
addnetworkroutedialog.cpp ciscocertificateenrollment.cpp
|
||||
ciscocertificateenrollmentdatadialog.cpp ciscopasswddecoder.cpp
|
||||
configdebugoptions.cpp configconnectoptions.cpp configdaemonoptions.cpp
|
||||
confighelperprogramoptions.cpp configlogoptions.cpp debugoutputtextedit.cpp
|
||||
displaycertdialog.cpp enterpassworddialog.cpp
|
||||
enterxauthinteractivepasscodedialog.cpp generateopenvpnkeydialog.cpp
|
||||
importcertificatedialog.cpp importipsecprofiledialog.cpp
|
||||
importopenvpnprofiledialog.cpp importprofiledialog.cpp
|
||||
kfeedback.cpp kvpnc.cpp kvpncconfig.cpp kvpncimportprofileselectiondialog.cpp
|
||||
kvpnckicker.cpp listviewtooltip.cpp logviewerdialog.cpp main.cpp
|
||||
mainview.cpp manageciscocert.cpp networkinterface.cpp newprofiledialog.cpp
|
||||
newprofilewizard.cpp openvpnmanagementhandler.cpp preferencesdialog.cpp
|
||||
profilecertoptions.cpp profileciscooptions.cpp
|
||||
profilecmdexecafterconnectoptions.cpp profilecmdexecafterdisconnectoptions.cpp
|
||||
profilecmdexecbeforeconnectoptions.cpp profilecmdexecbeforedisconnectoptions.cpp
|
||||
profilegeneraloptions.cpp profileipsecoptions.cpp
|
||||
profilenetworkgeneraloptions.cpp profilenetworkhttpproxyoptions.cpp
|
||||
profilenetworknatoptions.cpp profilenetworkrouteoptions.cpp
|
||||
profilenetworkvirtualipoptions.cpp profileopenvpnoptions.cpp
|
||||
profilepptpoptions.cpp profilepskoptions.cpp profileracoonoptions.cpp
|
||||
profilesmartcardoptions.cpp profilesshoptions.cpp profileuseroptions.cpp
|
||||
profilevtunoptions.cpp toolinfo.cpp toolsinfodialog.cpp utils.cpp
|
||||
vpnaccountdata.cpp vpntypesinfodialog.cpp widgetnotifyhelper.cpp
|
||||
LINK
|
||||
tdeui-shared
|
||||
tdecore-shared
|
||||
tdeio-shared
|
||||
tdewalletclient-shared
|
||||
${LIBGCRYPT_LIBRARIES}
|
||||
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
|
||||
install(
|
||||
PROGRAMS ping_check.sh
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES
|
||||
eventsrc
|
||||
kvpncui.rc
|
||||
newprofilewizard.png
|
||||
newprofilewizard_final.png
|
||||
ovpn.protocol
|
||||
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES pcf.protocol
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_NAME}.desktop
|
||||
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_install_icons( )
|
Loading…
Reference in new issue