cvs commit: ports/www Makefile ports/www/xpi-vimperator Makefile distinfo pkg-descr

Alexey Dokuchaev danfe at FreeBSD.org
Sat Apr 14 22:12:23 UTC 2007


On Sun, Apr 15, 2007 at 02:06:16AM +0400, Stanislav Sedov wrote:
> On Sun, 15 Apr 2007 01:28:36 +0400
> "Andrew Pantyukhin" <infofarmer at FreeBSD.org> mentioned:
> > >
> > > Yeah, i was amazingly glad to discover it:-)
> > >
> > > > -MASTER_SITES=  ${MASTER_SITE_MOZDEV}
> > > > -MASTER_SITE_SUBDIR=    ${PORTNAME}
> > > > -DISTNAME=      ${PORTNAME}_${PORTVERSION}
> > > > +MASTER_SITES=  MOZDEV
> > > > +DISTNAME=      ${PORTNAME}_${DISTVERSION}
> > >
> > > Hmm. Why use ${DISTVERSION} instead of PORTVERSION?
> >
> > grep '^DISTNAME' /usr/ports/Mk/bsd.port.mk
> >
> 
> Thanks for explanation, I obviously was not informed about this file;-)
> Seriously, I see no reason to use ${DISTVERSION} instead of
> PORTVERSION,  and you didn't give one.

In most cases, it's a noop.  However, DISTVERSION is more generic, since
it takes care of beta/rc/pre affixes for you (i.e. yields correct
PORTVERSION which should pass pkg_version -t test when updating to final
release).

./danfe


More information about the cvs-all mailing list