On 2020/06/22 02:59, Yozo TODA wrote: > I've playing with some perl modules a few days, and found > some obsolete information in cpan.port.mk and port-modules.5. > > "http://search.cpan.org/dist/" should be now "https://metacpan.org/release/" > (all accesses are redirected now...) > > reference: > Saying Goodbye to search.cpan.org (Jun 26, 2018 by Olaf Alders) > https://www.perl.com/article/saying-goodbye-to-search-cpan-org/ > > I suppose cpan.port.mk and port-modules.5 should be updated. > anyone please confirm the following diff? > > > Index: infrastructure/mk/cpan.port.mk > =================================================================== > RCS file: /cvs/ports/infrastructure/mk/cpan.port.mk,v > retrieving revision 1.21 > diff -u -p -r1.21 cpan.port.mk > --- infrastructure/mk/cpan.port.mk 4 Feb 2019 20:53:09 -0000 1.21 > +++ infrastructure/mk/cpan.port.mk 21 Jun 2020 17:53:40 -0000 > @@ -7,7 +7,7 @@ MASTER_SITES ?= ${MASTER_SITE_PERL_CPAN: > MASTER_SITES ?= > ${MASTER_SITE_PERL_CPAN:=../by-authors/id/${CPAN_AUTHOR:C/^(.).*/\1/}/${CPAN_AUTHOR:C/^(..).*/\1/}/${CPAN_AUTHOR}/} > .endif > > -HOMEPAGE ?= http://search.cpan.org/dist/${DISTNAME:C/-[^-]*$//}/ > +HOMEPAGE ?= https://metacpan.org/release/${DISTNAME:C/-[^-]*$//}/ > > CATEGORIES += perl5 > .if ! ${CONFIGURE_STYLE:L:Mperl}
It does seem a good idea, but it's a lot of work, it is necessary to bump REVISION in all ports where the HOMEPAGE is changed as a result of this. That is around 1700 ports.