Subject: Re: CVS commit: pkgsrc/devel/psvn
To: Takahiro Kambe <taca@back-street.net>
From: None <david.sainty@dtsp.co.nz>
List: pkgsrc-changes
Date: 06/13/2007 01:05:13
Takahiro Kambe writes:
> In message <20070612091441.GB4374@britannica.bec.de>
> on Tue, 12 Jun 2007 11:14:41 +0200,
> Joerg Sonnenberger <joerg@britannica.bec.de> wrote:
> > I get checksum errors.
> Do you have any good idea to fetch specific revision from SVN? As like:
>
> http://svn.collab.net/viewvc/*checkout*/svn/trunk/contrib/client-side/emacs/psvn.el?revision=25168
I'm slightly embarrassed to say that I have (used) a solution to this.
For this case it'd probably look something like:
VER= 25168
DISTNAME= psvn-${VER}
MASTER_SITES= http://svn.collab.net/viewvc/*checkout*/svn/trunk/contrib/client-side/emacs/psvn.el?revision=${VER}&file=
EXTRACT_SUFX= .el
FETCH_BEFORE_ARGS+= -o ${DISTNAME}${EXTRACT_SUFX}
The hack is the "file=" bit of the URL, which is just there to arrange
for the appended distfile name to be ignored. The remote web service
will just ignore the "file" parameter.
If the MASTER_SITES fails, it can fail over to ftp.n.o and download
the reasonably named distfile "psvn-25168.el".