@ -8,12 +8,12 @@
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
PKG_NAME := libndpi
PKG_NAME := libndpi
PKG_VERSION := 2.6
PKG_VERSION := 2.8
PKG_RELEASE := 1
PKG_RELEASE := 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/nDPI/tar.gz/$( PKG_VERSION) ?
PKG_SOURCE_URL := https://codeload.github.com/ntop/nDPI/tar.gz/$( PKG_VERSION) ?
PKG_HASH := efdfb68940385b18079920330528978765dc2a90c8163d10f63301bddadbf91e
PKG_HASH := f98def4d0e43818317b20e2887ce500b2d6a5a9c8ddb28cf57ae51caae0f33cc
PKG_BUILD_DIR := $( BUILD_DIR) /nDPI-$( PKG_VERSION)
PKG_BUILD_DIR := $( BUILD_DIR) /nDPI-$( PKG_VERSION)
PKG_MAINTAINER := Banglang Huang <banglang.huang@foxmail.com>
PKG_MAINTAINER := Banglang Huang <banglang.huang@foxmail.com>
@ -21,9 +21,9 @@ PKG_LICENSE:=LGPLv3
PKG_LICENSE_FILES := COPYING
PKG_LICENSE_FILES := COPYING
PKG_FIXUP := autoreconf
PKG_FIXUP := autoreconf
PKG_REMOVE_FILES := autogen.sh
PKG_BUILD_DEPENDS := libpcap
PKG_BUILD_DEPENDS := libpcap
PKG_BUILD_PARALLEL := 1
PKG_BUILD_PARALLEL := 1
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / u c l i b c + + . m k
i n c l u d e $( INCLUDE_DIR ) / u c l i b c + + . m k
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
@ -41,36 +41,37 @@ define Package/libndpi/description
Based on OpenDPI it includes ntop extensions.
Based on OpenDPI it includes ntop extensions.
e n d e f
e n d e f
d e f i n e B u i l d / C o n f i g u r e
( cd $( PKG_BUILD_DIR) ; ./autogen.sh )
$( call Build/Configure/Default)
d e f i n e B u i l d / P r e p a r e
$( PKG_UNPACK)
$( Build/Patch)
mv $( PKG_BUILD_DIR) /configure.seed $( PKG_BUILD_DIR) /configure.ac
$( SED) "s/@NDPI_MAJOR@/2/g" \
-e "s/@NDPI_MINOR@/8/g" \
-e "s/@NDPI_PATCH@/0/g" \
-e "s/@NDPI_VERSION_SHORT@/2.8.0/g" \
$( PKG_BUILD_DIR) /configure.ac
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
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/local/include/ndpi \
$( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/include/ndpi
$( CP) $( PKG_BUILD_DIR) /src/include/*.h \
$( 1) /usr/include/ndpi/
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/local/lib/libndpi.so* \
$( CP) $( PKG_BUILD_DIR) /src/lib/libndpi.so* \
$( 1) /usr/lib/
$( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) \
$( PKG_INSTALL_DIR) /usr/libdata/pkgconfig/libndpi.pc \
$( CP) $( PKG_BUILD_DIR) /libndpi.pc \
$( 1) /usr/lib/pkgconfig/
$( 1) /usr/lib/pkgconfig/
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 n d p i / i n s t a l l
d e f i n e P a c k a g e / l i b n d p i / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/
$( CP) \
$( PKG_INSTALL_DIR) /usr/local/lib/libndpi.so* \
$( CP) $( PKG_BUILD_DIR) /src/lib/libndpi.so* \
$( 1) /usr/lib/
$( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/bin/
$( INSTALL_DIR) $( 1) /usr/bin/
$( CP) \
$( PKG_INSTALL_DIR) /usr/local/bin/ndpiReader \
$( CP) $( PKG_BUILD_DIR) /example/ndpiReader \
$( 1) /usr/bin/
$( 1) /usr/bin/
e n d e f
e n d e f