From 5a31d854eec302fd1efb1466af757e520ae4e1dc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 19 Nov 2023 17:06:50 +0000 Subject: gentoo auto-resync : 19:11:2023 - 17:06:49 --- net-dns/dnstop/Manifest | 4 ++- net-dns/dnstop/dnstop-20140915-r3.ebuild | 39 ++++++++++++++++++++++ .../dnstop/files/dnstop-20140915-musl-fix.patch | 16 +++++++++ net-dns/dnstop/metadata.xml | 2 ++ 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 net-dns/dnstop/dnstop-20140915-r3.ebuild create mode 100644 net-dns/dnstop/files/dnstop-20140915-musl-fix.patch (limited to 'net-dns/dnstop') diff --git a/net-dns/dnstop/Manifest b/net-dns/dnstop/Manifest index 50e66d8a2d7b..2a88f0396286 100644 --- a/net-dns/dnstop/Manifest +++ b/net-dns/dnstop/Manifest @@ -1,4 +1,6 @@ +AUX dnstop-20140915-musl-fix.patch 397 BLAKE2B 02edc7a2f460b54e7746dd53a2f81fdfdcf8cdaf18d2ff8476927dcebc01c8c99d8a5a111c6458bebca4095e9b11a0af3c624f2b32e08af54e7b9893e38592b3 SHA512 82f1e6295a07fb60054b07d3fe8d2f1c56cbf5272c7596df36e59f9f9d085a18d94996980ffad63efadafea71d13b58db427aba5bcc36f3a7cacf4667acf9c9a AUX dnstop-20140915-pkg-config.patch 966 BLAKE2B df7deb0cf71854795135798f7c38337aedcea7b76260ec9519fc2e49d674766b44b61eac6f0119138ee1e6bee7d2688e44e843229544f0f8468179b61b36a3d0 SHA512 53181f734dadf5d5e91a69e626ab1a76b36d4a3c91b7360f66c6ef3375296ba67415ef27bc2af4f440511c126a927ae20838788b9b48061c5ceca9c8c3832cbf DIST dnstop-20140915.tar.gz 77917 BLAKE2B afe9cdebc7d71c9bc5ec76ba133170809cdf135d6320ff7e057e6e7d81f3cdc6aed379567c113b34e863d0c39a26e0b6c7ac52a6000f9482fa10917afd000a45 SHA512 902cf96f7366983cae4bf684e44fbe12f6e982cee8ff489329e25e1a13de60870d356906a99fee56c6da2258c4a39074a504389549c6c2e239a4ea94d8b9a65d EBUILD dnstop-20140915-r2.ebuild 646 BLAKE2B fffc67cdd6d1c14d6949d09146a5c01dda31a8dc4e5421c4ecb13fc8382129a3fbecc6d846b54c7a1ff12c8cf869088d6ce6f7611b3c535b1e9a21facdb83238 SHA512 8e991162357cf9980f6b47e9a090c80f8024d68aa3d567b1223ab150607ee775e8cfa475cb9529fc6b379bed9263ddac2fcc49f99a4b47589cb96fa69a729cc3 -MISC metadata.xml 360 BLAKE2B 893bbe16dfaa3beb941f57ede5d8efea0b76e3b50d56dfc7bde6614abeb1a8e9dafd2780b5cd2e0f261c176e403f43e61cb0a38e1086e0a25e968e2ec30f467c SHA512 579c4a6418b604d34eb3724a148100263336e3a3f1cb2f6433dfce4ea52819eb6f2a36835eadd241691c2332526f9051e0228a240d10f486778401a1fb09dffb +EBUILD dnstop-20140915-r3.ebuild 738 BLAKE2B 479e86d717f5d36dbd16b84daa8be2f0dadb260f92143fca87b4104bd6ea5d97aed6c1c9b668b036f8e5a1d2b4156ca23523dbd6d8419351af6984bac8cdb92c SHA512 bc89a0fb65bea43f3494d87bff2e271c14f37f99479954b990ff41961962805230b599e81b91451178c9276be0818f76c20e181701575a57a49fe4e52eb33678 +MISC metadata.xml 504 BLAKE2B 7b6ff3d8a0ca1c8bb655668a1b3233647db5190b7a55264bcb5a9b9178e94dd1bd30a657eab5f0b36a400c1752ca0d4da7c6863d6ae3d931502f5be271d33c7d SHA512 f05cc3871dcd806b36466694370b569c600d643a4cb6c7913d711c37d561876e5e27e695df6bc3f207f7e069f6abeb94ef85c92849a9c9fc0ec167bf387c8332 diff --git a/net-dns/dnstop/dnstop-20140915-r3.ebuild b/net-dns/dnstop/dnstop-20140915-r3.ebuild new file mode 100644 index 000000000000..fd94f6164029 --- /dev/null +++ b/net-dns/dnstop/dnstop-20140915-r3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="Displays various tables of DNS traffic on your network" +HOMEPAGE="https://github.com/measurement-factory/dnstop" +SRC_URI="http://dns.measurement-factory.com/tools/dnstop/src/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86" + +RDEPEND="sys-libs/ncurses:0 + net-libs/libpcap" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}"-pkg-config.patch + "${FILESDIR}/${P}"-musl-fix.patch + ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + append-cflags -D_GNU_SOURCE + econf --enable-ipv6 +} + +src_install() { + dobin dnstop + doman dnstop.8 + dodoc CHANGES +} diff --git a/net-dns/dnstop/files/dnstop-20140915-musl-fix.patch b/net-dns/dnstop/files/dnstop-20140915-musl-fix.patch new file mode 100644 index 000000000000..ddd1687c469e --- /dev/null +++ b/net-dns/dnstop/files/dnstop-20140915-musl-fix.patch @@ -0,0 +1,16 @@ +Fixes compilation with musl +Patch by Natanael Copa +https://gitlab.alpinelinux.org/alpine/aports/-/issues/2890 +https://bugs.gentoo.org/717202 + +--- a/dnstop.c ++++ b/dnstop.c +@@ -69,7 +69,7 @@ + #define ETHERTYPE_IPV6 0x86DD + #endif + +-#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) ++#if defined(__GLIBC__) || defined(__GNU__) + #define uh_dport dest + #define uh_sport source + #endif diff --git a/net-dns/dnstop/metadata.xml b/net-dns/dnstop/metadata.xml index 08133e9b29b5..806de5e7629e 100644 --- a/net-dns/dnstop/metadata.xml +++ b/net-dns/dnstop/metadata.xml @@ -5,5 +5,7 @@ http://dns.measurement-factory.com/tools/dnstop/src/CHANGES http://dns.measurement-factory.com/tools/dnstop/dnstop.8.html + measurement-factory/dnstop + https://github.com/measurement-factory/dnstop/issues -- cgit v1.2.3