From owner-freebsd-ports@FreeBSD.ORG Fri Jun 17 07:33:44 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23E9116A41C; Fri, 17 Jun 2005 07:33:44 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDB0D43D48; Fri, 17 Jun 2005 07:33:43 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1]) by jengal.datamax.bg (Postfix) with QMQP id AF94A87CD; Fri, 17 Jun 2005 10:33:42 +0300 (EEST) Received: (nullmailer pid 67811 invoked by uid 1004); Fri, 17 Jun 2005 07:33:42 -0000 Date: Fri, 17 Jun 2005 10:33:42 +0300 From: Vasil Dimov To: vaidab@Safe-mail.net Message-ID: <20050617073342.GA67687@sinanica.bg.datamax> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i Cc: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports@freebsd.org Subject: Re: ports/82309: option to download ports via http only X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@datamax.bg List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 07:33:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Jun 16, 2005 at 03:51:59AM -0400, vaidab@Safe-mail.net wrote: > >Description: > I am in a campus where ftp is filtered and I would like an option to choose the protocol by which ports are fetched. > e.g. define PORTS_USE_HTTP_ONLY="yes" in make.conf To avoid binding only to http and ftp protocols I suggest that it would be better to have PORTS_FETCH_PROTOCOLS= or just FETCH_PROTOCOLS= that contains a list of allowed protocols. It will just skip sites that do not start with one of the strings specified in this variable. For example: PORTS_FETCH_PROTOCOLS=http:// will skip ftp://ftp.foo.org/x/y/z from a list of sites like: http://a/b/c ftp://ftp.foo.org/x/y/z http://bar/baz Or even we can have similar _REJECT variable in addition that removes only sites that start with specified strings. Does this sound reasonable? -----BEGIN PGP SIGNATURE----- iD8DBQFCsnzWFw6SP/bBpCARAqw0AJ4lpbfAXNKm7JCa2Nf4Z7K3nhRDWwCfWgzD dspeGJYum0UEqzYwOE15xfc= =PiT/ -----END PGP SIGNATURE-----