Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] download problem in ebuild
Date: Tue, 23 Aug 2005 02:44:07
Message-Id: 20050823023859.GA8373@lion.gg3.net
In Reply to: [gentoo-dev] download problem in ebuild by Nick Rout
1 maillog: 23/08/2005-14:33:52(+1200): Nick Rout types
2 > I am not sure how to deal with this problem.
3 >
4 > Lost Labyrinth is a game I am trying to write an ebuild for. I am stuck
5 > on downloading, which isn't very encouraging.
6 >
7 > The URL to download the gane is:
8 >
9 > http://laby.toybox.de/download15/
10 >
11 > which redirects to the latest version of the file (currently
12 > laby_1.0.1.tar.gz)
13 >
14 > Unfortunately the redirect results in wget naming the file:
15 >
16 > download2.php?fileid=15
17 >
18 > which is where the pain starts!
19 >
20 > wget does work ok if you use the -O optin like:
21 >
22 > wget http://laby.toybox.de/download15/ -O laby_1.0.1.tar.gz
23 >
24 > So, i am looking for a way to ensure that wget, when operated through
25 > portage, will append the -O, or I am wondering if there is a way to
26 > over-ride the default fetching behaviour in the ebuild itself, something
27 > like:
28 >
29 > DOWNLOAD_CMD="wget http://laby.toybox.de/download15/ -O
30 > laby_$(P).tar.gz"
31
32 Why not use http://laby.toybox.de/download15/laby_1.0.1.tar.gz ?
33 Or http://laby.toybox.de/download15/${PN}_${PV}.tar.gz
34 --
35 *) Georgi Georgiev *) Mandrell: "You know what I think?" Doctor: *)
36 (* chutz@×××.net (* "Ah, ah that's a catch question. With a (*
37 *) +81(90)2877-8845 *) brain your size you don't think, right?" - *)
38 (* ------------------- (* - Dr. Who (*
39 --
40 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] download problem in ebuild Nick Rout <nick@×××××××.nz>