pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: rename a DISTFILE at download time?
On Wed, 04 Jul 2007 18:14:00 +0900, Geert Hendrickx <ghen%telenet.be@localhost>
wrote:
> 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/files/download-vulnerability-list?rev=1.29&content-type=text/x-cvsweb-markup
>>
>> lines 66-68.
>
> Then vncviewer is broken on sites using e.g. wget. Maybe we should put
> infrastructure in place to abstract "ftp -o $target $source". It could
> 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@localhost
Home |
Main Index |
Thread Index |
Old Index