From owner-freebsd-questions@FreeBSD.ORG Mon Feb 2 06:02:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF92616A4CE for ; Mon, 2 Feb 2004 06:02:38 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB91B43D31 for ; Mon, 2 Feb 2004 06:02:36 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 26243 invoked from network); 2 Feb 2004 14:02:30 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 2 Feb 2004 14:02:30 -0000 Date: Mon, 2 Feb 2004 16:04:20 +0200 From: Ion-Mihai Tetcu To: nelis@8ball.co.za Message-Id: <20040202160420.152773c4@it.buh.cameradicommercio.ro> In-Reply-To: <1075726959.274.168.camel@enigma.8ball.co.za> References: <20040202142553.7b82b58b@it.buh.cameradicommercio.ro> <1075726959.274.168.camel@enigma.8ball.co.za> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: fetch fails, ftp works question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 14:02:39 -0000 On Mon, 02 Feb 2004 15:02:40 +0200 Nelis Lamprecht wrote: > On Mon, 2004-02-02 at 14:25, Ion-Mihai Tetcu wrote: > > Hi, > > > > I have the feeling this is in some FAQ, but I don't understand it. > > > > I have a ftp server on which I have the distfiles and I'm using it > > as > > MASTER_SITE_OVERRIDE=ftp://user:pass@host/pub/FreeBSD/ports/distfil > > es/${DIST_SUBDIR+DIST_SUBDIR/} > > > > It usually work ok on make fetch. But sometimes it doesn't, e.g. > > fetch > > ftp://user:pass@host/pub/FreeBSD/ports/distfiles/MailScanner-4.25-14.tar.gz > > fetch: > > ftp://user:pass@host/pub/FreeBSD/ports/distfiles/MailScanner-4.25-14.tar.gz: > > File unavailable (e.g., file not found, no access) > > > > However the following works: > > ftp > > ftp://user:pass@host/pub/FreeBSD/ports/distfiles/MailScanner-4.25-14.tar.gz > > > > Can somebody enlighten me ? > > Try using the FTP_LOGIN and FTP_PASSWORD variables. The odd thing is that for some ports it works and for some it doesn't, so I don't think is an authentication problem. > If all else fails you can try the FETCH_CMD variable in /etc/make.conf > and change it to use ftp, wget etc. Yes, I'm trying that also; the problem is that, if I use: FETCH_CMD=/usr/bin/ftp FETCH_BEFORE_ARGS=-v some fetching fails because ftp gets passed an -S option (I presume for the files that have the new SIZE in the distinfo). The same for axel, etc. The hole infrastructure is based on the assumption FETCH_CMD=/usr/bin/fetch ( and FETCH_BEFORE_ARGS=ARr ) and I found no way to override passing '-S'. > Oh, not sure if that was a typo above but it should be: > MASTER_SITE_OVERRIDE?= > ftp://user:pass@host/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ Why ? ${DIST_SUBDIR+DIST_SUBDIR/} will expand in DIST_SUBDIR with an ending '/' if $DIST_SUBDIR is set and will be blank otherwise. If I use ${DIST_SUBDIR}/ the ending slash will be added even if the distfile is in /usr/ports/distfiles/ (== pub/FreeBSD/ports/distfiles/) e.g. pub/FreeBSD/ports/distfiles//my_distfile and the fetch will fail. Theoretically on the 'host' machine I should have all the distfiles, so I want all downloads to be made from there. I don't remember what the '?=' means. Thanks, -- IOnut Unregistered ;) FreeBSD user