Subject: Re: rename a DISTFILE at download time?
To: None <pkgsrc-users@netbsd.org>
From: OBATA Akio <obache@netbsd.org>
List: pkgsrc-users
Date: 07/04/2007 18:44:09
On Wed, 04 Jul 2007 18:14:00 +0900, Geert Hendrickx <ghen@telenet.be> wr=
ote:

> On Wed, Jul 04, 2007 at 09:58:11AM +0100, Adrian Portelli wrote:
>> Geert Hendrickx wrote:
>> > On Tue, Jul 03, 2007 at 06:12:39PM -0700, reed wrote:
>> >> Have a look at the pre-fetch target for an example in
>> >> pkgsrc/net/vncviewer/Makefile
>> >
>> > pre-fetch:
>> > 	${TEST} -f ${DISTDIR}/${DISTNAME}.tar.gz || \
>> > 	(cd ${DISTDIR} && ${FETCH_CMD} -o ${DISTNAME}.tar.gz ${DISTURL:Q})=

>> >
>> > Is it garantueed that all FETCH_CMD's support -o?
>> >
>> > 	Geert
>>
>> In short, no :)
>>
>> e.g.
>>
>> http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/security/audit-packages/fi=
les/download-vulnerability-list?rev=3D1.29&content-type=3Dtext/x-cvsweb-=
markup
>>
>> lines 66-68.
>
> Then vncviewer is broken on sites using e.g. wget.  Maybe we should pu=
t
> infrastructure in place to abstract "ftp -o $target $source".  It coul=
d
> be a more elegant solution for the DIST_SUBDIR hack, too.

We should use ${FETCH_OUTPUT_ARGS} instead of "-o".
I already added definition for wget in mk/fetch/fetch.mk last month.

-- =

"Of course I love NetBSD":-)
OBATA Akio / obache@NetBSD.org