initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
From 42efa6d76a3b52f35e576a6b941a9afb5b3879e9 Mon Sep 17 00:00:00 2001
|
||||
From: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
Date: Tue, 9 Jan 2018 21:39:27 -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 +-
|
||||
os-daq-modules/daq_ipq.c | 2 +-
|
||||
os-daq-modules/daq_nfq.c | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/os-daq-modules/daq_ipfw.c b/os-daq-modules/daq_ipfw.c
|
||||
index 016beb06ad61..98f67717f646 100644
|
||||
--- a/os-daq-modules/daq_ipfw.c
|
||||
+++ b/os-daq-modules/daq_ipfw.c
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
-#include <sys/unistd.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
diff --git a/os-daq-modules/daq_ipq.c b/os-daq-modules/daq_ipq.c
|
||||
index 77ec6e9505e5..b15e5cf82af0 100644
|
||||
--- a/os-daq-modules/daq_ipq.c
|
||||
+++ b/os-daq-modules/daq_ipq.c
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
-#include <sys/unistd.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#include <netinet/ip.h>
|
||||
|
||||
diff --git a/os-daq-modules/daq_nfq.c b/os-daq-modules/daq_nfq.c
|
||||
index 33021c0ec991..0df1e61c74c4 100644
|
||||
--- a/os-daq-modules/daq_nfq.c
|
||||
+++ b/os-daq-modules/daq_nfq.c
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
-#include <sys/unistd.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#include <netinet/ip.h>
|
||||
|
||||
--
|
||||
1.9.1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
Fix parallel build
|
||||
|
||||
https://bugs.gentoo.org/673390
|
||||
|
||||
Downloaded from
|
||||
https://gitweb.gentoo.org/repo/gentoo.git/tree/net-libs/daq/files/daq-2.0.6-parallel-grammar.patch
|
||||
|
||||
Patch was sent upstream: https://seclists.org/snort/2014/q3/1016
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
--- a/sfbpf/Makefile.am
|
||||
+++ b/sfbpf/Makefile.am
|
||||
@@ -43,13 +43,14 @@
|
||||
libsfbpf_la_LDFLAGS = -version-info 0:1:0 @XCCFLAGS@
|
||||
|
||||
# use of $@ and $< here is a GNU idiom that borks BSD
|
||||
-sf_scanner.c: $(srcdir)/scanner.l
|
||||
+sf_scanner.c: $(srcdir)/scanner.l tokdefs.h
|
||||
@rm -f $(srcdir)/sf_scanner.c
|
||||
$(srcdir)/runlex.sh $(V_LEX) -osf_scanner.c $(srcdir)/scanner.l
|
||||
|
||||
sf_scanner.o: sf_scanner.c tokdefs.h
|
||||
|
||||
tokdefs.h: sf_grammar.c
|
||||
+
|
||||
sf_grammar.c: $(srcdir)/grammar.y
|
||||
@rm -f sf_grammar.c tokdefs.h
|
||||
$(V_YACC) -d $(srcdir)/grammar.y
|
||||
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_DAQ
|
||||
bool "daq"
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
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
|
||||
@@ -0,0 +1,7 @@
|
||||
# From https://www.snort.org/downloads/snort/md5s
|
||||
md5 ea796f001d1b00302e4e69e337ab2460 daq-2.0.7.tar.gz
|
||||
# Locally computed:
|
||||
sha256 bdc4e5a24d1ea492c39ee213a63c55466a2e8114b6a9abed609927ae13a7705e daq-2.0.7.tar.gz
|
||||
|
||||
# Hash for license files:
|
||||
sha256 07f28289c09fd9eb5a6ff7bc710ff40363601b1bbc6f3637d8ed412150e90819 COPYING
|
||||
@@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
#
|
||||
# daq
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DAQ_VERSION = 2.0.7
|
||||
DAQ_SITE = https://www.snort.org/downloads/snort
|
||||
DAQ_LICENSE = GPL-2.0
|
||||
DAQ_LICENSE_FILES = COPYING
|
||||
DAQ_INSTALL_STAGING = YES
|
||||
DAQ_DEPENDENCIES = host-bison host-flex
|
||||
# 0002-parallel-grammar.patch
|
||||
# 2.0.7 needs autoreconf due to configure being older than configure.ac
|
||||
DAQ_AUTORECONF = YES
|
||||
|
||||
# disable ipq module as libipq is deprecated
|
||||
DAQ_CONF_OPTS += --disable-ipq-module
|
||||
|
||||
# Set --with-dnet-{includes,libraries} even if ipq and nfq modules are disabled
|
||||
# otherwise daq will call 'dnet-config --cflags' and 'dnet-config --libs' which
|
||||
# will result in a build failure if libdnet is installed on host
|
||||
DAQ_CONF_OPTS += \
|
||||
--with-dnet-includes=$(STAGING_DIR)/usr/include \
|
||||
--with-dnet-libraries=$(STAGING_DIR)/usr/lib
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBDNET)$(BR2_PACKAGE_LIBNETFILTER_QUEUE),yy)
|
||||
DAQ_DEPENDENCIES += libdnet libnetfilter_queue
|
||||
DAQ_CONF_OPTS += --enable-nfq-module
|
||||
else
|
||||
DAQ_CONF_OPTS += --disable-nfq-module
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
||||
DAQ_DEPENDENCIES += libpcap
|
||||
# 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
|
||||
DAQ_CONF_OPTS += --enable-pcap-module
|
||||
else
|
||||
DAQ_CONF_OPTS += --disable-pcap-module
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user