diff options
Diffstat (limited to 'net-analyzer/yersinia/files')
-rw-r--r-- | net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch | 13 | ||||
-rw-r--r-- | net-analyzer/yersinia/files/yersinia-0.7.3-tinfo.patch | 27 |
2 files changed, 40 insertions, 0 deletions
diff --git a/net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch b/net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch new file mode 100644 index 000000000000..96036dd629e9 --- /dev/null +++ b/net-analyzer/yersinia/files/yersinia-0.7.1-no-ncurses.patch @@ -0,0 +1,13 @@ +--- a/src/terminal.c ++++ b/src/terminal.c +@@ -190,7 +190,9 @@ + #endif + + pthread_mutex_destroy(&terms->admin_listen_th.finished); ++#ifdef HAS_CURSES + pthread_mutex_destroy(&terms->gui_th.finished); ++#endif + pthread_mutex_destroy(&terms->pcap_listen_th.finished); + pthread_mutex_destroy(&terms->uptime_th.finished); + + diff --git a/net-analyzer/yersinia/files/yersinia-0.7.3-tinfo.patch b/net-analyzer/yersinia/files/yersinia-0.7.3-tinfo.patch new file mode 100644 index 000000000000..8a58d01d33c6 --- /dev/null +++ b/net-analyzer/yersinia/files/yersinia-0.7.3-tinfo.patch @@ -0,0 +1,27 @@ +--- a/configure.in ++++ b/configure.in +@@ -467,6 +467,7 @@ + AC_DEFINE(HAVE_REMOTE_ADMIN) + fi + ++PKG_CHECK_MODULES(ncurses,ncurses) + + dnl Curses detection: Munged from Midnight Commander's configure.in + dnl +@@ -616,6 +617,16 @@ + AC_DEFINE(USE_NCURSES) + AC_DEFINE(HAS_CURSES) + has_curses=true ++ else ++ if test "$ncurses_LIBS" ; then ++ CURSES_LIBS="$ncurses_LIBS" ++ CURSES_INCLUDEDIR="$ncurses_CFLAGS" ++ search_ncurses=false ++ screen_manager="ncurses" ++ AC_DEFINE(USE_NCURSES) ++ AC_DEFINE(HAS_CURSES) ++ has_curses=true ++ fi + fi + ) + |