libndpi: required by the latest xplico. Still work in progress, see the bug

https://www.ntop.org/bugzilla3/attachment.cgi?id=127
This commit is contained in:
Anton Bolshakov 2012-11-01 14:05:32 +00:00
parent d6f9d537f0
commit c504cc2e9e
3 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,2 @@
AUX libndpi-system.patch 1661 SHA256 c74ac469e6ec8acbf43364ec7a4fa9c8411b7c3e876dce28445facc0cb4f4c01 SHA512 ca2915354104eb04301f93bb35758fcc9e0b3cb85ca7b5a6581775130bc137982888dea71ceab8d4c67300244f49c22a198a1b197f350eca39c6fd82a69470ac WHIRLPOOL 5821351984f8c29e3828b3e7faa559c718dc2343515eaeb42356a75251a85e71b22c6e810b708b83156f499e14f2601ee1a6ca321a0c6e873d278acc04b1bda3
EBUILD libndpi-9999.ebuild 519 SHA256 dbfa3938d6f50fffe5921a1761aae63322df283f5d4a6d6528b8df90008864c5 SHA512 3bc915eb58912c920d55bc5d83a691cf314f7d08815be4e7ada7c253f00b5c038db10aaa83f979c1d4ac173eb9b7289fef304d6e2216eaf7871d31ae544912e5 WHIRLPOOL 958aece02531522947d7dec4c7365eefa92ea4702319e2644dd5930d1d80ced4b63cda60500af1dc95533da0d50f1fd818240c806a10bd6a57e1a08b2bdc2694

View file

@ -0,0 +1,56 @@
diff -urN src.orig/include/Makefile.am src/include/Makefile.am
--- src.orig/include/Makefile.am 2012-11-01 20:51:12.000000000 +0800
+++ src/include/Makefile.am 2012-11-01 20:58:40.820987267 +0800
@@ -1,9 +1,15 @@
-library_includedir=$(includedir)/libndpi-1.4/libndpi
+library_includedir=$(includedir)/libndpi
-library_include_HEADERS = ndpi_api.h \
- ndpi_debug_functions.h \
- ndpi_define.h \
- ndpi_macros.h \
- ndpi_protocols_osdpi.h \
- ndpi_public_functions.h
+library_include_HEADERS = linux_compat.h \
+ ndpi_api.h \
+ ndpi_debug_functions.h \
+ ndpi_define.h \
+ ndpi_macros.h \
+ ndpi_main.h \
+ ndpi_protocol_history.h \
+ ndpi_protocols.h \
+ ndpi_protocols_osdpi.h \
+ ndpi_public_functions.h \
+ ndpi_structs.h \
+ ndpi_utils.h
diff -urN src.orig/include/Makefile.in src/include/Makefile.in
--- src.orig/include/Makefile.in 2012-11-01 20:51:44.000000000 +0800
+++ src/include/Makefile.in 2012-11-01 21:04:12.514982994 +0800
@@ -216,13 +216,19 @@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-library_includedir = $(includedir)/libndpi-1.4/libndpi
-library_include_HEADERS = ndpi_api.h \
- ndpi_debug_functions.h \
- ndpi_define.h \
- ndpi_macros.h \
- ndpi_protocols_osdpi.h \
- ndpi_public_functions.h
+library_includedir = $(includedir)/libndpi
+library_include_HEADERS = linux_compat.h \
+ ndpi_api.h \
+ ndpi_debug_functions.h \
+ ndpi_define.h \
+ ndpi_macros.h \
+ ndpi_main.h \
+ ndpi_protocol_history.h \
+ ndpi_protocols.h \
+ ndpi_protocols_osdpi.h \
+ ndpi_public_functions.h \
+ ndpi_structs.h \
+ ndpi_utils.h
all: all-am

View file

@ -0,0 +1,28 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils subversion
DESCRIPTION="ntop-maintained superset of the popular OpenDPI library"
HOMEPAGE="http://www.ntop.org/products/ndpi/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""
ESVN_REPO_URI="https://svn.ntop.org/svn/ntop/trunk/nDPI"
DEPEND=""
RDEPEND=""
src_prepare() {
epatch "${FILESDIR}"/libndpi-system.patch
}
src_install() {
DESTDIR="${D}" emake install
}