]> git.pld-linux.org Git - packages/ettercap.git/blob - ettercap-link.patch
rebuild with openssl 3.0.0
[packages/ettercap.git] / ettercap-link.patch
1 --- ettercap-0.8.3/src/interfaces/CMakeLists.txt.orig   2019-06-28 01:19:16.000000000 +0200
2 +++ ettercap-0.8.3/src/interfaces/CMakeLists.txt        2020-05-23 19:59:18.055324887 +0200
3 @@ -109,5 +109,5 @@
4    VERSION ${VERSION}
5    SOVERSION 0
6    )
7 -target_link_libraries(ec_interfaces ${EC_INTERFACES_LIBS} ${EC_LIBS})
8 +target_link_libraries(ec_interfaces ${EC_INTERFACES_LIBS} lib_ettercap ${EC_LIBS})
9  install(TARGETS ec_interfaces DESTINATION ${INSTALL_LIBDIR})
10 --- ettercap-0.8.3/src/CMakeLists.txt.orig      2019-06-28 01:19:16.000000000 +0200
11 +++ ettercap-0.8.3/src/CMakeLists.txt   2020-05-23 20:10:25.768374241 +0200
12 @@ -190,7 +190,7 @@
13  
14  add_library(lib_ettercap SHARED ${EC_SRC})
15  add_dependencies(lib_ettercap libnet)
16 -target_link_libraries(lib_ettercap ec_interfaces ${EC_LIBS})
17 +target_link_libraries(lib_ettercap ${EC_LIBS})
18  
19  if(NOT LIBRARY_BUILD)
20    add_subdirectory(interfaces)
21 @@ -199,7 +199,7 @@
22      include_directories(interfaces/curses interfaces/curses/widgets)
23    endif()
24    add_executable(ettercap ec_parser.c ec_main.c)
25 -  target_link_libraries(ettercap lib_ettercap ${EC_LIBS})
26 +  target_link_libraries(ettercap ec_interfaces lib_ettercap ${EC_LIBS})
27    if(NOT DISABLE_RPATH)
28      set_target_properties(ettercap PROPERTIES
29      INSTALL_RPATH ${INSTALL_LIBDIR})
30 --- ettercap-0.8.3/utils/CMakeLists.txt.orig    2019-06-28 01:19:17.000000000 +0200
31 +++ ettercap-0.8.3/utils/CMakeLists.txt 2020-05-23 20:23:46.770701506 +0200
32 @@ -20,7 +20,7 @@
33  include_directories(${CMAKE_CURRENT_BINARY_DIR})
34  
35  add_executable(etterfilter ${EF_SRC} ${FLEX_EF_SCANNER_OUTPUTS} ${BISON_EF_PARSER_OUTPUTS})
36 -target_link_libraries(etterfilter lib_ettercap)
37 +target_link_libraries(etterfilter ec_interfaces lib_ettercap)
38  if(NOT DISABLE_RPATH)
39    set_target_properties(etterfilter PROPERTIES INSTALL_RPATH ${INSTALL_LIBDIR})
40  endif()
41 @@ -42,7 +42,7 @@
42  )
43  
44  add_executable(etterlog ${EL_SRC})
45 -target_link_libraries(etterlog lib_ettercap)
46 +target_link_libraries(etterlog ec_interfaces lib_ettercap)
47  
48  if(NOT DISABLE_RPATH)
49    set_target_properties(etterlog PROPERTIES INSTALL_RPATH ${INSTALL_LIBDIR})
50 --- ettercap-0.8.3/cmake/Modules/EttercapLibCheck.cmake.orig    2019-06-28 01:19:16.000000000 +0200
51 +++ ettercap-0.8.3/cmake/Modules/EttercapLibCheck.cmake 2020-05-23 21:00:24.582128273 +0200
52 @@ -189,7 +189,7 @@
53      check_library_exists(bsd strlcat "bsd/string.h" HAVE_STRLCAT)
54      check_library_exists(bsd strlcpy "bsd/string.h" HAVE_STRLCPY)
55      if(HAVE_STRLCAT OR HAVE_STRLCPY)
56 -        set(EC_INTERFACES_LIBS ${EC_INTERFACES_LIBS} bsd)
57 +        set(EC_LIBS ${EC_LIBS} bsd)
58      endif()
59  endif()
60  
61 @@ -202,7 +202,7 @@
62  
63  find_library(HAVE_PCAP pcap)
64  if(HAVE_PCAP)
65 -    set(EC_INTERFACES_LIBS ${EC_INTERFACES_LIBS} ${HAVE_PCAP})
66 +    set(EC_LIBS ${EC_LIBS} ${HAVE_PCAP})
67  else()
68      message(FATAL_ERROR "libpcap not found!")
69  endif()
This page took 0.081441 seconds and 3 git commands to generate.