mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 05:23:39 +08:00
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>
This commit is contained in:
parent
84a2645e5b
commit
2f7382b6f6
@ -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/
|
||||
|
@ -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"
|
||||
|
29
package/daq/0001-Fix-build-against-the-musl-C-library.patch
Normal file
29
package/daq/0001-Fix-build-against-the-musl-C-library.patch
Normal file
@ -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
|
||||
|
13
package/daq/Config.in
Normal file
13
package/daq/Config.in
Normal file
@ -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
|
5
package/daq/daq.hash
Normal file
5
package/daq/daq.hash
Normal file
@ -0,0 +1,5 @@
|
||||
# Locally computed:
|
||||
sha256 d41da5f7793e66044e6927dd868c0525e7ee4ec1a3515bf74ef9a30cd9273af0 daq-2.0.6.tar.gz
|
||||
|
||||
# Hash for license files:
|
||||
sha256 07f28289c09fd9eb5a6ff7bc710ff40363601b1bbc6f3637d8ed412150e90819 COPYING
|
25
package/daq/daq.mk
Normal file
25
package/daq/daq.mk
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user