View previous topic :: View next topic |
Author |
Message |
eddieparker Tux's lil' helper
Joined: 09 Sep 2004 Posts: 147
|
Posted: Thu Jan 03, 2008 5:36 am Post subject: [solved-sorta] Automagic wget for sourceforge? |
|
|
Hey!
This is kind of an "out there" question, but I've asked such things before and the community has come back with some interesting answers... so I thought I'd give it a try.
Anyone know of a utility that I can use from the command line to download files from sourceforge? I traditionally go to the website (from my WinXP computer) and navigate to the mirror, find the direct download link, cuss and hyperventilate at the auto-download that's starting, and then copy paste that to wget on my server.
I was hoping there'd be something easier, like "wget --sourceforge-style http://someproject.sourceforge.net/downloads/downloadfile.tgz", and it either auto-picks the closest mirror, or I specify it somewhere.
Anyone heard of something like this, or am I just dreaming?
Thanks!
-e-
Last edited by eddieparker on Sat Jan 05, 2008 1:59 am; edited 1 time in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Jan 03, 2008 10:08 am Post subject: |
|
|
Arch Linux uses in tons of packages:
Code: | source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2) |
Which equates to:
Code: | wget http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2 |
|
|
Back to top |
|
|
marschw n00b
Joined: 04 Jun 2003 Posts: 51
|
|
Back to top |
|
|
Nick C Guru
Joined: 18 Mar 2005 Posts: 526 Location: Portsmouth, England
|
Posted: Fri Jan 04, 2008 10:30 pm Post subject: |
|
|
if you know any python you could nose around the portage code that handles this as if you look in any ebuild that uses a sf host they have a special way of handling it, which appears similar to what you want i think, perhaps you could borrow/base a program on that to do what you need? _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved.
www.monkeydust.net |
|
Back to top |
|
|
eddieparker Tux's lil' helper
Joined: 09 Sep 2004 Posts: 147
|
Posted: Sat Jan 05, 2008 1:58 am Post subject: |
|
|
Hrmm, allowing that works universally, scripting that shouldn't be too bad. I'll give that a try soon.
Hrmm, interesting. I forgot I can get it from the mainpage. Seeing as how I have to see what downloads there are, that might be the 'easiest' I can make it.
Quote: |
if you know any python you could nose around the portage code that handles this as if you look in any ebuild that uses a sf host they have a special way of handling it, which appears similar to what you want i think, perhaps you could borrow/base a program on that to do what you need?
|
That's essentially what I was after, but after thinking about marschw's post, I realize there's no easy way to divine what version number I want - and determining it would . I suppose if I could do something like "sfwget.sh [package name]" and have it auto-determine the latest version number, I might revisit this script. We'll see. Any ideas on how to do so would be appreciated. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|