From owner-freebsd-ports Tue Jan 16 4:10:25 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 238ED37B6A0 for ; Tue, 16 Jan 2001 04:10:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0GCA5I44420; Tue, 16 Jan 2001 04:10:05 -0800 (PST) (envelope-from gnats) Date: Tue, 16 Jan 2001 04:10:05 -0800 (PST) Message-Id: <200101161210.f0GCA5I44420@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "T.D.Bishop" Subject: Re: ports/24362: Update port: misc/dnetc Reply-To: "T.D.Bishop" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/24362; it has been noted by GNATS. From: "T.D.Bishop" To: clefevre@poboxes.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: ports/24362: Update port: misc/dnetc Date: Tue, 16 Jan 2001 12:01:47 +0000 (GMT) > > PORTNAME= dnetc > > -PORTVERSION= 2.8010.463 > > +PORTVERSION= 2.8012.465 > > CATEGORIES= misc > > -MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/v2.8010/ \ > > - http://http.distributed.net/pub/dcti/v2.8010/ > > +MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/v2.8012/ \ > > + http://http.distributed.net/pub/dcti/v2.8012/ > > this could be rewritten as : > > MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/ \ > http://http.distributed.net/pub/dcti/ > MASTER_SITE_SUBDIR= ${PORTVERSION:S/^/v/:R} This doesn't actually work, at least when I tried changing the Makefile to the above. I can see (and have tested seperately) that the following regular expression will turn "2.8012.465" into "v2.8012". s/^([0-9]*\.[0-9]*)\..*/v\1/ But trying to put this into the Makefile didn't work. I'm not entirely sure about the way in which Makefiles implement regular expressions. Feedback appreciated :) Tim. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message