diff options
Diffstat (limited to 'net-analyzer/tcptrace')
4 files changed, 118 insertions, 3 deletions
diff --git a/net-analyzer/tcptrace/Manifest b/net-analyzer/tcptrace/Manifest index c2e468ae40ad..a4cf5a5c9119 100644 --- a/net-analyzer/tcptrace/Manifest +++ b/net-analyzer/tcptrace/Manifest @@ -1,8 +1,10 @@ +AUX 0001-configure.in-fix-implicit-function-declaration-causi.patch 666 BLAKE2B 995305d68483738434a58f3af163947588f8bc32bd164f3c57c3d0c2936248a5ca50f8112105a858a2928dca146417a5f78c1a21f8db9b71b4fa8083f21ef207 SHA512 b32532a73c3243c6ffd257837ad42f2682591dd040c0d4ad487e8c8a8f6d113660c309133dec451a174ce37afa454655594fb466f82243fb1f09a94b9df3b272 AUX tcptrace-6.6.7-_DEFAULT_SOURCE.patch 315 BLAKE2B b2024c742405be706c0ff6dfb8c54d3926f2443fb4c62bb37756ad9dbf0010e145421f684eb4ce04cde621f32aa3a6da22e37b5336868647d0bdf4755002c805 SHA512 d20a36a0ca57991f333d783db2442f14fcf06b1e88936b527edcf2973d82dbc88514eae5e051197d7dc4ce25f16bc10799bb91f5baf4a98076c22f60fecb2065 AUX tcptrace-6.6.7-cross-compile.patch 1348 BLAKE2B f38a64ed02c45482db7b0fb18865c9584481f5875a9703cf010db603f977bf1bc7696391d3c135060f2b9160b76ebd8986c4a17091b4634e757772b690977377 SHA512 ea5f8d5352f1eb4059c0284abbce9ff9b6df78ac8c7cb17a2aa138fa912cb4197f09b8e43e91bd04b980b6d73e1670deb7e9a3b1386eaaede61a7bdb0f410d1e AUX tcptrace-6.6.7-fix-build-clang16.patch 894 BLAKE2B 3c210a578310dab410f8248c5ea8698837e6191187645ae4fa9a101a56be28a4509c4b70fcb5929031b2946d0213d86502917650ed3200dad8123c4254119ab9 SHA512 da5256b10dd81fbe218c521d2c3d6178a4dc95484bfac4d1bc5f0eded0ed569afbc2272068d54655301dc3f1ec17c15b437bb0e50866256de5bf893a58957559 DIST tcptrace-6.6.7.tar.gz 3773308 BLAKE2B cae5816cb25c33f71c316d14de3c18ff26f0e7452375a962b88c4818ca7c43425e7298e788bd8cb43f2e22ac7dc9b89ed1921b7bd70d0e8befab3ee791453fb1 SHA512 3638770c342aea6c71aa556e758ed22e1fd44730f6c652cf82d3861eb1c31b186952c660071bd1df45020b80eaf9dd090a4ff58c979cc907eb8154dcb7b9b432 DIST tcptrace_6.6.7-6.debian.tar.xz 6056 BLAKE2B a46a8a8a8f804066486566bccd10e33dc372a1fc30f37f401913c2b3038cf917891472e93a509cac8bdd2928d473c3ce21d0c4048c96ae54967fc48780384221 SHA512 82eebc2e297130cbafab0bb1757402d8b210885320ded1cd9b7ff064248d145c93196820564d4d1d7f1b1f7391cc5f734a0e0bf6275ddcae106d0bd540e32b61 -EBUILD tcptrace-6.6.7_p6-r1.ebuild 1306 BLAKE2B ea153aeac89f314cfb17d255f843e91b53711af4666059785764081e2cc0b40afbc9ab44b3e543e686b5453045a94046c17a4a4ab617d6b7e4cc5efe2d1342da SHA512 b68f74c2a8f934ed73e2ff64584b5546f0fd012108011db38d1f04d4b608e8b4876ceef8e66e364a28f6889d0f39c33b58cda8ea8e7ca40a507bb36232e40014 +EBUILD tcptrace-6.6.7_p6-r1.ebuild 1532 BLAKE2B e9fe981fab2712a4dacdb1ee351412f2d506527fc6d1adf5cf60ad53e18821b2fb150de27851a43e97207dc07827f5e830061739717772f36f05e05ae9ec8c4e SHA512 4d9fca46342eb0f9c0fbca08ce712968f904b7b072c20436ea3006a9b877a4d6677693a37f45367ff47239eaa583cd37669a723bce2842bbf8a8acd9bb68ba67 +EBUILD tcptrace-6.6.7_p6-r2.ebuild 1615 BLAKE2B 38a337a20fc4524b264e9f05f641f4c314007407d0e890c30727cb1930494f4f047525a27769e816c4828a65b04f6d2d82e6e764085f24acd9ed949d35b9c4ff SHA512 1231a26f3b106dc3db1591c6cf44a199c02cfd63bb24d2ded70943300346f6c5c53d6b01a183b641ad5ed90abd30e5728430514701247f5641615b64512f8cad EBUILD tcptrace-6.6.7_p6.ebuild 1258 BLAKE2B 50e31667149561f66e255ffc1679c5b10dca42d209b4cfdf60b6eb8a27dbc0414b5415d803abaf0e09c303a4738a01bca431f0b5fa516d331e922f3e0fd5a33d SHA512 5e11ec5bdc8bb3a85b0e3ffb4ca896e2d71a66599e9be97e99260cafdc6d64ebc84955cea753a875c6cf0e151f0696150855f68c5c253c8e1d35d535014df64e MISC metadata.xml 277 BLAKE2B 57fc90092c4674e5c4dfe38b0d79c983990fce4e8208b70c2ebb218aebb6d2135537f927115f3a7b7eb8c1ddb596461c17e60acb3e6a11b289796f20f3c80a33 SHA512 5ac67e6beabab60f83ac521249c6d1f021988d522fc86ab12ec98fbaa9d47a50157c10c7b9a39554e66a02b141cdc6dc6669e5e7c9c02c8b36ad404aa790d619 diff --git a/net-analyzer/tcptrace/files/0001-configure.in-fix-implicit-function-declaration-causi.patch b/net-analyzer/tcptrace/files/0001-configure.in-fix-implicit-function-declaration-causi.patch new file mode 100644 index 000000000000..d9158bae6981 --- /dev/null +++ b/net-analyzer/tcptrace/files/0001-configure.in-fix-implicit-function-declaration-causi.patch @@ -0,0 +1,26 @@ +From f199970cdb38259f0748e79ece844dc2cd676cdf Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz93@gmail.com> +Date: Tue, 19 Mar 2024 21:39:10 -0400 +Subject: [PATCH] configure.in: fix implicit function declaration causing test + to mistest + +--- + configure.in | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/configure.in b/configure.in +index 38132e0..e973815 100644 +--- a/configure.in ++++ b/configure.in +@@ -51,6 +51,8 @@ dnl If strcmp returns 0, we are on an enironment that uses %llu, otherwise + dnl we are on a MacOSX environment that uses %qu + AC_TRY_RUN([ + #include <stdio.h> ++#include <string.h> ++#include <stdlib.h> + + #define NIX "%llu" + +-- +2.43.2 + diff --git a/net-analyzer/tcptrace/tcptrace-6.6.7_p6-r1.ebuild b/net-analyzer/tcptrace/tcptrace-6.6.7_p6-r1.ebuild index 6757aed273ce..5453f2914699 100644 --- a/net-analyzer/tcptrace/tcptrace-6.6.7_p6-r1.ebuild +++ b/net-analyzer/tcptrace/tcptrace-6.6.7_p6-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit autotools +inherit autotools flag-o-matic DESCRIPTION="A Tool for analyzing network packet dumps" HOMEPAGE="http://www.tcptrace.org/" @@ -38,6 +38,19 @@ src_prepare() { eautoreconf } +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/861260 + # + # Upstream site no longer exists. + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + + default +} + src_compile() { emake CCOPT="${CFLAGS}" } diff --git a/net-analyzer/tcptrace/tcptrace-6.6.7_p6-r2.ebuild b/net-analyzer/tcptrace/tcptrace-6.6.7_p6-r2.ebuild new file mode 100644 index 000000000000..c0cc55723524 --- /dev/null +++ b/net-analyzer/tcptrace/tcptrace-6.6.7_p6-r2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit autotools flag-o-matic + +DESCRIPTION="A Tool for analyzing network packet dumps" +HOMEPAGE="http://www.tcptrace.org/" +SRC_URI=" + http://www.tcptrace.org/download/${P/_p*}.tar.gz + http://www.tcptrace.org/download/old/$(ver_cut 1-2)/${P/_p*}.tar.gz + mirror://debian/pool/main/t/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz +" +S=${WORKDIR}/${P/_p*} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +DEPEND=" + net-libs/libpcap +" +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}"/${P/_p*}-cross-compile.patch + "${FILESDIR}"/${P/_p*}-_DEFAULT_SOURCE.patch + "${FILESDIR}"/${P/_p*}-fix-build-clang16.patch + "${FILESDIR}"/0001-configure.in-fix-implicit-function-declaration-causi.patch +) + +src_prepare() { + default + + eapply \ + $(awk '{ print "'"${WORKDIR}"'/debian/patches/" $0; }' < "${WORKDIR}"/debian/patches/series) + + eautoreconf +} + +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/861260 + # + # Upstream site no longer exists. + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + + default +} + +src_compile() { + emake CCOPT="${CFLAGS}" +} + +src_install() { + dobin tcptrace xpl2gpl + + newman tcptrace.man tcptrace.1 + dodoc CHANGES COPYRIGHT FAQ README* THANKS WWW +} + +pkg_postinst() { + if ! has_version ${CATEGORY}/${PN}; then + elog "Note: tcptrace outputs its graphs in the xpl (xplot)" + elog "format. Since xplot is unavailable, you will have to" + elog "use the included xpl2gpl utility to convert it to" + elog "the gnuplot format." + fi +} |