From owner-freebsd-ports@FreeBSD.ORG Thu Jan 5 18:02:59 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 B9DD416A420; Thu, 5 Jan 2006 18:02:59 +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 E897543D58; Thu, 5 Jan 2006 18:02:58 +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 <20060105180021.TQRP613.centrmmtao03.cox.net@mezz.mezzweb.com>; Thu, 5 Jan 2006 13:00:21 -0500 Date: Thu, 05 Jan 2006 12:03:59 -0600 To: "Doug Barton" References: <43BCF31F.8050900@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: <43BCF31F.8050900@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: Thu, 05 Jan 2006 18:02:59 -0000 On Thu, 05 Jan 2006 04:21:19 -0600, Doug Barton wrote: > Howdy, > > I've been working on a new script to manage ports. I've put up a web > page about it at http://people.freebsd.org/~dougb/portmaster.html > > From that page: > > Does the world really need one more port management tool? Well I'm not > sure about the world, but I do know that none of the existing options > worked for me, for a variety of reasons. The two biggest being that I do > not want to have to install yet another language, and I do not want the > overhead of a database to manage the information about what ports I have > installed, etc. > > The goals I started with for this project were to use /bin/sh so that > nothing else would have to be installed for it to work, and to make use > of the existing data in /var/db/pkg. I now have something that meets > those goals, and does everything I want it to do, so I'm interested in > sharing it with the community. > > More information, and a link to download the script are on the page. > > Comments welcome, I haven't play with your script yet, but I only read it so far. 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. Something like this: ========================= PORTSDIR=${PORTSDIR:="/usr/ports"} PKG_DBDIR=${PKG_DBDIR:="/var/db/pkg"} [...] . /etc/make.conf # Read a global rc file first if [ -r /etc/portup.rc ]; then . /etc/portup.rc fi [...] ========================= BTW: Nice job! Cheers, Mezz > Doug -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org