From owner-svn-ports-all@FreeBSD.ORG Thu Apr 18 15:03:16 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D71C9D32; Thu, 18 Apr 2013 15:03:16 +0000 (UTC) (envelope-from wxs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B8386657; Thu, 18 Apr 2013 15:03:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3IF3GKq094572; Thu, 18 Apr 2013 15:03:16 GMT (envelope-from wxs@svn.freebsd.org) Received: (from wxs@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3IF3F3D094564; Thu, 18 Apr 2013 15:03:15 GMT (envelope-from wxs@svn.freebsd.org) Message-Id: <201304181503.r3IF3F3D094564@svn.freebsd.org> From: Wesley Shields Date: Thu, 18 Apr 2013 15:03:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r316046 - in head/net: . vortex vortex/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 15:03:16 -0000 Author: wxs Date: Thu Apr 18 15:03:15 2013 New Revision: 316046 URL: http://svnweb.freebsd.org/changeset/ports/316046 Log: Vortex is a near real time IDS and network surveillance engine for TCP stream data. Vortex decouples packet capture, stream reassembly, and real time constraints from analysis. Vortex is used to provide TCP stream data to a separate analyzer program. Feature safe: yes Added: head/net/vortex/ head/net/vortex/Makefile (contents, props changed) head/net/vortex/distinfo (contents, props changed) head/net/vortex/files/ head/net/vortex/files/patch-vortex.c (contents, props changed) head/net/vortex/files/patch-xpipes.c (contents, props changed) head/net/vortex/pkg-descr (contents, props changed) head/net/vortex/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Thu Apr 18 14:48:31 2013 (r316045) +++ head/net/Makefile Thu Apr 18 15:03:15 2013 (r316046) @@ -1214,6 +1214,7 @@ SUBDIR += vnc SUBDIR += vncreflector SUBDIR += vnstat + SUBDIR += vortex SUBDIR += vserver SUBDIR += vtun SUBDIR += wackamole Added: head/net/vortex/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/vortex/Makefile Thu Apr 18 15:03:15 2013 (r316046) @@ -0,0 +1,35 @@ +# $FreeBSD$ + +PORTNAME= vortex +DISTVERSION= 2.9.0-59 +CATEGORIES= net ipv6 +MASTER_SITES= SF/${PORTNAME}-ids/${PORTNAME}/2.9.0/ +EXTRACT_SUFX= .tgz + +MAINTAINER= wxs@FreeBSD.org +COMMENT= Network surveillance engine + +LICENSE= GPLv2 + +BUILD_DEPENDS= ${LOCALBASE}/lib/libnids.a:${PORTSDIR}/net/libnids \ + ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet + +LIBNET_CONFIG= ${LOCALBASE}/bin/libnet11-config + +WRKSRC= ${WRKDIR}/${PORTNAME}-2.9.0 +USE_GNOME= glib20 + +do-build: + cd ${WRKSRC} && ${CC} -c vortex.c -I${LOCALBASE}/include + cd ${WRKSRC} && ${CC} -o vortex vortex.o -L${LOCALBASE}/lib ${LOCALBASE}/lib/libnids.a `${LIBNET_CONFIG} --libs` -lgthread-2.0 -lpcap + cd ${WRKSRC} && ${CC} -o xpipes xpipes.c ${PTHREAD_LIBS} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/vortex.conf ${PREFIX}/etc/vortex.conf.sample + if [ ! -f ${PREFIX}/etc/vortex.conf ]; then \ + ${CP} -p ${PREFIX}/etc/vortex.conf.sample ${PREFIX}/etc/vortex.conf; \ + fi + ${INSTALL_PROGRAM} ${WRKSRC}/vortex ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/xpipes ${PREFIX}/bin + +.include Added: head/net/vortex/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/vortex/distinfo Thu Apr 18 15:03:15 2013 (r316046) @@ -0,0 +1,2 @@ +SHA256 (vortex-2.9.0-59.tgz) = c2d0ed8eaed374dc5fbbb0e37a32acad82ca224a3ff8377f94f6372837394bbc +SIZE (vortex-2.9.0-59.tgz) = 37693 Added: head/net/vortex/files/patch-vortex.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/vortex/files/patch-vortex.c Thu Apr 18 15:03:15 2013 (r316046) @@ -0,0 +1,30 @@ +--- ./vortex.c.orig 2011-09-16 15:35:15.000000000 -0400 ++++ ./vortex.c 2013-04-18 09:50:33.000000000 -0400 +@@ -38,6 +38,12 @@ + + #ifdef linux + #include ++#elif defined(__FreeBSD__) ++#include ++#include ++typedef cpuset_t cpu_set_t; ++#include ++#define SIZE_MAX SSIZE_MAX + #endif + + #include +@@ -65,8 +71,13 @@ + #endif + + //don't ask me why this isn't in headers? +-#define gettid() syscall(__NR_gettid) ++#ifdef linux + #define my_sched_setaffinity(a,b,c) sched_setaffinity(a, b, c) ++#define gettid() syscall(__NR_gettid) ++#elif defined(__FreeBSD__) ++#define my_sched_setaffinity(a,b,c) (-1) ++#define gettid() 0 ++#endif + + //TODO LIST: + Added: head/net/vortex/files/patch-xpipes.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/vortex/files/patch-xpipes.c Thu Apr 18 15:03:15 2013 (r316046) @@ -0,0 +1,14 @@ +--- ./xpipes.c.orig 2013-04-18 09:50:44.000000000 -0400 ++++ ./xpipes.c 2013-04-18 09:54:21.000000000 -0400 +@@ -37,7 +37,11 @@ + #include + #include + #include ++#ifdef linux + #include ++#elif defined(__FreeBSD__) ++#include ++#endif + #include + #include + Added: head/net/vortex/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/vortex/pkg-descr Thu Apr 18 15:03:15 2013 (r316046) @@ -0,0 +1,4 @@ +Vortex is a near real time IDS and network surveillance engine for TCP stream +data. Vortex decouples packet capture, stream reassembly, and real time +constraints from analysis. Vortex is used to provide TCP stream data to a +separate analyzer program. Added: head/net/vortex/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/vortex/pkg-plist Thu Apr 18 15:03:15 2013 (r316046) @@ -0,0 +1,5 @@ +bin/vortex +bin/xpipes +@unexec if cmp -s %D/etc/vortex.conf.sample %D/etc/vortex.conf; then rm -f %D/etc/vortex.conf; fi +etc/vortex.conf.sample +@exec if [ ! -f %D/etc/vortex.conf ]; then cp -p %D/%F %B/vortex.conf; fi