summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Prado <sergio.prado@e-labworks.com>2017-12-24 21:18:05 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-30 20:15:07 (GMT)
commit2f7382b6f6c2fcb0f0a26ec1cf19df9128257cc3 (patch)
treea8370d3e41aace0c35ef881ac92b99c02d3abd0f
parent84a2645e5b2600d28d91005937c17bec554dd4d1 (diff)
downloadbuildroot-2f7382b6f6c2fcb0f0a26ec1cf19df9128257cc3.tar.gz
buildroot-2f7382b6f6c2fcb0f0a26ec1cf19df9128257cc3.tar.bz2
daq: new package
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> [Thomas: - re-order depends on/select in Config.in - add <pkg>_INSTALL_STAGING = YES - drop double quotes when passing values in <pkg>_CONF_ENV.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--DEVELOPERS1
-rw-r--r--package/Config.in1
-rw-r--r--package/daq/0001-Fix-build-against-the-musl-C-library.patch29
-rw-r--r--package/daq/Config.in13
-rw-r--r--package/daq/daq.hash5
-rw-r--r--package/daq/daq.mk25
6 files changed, 74 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index f00329c..0588a0c 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1566,6 +1566,7 @@ F: package/rtl8189fs/
F: package/xr819-xradio/
N: Sergio Prado <sergio.prado@e-labworks.com>
+F: package/daq/
F: package/libgdiplus/
F: package/mongodb/
F: package/pimd/
diff --git a/package/Config.in b/package/Config.in
index bd39a37..c1e52a3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1338,6 +1338,7 @@ menu "Networking"
source "package/cgic/Config.in"
source "package/cppzmq/Config.in"
source "package/czmq/Config.in"
+ source "package/daq/Config.in"
source "package/filemq/Config.in"
source "package/flickcurl/Config.in"
source "package/fmlib/Config.in"
diff --git a/package/daq/0001-Fix-build-against-the-musl-C-library.patch b/package/daq/0001-Fix-build-against-the-musl-C-library.patch
new file mode 100644
index 0000000..a37fe9a
--- /dev/null
+++ b/package/daq/0001-Fix-build-against-the-musl-C-library.patch
@@ -0,0 +1,29 @@
+From d3eec1a3b7c67a5e6f524c65608fd2eacac3782b Mon Sep 17 00:00:00 2001
+From: Sergio Prado <sergio.prado@e-labworks.com>
+Date: Sun, 24 Dec 2017 12:58:49 -0200
+Subject: [PATCH] Fix build against the musl C library
+
+Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
+---
+ os-daq-modules/daq_ipfw.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/os-daq-modules/daq_ipfw.c b/os-daq-modules/daq_ipfw.c
+index 016beb06ad61..c2a41759bb04 100644
+--- a/os-daq-modules/daq_ipfw.c
++++ b/os-daq-modules/daq_ipfw.c
+@@ -23,10 +23,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
++#include <unistd.h>
+
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
+
+ #include <netinet/in.h>
+ #include <sys/socket.h>
+--
+1.9.1
+
diff --git a/package/daq/Config.in b/package/daq/Config.in
new file mode 100644
index 0000000..7800061
--- /dev/null
+++ b/package/daq/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_DAQ
+ bool "daq"
+ depends on !BR2_STATIC_LIBS # dlfcn.h
+ select BR2_PACKAGE_LIBPCAP
+ select BR2_PACKAGE_LIBDNET
+ help
+ DAQ is a Data Acquisition library for packet I/O from the
+ Snort project.
+
+ https://www.snort.org
+
+comment "daq needs a toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS
diff --git a/package/daq/daq.hash b/package/daq/daq.hash
new file mode 100644
index 0000000..6a0cb5e
--- /dev/null
+++ b/package/daq/daq.hash
@@ -0,0 +1,5 @@
+# Locally computed:
+sha256 d41da5f7793e66044e6927dd868c0525e7ee4ec1a3515bf74ef9a30cd9273af0 daq-2.0.6.tar.gz
+
+# Hash for license files:
+sha256 07f28289c09fd9eb5a6ff7bc710ff40363601b1bbc6f3637d8ed412150e90819 COPYING
diff --git a/package/daq/daq.mk b/package/daq/daq.mk
new file mode 100644
index 0000000..c4b4c88
--- /dev/null
+++ b/package/daq/daq.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# daq
+#
+################################################################################
+
+DAQ_VERSION = 2.0.6
+DAQ_SITE = https://www.snort.org/downloads/snort
+DAQ_SOURCE = daq-$(DAQ_VERSION).tar.gz
+DAQ_LICENSE = GPL-2.0
+DAQ_LICENSE_FILES = COPYING
+DAQ_INSTALL_STAGING = YES
+DAQ_DEPENDENCIES = libpcap libdnet
+
+# package does not build in parallel due to improper make rules
+# related to the generation of the tokdefs.h header file
+DAQ_MAKE = $(MAKE1)
+
+# assume these flags are available to prevent configure from running
+# test programs while cross compiling
+DAQ_CONF_ENV = \
+ ac_cv_lib_pcap_pcap_lib_version=yes \
+ daq_cv_libpcap_version_1x=yes
+
+$(eval $(autotools-package))