Index: head/net/tcpflow/Makefile =================================================================== --- head/net/tcpflow/Makefile (revision 334650) +++ head/net/tcpflow/Makefile (revision 334651) @@ -1,39 +1,35 @@ # Created by: Jose M. Alcaide # $FreeBSD$ PORTNAME= tcpflow -PORTVERSION= 1.4.0 +PORTVERSION= 1.4.2 CATEGORIES= net MASTER_SITES= http://www.digitalcorpora.org/downloads/${PORTNAME}/ MAINTAINER= antoine@FreeBSD.org COMMENT= Program that captures data transmitted as part of TCP connections LICENSE= GPLv3 BUILD_DEPENDS= ${LOCALBASE}/include/boost/icl/interval.hpp:${PORTSDIR}/devel/boost-libs LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo +USE_OPENSSL= yes GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PLIST_FILES= bin/tcpflow man/man1/tcpflow.1.gz PORTDOCS= AUTHORS ChangeLog NEWS README OPTIONS_DEFINE= DOCS .include - -.if ${ARCH} == i386 && ! ${CFLAGS:M-march=*} -# Needed for __sync_add_and_fetch_8 -CFLAGS+= -march=i586 -.endif post-install: .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .endif .include Index: head/net/tcpflow/distinfo =================================================================== --- head/net/tcpflow/distinfo (revision 334650) +++ head/net/tcpflow/distinfo (revision 334651) @@ -1,2 +1,2 @@ -SHA256 (tcpflow-1.4.0.tar.gz) = e177ccca0e683ffd3311317e9062b7d1116be45a8d7b2a92e7896c26a49997e1 -SIZE (tcpflow-1.4.0.tar.gz) = 407046 +SHA256 (tcpflow-1.4.2.tar.gz) = afe55ee4aba76a156120b80f6bacbd981ea1772022b4e811433cac29bc7797de +SIZE (tcpflow-1.4.2.tar.gz) = 434157 Index: head/net/tcpflow/files/patch-src__tcpdemux.h =================================================================== --- head/net/tcpflow/files/patch-src__tcpdemux.h (revision 334650) +++ head/net/tcpflow/files/patch-src__tcpdemux.h (nonexistent) @@ -1,39 +0,0 @@ ---- ./src/tcpdemux.h.orig 2013-05-27 22:28:50.000000000 +0000 -+++ ./src/tcpdemux.h 2013-09-07 22:32:29.000000000 +0000 -@@ -20,8 +20,18 @@ - #include "pcap_writer.h" - #include "dfxml/src/dfxml_writer.h" - #include "dfxml/src/hash_t.h" -+#ifdef __clang__ -+#if __has_include() -+#define HAVE_CXX11_UNORDERED_SET 1 -+#endif -+#endif -+#ifdef HAVE_CXX11_UNORDERED_SET -+#include -+#include -+#else - #include - #include -+#endif - #include - - -@@ -53,10 +63,17 @@ - bool operator() (const flow_addr &x, const flow_addr &y) const { return x==y;} - } flow_addr_key_eq; - -+#ifdef HAVE_CXX11_UNORDERED_SET -+ typedef std::unordered_set tcpset; -+ typedef std::vector saved_flows_t; // needs to be ordered -+ typedef std::unordered_map flow_map_t; // active flows -+ typedef std::unordered_map saved_flow_map_t; // flows that have been saved -+#else - typedef std::tr1::unordered_set tcpset; - typedef std::vector saved_flows_t; // needs to be ordered - typedef std::tr1::unordered_map flow_map_t; // active flows - typedef std::tr1::unordered_map saved_flow_map_t; // flows that have been saved -+#endif - tcpdemux(); - public: - static uint32_t tcp_timeout; Property changes on: head/net/tcpflow/files/patch-src__tcpdemux.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/tcpflow/files/patch-src__be13_api__plugin.cpp =================================================================== --- head/net/tcpflow/files/patch-src__be13_api__plugin.cpp (revision 334650) +++ head/net/tcpflow/files/patch-src__be13_api__plugin.cpp (nonexistent) @@ -1,48 +0,0 @@ ---- ./src/be13_api/plugin.cpp.orig 2013-08-03 16:58:46.000000000 +0000 -+++ ./src/be13_api/plugin.cpp 2013-09-07 22:32:02.000000000 +0000 -@@ -9,7 +9,16 @@ - #include - #include - #include -+#ifdef __clang__ -+#if __has_include() -+#define HAVE_CXX11_UNORDERED_SET 1 -+#endif -+#endif -+#ifdef HAVE_CXX11_UNORDERED_SET -+#include -+#else - #include -+#endif - #ifdef HAVE_ERR_H - #include - #endif -@@ -23,20 +32,28 @@ - #include "../dfxml/src/hash_t.h" - - namespace std { -+#ifndef HAVE_CXX11_UNORDERED_SET - namespace tr1 { -+#endif - template<> - struct hash { - size_t operator()(const md5_t &key) const { - return *(size_t *)(key.final()); - } - }; -+#ifndef HAVE_CXX11_UNORDERED_SET - } -+#endif - } - - class atomic_hash_set - { - cppmutex M; -+#ifdef HAVE_CXX11_UNORDERED_SET -+ std::unordered_setmyset; -+#else - std::tr1::unordered_setmyset; -+#endif - public: - atomic_hash_set():M(),myset(){} - bool in(const md5_t &s){ Property changes on: head/net/tcpflow/files/patch-src__be13_api__plugin.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/tcpflow/files/patch-src__wifipcap__wifipcap.cpp =================================================================== --- head/net/tcpflow/files/patch-src__wifipcap__wifipcap.cpp (nonexistent) +++ head/net/tcpflow/files/patch-src__wifipcap__wifipcap.cpp (revision 334651) @@ -0,0 +1,16 @@ +--- ./src/wifipcap/wifipcap.cpp.orig 2013-11-18 02:20:51.000000000 +0000 ++++ ./src/wifipcap/wifipcap.cpp 2013-11-22 21:47:50.000000000 +0000 +@@ -2213,6 +2213,13 @@ + const char *Wifipcap::SetFilter(const char *filter) + { + struct bpf_program fp; ++/* ++ * libpcap from FreeBSD 8 does not have PCAP_NETMASK_UNKNOWN ++ * According to pcap_compile(3) a value of 0 can be supplied ++ */ ++#ifndef PCAP_NETMASK_UNKNOWN ++#define PCAP_NETMASK_UNKNOWN 0 ++#endif + bpf_u_int32 netp=PCAP_NETMASK_UNKNOWN; + + if(pcap_compile(descr,&fp,(char *)filter,0,netp) == -1) { Property changes on: head/net/tcpflow/files/patch-src__wifipcap__wifipcap.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property