On Wed, Jan 6, 2010 at 10:18 PM, Nick Templeton <n...@nicktempleton.com> wrote:
> I'm working on a port and I'm having some difficulties when it comes to 
> fetching the source. One of the distfiles has parameters in the URL to grab a 
> particular version:
> http://scriptdev2.svn.sourceforge.net/viewvc/scriptdev2.tar.gz?view=tar&amp;pathrev=1541
>
> And another gets redirected a few times before the actual tarball gets 
> downloaded:
> http://github.com/mangos/mangos/tarball/6343914ef95c4a3291f296c26e5d754bf743c9ad
>
> Both result in file names that are not easily handled when it comes time to 
> extract or build the list of distfiles. I'm currently handling this in a 
> pre-fetch target (with ftp(1)'s -o option) but this is "strongly discouraged" 
> by the porting docs. I can't believe I'm the first to come across this, but 
> couldn't find anything in the archives.
>

You didn't give the homepage of the project(s) you are looking to
port, but I assumed you're looking to port this one
http://getmangos.com/ . If so, I navigated to this link:
http://github.com/mangos/mangos/downloads

Clicking on the v0.14 tgz file got me here:
http://github.com/mangos/mangos/tarball/v0.14

and trying to download that, redirected me to the link below which
should work fine with the ports system:
http://download.github.com/mangos-mangos-d7237e4.tar.gz

The 634391...9ad link above is for an arbitrary commit and probably
not what you'd want to start with. But if you do need something more
recent than the latest tagged version, you'll likely need to mirror a
source snapshot yourself as Stuart mentioned. As you've discovered,
renaming URLs isn't really supported in the ports system. Does that
help?

Reply via email to