From owner-freebsd-ports@FreeBSD.ORG Sat Jan 7 17:54:27 2006 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 1545716A41F; Sat, 7 Jan 2006 17:54:27 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from centrmmtao03.cox.net (centrmmtao03.cox.net [70.168.83.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4353643D45; Sat, 7 Jan 2006 17:54:26 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao03.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060107175143.NOL613.centrmmtao03.cox.net@mezz.mezzweb.com>; Sat, 7 Jan 2006 12:51:43 -0500 Date: Sat, 07 Jan 2006 11:55:22 -0600 To: "Doug Barton" References: <43BCF31F.8050900@FreeBSD.org> <43BF7F8D.6080809@FreeBSD.org> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <43BF7F8D.6080809@FreeBSD.org> User-Agent: Opera M2/8.51 (Linux, build 1462) Cc: freebsd ports Subject: Re: New /bin/sh based script to manage ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2006 17:54:27 -0000 On Sat, 07 Jan 2006 02:45:01 -0600, Doug Barton wrote: > Jeremy Messenger wrote: > >> I haven't play with your script yet, but I only read it so far. > > Thanks for taking a look, and for your feedback. Np, right now I am trying to brainstorm on old distfiles issue to see if I can think of. >> I think you should get your script to be able to read in the make.conf >> (by include) for PKG_DBDIR, PORTSDIR, DISTDIR and etc in case if >> someone tweak it. I think it's more friendly with ports that way. > > This is a reasonable request, and I should point out that the script > does handle DISTDIR properly now. However, the other two present a > chicken and egg problem if I choose to use 'make -V' to get the values > of these variables (where do I cd to?). There is an alternative, which > is to use code similar to what I wrote for the current version of > /etc/rc.d/devfs to parse /etc/make.conf manually, but even that is > subject to error. For example, I separate my base stuff into > /etc/make.conf and ports to /etc/make-ports.conf. Here too, but mine is ports.conf. ;-) Looks like KOMATSU Shinichiro has the best solution. Cheers, Mezz > If there is a lot of call for this, I could add command line options > (that could subsequently be read from a portmaster.rc file) although I'm > sensitive to the issue that users who relocate these directories already > have a lot of places to set those options. OTOH, I put my ports tree in > a different directory than /usr/ports, but I learned long ago that the > easiest way to handle that is to create a symlink to it in /usr. YMMV of > course. > > I've uploaded a new version that fixes a typo that was reported here, > and removes references to the name I used for the script during > development. http://dougbarton.us/portmaster.html if anyone is still > interested. Thanks to all those who've provided feedback so far. > > Doug -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org