From owner-freebsd-current@FreeBSD.ORG Wed Jul 28 15:01:34 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0FEA16A4CE for ; Wed, 28 Jul 2004 15:01:34 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id B05E443D5C for ; Wed, 28 Jul 2004 15:01:33 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 30595 invoked by uid 89); 28 Jul 2004 14:54:56 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 28 Jul 2004 14:54:56 -0000 Received: from localhost (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id F09D7135; Wed, 28 Jul 2004 18:01:29 +0300 (EEST) Received: from it.buh.tecnik93.com ([127.0.0.1]) by localhost (it.buh.tecnik93.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08779-08; Wed, 28 Jul 2004 18:01:29 +0300 (EEST) Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id 7471E2B; Wed, 28 Jul 2004 18:01:29 +0300 (EEST) Date: Wed, 28 Jul 2004 18:01:26 +0300 From: Ion-Mihai Tetcu To: Tillman Hodgson Message-Id: <20040728180126.3ad59f1a@it.buh.tecnik93.com> In-Reply-To: <20040728142236.GI52250@seekingfire.com> References: <20040728081719.GA17127@nebula.wanadoo.fr> <20040728083252.GA72137@happy-idiot-talk.infracaninophile.co.uk> <20040728142236.GI52250@seekingfire.com> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at it.buh.cameradicommercio.ro cc: freebsd-current@freebsd.org Subject: Re: 'sort' tool is eating my system ressources X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2004 15:01:34 -0000 On Wed, 28 Jul 2004 08:22:36 -0600 Tillman Hodgson wrote: > On Wed, Jul 28, 2004 at 05:26:08PM +0800, Jiawei Ye wrote: > > I recommend highly sysutils/portindex, which does incremental builds > > and takes very little time to build new INDEX, INDEX-5. > > I hadn't played with the port yet so I thought I'd take a poke at it. > > It's an odd port ... no pkg-plist, Look in the Makefile for PLIST_* > no man pages. The web page that > pkg-descr points to has little more than what pkg-descr itself says. > There's a README.TXT that gives a few one-liners on what the various > python scripts do, Agree here ;) > and there's a DBSETUP.TXT that mentions a postgres database (?!). The db is used for pkghistory > Do you have an example of how you use it in your cvsup script? Any links > that discuss how it works in a bit more detail? It looks interesting, > but unfriendly ;-) do_build_new_index() { echo if [ ! -e ${LOG_DIR}/need_new_index ] then echo "No need to rebuild INDEX-5" return 0 fi cd /usr/ports || return 1 cp INDEX-5 INDEX-5.bak || return 1 if /usr/local/bin/portindex then rm ${LOG_DIR}/need_new_index cp INDEX.db INDEX.db.bak || return 1 sort < /usr/ports/INDEX-5 > /tmp/INDEX-5.sorted mv /tmp/INDEX-5.sorted /usr/ports/INDEX-5 /usr/local/sbin/portsdb -u || cp INDEX.db.bak INDEX.db && return 1 cd /var/db/pkg || return 1 cp pkgdb.db pkgdb.db.bak || return 1 /usr/local/sbin/pkgdb -u || cp pkgdb.db.bak pkgdb.db && return 1 else echo "ports_upd-ERROR: Index build FAILLED, restoring old INDEX-5" echo "ports_upd-ERROR: Index build FAILLED, restoring old INDEX-5" cp INDEX-5.bak INDEX-5 return 1 fi } -- IOnut Unregistered ;) FreeBSD "user"