From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E7OnO-0004b6-GH for garchives@archives.gentoo.org; Tue, 23 Aug 2005 02:45:50 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7N2iLmu004269; Tue, 23 Aug 2005 02:44:21 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7N2f6R9006098 for ; Tue, 23 Aug 2005 02:41:06 GMT Received: from p54a67c34.dip.t-dialin.net ([84.166.124.52] helo=andy.genone.homeip.net) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1E7OjZ-0000sK-AO for gentoo-dev@lists.gentoo.org; Tue, 23 Aug 2005 02:41:53 +0000 Date: Tue, 23 Aug 2005 04:41:49 +0200 From: Marius Mauch To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] download problem in ebuild Message-ID: <20050823044149.49a2bf61@andy.genone.homeip.net> In-Reply-To: <20050823142559.B332.NICK@rout.co.nz> References: <20050823142559.B332.NICK@rout.co.nz> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: f6d65cc2-5880-47e5-947d-2a25ff61b214 X-Archives-Hash: a97d044b6c935653ab4ccb0888a733d3 On 08/23/05 Nick Rout wrote: > I am not sure how to deal with this problem. > > Lost Labyrinth is a game I am trying to write an ebuild for. I am > stuck on downloading, which isn't very encouraging. > > The URL to download the gane is: > > http://laby.toybox.de/download15/ > > which redirects to the latest version of the file (currently > laby_1.0.1.tar.gz) > > Unfortunately the redirect results in wget naming the file: > > download2.php?fileid=15 > > which is where the pain starts! > > wget does work ok if you use the -O optin like: > > wget http://laby.toybox.de/download15/ -O laby_1.0.1.tar.gz > > So, i am looking for a way to ensure that wget, when operated through > portage, will append the -O, or I am wondering if there is a way to > over-ride the default fetching behaviour in the ebuild itself, > something like: > > DOWNLOAD_CMD="wget http://laby.toybox.de/download15/ -O > laby_$(P).tar.gz" Nope. You have three options: a) bug upstream to fix that crap b) use RESTRICT="fetch" c) assuming the license permits it, repackage it Marius -- Public Key at http://www.genone.de/info/gpg-key.pub In the beginning, there was nothing. And God said, 'Let there be Light.' And there was still nothing, but you could see a bit better. -- gentoo-dev@gentoo.org mailing list