From owner-freebsd-questions@FreeBSD.ORG Mon Mar 27 13:45:30 2006 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 4E21116A401 for ; Mon, 27 Mar 2006 13:45:30 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C48B43D6E for ; Mon, 27 Mar 2006 13:45:25 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend2.internal (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 74BAFD435E3 for ; Mon, 27 Mar 2006 08:45:24 -0500 (EST) Received: from frontend3.messagingengine.com ([10.202.2.152]) by frontend2.internal (MEProxy); Mon, 27 Mar 2006 08:45:09 -0500 X-Sasl-enc: e6t9vxwbrJZYwsBIE597C4uHXiREPYMcz/oB5DWnC6SB 1143467108 Received: from bb-87-81-140-128.ukonline.co.uk (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by frontend3.messagingengine.com (Postfix) with ESMTP id D5342532 for ; Mon, 27 Mar 2006 08:45:08 -0500 (EST) From: RW To: freebsd-questions@freebsd.org Date: Mon, 27 Mar 2006 14:45:14 +0100 User-Agent: KMail/1.9.1 References: <20060327004857.GE2495@rescomp.berkeley.edu> In-Reply-To: <20060327004857.GE2495@rescomp.berkeley.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603271445.17248.list-freebsd-2004@morbius.sent.com> Subject: Re: ports and interactivity 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: Mon, 27 Mar 2006 13:45:30 -0000 On Monday 27 March 2006 01:48, Ian A. Tegebo wrote: > I'm interested in knowing several things: > > 1 When is a port interactive? > 2 Is there an easy way to determine the above? > 3 What are all the options for a given port? > ... > Now, I could use the "BATCH" variable to at least process all > ports that aren't interactive but that hardly seems cool when there > could be dependencies that are interactive (which would show up when I > pass -rRn to portupgrade). BATCH stops INTERACTIVE ports being built, and causes other ports to build with default options, using the port "knobs" (as in WITH_FOO) to override the defaults. Only a handfull of ports are INTERACTIVE, usually because they require you to agree to a licence at install time. > I want to do all the human work of evaluating options and > making decisions up front Try this: -------------------------------------------------------------------------------------------- #!/bin/sh # Get list of out-of-date ports # This may take some time plist=`pkg_version -ovl'<' |awk '{ print $1 }'` # allow each out-of-date port to update it's config, and that of any new # dependencies (dialog only runs when something has changed) for porg in $plist ; do cd /usr/ports/${porg} && make config-recursive done --------------------------------------------------------------------------------------------