Date: 21 Jan 2001 06:34:43 +0100 From: Cyrille Lefevre <clefevre@citeweb.net> To: "T.D.Bishop" <tdb1@ukc.ac.uk> Cc: freebsd-ports@FreeBSD.ORG Subject: Re: ports/24362: Update port: misc/dnetc Message-ID: <vgr9sc24.fsf@gits.dyndns.org> In-Reply-To: "T.D.Bishop"'s message of "Tue, 16 Jan 2001 04:10:05 -0800 (PST)" References: <200101161210.f0GCA5I44420@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
"T.D.Bishop" <tdb1@ukc.ac.uk> writes: > The following reply was made to PR ports/24362; it has been noted by GNATS. > > From: "T.D.Bishop" <tdb1@ukc.ac.uk> > > > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vgr9sc24.fsf>