diff options
author | Jeroen Roovers <jer@gentoo.org> | 2014-07-17 22:05:38 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2014-07-17 22:05:38 +0000 |
commit | 99670e15d20e3a8ba862150b75243ecc04f9026b (patch) | |
tree | 6a6566f7c49d6c67d84bd05d957fedd71a555a58 /net-analyzer/traceproto/files | |
parent | Don't use pic on no-multlib amd64 profile (hardened) (diff) | |
download | gentoo-2-99670e15d20e3a8ba862150b75243ecc04f9026b.tar.gz gentoo-2-99670e15d20e3a8ba862150b75243ecc04f9026b.tar.bz2 gentoo-2-99670e15d20e3a8ba862150b75243ecc04f9026b.zip |
EAPI bump. Undo patch that makes sys-libs/ncurses optional. Fix building against sys-libs/ncurses[tinfo].
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/traceproto/files')
3 files changed, 17 insertions, 171 deletions
diff --git a/net-analyzer/traceproto/files/traceproto-1.1.1-fix-warnings.diff b/net-analyzer/traceproto/files/traceproto-1.1.1-fix-warnings.diff deleted file mode 100644 index 1882436fd3bf..000000000000 --- a/net-analyzer/traceproto/files/traceproto-1.1.1-fix-warnings.diff +++ /dev/null @@ -1,59 +0,0 @@ -diff -urN traceproto-1.1.1.orig/tp_packet.c traceproto-1.1.1/tp_packet.c ---- traceproto-1.1.1.orig/tp_packet.c 2005-01-31 01:03:57.248742848 -0500 -+++ traceproto-1.1.1/tp_packet.c 2005-01-31 01:06:39.184124928 -0500 -@@ -103,7 +103,7 @@ - state.low_ttl = YES; - - // tcp_hdr = ( struct libnet_tcp_hdr * ) & raw_packet[ 0 ]; -- tcp_hdr = ( struct libnet_tcp_hdr * ) tp_align ( raw_packet, -+ tcp_hdr = ( struct libnet_tcp_hdr * ) tp_align ( (char *)raw_packet, - 0, - sizeof ( struct libnet_tcp_hdr ) ); - -@@ -165,7 +165,7 @@ - state.low_ttl = YES; - - // udp_hdr = ( struct libnet_udp_hdr * ) & raw_packet[ 0 ]; -- udp_hdr = ( struct libnet_udp_hdr * ) tp_align ( raw_packet, -+ udp_hdr = ( struct libnet_udp_hdr * ) tp_align ( (char *)raw_packet, - 0, - sizeof ( struct libnet_udp_hdr ) ); - -@@ -268,12 +268,12 @@ - * off of the packet - */ - // eth_hdr = ( struct libnet_802_3_hdr * ) raw_packet; -- eth_hdr = ( struct libnet_802_3_hdr * ) tp_align ( raw_packet, -+ eth_hdr = ( struct libnet_802_3_hdr * ) tp_align ( (char *)raw_packet, - 0, - sizeof ( struct libnet_802_3_hdr ) ); - - // state.ip_hdr = ( struct libnet_ipv4_hdr * ) & raw_packet[ eth_offset ]; -- state.ip_hdr = ( struct libnet_ipv4_hdr * ) tp_align ( raw_packet, -+ state.ip_hdr = ( struct libnet_ipv4_hdr * ) tp_align ( (char *)raw_packet, - eth_offset, - sizeof ( struct libnet_ipv4_hdr ) ); - -@@ -294,19 +294,19 @@ - { - case IPPROTO_ICMP: - // return parse_icmp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] ); -- return parse_icmp_packet ( ( const u_char * ) tp_align ( raw_packet, -+ return parse_icmp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet, - ipv4_offset, - sizeof ( struct libnet_icmpv4_hdr ) ) ); - break; - case IPPROTO_TCP: - // return parse_tcp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] ); -- return parse_tcp_packet ( ( const u_char * ) tp_align ( raw_packet, -+ return parse_tcp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet, - ipv4_offset, - sizeof ( struct libnet_tcp_hdr ) ) ); - break; - case IPPROTO_UDP: - // return parse_udp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] ); -- return parse_udp_packet ( ( const u_char * ) tp_align ( raw_packet, -+ return parse_udp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet, - ipv4_offset, - sizeof ( struct libnet_udp_hdr ) ) ); - break; diff --git a/net-analyzer/traceproto/files/traceproto-1.1.2_beta1-tinfo.patch b/net-analyzer/traceproto/files/traceproto-1.1.2_beta1-tinfo.patch new file mode 100644 index 000000000000..383daaefd78b --- /dev/null +++ b/net-analyzer/traceproto/files/traceproto-1.1.2_beta1-tinfo.patch @@ -0,0 +1,17 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -182,9 +182,11 @@ + AC_CHECK_LIB(pcap, pcap_open_live, , AC_MSG_ERROR([ERROR - pcap check failed])) + AC_CHECK_LIB(net, libnet_init, , AC_MSG_ERROR([ERROR - libnet check failed])) + AC_CHECK_LIB(cap, cap_init, , AC_MSG_WARN([libcap check failed])) +-AC_CHECK_LIB(ncurses, initscr, , AC_MSG_WARN([ncurses check failed])) +-AC_CHECK_LIB(curses, initscr, , AC_MSG_WARN([curses check failed])) +-AC_CHECK_LIB(termcap, tgetent) ++PKG_CHECK_MODULES(ncurses,ncurses, ++ LIBS="$LIBS $ncurses_LIBS" ++ AC_DEFINE([HAVE_NCURSES_H], 1, [We have ncurses headers]) ++ AC_DEFINE([HAVE_LIBNCURSES], 1, [We have ncurses libraries]), ++ AC_MSG_ERROR([ncurses check failed])) + if test "x$dmalloc_test" = "xyes"; then + AC_CHECK_LIB(dmalloc, malloc, ,AC_MSG_RESULT([dmalloc unavailable])) + fi diff --git a/net-analyzer/traceproto/files/traceproto-1.1.2_beta1.patch b/net-analyzer/traceproto/files/traceproto-1.1.2_beta1.patch deleted file mode 100644 index ba111e6391b3..000000000000 --- a/net-analyzer/traceproto/files/traceproto-1.1.2_beta1.patch +++ /dev/null @@ -1,112 +0,0 @@ -diff -ru traceproto-1.1.2beta1~/configure.ac traceproto-1.1.2beta1/configure.ac ---- traceproto-1.1.2beta1~/configure.ac 2006-12-17 16:36:48.000000000 +0100 -+++ traceproto-1.1.2beta1/configure.ac 2006-12-17 17:08:01.000000000 +0100 -@@ -167,11 +167,20 @@ - AC_ARG_ENABLE([dmalloc], - [[ --enable-dmalloc Use the dmalloc library for debugging]], - [ -- dmalloc_test=yes -- AC_MSG_RESULT([requested]) -+ dmalloc_test=$enableval - ], - [ -- AC_MSG_RESULT([not requested]) -+ dmalloc_test=no -+ ] -+) -+AC_MSG_CHECKING(for ncurses) -+AC_ARG_ENABLE([ncurses], -+ [[ --enable-ncurses Use the ncurses library]], -+ [ -+ ncurses_test=$enableval -+ ], -+ [ -+ ncurses_test=no - ] - ) - -@@ -182,8 +191,10 @@ - AC_CHECK_LIB(pcap, pcap_open_live, , AC_MSG_ERROR([ERROR - pcap check failed])) - AC_CHECK_LIB(net, libnet_init, , AC_MSG_ERROR([ERROR - libnet check failed])) - AC_CHECK_LIB(cap, cap_init, , AC_MSG_WARN([libcap check failed])) --AC_CHECK_LIB(ncurses, initscr, , AC_MSG_WARN([ncurses check failed])) --AC_CHECK_LIB(curses, initscr, , AC_MSG_WARN([curses check failed])) -+if test "x$ncurses_test" = "xyes"; then -+ AC_CHECK_LIB(ncurses, initscr, , AC_MSG_WARN([ncurses check failed])) -+ AC_CHECK_LIB(curses, initscr, , AC_MSG_WARN([curses check failed])) -+fi - AC_CHECK_LIB(termcap, tgetent) - if test "x$dmalloc_test" = "xyes"; then - AC_CHECK_LIB(dmalloc, malloc, ,AC_MSG_RESULT([dmalloc unavailable])) -@@ -191,8 +202,10 @@ - - # Checks for header files. - AC_HEADER_STDC --AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/time.h unistd.h ncurses.h]) --AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h curses.h]) -+AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/time.h unistd.h]) -+if test "x$ncurses_test" = "xyes"; then -+ AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h curses.h]) -+fi - if test "x$dmalloc_test" = "xyes"; then - AC_CHECK_HEADERS([dmalloc.h]) - fi -diff -ru traceproto-1.1.2beta1~/tp_packet.c traceproto-1.1.2beta1/tp_packet.c ---- traceproto-1.1.2beta1~/tp_packet.c 2006-12-17 16:36:48.000000000 +0100 -+++ traceproto-1.1.2beta1/tp_packet.c 2006-12-17 16:39:50.000000000 +0100 -@@ -104,7 +104,7 @@ - state.low_ttl = YES; - - /* tcp_hdr = ( struct libnet_tcp_hdr * ) & raw_packet[ 0 ]; */ -- tcp_hdr = ( struct libnet_tcp_hdr * ) tp_align ( raw_packet, -+ tcp_hdr = ( struct libnet_tcp_hdr * ) tp_align ( (char *)raw_packet, - 0, - sizeof ( struct libnet_tcp_hdr ) ); - -@@ -171,7 +171,7 @@ - state.low_ttl = YES; - - /* udp_hdr = ( struct libnet_udp_hdr * ) & raw_packet[ 0 ]; */ -- udp_hdr = ( struct libnet_udp_hdr * ) tp_align ( raw_packet, -+ udp_hdr = ( struct libnet_udp_hdr * ) tp_align ( (char *)raw_packet, - 0, - sizeof ( struct libnet_udp_hdr ) ); - -@@ -289,12 +289,12 @@ - * off of the packet - */ - /* eth_hdr = ( struct libnet_802_3_hdr * ) raw_packet; */ -- eth_hdr = ( struct libnet_802_3_hdr * ) tp_align ( raw_packet, -+ eth_hdr = ( struct libnet_802_3_hdr * ) tp_align ( (char *)raw_packet, - 0, - sizeof ( struct libnet_802_3_hdr ) ); - - /* state.ip_hdr = ( struct libnet_ipv4_hdr * ) & raw_packet[ eth_offset ]; */ -- state.ip_hdr = ( struct libnet_ipv4_hdr * ) tp_align ( raw_packet, -+ state.ip_hdr = ( struct libnet_ipv4_hdr * ) tp_align ( (char *)raw_packet, - eth_offset, - sizeof ( struct libnet_ipv4_hdr ) ); - -@@ -315,19 +315,19 @@ - { - case IPPROTO_ICMP: - /* return parse_icmp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] ); */ -- return parse_icmp_packet ( ( const u_char * ) tp_align ( raw_packet, -+ return parse_icmp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet, - ipv4_offset, - sizeof ( struct libnet_icmpv4_hdr ) ) ); - break; - case IPPROTO_TCP: - /* return parse_tcp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] ); */ -- return parse_tcp_packet ( ( const u_char * ) tp_align ( raw_packet, -+ return parse_tcp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet, - ipv4_offset, - sizeof ( struct libnet_tcp_hdr ) ) ); - break; - case IPPROTO_UDP: - /* return parse_udp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] ); */ -- return parse_udp_packet ( ( const u_char * ) tp_align ( raw_packet, -+ return parse_udp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet, - ipv4_offset, - sizeof ( struct libnet_udp_hdr ) ) ); - break; |