@ -6,21 +6,22 @@
#
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( INCLUDE_DIR ) / k e r n e l . m k
PKG_NAME := libpfring
PKG_NAME := libpfring
PKG_VERSION := 7.4.0
PKG_VERSION := 7.4.0
PKG_RELEASE := 1
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 := $( 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 := e1c9cb44d8072854220f493c56fa5cba99a6b8336883939dc18b3e30c2954b68
PKG_HASH := e1c9cb44d8072854220f493c56fa5cba99a6b8336883939dc18b3e30c2954b68
PKG_BUILD_DIR := $( BUILD_DIR) /PF_RING-$( PKG_VERSION)
PKG_BUILD_DIR := $( KERNEL_BUILD_DIR) /PF_RING-$( PKG_VERSION)
PKG_MAINTAINER := Banglang Huang <banglang.huang@foxmail.com>
PKG_INSTALL := 1
PKG_FIXUP := patch-libtool
PKG_FIXUP := patch-libtool
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -33,6 +34,8 @@ define Package/libpfring
TITLE:= Library for PR_RING ( package process framework)
TITLE:= Library for PR_RING ( package process framework)
URL:= https://github.com/ntop/pf_ring
URL:= https://github.com/ntop/pf_ring
DEPENDS:= +kmod-pf-ring +libpcap +libpthread
DEPENDS:= +kmod-pf-ring +libpcap +libpthread
LICENSE:= LGPL-2.1-or-later
LICENSE_FILES:= LICENSE
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b p f r i n g / d e s c r i p t i o n
d e f i n e P a c k a g e / l i b p f r i n g / d e s c r i p t i o n
@ -42,28 +45,46 @@ define Package/libpfring/description
traffic balancers or packet filters in a matter of lines of codes.
traffic balancers or packet filters in a matter of lines of codes.
e n d e f
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/
$( CP) \
$( PKG_INSTALL_DIR) /usr/include/* \
$( 1) /usr/include/
d e f i n e K e r n e l P a c k a g e / p f - r i n g
SUBMENU:= Network Support
TITLE:= PF_RING Kernel driver
FILES:= $( PKG_BUILD_DIR) /kernel/pf_ring.ko
AUTOLOAD:= $( call AutoLoad,90,pf_ring,1)
LICENSE:= GPL-2.0-or-later
e n d e f
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libpfring.so* \
$( 1) /usr/lib/
d e f i n e K e r n e l P a c k a g e / p f - r i n g / d e s c r i p t i o n
Kernel module for libpf-ring package
e n d e f
e n d e f
CONFIGURE_VARS += \
CONFIGURE_VARS += \
MACHINE = " $( ARCH) " \
MACHINE = " $( ARCH) " \
ac_cv_lib_nl_3_nl_socket_alloc = no
ac_cv_lib_nl_3_nl_socket_alloc = no
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C " $( LINUX_DIR) " \
KERNEL_DIR = " $( LINUX_DIR) " \
ARCH = " $( LINUX_KARCH) " \
CROSS_COMPILE = " $( TARGET_CROSS) " \
SUBDIRS = " $( PKG_BUILD_DIR) /kernel " \
EXTRA_CFLAGS = " $( EXTRA_CFLAGS) -I $( PKG_BUILD_DIR) /kernel " \
modules
$( call Build/Compile/Default)
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/include/* $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libpfring.so* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b p f r i n g / i n s t a l l
d e f i n e P a c k a g e / l i b p f r i n g / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libpfring.so* \
$( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libpfring.so* $( 1) /usr/lib/
$( LN) libpfring.so $( 1) /usr/lib/libpfring.so.1
$( LN) libpfring.so $( 1) /usr/lib/libpfring.so.1
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,libpfring ) )
$( eval $ ( call BuildPackage ,libpfring ) )
$( eval $ ( call KernelPackage ,pf -ring ) )