From owner-freebsd-questions@FreeBSD.ORG Wed May 17 21:01:27 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 49FF216A579 for ; Wed, 17 May 2006 21:01:27 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 968E143D46 for ; Wed, 17 May 2006 21:01:25 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FgT8i-0006N8-2e for freebsd-questions@freebsd.org; Wed, 17 May 2006 23:01:06 +0200 Received: from r5k156.chello.upc.cz ([86.49.10.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 May 2006 23:01:04 +0200 Received: from martinkov by r5k156.chello.upc.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 May 2006 23:01:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: martinko Date: Wed, 17 May 2006 23:00:46 +0200 Lines: 105 Message-ID: References: <12AAD6CC50A25841834F43955F39B66E04464E53@qgaes001.conway.prod.con-way.com> <200605152049.52089.aren.tyr@gawab.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: r5k156.chello.upc.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.2) Gecko/20060511 SeaMonkey/1.0.1 In-Reply-To: <200605152049.52089.aren.tyr@gawab.com> Sender: news Subject: Re: Cvsup verses Portsnap 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: Wed, 17 May 2006 21:01:28 -0000 Aren Olvalde Tyr wrote: >> Portmanager already has this I believe. You can add config options to >> the portmanager config file and it will use them when building things. >> For example: >> >> ##################### >> # custom settings # >> # remove "#" to use # >> ##################### >> #textproc/docproj|JADETEX=no| >> #java/jdk14|-DMINIMAL| >> #textproc/libxml2|THREADS=off SCHEMA=on MEM_DEBUG=off XMLLINT_HIST=off >> THREAD_ALLOC=off| >> # >> # >> ## >> ##do not let portmanager update the following ports >> #IGNORE|editors/openoffice-1.1| >> #IGNORE|java/jdk14| > > But does it dynamically generate an editable list of all available > configuration knobs for all ports that can be set? > > If it doesn't, it doesn't have what I am ideally looking for, since you still > have to manually poke around in the appropriate Makefile[s] to determine what > (if any) knobs you want to set in the first place. The general concept was > discussed on one of the other lists (freebsd-ports I think), but basically it > consisted of having a tool that would generate a set of dynamically created > configuration files that list _all_ available knobs for all ports and make it > very easy to set/unset them by simply editing the appropriate config file. > When you update your ports tree, there would be a way to get the tool to > dynamically update (whilst preserving your settings where they are still > applicable) all the configuration files to reflect any changes. > > I want a tool that will very easily allow me to see what knobs are available > for many different ports, without having to manually grep around in the > Makefiles. > > So, for example, you might have a master configuration file: > > # ports.master.conf > # Global ports configuration file > > # Define global build options: > > all { > IPVG = no > X11 = no > } > > accessibility { > file->ports.accessibility.conf > } > > graphics { > file->ports.graphics.conf > } > > foobar { > file->ports.foo.conf > } > > Then, under the particular port category config file - say > ports.graphics.conf - you would have the configuration knobs for all those > ports in that category. > > > > gimp { > WITH_DEBUG = no > WITH_PYTHON = no > WITHOUT_PRINT = no > WITH_MP = no > WITH_HTML_HELP_BROWSER = yes > GNOME_ENABLED = no > } > > > > Selecting a knob then becomes as simple as setting the knob = yes in the > config file. You would then simply use the tool to install the port (it would > probably call another tool, such as portupgrade or portmaster to actually do > the install), and it would automagically set the appropriate -DKNOB > settings . > > My intention is to write such a tool entirely in /bin/sh so that no extra > dependencies are required. > > I'm still currently deciding how best to design it, but I'm inclined towards > integrating it with portmaster since that it a very nice well designed sh > tool for port management tasks. > > So far I've only just started, at the moment it just generates a basic config > file. > > And if it turns out that portmanager can do something similar to the above, I > will probably still create the tool as an interesting shell programming > exercise :) > > Aren. i'm eagerly waiting for it.. and i'm sure i'm not the only one.. good luck aren! m:)