Generating INDEX file suitable for (media)/packages/INDEX ?
Joe Marcus Clarke
marcus at marcuscom.com
Fri Dec 21 19:30:48 EST 2007
On Fri, 2007-12-21 at 18:26 -0500, Wesley Shields wrote:
> On Fri, Dec 21, 2007 at 05:18:42PM -0500, Ryan Dean wrote:
> > On Dec 21, 2007 4:22 PM, Joe Marcus Clarke <marcus at marcuscom.com> wrote:
> > > Ryan Dean wrote:
> > > > So having said all that, does anyone out there have such a hook
> > > already,
> > > > or should I go and write one? Or, am I heading down the wrong path
> > > here,
> > > > and there is an easier/better way of generating this INDEX file?
> > >
> > > You'll want to run the hook before or after the build completes so
> > > you'll have Jail and PortsTree info in order to build an accurate INDEX.
> > > The hook could simply call make index after exporting the proper
> > > variables (i.e. PORTSDIR, INDEXFILE, etc.).
> > >
> > Hrrm, okay. I've started to experiment with the scripts, but it looks like
> > 'make index' and even 'make describe' requires perl in order to complete.
> > Is it safe to pkg_add and pkg_delete from the hooks, without contaminating
> > the build directory?
> What makes you think 'make index' require perl? My understanding of the
> Makefile's indicates it doesn't use perl at all.
> What exactly are you seeing which leads you to believe perl is required?
Perl is required. Look at /usr/ports/Tools/make_index. This is the
core of the INDEX building engine (called from /usr/ports/Makefile).
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://marcuscom.com/pipermail/tinderbox-list/attachments/20071221/751f2ab2/attachment.bin
More information about the tinderbox-list