diff --git a/net/Makefile b/net/Makefile index afe421933c95..b3dcdccd0ff8 100644 --- a/net/Makefile +++ b/net/Makefile @@ -342,6 +342,7 @@ SUBDIR += libcapn SUBDIR += libcmis SUBDIR += libcoap + SUBDIR += libdaq SUBDIR += libdmapsharing SUBDIR += libdnet SUBDIR += libexosip2 diff --git a/net/daq/Makefile b/net/daq/Makefile index d957e62f9023..17d47b5d6467 100644 --- a/net/daq/Makefile +++ b/net/daq/Makefile @@ -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 diff --git a/net/libdaq/Makefile b/net/libdaq/Makefile new file mode 100644 index 000000000000..9373ef20a5e1 --- /dev/null +++ b/net/libdaq/Makefile @@ -0,0 +1,28 @@ +# Created by: Muhammad Moinur Rahman +# $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 diff --git a/net/libdaq/distinfo b/net/libdaq/distinfo new file mode 100644 index 000000000000..85537000bcde --- /dev/null +++ b/net/libdaq/distinfo @@ -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 diff --git a/net/libdaq/pkg-descr b/net/libdaq/pkg-descr new file mode 100644 index 000000000000..c781c5b3d33a --- /dev/null +++ b/net/libdaq/pkg-descr @@ -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/ diff --git a/net/libdaq/pkg-plist b/net/libdaq/pkg-plist new file mode 100644 index 000000000000..9a82c3fddbf9 --- /dev/null +++ b/net/libdaq/pkg-plist @@ -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