Re: Getting MASTER_SITES for sourceforge ports more easily

2009-11-16 Thread Alexander Churanov
Folks,

Thank you for clarifications. Fetching just works if MASTER_SITES are
SF/something.

The correct URI may be viewed just using the browser. I've started
downloading a file from SF, then paused the download, examined the actual
URI the file is downloaded from and verified that URIs generated by
Makefiles for my ports are correct.

Alexander Churanov,
maintainer of devel/boost-*
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Getting MASTER_SITES for sourceforge ports more easily

2009-11-14 Thread Rainer Hurling

On 14.11.2009 08:54 (UTC+1), Eygene Ryabinkin wrote:

Sat, Nov 14, 2009 at 09:16:47AM +0300, Eygene Ryabinkin wrote:

The attached shell script should produce the MASTER_SITE_SUBDIR for the
SF-hosted ports for each URL given in the command-line.


Inlining the script -- it was dropped by the Mailman:
-
#!/bin/sh

while [ -n $1 ]; do
echo $1 | sed 
-Ee's%^htt(p|ps)://(sourceforge|sf)\.net/projects/(.*)/[^/]*/download$%MASTER_SITE_SUBDIR=
\3%'
shift
done
-


Isn't it something that should be mentioned in the porters handbook, for 
example in chapter 5.4.7?


Rainer Hurling
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Getting MASTER_SITES for sourceforge ports more easily

2009-11-13 Thread Dmitry Marakasov
Hi!

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/...

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amd...@amdmi3.ru  ..:  jabber: amd...@jabber.ruhttp://www.amdmi3.ru
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Getting MASTER_SITES for sourceforge ports more easily

2009-11-13 Thread Eygene Ryabinkin
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
{_.-``-' {_/#
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

Re: Getting MASTER_SITES for sourceforge ports more easily

2009-11-13 Thread Eygene Ryabinkin
Sat, Nov 14, 2009 at 09:16:47AM +0300, Eygene Ryabinkin wrote:
 The attached shell script should produce the MASTER_SITE_SUBDIR for the
 SF-hosted ports for each URL given in the command-line.

Inlining the script -- it was dropped by the Mailman:
-
#!/bin/sh

while [ -n $1 ]; do
echo $1 | sed 
-Ee's%^htt(p|ps)://(sourceforge|sf)\.net/projects/(.*)/[^/]*/download$%MASTER_SITE_SUBDIR=
  \3%'
shift
done
-
-- 
Eygene
 ____   _.--.   #
 \`.|\.....-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' ` ,   __.--'  #  to read the on-line manual
 )/' _/ \   `-_,   /#  while single-stepping the kernel.
 `-' `\_  ,_.-;_.-\_ ',  fsc/as   #
 _.-'_./   {_.'   ; /   #-- FreeBSD Developers handbook
{_.-``-' {_/#
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org