Browse Source

Merge pull request #7778 from neheb/patch-13

libpfring: Update to 7.4.0
lilik-openwrt-22.03
Stijn Tintel 6 years ago
committed by GitHub
parent
commit
6bd150a479
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 39 deletions
  1. +3
    -4
      libs/libpfring/Makefile
  2. +4
    -4
      libs/libpfring/patches/0001-fix-cross-compiling.patch
  3. +1
    -11
      libs/libpfring/patches/0002-fix-march-native.patch
  4. +0
    -10
      libs/libpfring/patches/0003-fix-strncpy.patch
  5. +0
    -10
      libs/libpfring/patches/010-fix-buildbots.patch

+ 3
- 4
libs/libpfring/Makefile View File

@ -8,16 +8,15 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libpfring 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_MAINTAINER:=Banglang Huang <banglang.huang@foxmail.com>
PKG_LICENSE:=LGPL-2.1 PKG_LICENSE:=LGPL-2.1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ntop/PF_RING/tar.gz/$(PKG_VERSION)? 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_BUILD_DIR:=$(BUILD_DIR)/PF_RING-$(PKG_VERSION)
PKG_INSTALL:=1 PKG_INSTALL:=1


+ 4
- 4
libs/libpfring/patches/0001-fix-cross-compiling.patch View File

@ -1,7 +1,7 @@
--- a/userland/configure --- a/userland/configure
+++ b/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 "$as_me:${as_lineno-$LINENO}: checking if r/w locks are supported" >&5
$as_echo_n "checking if r/w locks are supported... " >&6; } $as_echo_n "checking if r/w locks are supported... " >&6; }
- if test "$cross_compiling" = yes; then : - if test "$cross_compiling" = yes; then :
@ -13,7 +13,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
@@ -3763,7 +3757,7 @@ else
@@ -3736,7 +3730,7 @@ else
_ACEOF _ACEOF
@ -22,7 +22,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; } $as_echo "yes" >&6; }
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@@ -3777,7 +3771,6 @@ $as_echo "no" >&6; }
@@ -3750,7 +3744,6 @@ $as_echo "no" >&6; }
fi fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext conftest.$ac_objext conftest.beam conftest.$ac_ext


+ 1
- 11
libs/libpfring/patches/0002-fix-march-native.patch View File

@ -1,16 +1,6 @@
--- a/userland/configure --- a/userland/configure
+++ b/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` 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` MAJOR_VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2 | cut -d '.' -f 1`


+ 0
- 10
libs/libpfring/patches/0003-fix-strncpy.patch View File

@ -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>

+ 0
- 10
libs/libpfring/patches/010-fix-buildbots.patch View File

@ -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@

Loading…
Cancel
Save