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, 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.

        Geert



Home | Main Index | Thread Index | Old Index