diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/daq/DESCR | 7 | ||||
-rw-r--r-- | net/daq/Makefile | 19 | ||||
-rw-r--r-- | net/daq/PLIST | 14 | ||||
-rw-r--r-- | net/daq/buildlink3.mk | 13 | ||||
-rw-r--r-- | net/daq/distinfo | 6 | ||||
-rw-r--r-- | net/daq/patches/patch-sfbpf_Makefile.am | 16 |
6 files changed, 75 insertions, 0 deletions
diff --git a/net/daq/DESCR b/net/daq/DESCR new file mode 100644 index 00000000000..c288751dab9 --- /dev/null +++ b/net/daq/DESCR @@ -0,0 +1,7 @@ +Snort 2.9 introduces the DAQ, or Data Acquisition library, for packet I/O. The +DAQ replaces direct calls to libpcap 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. diff --git a/net/daq/Makefile b/net/daq/Makefile new file mode 100644 index 00000000000..4b7701fa32d --- /dev/null +++ b/net/daq/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2017/05/18 18:57:20 nils Exp $ + +DISTNAME= daq-2.0.6 +CATEGORIES= net security +MASTER_SITES= https://snort.org/downloads/snort/ + +MAINTAINER= nils@NetBSD.org +HOMEPAGE= http://www.snort.org/ +COMMENT= Abstraction layer for libpcap +LICENSE= gnu-gpl-v2 + +BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison +.include "../../net/libdnet/buildlink3.mk" + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes + +.include "../../net/libpcap/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/daq/PLIST b/net/daq/PLIST new file mode 100644 index 00000000000..6024d6aff2a --- /dev/null +++ b/net/daq/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1 2017/05/18 18:57:20 nils Exp $ +bin/daq-modules-config +include/daq.h +include/daq_api.h +include/daq_common.h +include/sfbpf.h +include/sfbpf_dlt.h +lib/daq/daq_dump.la +lib/daq/daq_ipfw.la +lib/daq/daq_pcap.la +lib/libdaq.la +lib/libdaq_static.la +lib/libdaq_static_modules.la +lib/libsfbpf.la diff --git a/net/daq/buildlink3.mk b/net/daq/buildlink3.mk new file mode 100644 index 00000000000..a547b974e8c --- /dev/null +++ b/net/daq/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2017/05/18 18:57:20 nils Exp $ + +BUILDLINK_TREE+= daq + +.if !defined(DAQ_BUILDLINK3_MK) +DAQ_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.daq+= daq>=2.0.0 +BUILDLINK_ABI_DEPENDS.daq+= daq>=2.0.0 +BUILDLINK_PKGSRCDIR.daq?= ../../net/daq +.endif # DAQ_BUILDLINK3_MK + +BUILDLINK_TREE+= -daq diff --git a/net/daq/distinfo b/net/daq/distinfo new file mode 100644 index 00000000000..9d84073518a --- /dev/null +++ b/net/daq/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/05/18 18:57:20 nils Exp $ + +SHA1 (daq-2.0.6.tar.gz) = ec0ebfcd4568a3e4e58c774982c808c414dd71bc +RMD160 (daq-2.0.6.tar.gz) = cf3a9df96829f63324a44dae5f2248d835e6ac4d +Size (daq-2.0.6.tar.gz) = 514687 bytes +SHA1 (patch-sfbpf_Makefile.am) = 200e15424d2a6e8b5ec4f78b92c2203ae63726b6 diff --git a/net/daq/patches/patch-sfbpf_Makefile.am b/net/daq/patches/patch-sfbpf_Makefile.am new file mode 100644 index 00000000000..417ff22dc5e --- /dev/null +++ b/net/daq/patches/patch-sfbpf_Makefile.am @@ -0,0 +1,16 @@ +$NetBSD: patch-sfbpf_Makefile.am,v 1.1 2017/05/18 18:57:21 nils Exp $ + +tokdefs.h is created but after checkinf of this file existence. +Patch from MacPorts waiting to get upstream : +https://trac.macports.org/ticket/45159 + +--- sfbpf/Makefile.am.orig 2015-04-01 18:56:48.000000000 +0000 ++++ sfbpf/Makefile.am +@@ -51,6 +51,7 @@ sf_scanner.o: sf_scanner.c tokdefs.h + + tokdefs.h: sf_grammar.c + sf_grammar.c: $(srcdir)/grammar.y ++ sleep 5 + @rm -f sf_grammar.c tokdefs.h + $(V_YACC) -d $(srcdir)/grammar.y + mv y.tab.c sf_grammar.c |