2 # Copyright (C) 2017 Banglang Huang
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Banglang Huang
<banglang.huang@foxmail.com
>
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=https
://codeload.github.com
/ntop
/PF_RING
/tar.gz
/$(PKG_VERSION
)?
19 PKG_HASH
:=5d349ac37a6ece5966bf606a6f131d628b98d88654c2f502d3c4b8bbf6ef9796
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/PF_RING-
$(PKG_VERSION
)
24 PKG_FIXUP
:=patch-libtool
26 include $(INCLUDE_DIR
)/package.mk
28 CONFIGURE_PATH
:=userland
29 MAKE_PATH
:=userland
/lib
31 define Package
/libpfring
34 TITLE
:=Library for PR_RING
(package process framework
)
35 URL
:=https
://github.com
/ntop
/pf_ring
36 DEPENDS
:=+kmod-pf-ring
+libpcap
+libpthread
39 define Package
/libpfring
/description
40 PF_RING is a high speed packet capture library that turns a commodity PC into an efficient and cheap
41 network measurement box suitable for both packet and active traffic analysis and manipulation.
42 Moreover
, PF_RING opens totally new markets
as it enables the creation of efficient application such
as
43 traffic balancers or packet filters in a matter of lines of codes.
46 define Build
/InstallDev
47 $(INSTALL_DIR
) $(1)/usr
/include/
49 $(PKG_INSTALL_DIR
)/usr
/include/* \
52 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(PKG_INSTALL_DIR
)/usr
/lib
/libpfring.so
* \
61 define Package
/libpfring
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
/
64 $(PKG_INSTALL_DIR
)/usr
/lib
/libpfring.so
* \
66 $(LN
) libpfring.so
$(1)/usr
/lib
/libpfring.so
.1
69 $(eval
$(call BuildPackage
,libpfring
))