Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830403 - net-libs/nDPI-4.0: Version bump (incl. Patch)
Summary: net-libs/nDPI-4.0: Version bump (incl. Patch)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: CVE-2021-36082
  Show dependency tree
 
Reported: 2022-01-01 14:34 UTC by Larry Sexton
Modified: 2022-01-03 11:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch nDPI ebuild (patch_nDPI-4.0.ebuild,794 bytes, patch)
2022-01-01 14:34 UTC, Larry Sexton
Details | Diff
patch for nDPI 4.0 SOURCES (0001-Added-ability-to-report-whether-a-protocol-is-encryp.patch,91.87 KB, patch)
2022-01-01 14:37 UTC, Larry Sexton
Details | Diff
patch ntopng ebuild to 5.0 (patch_ntopng-5.0.ebuild,805 bytes, patch)
2022-01-01 14:39 UTC, Larry Sexton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Sexton 2022-01-01 14:34:36 UTC
Created attachment 761025 [details, diff]
patch nDPI ebuild

In formum topic 1146543, the OP requested a more recent version of ntopng. Was able to get this working by applying the following changes:

1. Uplevel net-libs/nDPI to 4.0
2. Patch nDPI 4.0 with commit 46ebd7128fd38f3eac5289ba281f3f25bad1d899
3. Uplevel net-analyzer/ntopng to 5.0 

Moderator Hu suggested I post changes. The nDPI build was included static-libs, as that is how ntopng links by default, which is also in the 9999 ebuild. Also several existing patches no longer worked. Commented them out. This is my first bug report.
Comment 1 Larry Sexton 2022-01-01 14:37:37 UTC
Created attachment 761026 [details, diff]
patch for nDPI 4.0 SOURCES

nDPI commit 46ebd7128fd38f3eac5289ba281f3f25bad1d899, which is post 4.0. Necessary to build nDPI 4.0 with ntopng 5.0.
Comment 2 Larry Sexton 2022-01-01 14:39:29 UTC
Created attachment 761027 [details, diff]
patch ntopng ebuild to 5.0

Ebuild for ntopng 5.0. Software builds and runs, but links nDPI using static-libs.
Comment 3 Larry the Git Cow gentoo-dev 2022-01-03 11:23:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa4c91dd460e1604ec58cc6b3531e8170812da3f

commit fa4c91dd460e1604ec58cc6b3531e8170812da3f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-01-03 10:50:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-03 11:21:20 +0000

    net-libs/nDPI: add 4.0
    
    Includes a patch which adds an API to allow ntopong to work too.
    
    (Working on ar/other build system patches upstream.)
    
    Bug: https://bugs.gentoo.org/799782
    Bug: https://bugs.gentoo.org/625730
    Closes: https://bugs.gentoo.org/830403
    Thanks-to: Larry Sexton <sexton.larry048@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/nDPI/Manifest         |  2 ++
 net-libs/nDPI/nDPI-4.0.ebuild  | 59 ++++++++++++++++++++++++++++++++++++
 net-libs/nDPI/nDPI-9999.ebuild | 68 ++++++++++++++++++++----------------------
 3 files changed, 93 insertions(+), 36 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39868efcc6779ea5e5272c3434e4a59f0bae9aa1

commit 39868efcc6779ea5e5272c3434e4a59f0bae9aa1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-01-03 11:20:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-03 11:21:21 +0000

    net-analyzer/ntopng: add 5.0
    
    As with nDPI, aware of the ar-directly and other similar bugs,
    but am trying to address this first upstream & go from there.
    
    Bug: https://bugs.gentoo.org/799782
    Bug: https://bugs.gentoo.org/830403
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/ntopng/Manifest          |  1 +
 net-analyzer/ntopng/ntopng-5.0.ebuild | 92 +++++++++++++++++++++++++++++++++++
 2 files changed, 93 insertions(+)