MASTER_SITES/MASTER_SITE_SUBDIR for perl ports

milki milki at rescomp.berkeley.edu
Thu Feb 10 10:31:24 UTC 2011


On 11:14 Thu 10 Feb     , Anton Berezin wrote:
> > Wouldn't an option be to actually dynamically generation the SUBDIR                                                                                                                                                                                                             
> > based on cpan's 02package.details.txt then?
> 
> Could you clarify what you mean by that?
> 
> During the port creation/update by a maintainer?  Nothing prevents the
> maintainer to use whatever tools to make this happen.

It seems some authors are already doing this. It's just the current
default MASTER_SITES use the /modules/by_module synatx so the SUBDIR must
recures up the tree before going into /authors/id or /by-authors and
that portlint will complain.

If CPAN defaults to the author url, I think it would be more
reliable to default to the same urls.

> 
> During the actual port installation?  I think that would be a bad
> idea.

I was originally thinking of this method, but it does seem pretty
cumbersome: find a mirror/retreat and extract 02package.details.txt and
parse out author path. However, the file only contains the path for the
latest version so it would not be compatible at all.



-- 
milki
milki at rescomp.berkeley.edu
RSSP-IT programmers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-perl/attachments/20110210/f134929f/attachment.pgp


More information about the freebsd-perl mailing list