On Tue, Oct 04, 2011 at 02:11:13PM -0400, David Cantrell wrote: > On 10/04/2011 01:39 PM, Antoine Jacoutot wrote: > >On Tue, 4 Oct 2011, David Cantrell wrote: > > > >>I'm working on a local port where the source archive is not available via > >>anything other than svn. I'm trying to use pre-fetch to see if a checkout > >>of > >>the release I want already exists in /usr/ports/distfiles and if not, check > >>it > >>out. I'm trying something like this: > > > >Why don't you create a tarball of the checkout and host it? > > That's not really the solution I'm after. The project itself does > not have a release engineer and I'm not looking to become one for > it. I am just trying to put together a local port that some other > coworkers can use to build packages of a specific checkout from the > svn repo.
Don't use pre-fetch, it's heavily deprecated. In fact, don't override any of pre-fetch, do-fetch, post-fetch. I have code around here somewhere that actually turns these (and other targets that shouldn't *ever* get used into fatal errors. Release engineer or not, we really only support tarballs. make one, get a shell script to make one, or whatever. As far as exists(): it's frowned upon, since it gets evaluated *each time* the Makefile gets used. In most circumstances, it's ways better to use test in the shell fragment associated to a given target.