From owner-freebsd-ports Sat Jan 20 21:39:12 2001 Delivered-To: freebsd-ports@freebsd.org Received: from camus.cybercable.fr (camus.cybercable.fr [212.198.0.200]) by hub.freebsd.org (Postfix) with SMTP id B6C0F37B400 for ; Sat, 20 Jan 2001 21:38:53 -0800 (PST) Received: (qmail 37900484 invoked from network); 21 Jan 2001 05:36:09 -0000 Received: from s011.dhcp212-229.cybercable.fr (HELO gits.dyndns.org) ([212.198.229.11]) (envelope-sender ) by camus.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 21 Jan 2001 05:36:09 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.1/8.11.1) id f0L5Yjk41912; Sun, 21 Jan 2001 06:34:46 +0100 (CET) (envelope-from clefevre@citeweb.net) To: "T.D.Bishop" Cc: freebsd-ports@FreeBSD.ORG Subject: Re: ports/24362: Update port: misc/dnetc References: <200101161210.f0GCA5I44420@freefall.freebsd.org> X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C In-Reply-To: "T.D.Bishop"'s message of "Tue, 16 Jan 2001 04:10:05 -0800 (PST)" From: Cyrille Lefevre Reply-To: clefevre@noos.fr Mail-Copies-To: never Date: 21 Jan 2001 06:34:43 +0100 Message-ID: Lines: 47 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "T.D.Bishop" writes: > The following reply was made to PR ports/24362; it has been noted by GNATS. > > From: "T.D.Bishop" > > > > 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 you're right. I forgot the %SUBDIR% tag. sorry. the right answer is : MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/%SUBDIR%/ \ http://http.distributed.net/pub/dcti/%SUBDIR%/ MASTER_SITE_SUBDIR= ${PORTVERSION:S/^/v/:R} $ make fetch-list /usr/bin/env /usr/bin/fetch -A ftp://ftp.distributed.net/pub/dcti/v2.8010/dnetc463-freebsd-x86-elf.tar.gz ||echo dnetc463-freebsd-x86-elf.tar.gz not fetched > 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 :) sorry for the late answer, but my "poboxes" doesn't seem to be working anymore! maybe too much traffic? please, answer to clefevre@noos.fr, thanks. Cyrille. -- home: mailto:clefevre@citeweb.net work: mailto:Cyrille.Lefevre@edf.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message