���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/ukubnwwtacc0unt/chapelbellstudios.com/uploads/cover/wireshark.tar
���ѧ٧ѧ�
FindWireshark.cmake 0000644 00000001570 15204067404 0010313 0 ustar 00 # Locate the Wireshark library. # # This file is meant to be copied into projects that want to use Wireshark. # It will search for WiresharkConfig.cmake, which ships with Wireshark # and will provide up-to-date buildsystem changes. Thus there should not be # any need to update FindWiresharkVc.cmake again after you integrated it into # your project. # # This module defines the following variables: # Wireshark_FOUND # Wireshark_VERSION_MAJOR # Wireshark_VERSION_MINOR # Wireshark_VERSION_PATCH # Wireshark_VERSION # Wireshark_VERSION_STRING # Wireshark_INSTALL_DIR # Wireshark_PLUGIN_INSTALL_DIR # Wireshark_LIB_DIR # Wireshark_LIBRARY # Wireshark_INCLUDE_DIR # Wireshark_CMAKE_MODULES_DIR find_package(Wireshark ${Wireshark_FIND_VERSION} QUIET NO_MODULE PATHS $ENV{HOME} /opt/Wireshark) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Wireshark CONFIG_MODE) WiresharkConfig.cmake 0000644 00000001102 15204067404 0010627 0 ustar 00 set(Wireshark_MAJOR_VERSION "2" ) set(Wireshark_MINOR_VERSION "6" ) set(Wireshark_PATCH_VERSION "2" ) set(Wireshark_VERSION 2.6.2) set(Wireshark_VERSION_STRING "2.6.2") set(Wireshark_INSTALL_DIR "/usr") set(Wireshark_PLUGIN_INSTALL_DIR "/usr/lib64/wireshark/plugins/2.6") set(Wireshark_LIB_DIR "/usr/lib64") set(Wireshark_INCLUDE_DIR "/usr/include/wireshark") set(Wireshark_CMAKE_MODULES_DIR "lib64/wireshark") find_library( Wireshark_LIBRARY NAMES wireshark libwireshark HINTS ${Wireshark_LIB_DIR} PATHS /opt/lib/ /usr/lib64 /usr/lib ) LocatePythonModule.cmake 0000644 00000003662 15204067404 0011336 0 ustar 00 #LOCATE_PYTHON_MODULE(<module> [PATHS <path1> ... <pathN>] [REQUIRED]) # # This function tries to find the given python module. # If found the path is provided in <PY_<module> and <<module>_FOUND> is set to TRUE. # # After PATHS additional paths for python to search can be provided. # When REQUIRED is set, the function will abort the cmake execution is the module is not found function(LOCATE_PYTHON_MODULE module) find_package(PythonInterp) # Parse (additional) arguments set(options REQUIRED) set(multiValueArgs PATHS) cmake_parse_arguments(LPM "${options}" "" "${multiValueArgs}" ${ARGN}) string(TOUPPER ${module} module_upper) if(NOT PY_${module_upper}) if(LPM_PATHS) # Append LPM_PATHS to PYTHONPATH to search at provided location (first) file(TO_CMAKE_PATH "$ENV{PYTHONPATH}" CMAKE_PATH) list(INSERT CMAKE_PATH 0 ${LPM_PATHS}) file(TO_NATIVE_PATH "${CMAKE_PATH}" NATIVE_PATH) if(UNIX) string(REPLACE ";" ":" NATIVE_PATH "${NATIVE_PATH}") endif(UNIX) set(ENV{PYTHONPATH} "${NATIVE_PATH}") endif(LPM_PATHS) # Use the (native) python impl module to find the location of the requested module execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" "import imp; print(imp.find_module('${module}')[1])" RESULT_VARIABLE _${module}_status OUTPUT_VARIABLE _${module}_location ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) if(NOT _${module}_status) set(PY_${module_upper} ${_${module}_location} CACHE STRING "Location of Python module ${module}") set(${module_upper}_FOUND TRUE) message(STATUS "Found python module ${module}: ${PY_${module_upper}}") else(NOT _${module}_status) set(${module_upper}_FOUND FALSE) if(LPM_REQUIRED) message(FATAL_ERROR "Could NOT find python module ${module}") else(LPM_REQUIRED) message(STATUS "Could NOT find python module ${module}") endif(LPM_REQUIRED) endif(NOT _${module}_status) endif(NOT PY_${module_upper}) endfunction(LOCATE_PYTHON_MODULE) FindGLIB2.cmake 0000644 00000005553 15204067404 0007160 0 ustar 00 # # - Try to find the GLIB2 libraries # Once done this will define # # GLIB2_FOUND - system has glib2 # GLIB2_INCLUDE_DIRS - the glib2 include directory # GLIB2_LIBRARIES - glib2 library # GLIB2_DLL_DIR - (Windows) Path to required GLib2 DLLs. # GLIB2_DLLS - (Windows) List of required GLib2 DLLs. # Copyright (c) 2008 Laurent Montel, <montel@kde.org> # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if( GLIB2_MAIN_INCLUDE_DIR AND GLIB2_LIBRARIES ) # Already in cache, be silent set( GLIB2_FIND_QUIETLY TRUE ) endif() include( FindWSWinLibs ) if( ENABLE_GTK3 ) FindWSWinLibs( "gtk3" "GLIB2_HINTS" ) else() FindWSWinLibs( "gtk2" "GLIB2_HINTS" ) endif() if (NOT WIN32) find_package(PkgConfig) if( GLIB2_MIN_VERSION ) pkg_search_module( GLIB2 glib-2.0>=${GLIB2_MIN_VERSION} ) else() pkg_search_module( GLIB2 glib-2.0 ) endif() endif() find_path( GLIB2_MAIN_INCLUDE_DIR NAMES glib.h HINTS "${GLIB2_INCLUDEDIR}" "${GLIB2_HINTS}/include" PATH_SUFFIXES glib-2.0 glib-2.0/include PATHS /opt/gnome/include /opt/local/include /sw/include /usr/include /usr/local/include ) find_library( GLIB2_LIBRARY NAMES glib-2.0 libglib-2.0 HINTS "${GLIB2_LIBDIR}" "${GLIB2_HINTS}/lib" PATHS /opt/gnome/lib64 /opt/gnome/lib /opt/lib/ /opt/local/lib /sw/lib/ /usr/lib64 /usr/lib ) # search the glibconfig.h include dir under the same root where the library is found get_filename_component( glib2LibDir "${GLIB2_LIBRARY}" PATH) find_path( GLIB2_INTERNAL_INCLUDE_DIR NAMES glibconfig.h HINTS "${GLIB2_INCLUDEDIR}" "${glib2LibDir}" ${CMAKE_SYSTEM_LIBRARY_PATH} PATH_SUFFIXES glib-2.0/include PATHS ${GLIB2_LIBRARY} ) include( FindPackageHandleStandardArgs ) find_package_handle_standard_args( GLIB2 DEFAULT_MSG GLIB2_LIBRARY GLIB2_MAIN_INCLUDE_DIR ) if( GLIB2_FOUND ) set( GLIB2_LIBRARIES ${GLIB2_LIBRARY} ) set( GLIB2_INCLUDE_DIRS ${GLIB2_MAIN_INCLUDE_DIR} ${GLIB2_INTERNAL_INCLUDE_DIR} ) if ( WIN32 AND GLIB2_FOUND ) set ( GLIB2_DLL_DIR "${GLIB2_HINTS}/bin" CACHE PATH "Path to GLib 2 DLLs" ) file( GLOB _glib2_dlls RELATIVE "${GLIB2_DLL_DIR}" "${GLIB2_DLL_DIR}/libglib-*.dll" "${GLIB2_DLL_DIR}/libgio-*.dll" "${GLIB2_DLL_DIR}/libgmodule-*.dll" "${GLIB2_DLL_DIR}/libgobject-*.dll" "${GLIB2_DLL_DIR}/libintl-*.dll" "${GLIB2_DLL_DIR}/libgcc_s_*.dll" ) set ( GLIB2_DLLS ${_glib2_dlls} # We're storing filenames only. Should we use STRING instead? CACHE FILEPATH "GLib 2 DLL list" ) mark_as_advanced( GLIB2_DLL_DIR GLIB2_DLLS ) endif() elseif( GLIB2_FIND_REQUIRED ) message( SEND_ERROR "Package required but not found" ) else() set( GLIB2_LIBRARIES ) set( GLIB2_MAIN_INCLUDE_DIRS ) set( GLIB2_DLL_DIR ) set( GLIB2_DLLS ) endif() mark_as_advanced( GLIB2_INCLUDE_DIRS GLIB2_LIBRARIES ) UseAsn2Wrs.cmake 0000644 00000005344 15204067404 0007532 0 ustar 00 # - Convert ASN.1 file into C source and header files that can be used to create a wireshark dissector # # A2W_OUTPUT_DIR - directory where the generated packet-${PROTOCOL_NAME}.c is # saved. The default location is meant for the Wireshark # source tree. For external dissectors, set it to the # absolute path (e.g. "${CMAKE_CURRENT_SOURCE_DIR}"). include(LocatePythonModule) locate_python_module(asn2wrs REQUIRED PATHS "${CMAKE_SOURCE_DIR}/tools") function(ASN2WRS) if(NOT PROTO_OPT) set(PROTO_OPT -p ${PROTOCOL_NAME}) elseif(PROTO_OPT STREQUAL "_EMPTY_") set(PROTO_OPT) endif() if(NOT A2W_OUTPUT_DIR) set(A2W_OUTPUT_DIR "${CMAKE_SOURCE_DIR}/epan/dissectors") endif() set(DISSECTOR "${A2W_OUTPUT_DIR}/packet-${PROTOCOL_NAME}.c") # Besides the file dependency (for timestamp comparison), add a target such # that other directories can request it to be built (ordering dependency). foreach(_v EXTRA_CNF EXPORT_DEPENDS) set(${_v}_targets) foreach(entry IN LISTS ${_v}) string(REGEX MATCH "[^/]+-exp\\.cnf$" _exp_cnf_filename "${entry}") if(_exp_cnf_filename) list(APPEND ${_v}_targets generate-${_exp_cnf_filename}) endif() endforeach() endforeach() # Creates a dissector in the source directory and store the timestamp. add_custom_command( OUTPUT packet-${PROTOCOL_NAME}-stamp COMMAND "${PYTHON_EXECUTABLE}" ${PY_ASN2WRS} ${A2W_FLAGS} ${PROTO_OPT} -c "${CMAKE_CURRENT_SOURCE_DIR}/${PROTOCOL_NAME}.cnf" -s "${CMAKE_CURRENT_SOURCE_DIR}/packet-${PROTOCOL_NAME}-template" -D "${CMAKE_CURRENT_SOURCE_DIR}" -O "${A2W_OUTPUT_DIR}" ${EXT_ASN_FILE_LIST} ${ASN_FILE_LIST} ${EXT_ASN_FILE_LIST_LATE} COMMAND "${PYTHON_EXECUTABLE}" -c "import shutil, sys; x,s,d=sys.argv; open(d, 'w'); shutil.copystat(s, d)" "${A2W_OUTPUT_DIR}/packet-${PROTOCOL_NAME}.c" packet-${PROTOCOL_NAME}-stamp DEPENDS "${PY_ASN2WRS}" ${SRC_FILES} ${EXTRA_CNF_targets} ${EXTRA_CNF} VERBATIM ) add_custom_target(generate_dissector-${PROTOCOL_NAME} ALL DEPENDS packet-${PROTOCOL_NAME}-stamp ) foreach(_asn2wrs_export_file IN LISTS EXPORT_FILES) add_custom_command( OUTPUT ${_asn2wrs_export_file} COMMAND "${PYTHON_EXECUTABLE}" "${PY_ASN2WRS}" -E ${A2W_FLAGS} ${PROTO_OPT} -c "${CMAKE_CURRENT_SOURCE_DIR}/${PROTOCOL_NAME}.cnf" -D "${CMAKE_CURRENT_SOURCE_DIR}" ${EXT_ASN_FILE_LIST} ${ASN_FILE_LIST} ${EXT_ASN_FILE_LIST_LATE} DEPENDS "${PY_ASN2WRS}" ${SRC_FILES} ${EXPORT_DEPENDS_targets} ${EXPORT_DEPENDS} ) # This target enables other dissectors to trigger the -exp cnf build add_custom_target(generate-${_asn2wrs_export_file} DEPENDS ${_asn2wrs_export_file} ) endforeach() endfunction() UseMakePluginReg.cmake 0000644 00000000704 15204067404 0010720 0 ustar 00 # MACRO(REGISTER_PLUGIN_FILES _outputfile _registertype ) include(LocatePythonModule) locate_python_module(make-plugin-reg REQUIRED PATHS ${CMAKE_SOURCE_DIR}/tools) ADD_CUSTOM_COMMAND( OUTPUT ${_outputfile} COMMAND ${PYTHON_EXECUTABLE} ${PY_MAKE-PLUGIN-REG} ${CMAKE_CURRENT_SOURCE_DIR} ${_registertype} ${ARGN} DEPENDS ${ARGN} ${PY_MAKE-PLUGIN-REG} ) ENDMACRO(REGISTER_PLUGIN_FILES) plugins/2.6/wiretap/usbdump.so 0000755 00000027750 15204067404 0012247 0 ustar 00 ELF >