From owner-freebsd-questions@FreeBSD.ORG Thu May 20 07:10:20 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 065731065674 for ; Thu, 20 May 2010 07:10:20 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 464558FC08 for ; Thu, 20 May 2010 07:10:19 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o4K7A6kB065953 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 20 May 2010 08:10:14 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BF4E04E.3010106@infracaninophile.co.uk> Date: Thu, 20 May 2010 08:10:06 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: payne@magi.magidesign.com References: <21881.24.248.74.254.1274299642.squirrel@webmail.magidesign.com> In-Reply-To: <21881.24.248.74.254.1274299642.squirrel@webmail.magidesign.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.96 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=2.0 required=5.0 tests=DKIM_ADSP_ALL,SPF_FAIL, TO_NO_BRKTS_DIRECT autolearn=no version=3.3.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Need advise. 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: Thu, 20 May 2010 07:10:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 19/05/2010 21:07:22, payne@magi.magidesign.com wrote: > I have a box that I need to add several software > package, I can't use ports because it appears that they have blocked the > ports to do a fetch. > > So I am wondering what can I do? Do you have HTTP access from the machine, possibly via some sort of proxy? If so, you can tell the ports system to prefer HTTP rather than FTP for fetching sources. Or if you'ld prefer to install via pkgs, you can just substitute 'http' for 'ftp' when downloading from ftp.freebsd.org * To make the ports prefer downloading sources via HTTP, add this to /etc/make.conf: MASTER_SORT?= http Not all ports have sources available via HTTP, but you can make the ports system grab the distfiles by HTTP from ftp.freebsd.org like so: MASTER_SITE_OVERRIDE?= http://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ * To set up global FTP or HTTP proxies to be used by fetch(1), create environment variables: FTP_PROXY = http://your.proxy.server:3128 HTTP_PROXY = http://your.proxy.server:3128 You'll need to adapt that to local circumstances, obviously. Not all proxies work via HTTP on port 3128, that's just what you'ld get with squid. See fetch(3) for details of what environment settings you can play with. Note: a handy way to add those variables globally to all login sessions is to use /etc/login.conf You want to change this line: :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\ to read :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,FTP_PROXY=http\c//your.proxy.server\c3128,HTTP_PROXY=http\c//your.proxy.server\c3128:\ * To make the pkg system use HTTP to download packages, you can set another environment variable: PACKAGEROOT = http://ftp.freebsd.org See pkg_add(1) for details. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkv04E4ACgkQ8Mjk52CukIwOfwCdFXpZ5UC6i4DzJgZiCmkKxV1A TvEAn1z2MhZKjCkmKDnPnJHPmxusczre =dSyy -----END PGP SIGNATURE-----