Getting MASTER_SITES for sourceforge ports more easily

Eygene Ryabinkin rea-fbsd at codelabs.ru
Sat Nov 14 06:16:54 UTC 2009


Sat, Nov 14, 2009 at 07:04:17AM +0300, Dmitry Marakasov wrote:
> Recently there have been at least two questions about a correct way
> of defining MASTER_SITES for SourceForge-hosted projects. Here's a
> way to make it a bit easier: it's a GreaseMonkey
> (https://addons.mozilla.org/en-US/firefox/addon/748) script that
> converts links on sourceforge pages to direct links.
> 
> http://userscripts.org/scripts/show/50136
> 
> With this, links like .../download will be changed to direct ones, which
> can be copypasted to SF/...

The attached shell script should produce the MASTER_SITE_SUBDIR for the
SF-hosted ports for each URL given in the command-line.
-- 
Eygene
 _                ___       _.--.   #
 \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' `         ,       __.--'      #  to read the on-line manual
 )/' _/     \   `-_,   /            #  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook
    {_.-``-'         {_/            #


More information about the freebsd-ports mailing list