commit: 79f2d8cf70872bd37af0c9176b62a4ba8e2307ee Author: Vladislav Mikhailikov <vmikhailikov <AT> gmail <DOT> com> AuthorDate: Thu Jun 5 20:51:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jun 5 21:03:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79f2d8cf
net-libs/libprotoident: add 2.0.15_p1 Signed-off-by: Vladislav Mikhailikov <vmikhailikov <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42441 Signed-off-by: Sam James <sam <AT> gentoo.org> net-libs/libprotoident/Manifest | 1 + ...README-to-remove-links-to-dead-WAND-sites.patch | 41 ++++++++++++++++++ .../libprotoident/libprotoident-2.0.15_p1.ebuild | 49 ++++++++++++++++++++++ 3 files changed, 91 insertions(+) diff --git a/net-libs/libprotoident/Manifest b/net-libs/libprotoident/Manifest index d28504a26542..2fc792ecbf6d 100644 --- a/net-libs/libprotoident/Manifest +++ b/net-libs/libprotoident/Manifest @@ -1 +1,2 @@ DIST 2.0.14-1.tar.gz 548297 BLAKE2B 1ebee48a18b798895171152f0e56e93520d39ffd7a18f025638bb2a115fded07c76db5b1110b93c4c7e2191f5c1a6043d42ce4862d6ee30914d3a47ab225b1f1 SHA512 2026f55ccc2cbf80f11c81c8d05e23f035ed8eb0b61443d9723b0d6d37a6befe989941043b7352761ff9cc744076b3d1ee36ffe971e4bca59b8f7d4a8a1c6d94 +DIST libprotoident-2.0.15_p1.tar.gz 551222 BLAKE2B 67cc09faf2cbc7a9c18107a21573cde9d325558789f7301f678fcef34098ce41c9e764e706de5fb05cdf8ae2ca5d20a746688fa375c77457393e78dc46f0f9d9 SHA512 62f67eee2a76db2914ce810fa6cebcb7eb9a5311e9ef4d0b5fbe1a15bedf634b94a6e561cad3a99e848a39e6e40277bbab11a8bcdfef4d2202ed3968e35e53ce diff --git a/net-libs/libprotoident/files/0001-Update-README-to-remove-links-to-dead-WAND-sites.patch b/net-libs/libprotoident/files/0001-Update-README-to-remove-links-to-dead-WAND-sites.patch new file mode 100644 index 000000000000..225003658ade --- /dev/null +++ b/net-libs/libprotoident/files/0001-Update-README-to-remove-links-to-dead-WAND-sites.patch @@ -0,0 +1,41 @@ +From 97a8efecd257ec09f652374399f27b3a65db7d0a Mon Sep 17 00:00:00 2001 +From: Shane Alcock <[email protected]> +Date: Mon, 7 Nov 2022 13:35:09 +1300 +Subject: [PATCH 5/5] Update README to remove links to dead WAND sites + +--- + README | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/README b/README +index 1be10e2..baffeb1 100644 +--- a/README ++++ b/README +@@ -41,11 +41,11 @@ some tools that can be used to perform simple analysis of traffic flows. + Required Libraries + ================== + libtrace 4.0.1 or later +- * available from http://research.wand.net.nz/software/libtrace.php +- ++ * available from https://github.com/LibtraceTeam/libtrace ++ + libflowmanager 3.0.0 or later + * optional, but required to build the tools +- * available from http://research.wand.net.nz/software/libflowmanager.php ++ * available from https://github.com/LibtraceTeam/libflowmanager + + Installation + ============ +@@ -237,7 +237,7 @@ The libprotoident API functions themselves are documented in + lib/libprotoident.h if you need further guidance. + + Further documentation of the API can also be found at +-http://wand.net.nz/trac/libprotoident/wiki/DeveloperDocs ++https://github.com/LibtraceTeam/libflowmanager + +-If all else fails, drop us a line at [email protected]. ++If all else fails, drop me a line at [email protected] + +-- +2.49.0 + diff --git a/net-libs/libprotoident/libprotoident-2.0.15_p1.ebuild b/net-libs/libprotoident/libprotoident-2.0.15_p1.ebuild new file mode 100644 index 000000000000..a7f5b0cf01b3 --- /dev/null +++ b/net-libs/libprotoident/libprotoident-2.0.15_p1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit autotools + +DESCRIPTION="A library that performs application layer protocol identification for flows" +HOMEPAGE="https://github.com/LibtraceTeam/libprotoident" +SRC_URI="https://github.com/LibtraceTeam/${PN}/archive/refs/tags/${PV/_p/-}.tar.gz -> ${P}.tar.gz" +S=${WORKDIR}/${P/_p/-} + +LICENSE="LGPL-3+" +SLOT="0/2" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs tools" + +DEPEND=" + >=net-libs/libtrace-4.0.1 + >=net-libs/libflowmanager-3.0.0 +" +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + # Update README to remove links to dead WAND sites + "${FILESDIR}"/0001-Update-README-to-remove-links-to-dead-WAND-sites.patch + ) + +src_prepare() { + default + + sed -i \ + -e '/-Werror/d' \ + lib/Makefile.am || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_with tools) +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +}
