From b36790d1d24e2b9ed7c371e51133b72bcf42f324 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Thu, 28 Mar 2019 21:22:07 -0400 Subject: [PATCH] libdaq: update to 2.2.2 Signed-off-by: W. Michael Petullo --- libs/libdaq/Makefile | 19 ++++++------------- libs/libdaq/patches/001-compile.patch | 7 ++++--- libs/libdaq/patches/100-musl-compat.patch | 15 +++++++++------ 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/libs/libdaq/Makefile b/libs/libdaq/Makefile index ebf4063f0b..2f37f00c27 100644 --- a/libs/libdaq/Makefile +++ b/libs/libdaq/Makefile @@ -8,18 +8,19 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libdaq -PKG_VERSION:=2.0.6 -PKG_RELEASE:=2 +PKG_VERSION:=2.2.2 +PKG_RELEASE:=1 -PKG_SOURCE_URL:=https://www.snort.org/downloads/snort/ \ - @SF/snort +PKG_SOURCE_URL:=https://www.snort.org/downloads/snortplus/ PKG_SOURCE:=daq-$(PKG_VERSION).tar.gz -PKG_HASH:=d41da5f7793e66044e6927dd868c0525e7ee4ec1a3515bf74ef9a30cd9273af0 +PKG_HASH:=7cd818cabb1ad35360e83076e54775f07165ee71407dc672d147e27d3cd37f7b PKG_BUILD_DIR:=$(BUILD_DIR)/daq-$(PKG_VERSION) PKG_LICENSE:=GPL-2.0 PKG_MAINTAINER:=W. Michael Petullo +PKG_INSTALL:=1 + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk @@ -43,14 +44,6 @@ CONFIGURE_ARGS+= \ --with-libpcap-includes="$(STAGING_DIR)/usr/include" \ --with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \ -define Build/Compile - $(MAKE) $(MAKE_FLAGS) -C $(PKG_BUILD_DIR) -endef - -define Build/Install - $(MAKE) $(MAKE_FLAGS) -C $(PKG_BUILD_DIR) install DESTDIR=$(PKG_INSTALL_DIR) -endef - define Build/InstallDev $(INSTALL_DIR) $(STAGING_DIR)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include/ diff --git a/libs/libdaq/patches/001-compile.patch b/libs/libdaq/patches/001-compile.patch index 82df2591f9..d5a2882ddf 100644 --- a/libs/libdaq/patches/001-compile.patch +++ b/libs/libdaq/patches/001-compile.patch @@ -1,6 +1,7 @@ ---- a/configure -+++ b/configure -@@ -13552,10 +13552,11 @@ if ${daq_cv_libpcap_version_1x+:} false; +diff -u --recursive daq-2.2.2-vanilla/configure daq-2.2.2/configure +--- daq-2.2.2-vanilla/configure 2017-07-05 15:58:03.000000000 -0400 ++++ daq-2.2.2/configure 2018-09-01 17:18:56.774898034 -0400 +@@ -13244,10 +13244,11 @@ else if test "$cross_compiling" = yes; then : diff --git a/libs/libdaq/patches/100-musl-compat.patch b/libs/libdaq/patches/100-musl-compat.patch index c510564c45..6a1aa8f96b 100644 --- a/libs/libdaq/patches/100-musl-compat.patch +++ b/libs/libdaq/patches/100-musl-compat.patch @@ -1,5 +1,6 @@ ---- a/os-daq-modules/daq_ipfw.c -+++ b/os-daq-modules/daq_ipfw.c +diff -u --recursive daq-2.2.2-vanilla/os-daq-modules/daq_ipfw.c daq-2.2.2/os-daq-modules/daq_ipfw.c +--- daq-2.2.2-vanilla/os-daq-modules/daq_ipfw.c 2017-02-08 17:04:18.000000000 -0500 ++++ daq-2.2.2/os-daq-modules/daq_ipfw.c 2018-09-01 17:21:10.608181841 -0400 @@ -23,10 +23,10 @@ #include #include @@ -12,8 +13,9 @@ #include #include ---- a/os-daq-modules/daq_ipq.c -+++ b/os-daq-modules/daq_ipq.c +diff -u --recursive daq-2.2.2-vanilla/os-daq-modules/daq_ipq.c daq-2.2.2/os-daq-modules/daq_ipq.c +--- daq-2.2.2-vanilla/os-daq-modules/daq_ipq.c 2017-02-08 17:04:18.000000000 -0500 ++++ daq-2.2.2/os-daq-modules/daq_ipq.c 2018-09-01 17:21:23.162208457 -0400 @@ -24,10 +24,10 @@ #include #include @@ -26,8 +28,9 @@ #include ---- a/os-daq-modules/daq_nfq.c -+++ b/os-daq-modules/daq_nfq.c +diff -u --recursive daq-2.2.2-vanilla/os-daq-modules/daq_nfq.c daq-2.2.2/os-daq-modules/daq_nfq.c +--- daq-2.2.2-vanilla/os-daq-modules/daq_nfq.c 2017-02-08 17:04:18.000000000 -0500 ++++ daq-2.2.2/os-daq-modules/daq_nfq.c 2018-09-01 17:21:35.202233988 -0400 @@ -24,10 +24,10 @@ #include #include -- 2.30.2