From owner-freebsd-questions@FreeBSD.ORG Tue Aug 28 09:45:24 2007 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 E1EEA16A47E for ; Tue, 28 Aug 2007 09:45:24 +0000 (UTC) (envelope-from linder@jeuxvideo.com) Received: from www.odyssee-interactive.com (mobiles.jeuxvideo.com [217.174.215.94]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8A213C4CE for ; Tue, 28 Aug 2007 09:45:23 +0000 (UTC) (envelope-from linder@jeuxvideo.com) Received: from oblivion.jeuxvideo.com (odyssee-interactive.rain.fr [83.206.74.241]) (authenticated bits=0) by www.odyssee-interactive.com (8.12.10/8.12.10) with ESMTP id l7S9KLXj015739 for ; Tue, 28 Aug 2007 11:20:21 +0200 Date: Tue, 28 Aug 2007 11:20:20 +0200 From: Gabriel Linder To: freebsd-questions@freebsd.org Message-ID: <20070828112020.54b2e7f6@oblivion.jeuxvideo.com> Organization: =?ISO-8859-1?Q?L'Odyss=E9e?= Interactive X-Mailer: Claws Mail 2.10.0 (GTK+ 2.8.20; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Script to list ports knobs and options 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: Tue, 28 Aug 2007 09:45:25 -0000 Hi list, First forgive me if this is not the ideal list for this thread, and please redirect me to the good one. After this discussion[1] I did spend some time in order to improve the script provided by Maxim Khitrov, and here is the result : - show all knobs supported by ports not yet installed, with an asterisk if the knob is enabled in ports.conf (make.conf is not supported now) - show all options supported by ports not yet installed, with an asterisk if the option is enabled in /var/db/ports/$portname/options - full color listing (only if CLICOLOR is defined and the output is not redirected) The goal is to tweak knobs (and options) before running make config-recursive or make install. Work for me on 6-STABLE and tested with xorg, gnome2 and some lighter ports. The files are available with a screenshot at this URI[2], of course portconf is required. I am aware of only one caveat : due to heuristics used to display options, they may appear twice (this is why I used two colors to display options). There are probably other problems, so don't hesitate to point mistakes or inefficiencies. I wonder if it could be integrated to the ports tree when finished, what's your opinion on this ? Thanks for your attention :) [1] http://lists.freebsd.org/pipermail/freebsd-questions/2007-August/156101.html [2] http://athanatos.free.fr/FreeBSD/