[NEW] net/libdaq: Data Acquisition abstraction library for snort 3.0+

Snort 2.9 introduces the DAQ, or Data Acquisition library,
for packet I/O.  The DAQ replaces direct calls to PCAP functions
with an abstraction layer that facilitates operation on a variety
of hardware and software interfaces without requiring changes
to Snort.  It is possible to select the DAQ type and mode
when invoking Snort to perform PCAP readback or inline operation, etc.

The DAQ library may be useful for other packet processing applications
and the modular nature allows you to build new modules for other
platforms.

This version is not compatible with Snort 2.X.

WWW: http://www.snort.org/
This commit is contained in:
Muhammad Moinur Rahman 2019-07-31 11:02:19 +00:00
parent c5f7a50a9d
commit de14f6fa57
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=507706
6 changed files with 81 additions and 0 deletions

View file

@ -342,6 +342,7 @@
SUBDIR += libcapn
SUBDIR += libcmis
SUBDIR += libcoap
SUBDIR += libdaq
SUBDIR += libdmapsharing
SUBDIR += libdnet
SUBDIR += libexosip2

View file

@ -28,6 +28,8 @@ MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFLICTS= libdaq-3*
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.* ${STAGEDIR}${PREFIX}/lib/daq/*.so

28
net/libdaq/Makefile Normal file
View file

@ -0,0 +1,28 @@
# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org>
# $FreeBSD$
PORTNAME= libdaq
DISTVERSIONPREFIX= v
DISTVERSION= 3.0.0-alpha1
CATEGORIES= net
MAINTAINER= bofh@FreeBSD.org
COMMENT= Data Acquisition abstraction library for snort 3.0+
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpcap.so:net/libpcap # avoid base libpcap
USES= autoreconf libtool pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= snort3
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
CONFLICTS= daq-2*
.include <bsd.port.mk>

3
net/libdaq/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1563994415
SHA256 (snort3-libdaq-v3.0.0-alpha1_GH0.tar.gz) = 0ede444bdda671fc0a08400b5b7607f80cee20a70a3577263faf28fd28dff734
SIZE (snort3-libdaq-v3.0.0-alpha1_GH0.tar.gz) = 150809

14
net/libdaq/pkg-descr Normal file
View file

@ -0,0 +1,14 @@
Snort 2.9 introduces the DAQ, or Data Acquisition library,
for packet I/O. The DAQ replaces direct calls to PCAP functions
with an abstraction layer that facilitates operation on a variety
of hardware and software interfaces without requiring changes
to Snort. It is possible to select the DAQ type and mode
when invoking Snort to perform PCAP readback or inline operation, etc.
The DAQ library may be useful for other packet processing applications
and the modular nature allows you to build new modules for other
platforms.
This version is not compatible with Snort 2.X.
WWW: http://www.snort.org/

33
net/libdaq/pkg-plist Normal file
View file

@ -0,0 +1,33 @@
bin/daqtest
bin/daqtest-static
include/daq.h
include/daq_common.h
include/daq_dlt.h
include/daq_module_api.h
include/daq_version.h
lib/daq/daq_bpf.so
lib/daq/daq_divert.so
lib/daq/daq_dump.so
lib/daq/daq_fst.so
lib/daq/daq_netmap.so
lib/daq/daq_pcap.so
lib/daq/daq_trace.so
lib/libdaq.a
lib/libdaq.so
lib/libdaq.so.3
lib/libdaq.so.3.0.0
lib/libdaq_static_bpf.a
lib/libdaq_static_divert.a
lib/libdaq_static_dump.a
lib/libdaq_static_fst.a
lib/libdaq_static_netmap.a
lib/libdaq_static_pcap.a
lib/libdaq_static_trace.a
libdata/pkgconfig/libdaq.pc
libdata/pkgconfig/libdaq_static_bpf.pc
libdata/pkgconfig/libdaq_static_divert.pc
libdata/pkgconfig/libdaq_static_dump.pc
libdata/pkgconfig/libdaq_static_fst.pc
libdata/pkgconfig/libdaq_static_netmap.pc
libdata/pkgconfig/libdaq_static_pcap.pc
libdata/pkgconfig/libdaq_static_trace.pc