libpfring: Update to 7.4.0 7778/head
authorRosen Penev <rosenp@gmail.com>
Wed, 26 Dec 2018 16:54:49 +0000 (08:54 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 26 Dec 2018 19:11:02 +0000 (11:11 -0800)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libpfring/Makefile
libs/libpfring/patches/0001-fix-cross-compiling.patch
libs/libpfring/patches/0002-fix-march-native.patch
libs/libpfring/patches/0003-fix-strncpy.patch [deleted file]
libs/libpfring/patches/010-fix-buildbots.patch [deleted file]

index 1da4e4e708d5eee2692ec94c349d4f0c7e12ed7f..2a0a94c6c72f60f240aa12ac0b597c6bf29e27b8 100644 (file)
@@ -8,16 +8,15 @@
 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
index 5af3fb9d5cfb1c56f7c611b48aa0bdd21d434775..6cfc6af3b47a8f32a026c73700428027e0c6222b 100644 (file)
@@ -1,7 +1,7 @@
 --- 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 :
@@ -13,7 +13,7 @@
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
-@@ -3763,7 +3757,7 @@ else
+@@ -3736,7 +3730,7 @@ else
  
  
  _ACEOF
@@ -22,7 +22,7 @@
     { $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
index 69bfde71339a32d13b8d291adf32fb4944f5f2fb..b8d6595d86c2cb646adec87b0b8bd200f73eb65e 100644 (file)
@@ -1,16 +1,6 @@
 --- 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`
  
diff --git a/libs/libpfring/patches/0003-fix-strncpy.patch b/libs/libpfring/patches/0003-fix-strncpy.patch
deleted file mode 100644 (file)
index f42c4e5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- 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>
diff --git a/libs/libpfring/patches/010-fix-buildbots.patch b/libs/libpfring/patches/010-fix-buildbots.patch
deleted file mode 100644 (file)
index f5f153e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-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@