pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import daq-2.0.6 as wip/daq.



Module Name:	pkgsrc-wip
Committed By:	Nils Ratusznik <nils%NetBSD.org@localhost>
Pushed By:	nils
Date:		Sat Aug 6 13:04:46 2016 +0200
Changeset:	793fdafc82956d303073bab0e00a76f9eaa0a501

Added Files:
	daq/DESCR
	daq/Makefile
	daq/PLIST
	daq/buildlink3.mk
	daq/distinfo
	daq/patches/patch-sfbpf_Makefile.am

Log Message:
Import daq-2.0.6 as wip/daq.

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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=793fdafc82956d303073bab0e00a76f9eaa0a501

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 daq/DESCR                           |  7 +++++++
 daq/Makefile                        | 19 +++++++++++++++++++
 daq/PLIST                           | 14 ++++++++++++++
 daq/buildlink3.mk                   | 13 +++++++++++++
 daq/distinfo                        |  6 ++++++
 daq/patches/patch-sfbpf_Makefile.am | 16 ++++++++++++++++
 6 files changed, 75 insertions(+)

diffs:
diff --git a/daq/DESCR b/daq/DESCR
new file mode 100644
index 0000000..c288751
--- /dev/null
+++ b/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/daq/Makefile b/daq/Makefile
new file mode 100644
index 0000000..f83ee88
--- /dev/null
+++ b/daq/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME=	daq-2.0.6
+CATEGORIES=	net security
+MASTER_SITES=	https://snort.org/downloads/snort/
+
+MAINTAINER=	nils%NetBSD.org@localhost
+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/daq/PLIST b/daq/PLIST
new file mode 100644
index 0000000..ab35fe4
--- /dev/null
+++ b/daq/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD$
+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/daq/buildlink3.mk b/daq/buildlink3.mk
new file mode 100644
index 0000000..de92028
--- /dev/null
+++ b/daq/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.8 2012/05/07 01:53:52 dholland 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?=	../../wip/daq
+.endif # DAQ_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-daq
diff --git a/daq/distinfo b/daq/distinfo
new file mode 100644
index 0000000..e72a167
--- /dev/null
+++ b/daq/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+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/daq/patches/patch-sfbpf_Makefile.am b/daq/patches/patch-sfbpf_Makefile.am
new file mode 100644
index 0000000..61de6ee
--- /dev/null
+++ b/daq/patches/patch-sfbpf_Makefile.am
@@ -0,0 +1,16 @@
+$NetBSD$
+
+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


Home | Main Index | Thread Index | Old Index