Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 81b64bcfc0
)
r14.0.x
parent
ade9896cde
commit
7fefe15989
@ -0,0 +1,94 @@
|
|||||||
|
############################################
|
||||||
|
# #
|
||||||
|
# Improvements and feedbacks are welcome #
|
||||||
|
# #
|
||||||
|
# This file is released under GPL >= 3 #
|
||||||
|
# #
|
||||||
|
############################################
|
||||||
|
|
||||||
|
|
||||||
|
cmake_minimum_required( VERSION 2.8 )
|
||||||
|
|
||||||
|
|
||||||
|
#### general package setup
|
||||||
|
|
||||||
|
project( tork )
|
||||||
|
set( VERSION R14.1.0 )
|
||||||
|
|
||||||
|
|
||||||
|
#### include essential cmake modules
|
||||||
|
|
||||||
|
include( FindPkgConfig )
|
||||||
|
include( CheckFunctionExists )
|
||||||
|
include( CheckSymbolExists )
|
||||||
|
include( CheckIncludeFile )
|
||||||
|
include( CheckIncludeFileCXX )
|
||||||
|
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} )
|
||||||
|
option( WITH_FAILSAFE "Enable failsafe support" ${WITH_ALL_OPTIONS} )
|
||||||
|
option( WITH_GNUTLS "Enable GnuTLS support" OFF )
|
||||||
|
option( WITH_EMBEDDED_GEOIP "Enable support with embedded GeoIP-1.4 library" OFF )
|
||||||
|
option( WITH_LIVECD_SUPPORT "Disable features unsuitable for LiveCD use" OFF )
|
||||||
|
|
||||||
|
|
||||||
|
##### user requested modules
|
||||||
|
|
||||||
|
option( BUILD_ALL "Build all" ON )
|
||||||
|
option( BUILD_KONQPLUGIN "Build konqplugin" ${BUILD_ALL} )
|
||||||
|
option( BUILD_TORAPPLET "Build torkapplet" ${BUILD_ALL} )
|
||||||
|
option( BUILD_TOR_IOSLAVE "Build tor_ioslave" ${BUILD_ALL} )
|
||||||
|
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 -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" )
|
||||||
|
set( CMAKE_MODULE_LINKER_FLAGS "${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 )
|
||||||
|
|
||||||
|
|
||||||
|
##### other data
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES tips
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,148 @@
|
|||||||
|
###########################################
|
||||||
|
# #
|
||||||
|
# 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)
|
||||||
|
|
||||||
|
tde_setup_largefiles( )
|
||||||
|
|
||||||
|
|
||||||
|
##### check for gcc visibility support
|
||||||
|
|
||||||
|
if( WITH_GCC_VISIBILITY )
|
||||||
|
tde_setup_gcc_visibility( )
|
||||||
|
endif( WITH_GCC_VISIBILITY )
|
||||||
|
|
||||||
|
|
||||||
|
##### X11 headers path
|
||||||
|
|
||||||
|
find_package( X11 )
|
||||||
|
|
||||||
|
|
||||||
|
##### check for headers
|
||||||
|
|
||||||
|
check_include_file( stdint.h HAVE_STDINT_H )
|
||||||
|
check_include_file( inttypes.h HAVE_INTTYPES_H )
|
||||||
|
|
||||||
|
|
||||||
|
##### check for GnuTLS or OpenSSL( default )
|
||||||
|
|
||||||
|
if( WITH_GNUTLS )
|
||||||
|
|
||||||
|
pkg_search_module( GNUTLS gnutls )
|
||||||
|
find_program( LIBGCRYPT_CONFIG libgcrypt-config )
|
||||||
|
|
||||||
|
if( NOT GNUTLS_FOUND )
|
||||||
|
tde_message_fatal( "GnuTLS has been requested but was not found on your system" )
|
||||||
|
endif( NOT GNUTLS_FOUND )
|
||||||
|
|
||||||
|
if( LIBGCRYPT_CONFIG )
|
||||||
|
message( STATUS "Found libgcrypt executable: ${LIBGCRYPT_CONFIG}" )
|
||||||
|
else()
|
||||||
|
tde_message_fatal( "libgcrypt is required but was not found on your system" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
macro( _libgcrypt_config __type __var )
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${LIBGCRYPT_CONFIG} --${__type}
|
||||||
|
OUTPUT_VARIABLE ${__var}
|
||||||
|
RESULT_VARIABLE __result
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
)
|
||||||
|
if( __result )
|
||||||
|
tde_message_fatal( "Unable to run ${LIBGCRYPT_CONFIG}!" )
|
||||||
|
endif()
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
_libgcrypt_config( libs LIBGCRYPT_LIBRARIES )
|
||||||
|
_libgcrypt_config( cflags LIBGCRYPT_INCLUDE_DIRS )
|
||||||
|
|
||||||
|
if( LIBGCRYPT_LIBRARIES )
|
||||||
|
string( REGEX REPLACE "(^| +)-l" ";" LIBGCRYPT_LIBRARIES "${LIBGCRYPT_LIBRARIES}" )
|
||||||
|
set( LIBGCRYPT_LIBRARIES "${LIBGCRYPT_LIBRARIES}" CACHE INTERNAL "" FORCE )
|
||||||
|
message( STATUS "Libgcrypt libraries: ${LIBGCRYPT_LIBRARIES} ")
|
||||||
|
elseif( LIBGCRYPT_INCLUDE_DIRS )
|
||||||
|
string( REGEX REPLACE "(^| +)-I" ";" LIBGCRYPT_INCLUDE_DIRS "${LIBGCRYPT_INCLUDE_DIRS}" )
|
||||||
|
set( LIBGCRYPT_INCLUDE_DIRS "${LIBGCRYPT_INCLUDE_DIRS}" CACHE INTERNAL "" FORCE )
|
||||||
|
message( STATUS "Libgcrypt includes: ${LIBGCRYPT_INCLUDE_DIRS} ")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
|
||||||
|
##### check for OpenSSL
|
||||||
|
|
||||||
|
find_package( OpenSSL )
|
||||||
|
|
||||||
|
if( NOT OPENSSL_FOUND )
|
||||||
|
check_include_file( openssl/err.h HAVE_OPENSSL_H )
|
||||||
|
check_library_exists( ssl OPENSSL_init_ssl "" HAVE_LIBSSL_11 )
|
||||||
|
check_library_exists( crypto EVP_EncryptInit_ex "" HAVE_LIBCRYPTO )
|
||||||
|
|
||||||
|
if( NOT HAVE_LIBSSL_11 )
|
||||||
|
check_library_exists( ssl SSL_library_init "" HAVE_LIBSSL )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if( HAVE_OPENSSL_H AND HAVE_LIBCRYPTO AND (HAVE_LIBSSL_11 OR HAVE_LIBSSL) )
|
||||||
|
set( SSL_FOUND 1 CACHE INTERNAL "" FORCE )
|
||||||
|
find_file( OPENSSLV_H openssl/opensslv.h )
|
||||||
|
file( STRINGS "${OPENSSLV_H}" SSL_VERSION REGEX "#[ \t]*define[ \t]*OPENSSL_VERSION_TEXT" )
|
||||||
|
string( REGEX REPLACE "# *define[ \t]*OPENSSL_VERSION_TEXT[ \t]*\"[^0-9 ]* *([^ ]*).*" "\\1" SSL_VERSION "${SSL_VERSION}" )
|
||||||
|
set( SSL_VERSION "${SSL_VERSION}" CACHE INTERNAL "" FORCE )
|
||||||
|
message( STATUS "Found OpenSSL: version ${SSL_VERSION}" )
|
||||||
|
set( OPENSSL_LIBRARIES "ssl;crypto" CACHE INTERNAL "ssl and crypto libs" FORCE )
|
||||||
|
endif()
|
||||||
|
endif( NOT OPENSSL_FOUND )
|
||||||
|
|
||||||
|
if( NOT OPENSSL_FOUND )
|
||||||
|
tde_message_fatal( "OpenSSL support is required but OpenSSL was not found on your system" )
|
||||||
|
else()
|
||||||
|
set( USE_OPENSSL 1 )
|
||||||
|
endif( NOT OPENSSL_FOUND )
|
||||||
|
endif( WITH_GNUTLS )
|
||||||
|
|
||||||
|
|
||||||
|
##### Embedded GeoIP
|
||||||
|
|
||||||
|
if( WITH_EMBEDDED_GEOIP )
|
||||||
|
find_package( ZLIB )
|
||||||
|
|
||||||
|
if( NOT ZLIB_FOUND )
|
||||||
|
tde_message_fatal( "Zlib is required but was not found on your system" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set( GEOIP_LIBRARIES geoip-static )
|
||||||
|
set( GEOIPDATADIR ${SHARE_INSTALL_PREFIX}/${PROJECT_NAME}/geoip )
|
||||||
|
message( STATUS "GEOIPDATADIR location: ${GEOIPDATADIR}" )
|
||||||
|
else()
|
||||||
|
pkg_search_module( GEOIP geoip )
|
||||||
|
|
||||||
|
if( GEOIP_FOUND )
|
||||||
|
set( EXTERNAL_GEOIP 1 )
|
||||||
|
else()
|
||||||
|
tde_message_fatal( "GeoIP is required but was not found on your system" )
|
||||||
|
endif( GEOIP_FOUND )
|
||||||
|
endif( WITH_EMBEDDED_GEOIP )
|
||||||
|
|
||||||
|
|
||||||
|
##### LIVECD use
|
||||||
|
|
||||||
|
if( WITH_LIVECD_SUPPORT )
|
||||||
|
set( LIVECD 1 )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
##### Failsafe support
|
||||||
|
|
||||||
|
if( WITH_FAILSAFE )
|
||||||
|
set( USE_FAILSAFE 1 )
|
||||||
|
endif()
|
@ -0,0 +1,29 @@
|
|||||||
|
#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@
|
||||||
|
|
||||||
|
/* OpenSSL support */
|
||||||
|
#cmakedefine USE_OPENSSL 1
|
||||||
|
|
||||||
|
/* system GeoIP support */
|
||||||
|
#cmakedefine EXTERNAL_GEOIP 1
|
||||||
|
|
||||||
|
/* set GEOIPDATADIR location */
|
||||||
|
#cmakedefine GEOIPDATADIR "@GEOIPDATADIR@"
|
||||||
|
|
||||||
|
/* defined if you have <stdint.h> header */
|
||||||
|
#cmakedefine HAVE_STDINT_H 1
|
||||||
|
|
||||||
|
/* Defined if you have <inttypes.h> header */
|
||||||
|
#cmakedefine HAVE_INTTYPES_H 1
|
||||||
|
|
||||||
|
/* Disable features for LIVECD use */
|
||||||
|
#cmakedefine LIVECD 1
|
||||||
|
|
||||||
|
/* Enable failsafe support */
|
||||||
|
#cmakedefine USE_FAILSAFE 1
|
@ -0,0 +1,34 @@
|
|||||||
|
file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
|
||||||
|
list( REMOVE_ITEM _dirs html man )
|
||||||
|
|
||||||
|
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
|
||||||
|
|
||||||
|
foreach( _dir IN LISTS _dirs )
|
||||||
|
if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}
|
||||||
|
AND ( "${_dir}" STREQUAL "en" OR
|
||||||
|
"${_linguas}" MATCHES "^;*$" OR
|
||||||
|
";${_linguas};" MATCHES ";${_dir};" ))
|
||||||
|
file( GLOB _doc_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} ${_dir}/*.docbook )
|
||||||
|
if( _doc_files )
|
||||||
|
list( FIND _doc_files "index.docbook" _find_index )
|
||||||
|
if( -1 EQUAL _find_index )
|
||||||
|
set( _noindex "NOINDEX" )
|
||||||
|
else()
|
||||||
|
unset( _noindex )
|
||||||
|
endif()
|
||||||
|
tde_create_handbook(
|
||||||
|
SOURCE_BASEDIR ${_dir}
|
||||||
|
${_noindex}
|
||||||
|
LANG ${_dir}
|
||||||
|
DESTINATION ${PROJECT_NAME}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/html/CMakeLists.txt )
|
||||||
|
add_subdirectory( html )
|
||||||
|
endif()
|
||||||
|
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/man/CMakeLists.txt )
|
||||||
|
add_subdirectory( man )
|
||||||
|
endif()
|
@ -0,0 +1,14 @@
|
|||||||
|
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
|
||||||
|
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
|
||||||
|
|
||||||
|
foreach( _po ${po_files} )
|
||||||
|
get_filename_component( _lang ${_po} NAME_WE )
|
||||||
|
if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
|
||||||
|
if( "${_po}" MATCHES "^([^/]*)/.*" )
|
||||||
|
string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" )
|
||||||
|
else( )
|
||||||
|
set( _component "${PROJECT_NAME}" )
|
||||||
|
endif( )
|
||||||
|
tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} )
|
||||||
|
endif( )
|
||||||
|
endforeach( )
|
@ -0,0 +1,109 @@
|
|||||||
|
add_subdirectory( menu )
|
||||||
|
add_subdirectory( upnp )
|
||||||
|
add_subdirectory( icons )
|
||||||
|
add_subdirectory( scripts )
|
||||||
|
add_subdirectory( arkollon )
|
||||||
|
add_subdirectory( privoxytemplates )
|
||||||
|
|
||||||
|
tde_conditional_add_subdirectory( WITH_EMBEDDED_GEOIP GeoIP-1.4.0 )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_KONQPLUGIN konqplugin )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_TORAPPLET torkapplet )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_TOR_IOSLAVE tor_ioslave )
|
||||||
|
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
|
${X11_INCLUDE_DIR}
|
||||||
|
${GNUTLS_INCLUDE_DIRS}
|
||||||
|
${LIBGCRYPT_INCLUDE_DIRS}
|
||||||
|
${OPENSSL_INCLUDE_DIR}
|
||||||
|
${GEOIP_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${TQT_LIBRARY_DIRS}
|
||||||
|
${TDE_LIB_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### tork (executable)
|
||||||
|
|
||||||
|
tde_add_executable( ${PROJECT_NAME} AUTOMOC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
dcoptork.skel
|
||||||
|
firewallsproxies.ui hiddensrvs.ui hidsrvwizard.ui
|
||||||
|
hitwidget_layout.ui introwizard.ui serverwizard.ui
|
||||||
|
konqueror.ui maxmin.ui mixminion.ui torkview_base.ui
|
||||||
|
newfirstrunwizard.ui paranoia.ui torservers.ui
|
||||||
|
quickconfig.ui running.ui server.ui usability.ui
|
||||||
|
chart.cpp configdialog.cpp crashhandler.cpp
|
||||||
|
crypto.cpp dndlistview.cpp functions.cpp
|
||||||
|
hitwidget.cpp kerrylabel.cpp kwidgetlistbox.cpp
|
||||||
|
likeback.cpp main.cpp newstreamosd.cpp
|
||||||
|
overlayWidget.cpp popupMessage.cpp
|
||||||
|
statgraph.cpp testprivacyproxy.cpp torclient.cpp
|
||||||
|
tork.cpp torkactivelabel.cpp torkconfig.kcfgc
|
||||||
|
torkview.cpp trayhoverpopup.cpp
|
||||||
|
trayicon.cpp update.cpp upnpmanager.cpp
|
||||||
|
LINK
|
||||||
|
tdeio-shared
|
||||||
|
tdehtml-shared
|
||||||
|
tdeui-shared
|
||||||
|
tdecore-shared
|
||||||
|
ktupnp-static
|
||||||
|
${OPENSSL_LIBRARIES}
|
||||||
|
${GEOIP_LIBRARIES}
|
||||||
|
${GNUTLS_LIBRARIES}
|
||||||
|
${LIBGCRYPT_LIBRARIES}
|
||||||
|
|
||||||
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### icons
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES ${PROJECT_NAME}.xpm
|
||||||
|
DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### other data
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES torkui.rc
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||||
|
)
|
||||||
|
|
||||||
|
tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
|
||||||
|
|
||||||
|
tde_create_translated_desktop(
|
||||||
|
SOURCE tork_downloadwithfirefox.desktop
|
||||||
|
tork_downloadwithopera.desktop
|
||||||
|
tork_downloadwithkonqueror.desktop
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
|
||||||
|
)
|
||||||
|
|
||||||
|
tde_create_translated_desktop(
|
||||||
|
SOURCE eventsrc
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES torkconfig.kcfg
|
||||||
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### man page
|
||||||
|
|
||||||
|
INSTALL(
|
||||||
|
FILES ${PROJECT_NAME}.1
|
||||||
|
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||||
|
COMPONENT doc
|
||||||
|
)
|
@ -0,0 +1,2 @@
|
|||||||
|
add_subdirectory( data )
|
||||||
|
add_subdirectory( libGeoIP )
|
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
###### GeoIP data
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES GeoIP.dat GeoIP-LICENSE.txt
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/geoip
|
||||||
|
)
|
@ -0,0 +1,23 @@
|
|||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src
|
||||||
|
${ZLIB_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### geoip (static)
|
||||||
|
|
||||||
|
tde_add_library( geoip STATIC_PIC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
GeoIP.c
|
||||||
|
GeoIPCity.c
|
||||||
|
regionName.c
|
||||||
|
timeZone.c
|
||||||
|
GeoIPUpdate.c
|
||||||
|
md5.c
|
||||||
|
LINK
|
||||||
|
${ZLIB_LIBRARIES}
|
||||||
|
)
|
@ -0,0 +1,41 @@
|
|||||||
|
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}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### torkarkollon (executable)
|
||||||
|
|
||||||
|
tde_add_executable( torkarkollon AUTOMOC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
logdialog.ui
|
||||||
|
wizardbase.ui
|
||||||
|
torkarkollon.cpp
|
||||||
|
wizard.cpp
|
||||||
|
rcparser.cpp
|
||||||
|
uninstallwizard.cpp
|
||||||
|
headerlistitem.cpp
|
||||||
|
data.cpp
|
||||||
|
LINK
|
||||||
|
tdecore-shared
|
||||||
|
|
||||||
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### other data
|
||||||
|
|
||||||
|
INSTALL(
|
||||||
|
FILES torkarkollon.1
|
||||||
|
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||||
|
COMPONENT doc
|
||||||
|
)
|
@ -0,0 +1,3 @@
|
|||||||
|
##### icons hicolor
|
||||||
|
|
||||||
|
tde_install_icons()
|
@ -0,0 +1,41 @@
|
|||||||
|
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}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### tdehtml_tork (kpart)
|
||||||
|
|
||||||
|
tde_add_kpart( tdehtml_tork AUTOMOC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
tork_plug_in.cpp
|
||||||
|
LINK
|
||||||
|
tdehtml-shared
|
||||||
|
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### icons
|
||||||
|
|
||||||
|
tde_install_icons( )
|
||||||
|
|
||||||
|
|
||||||
|
##### other data
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES tork_plug_in.rc
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/tdehtml/kpartplugins
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
tde_create_translated_desktop( tork_plug_in.desktop )
|
@ -0,0 +1,10 @@
|
|||||||
|
##### other data
|
||||||
|
|
||||||
|
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
|
||||||
|
|
||||||
|
configure_file( ${PROJECT_NAME}.cmake ${PROJECT_NAME} @ONLY )
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
|
||||||
|
DESTINATION ${SHARE_INSTALL_PREFIX}/menu
|
||||||
|
)
|
@ -0,0 +1,4 @@
|
|||||||
|
?package(tork):needs="X11" section="Applications/Network/Web Browsing"\
|
||||||
|
title="TorK"\
|
||||||
|
description="An anonymity manager for TDE."\
|
||||||
|
command="@BIN_INSTALL_DIR@/tork" icon="@SHARE_INSTALL_PREFIX@/pixmaps/tork.xpm"
|
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
###### privoxy templates
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES blocked cgi-error-404 cgi-error-bad-param cgi-error-disabled
|
||||||
|
cgi-error-file cgi-error-modified cgi-error-parse
|
||||||
|
cgi-style.css connect-failed default
|
||||||
|
edit-actions-add-url-form edit-actions-for-url
|
||||||
|
edit-actions-for-url-filter edit-actions-list
|
||||||
|
edit-actions-list-section edit-actions-list-url
|
||||||
|
edit-actions-remove-url-form edit-actions-url-form
|
||||||
|
mod-local-help mod-support-and-service mod-title
|
||||||
|
mod-unstable-warning no-such-domain show-request
|
||||||
|
show-status show-status-file show-url-info
|
||||||
|
show-version toggle toggle-mini untrusted
|
||||||
|
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/tork/privoxy/templates
|
||||||
|
)
|
@ -0,0 +1,4 @@
|
|||||||
|
install(
|
||||||
|
PROGRAMS usewithtor
|
||||||
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
|
)
|
@ -0,0 +1,34 @@
|
|||||||
|
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}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### tdeio_torioslave (kpart)
|
||||||
|
|
||||||
|
tde_add_kpart( tdeio_torioslave AUTOMOC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
torioslave.cpp
|
||||||
|
LINK
|
||||||
|
tdecore-shared
|
||||||
|
tdeio-shared
|
||||||
|
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### other data
|
||||||
|
|
||||||
|
tde_create_translated_desktop(
|
||||||
|
SOURCE torioslave.protocol
|
||||||
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
|
)
|
@ -0,0 +1,35 @@
|
|||||||
|
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}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### kickermenu_tork (kpart)
|
||||||
|
|
||||||
|
tde_add_kpart( kickermenu_tork AUTOMOC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
tork_mnu.cpp
|
||||||
|
../functions.cpp
|
||||||
|
LINK
|
||||||
|
tdecore-shared
|
||||||
|
tdeui-shared
|
||||||
|
tdeio-shared
|
||||||
|
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### other data
|
||||||
|
|
||||||
|
tde_create_translated_desktop( torkmenu.desktop
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/kicker/menuext
|
||||||
|
)
|
@ -0,0 +1,28 @@
|
|||||||
|
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}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### ktupnp (static)
|
||||||
|
|
||||||
|
tde_add_library( ktupnp STATIC_PIC AUTOMOC
|
||||||
|
|
||||||
|
SOURCES
|
||||||
|
soap.cpp
|
||||||
|
upnpdescriptionparser.cpp
|
||||||
|
upnpmcastsocket.cpp
|
||||||
|
upnprouter.cpp
|
||||||
|
portlist.cpp
|
||||||
|
httprequest.cpp
|
||||||
|
exitoperation.cpp
|
||||||
|
forwardportlist.cpp
|
||||||
|
)
|
Loading…
Reference in new issue