Upgrade Tool
Rong-En Fan
rafan at infor.org
Thu May 4 20:54:52 UTC 2006
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 <kris at obsecurity.org> 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
More information about the freebsd-ports
mailing list