From 4e8331167baf915dcfab8e84f7ec66c3d4ecb500 Mon Sep 17 00:00:00 2001 From: Andrej Zverev Date: Sun, 30 Aug 2015 10:08:11 +0000 Subject: Help portscout to detect a new version of the module on CPAN if the AUTHOR_ID for the new version and the current are not equal. This is only partial hack and won't work for all modules. --- Mk/bsd.sites.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Mk/bsd.sites.mk') diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk index f596f14b9cee..c51294d5fa2e 100644 --- a/Mk/bsd.sites.mk +++ b/Mk/bsd.sites.mk @@ -1038,17 +1038,17 @@ MASTER_SITE_PERL_CPAN_BY+= \ http://backpan.perl.org/%CPANSORT%/%SUBDIR%/ \ ftp://ftp.funet.fi/pub/languages/perl/CPAN/%CPANSORT%/%SUBDIR%/ \ http://ftp.twaren.net/Unix/Lang/CPAN/%CPANSORT%/%SUBDIR%/ \ - ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%SUBDIR%/ \ - http://www.cpan.dk/modules/by-module/%SUBDIR%/ + http://cpan.metacpan.org/modules/by-module/%SUBDIRPLUS%/ \ + ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%SUBDIRPLUS%/ _PERL_CPAN_FLAG=${MASTER_SITE_SUBDIR:C/(CPAN):.*$/\1/} _PERL_CPAN_ID= ${MASTER_SITE_SUBDIR:C/^CPAN:(.)(.)(.*)$/\1\/\1\2\/\1\2\3/} .if !empty(_PERL_CPAN_ID) && ${_PERL_CPAN_FLAG:tl} == "cpan" _PERL_CPAN_SORT=authors/id/${_PERL_CPAN_ID} - MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/:S/%SUBDIR%\///} + MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/:S/%SUBDIR%\///:S/%SUBDIRPLUS%\//${PORTNAME:C/-.*//}\//} .else - MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/} + MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/:S/%SUBDIRPLUS%\///} .endif .endif -- cgit v1.2.3