From owner-freebsd-ports@FreeBSD.ORG Thu May 4 20:54:51 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 E379016A402 for ; Thu, 4 May 2006 20:54:51 +0000 (UTC) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (svm.csie.ntu.edu.tw [140.112.90.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5527243D46 for ; Thu, 4 May 2006 20:54:51 +0000 (GMT) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (localhost [127.0.0.1]) by svm.csie.ntu.edu.tw (8.13.4/8.13.4) with ESMTP id k44KslAo001636; Fri, 5 May 2006 04:54:47 +0800 (CST) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: (from rafan@localhost) by svm.csie.ntu.edu.tw (8.13.4/8.13.4/Submit) id k44KslCB001635; Fri, 5 May 2006 04:54:47 +0800 (CST) (envelope-from rafan) Date: Fri, 5 May 2006 04:54:47 +0800 From: Rong-En Fan To: Ion-Mihai Tetcu Message-ID: <20060504205447.GA1134@svm.csie.ntu.edu.tw> References: <200605021827.34873.aren.tyr@gawab.com> <20060504094155.GC984@roadrunner.q.local> <20060504165727.GA67780@xor.obsecurity.org> <20060504183936.GC28973@odin.ac.hmc.edu> <20060504191512.GA69895@xor.obsecurity.org> <20060504192308.GE28973@odin.ac.hmc.edu> <20060504194122.GA70303@xor.obsecurity.org> <20060504194928.GF28973@odin.ac.hmc.edu> <20060504200143.GC70598@xor.obsecurity.org> <20060504232124.131e8bd1@it.buh.tecnik93.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060504232124.131e8bd1@it.buh.tecnik93.com> User-Agent: Mutt/1.5.11 Cc: Brooks Davis , freebsd-ports@freebsd.org, Kris Kennaway Subject: Re: Upgrade Tool 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, 04 May 2006 20:54:52 -0000 On Thu, May 04, 2006 at 11:21:24PM +0300, Ion-Mihai Tetcu wrote: > On Thu, 4 May 2006 16:01:43 -0400 > Kris Kennaway wrote: > > > > > > Another option that could work for me would be to make it easier to > > > > > maintain a local ports category so I could have my own slave ports. > > > > > > > > You should be able to do that by just appending to SUBDIR and > > > > CATEGORIES in a Makefile.local or similar. It's been discussed > > > > recently, anyway. > > > > > > I've messed with it a bit. The biggest issue I've found is that I > > > couldn't find an easy way to add a few leaf ports to the INDEX file > > > without doing a full rebuild. > > That is sysutils/p5-FreeBSD-Portindex. > /me big fan :) > I'm using it since it was created and I didn't have problems with it. Recently I tried it, but it does not recognize my local category. I thought it uses ``make describe'' so it should find my local category. In the end, I use ``make index''. If all local ports are all ports and you use portsnap, I think you can just do something like: cd /usr/ports/local && make describe | grep -v '^===>' > /tmp/desc.local gunzip -c "${WORKDIR}/files/`look $1 ${WORKDIR}/tINDEX | \ cut -f 2 -d '|'`.gz" > /tmp/desc.ports cat /tmp/desc.ports /tmp/desc.local | \ /usr/libexec/make_index /dev/stdin > /usr/ports/INDEX-6 That's how portsnap build the INDEX file. Hope this helps, Rong-En Fan