From owner-freebsd-questions@FreeBSD.ORG Fri Jun 17 15:51:11 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5BD7E16A41C for ; Fri, 17 Jun 2005 15:51:11 +0000 (GMT) (envelope-from rpratt1950@earthlink.net) Received: from smtpauth05.mail.atl.earthlink.net (smtpauth05.mail.atl.earthlink.net [209.86.89.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18C8743D1D for ; Fri, 17 Jun 2005 15:51:11 +0000 (GMT) (envelope-from rpratt1950@earthlink.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=tsXw0dFcOYMSOuuDyREbyqscpU6fP0QcFKsPyOfohlgLdHH4FeNww6dFXRov1yfq; h=Received:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [71.3.68.198] (helo=kt.weeble.com) by smtpauth05.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DjJ7Z-00007i-8u; Fri, 17 Jun 2005 11:51:05 -0400 Date: Fri, 17 Jun 2005 11:51:03 -0400 From: Randy Pratt To: arek@wup-katowice.pl Message-Id: <20050617115103.45f8bd5f.rpratt1950@earthlink.net> In-Reply-To: <42B2D335.9070807@wup-katowice.pl> References: <3d92e23305061705272654300a@mail.gmail.com> <42B2D335.9070807@wup-katowice.pl> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd4.11) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-ELNK-Trace: 96132b9c1759af1df21c5f5255d6c174239a348a220c26098bbf01390957b90b8b64ae575561f874350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 71.3.68.198 Cc: freebsd-questions@freebsd.org, fatcat1985@gmail.com Subject: Re: A question about dwnloading Ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 15:51:11 -0000 On Fri, 17 Jun 2005 15:42:13 +0200 Arek Czereszewski wrote: > U=C5=BCytkownik =E5=AD=90=E8=80=97 napisa=C5=82: >=20 > > I am a new user to Freebsd. I do not have a high speed connection, so > > I could not install softwares from ports directly. It takes me a lot > > of time. I wonder how to download the whole ports, so that I could > > download it in Net Cafe, and save it to my moible harddisk and then, I > > could install softwares after I get home. It is of no use to download > > the ports trees only. I need to download all the source codes the > > first time, and I could use cvs system to update it. > >=20 >=20 > If you want for example install mc > # cd /usr/ports/misc/mc > # make fetch-recursive > =3D=3D=3D> Fetching all distfiles for mc-4.6.0_15 and dependencies > .... >=20 > And you have mc with dependencies. > All downloaded files you have in: > /usr/ports/distfiles/ >=20 If the original poster is just looking for a list of sites that have the distribution files he's interested in, then # cd /usr/ports// # make fetch-recursive-list would give a list of all sites that have the distribution files. Its not a very user readable list and a small script might be helpful: find_dist_files.sh: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dbegin-script=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #!/bin/sh #Make a list of distfiles needed for a port tempfile=3D"/tmp/distfiles_list.txt" make fetch-recursive-list > ${tempfile} while read line; do for i in ${line}; do echo ${i} | grep "^http" echo ${i} | grep "^ftp" done echo done < ${tempfile} rm ${tempfile} =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dend-of-script=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Make the script excutable and in your path, cd to the port directory you're interested in and run the script. It'll give a list of all distribution files needed for a port which could be redirected to a file to take to some other location for retrieval, for ex: cd /usr/ports/www/zope-simpleblog find_dist_files.sh > mylist.txt I'm sure there's a multitude of ways to do this but it should give you some ideas. HTH, Randy =09 --=20