mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
libpfring: add new package
PF_RING is a high speed packet capture library that turns a commodity PC into an efficient and cheap network measurement box suitable for both packet and active traffic analysis and manipulation. Moreover, PF_RING opens totally new markets as it enables the creation of efficient application such as traffic balancers or packet filters in a matter of lines of codes. github : https://github.com/ntop/pf_ring official : https://www.ntop.org Signed-off-by: BangLang Huang <banglang.huang@foxmail.com> Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> [rename kmod-pfring to kmod-pf-ring]
This commit is contained in:
committed by
Stijn Tintel
parent
c4ab18d58e
commit
bc01c8eae6
@@ -0,0 +1,21 @@
|
||||
--- 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=""
|
||||
|
||||
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`
|
||||
|
||||
-NATIVE=`$CC -c -Q -march=native --help=target| grep "march" | xargs | cut -d ' ' -f 2`
|
||||
+NATIVE=`$CC -c -Q --help=target| grep "march" | xargs | cut -d ' ' -f 2`
|
||||
if test -f "lib/libs/libpfring_zc_x86_64_$NATIVE.a"; then
|
||||
CFLAGS="-march=native -mtune=native $CFLAGS"
|
||||
LIBARCH="_$NATIVE"
|
||||
Reference in New Issue
Block a user