From owner-freebsd-questions@FreeBSD.ORG Mon Mar 27 00:49:00 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 5FA4216A422 for ; Mon, 27 Mar 2006 00:49:00 +0000 (UTC) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: from rescomp.berkeley.edu (keyserver.Rescomp.Berkeley.EDU [169.229.70.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36F3D43D45 for ; Mon, 27 Mar 2006 00:49:00 +0000 (GMT) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: by rescomp.berkeley.edu (Postfix, from userid 1032) id 135885B764; Sun, 26 Mar 2006 16:48:58 -0800 (PST) Date: Sun, 26 Mar 2006 16:48:58 -0800 From: "Ian A. Tegebo" To: freebsd-questions@freebsd.org Message-ID: <20060327004857.GE2495@rescomp.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: 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 00:49:00 -0000 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? After doing some reading, I understand that one can learn about options in Makefiles, running "make show-config", "make show-options", or some other idiosyncratic method that seems to vary from port to port. In terms of question 1, there seems like there should be a "IS_INTERACTIVE" variable set in the Makefile but in the example of shells/bash-completion, there is no such variable and yet I was presented with what I imagine was "dialog" prompting me to choose between bash2 and the newer bash3 (default shells/bash). I have a hidden agenda here. I would like to be able to present portupgrade with a list of ports, preprocess all interactive ports before any actual building occurs, and then let portupgrade do its thing. 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). I've also taken a cursory look at portmanager and portmaster but neither seem to fulfill my agenda. It's not that I want to simply achieve automation, I want to do all the human work of evaluating options and making decisions up front (without all the tedious work of poking around in Makefiles when there are already nice things like those dialog prompts). Has anyone gone down this road? Does it not go anywhere? Is there a better way to do this? -- Ian Tegebo