include $(TOPDIR)/rules.mk
PKG_NAME:=libpfring
-PKG_VERSION:=7.2.0
-PKG_RELEASE:=2
+PKG_VERSION:=7.4.0
+PKG_RELEASE:=1
PKG_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
PKG_LICENSE:=LGPL-2.1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ntop/PF_RING/tar.gz/$(PKG_VERSION)?
-PKG_HASH:=5d349ac37a6ece5966bf606a6f131d628b98d88654c2f502d3c4b8bbf6ef9796
-
+PKG_HASH:=e1c9cb44d8072854220f493c56fa5cba99a6b8336883939dc18b3e30c2954b68
PKG_BUILD_DIR:=$(BUILD_DIR)/PF_RING-$(PKG_VERSION)
PKG_INSTALL:=1
--- a/userland/configure
+++ b/userland/configure
-@@ -3745,12 +3745,6 @@ fi
- if test "$IS_FREEBSD" != "1"; then
+@@ -3718,12 +3718,6 @@ fi
+ if test "$IS_FREEBSD" != "1" && test "$cross_compiling" != "yes" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if r/w locks are supported" >&5
$as_echo_n "checking if r/w locks are supported... " >&6; }
- if test "$cross_compiling" = yes; then :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -3763,7 +3757,7 @@ else
+@@ -3736,7 +3730,7 @@ else
_ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
cat >>confdefs.h <<_ACEOF
-@@ -3777,7 +3771,6 @@ $as_echo "no" >&6; }
+@@ -3750,7 +3744,6 @@ $as_echo "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
--- a/userland/configure
+++ b/userland/configure
-@@ -3296,14 +3296,16 @@ fi
- done
-
-
--MACHINE=`uname -m`
-+if test -z "$MACHINE"; then
-+ MACHINE=`uname -m`
-+fi
- CFLAGS=""
- SYS_LIBS=""
-
+@@ -3291,7 +3291,7 @@ SYS_LIBS=""
VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2`
MAJOR_VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2 | cut -d '.' -f 1`
+++ /dev/null
---- a/userland/lib/pfring_mod.c
-+++ b/userland/lib/pfring_mod.c
-@@ -24,6 +24,7 @@
- #include <ifaddrs.h>
-
- #ifdef ENABLE_BPF
-+#include <string.h>
- #include <pcap/pcap.h>
- #include <pcap/bpf.h>
- #include <pcap-int.h>
+++ /dev/null
-diff --git a/userland/nbpf/Makefile.in b/userland/nbpf/Makefile.in
-index b0d8181..8221e41 100644
---- a/userland/nbpf/Makefile.in
-+++ b/userland/nbpf/Makefile.in
-@@ -1,4 +1,4 @@
--LEX = lex
-+LEX = flex
- YACC = bison
- INCLUDE = -I../lib -I../../kernel
- LIBS=`../lib/pfring_config --libs` -lpthread #@NDPI_LIB@