From e8537ce2ef0462ec7b08da3e62dd49d645b6b526 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 24 Jun 2021 16:26:44 +0300 Subject: [PATCH] www/youtube_dl: unbreak distfile fetch for IPv6-only nodes MASTER_SITES points to yt-dl.org which has both A and AAAA RRs, but IPv6 address from the AAAA RR is unreachable over many AS. Dual-stack nodes fallback to A RR if AAAA failed, but IPv6-only nodes can only try AAAA RR, resulting in distfile not being fetched. Add github.com to MASTER_SITES and use the same provided release tarball. IPv6-only nodes with DNS64 configured can use synthesized AAAA RR for github.com, with the upper 96 bits of NAT64 prefix and the lower 32 bits of the received IPv4 address from A RR. Reviewed by: Daniel Engberg --- www/youtube_dl/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/youtube_dl/Makefile b/www/youtube_dl/Makefile index 708fb44b5c82..ca319e3b1e1a 100644 --- a/www/youtube_dl/Makefile +++ b/www/youtube_dl/Makefile @@ -1,8 +1,9 @@ PORTNAME= youtube_dl -PORTVERSION= 2021.06.06 +DISTVERSION= 2021.06.06 CATEGORIES= www -MASTER_SITES= https://yt-dl.org/downloads/${PORTVERSION}/ -DISTNAME= youtube-dl-${PORTVERSION} +MASTER_SITES= https://github.com/ytdl-org/${PORTNAME:S/_/-/}/releases/download/${DISTVERSION}/ \ + https://yt-dl.org/downloads/${PORTVERSION}/ +DISTNAME= youtube-dl-${DISTVERSION} # Implicit approval to commit trivial version updates. MAINTAINER= multimedia@FreeBSD.org -- 2.32.0