2 # Copyright (C) 2017 OpenWrt.org
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
>
16 PKG_SOURCE_URL
:=https
://github.com
/ntop
/nDPI.git
17 PKG_SOURCE_VERSION
:=6450ae256cfd7a6006d39df4a29de32f2f6fb7eb
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libndpi
31 TITLE
:=Library for deep-packet inspection
32 URL
:=https
://github.com
/ntop
/nDPI
33 DEPENDS
:=+libpcap
+libjson-c
36 define Package
/libndpi
/description
37 nDPI is an open source LGPLv3 library for deep-packet inspection.
38 Based on OpenDPI it includes ntop extensions.
41 define Build
/Configure
42 ( cd
$(PKG_BUILD_DIR
); .
/autogen.sh
)
43 $(call Build
/Configure
/Default
)
46 define Build
/InstallDev
47 $(INSTALL_DIR
) $(1)/usr
/include/
49 $(PKG_INSTALL_DIR
)/usr
/include/libndpi-1.8
.0/libndpi \
52 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(PKG_INSTALL_DIR
)/usr
/lib
/libndpi.so
* \
57 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
59 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libndpi.
pc \
60 $(1)/usr
/lib
/pkgconfig
/
63 define Package
/libndpi
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
/
66 $(PKG_INSTALL_DIR
)/usr
/lib
/libndpi.so
* \
68 $(INSTALL_DIR
) $(1)/usr
/bin
/
70 $(PKG_INSTALL_DIR
)/usr
/bin
/ndpiReader \
74 $(eval
$(call BuildPackage
,libndpi
))