Subject: Re: Unversioned packages
To: Bruce J.A. Nourish <bjan+tech-pkg@bjan.net>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 12/27/2003 22:08:02
On Sat, Dec 27, 2003 at 01:37:04PM -0700, Bruce J.A. Nourish wrote:
> Is there an example of how to deal with unversioned source releases?
> Basically, the source code is simply released as xxx-current.tgz,
> which could be updated at any time. I'm thinking that perhaps the
> installed package could get the name xxx-YYYMMDD. But then how
> would updates (e.g. via pkg_chk) be handled?

The best way is to contact the author and to ask that he makes
versioned distfiles -- he can always symlink/link/copy the latest
to xxx-current.tgz.

The usual workaround is to do something like this:
DISTNAME=	xxx-current.tgz
PKGNAME=	xxx-20031227
...
DIST_SUBDIR=	${PKGNAME_NOREV}
...

 Thomas