generate an INDEX file for a ports tree
Boris Samorodov
bsam at ipt.ru
Thu May 7 08:41:38 EDT 2009
On Thu, 7 May 2009 16:19:08 +0400 Alexey V. Degtyarev wrote:
> > how should I generate an INDEX file for a given ports tree
> > and it's environment after a ports tree update?
> >
> > The postPortsTreeUpdate hook seems to be of no help since it
> > imho does not respect a ports tree environment (from
> > $tb/scripts/etc/env/portstree.*):
> > --------------------------------------------------------------
> > Name : postPortsTreeUpdate
> > Command :
> > Description:
> > Hook to run after a PortsTree has been updated.
> > The following environment will be passed to the hook command:
> > PORTSTREE : PortsTree name
> > UPDATE_CMD : Update command
> > PB : Tinderbox root
> > RC : Result code of the update command
> > --------------------------------------------------------------
> PORTS_BASEDIR=${PB}/portstrees
> make_j=`sysctl -n hw.ncpu || echo 1`
> env PORTSDIR=${PORTS_BASEDIR}/${PORTSTREE}/ports make \
> -j${make_j} -C ${PORTS_BASEDIR}/${PORTSTREE}/ports \
> index
> Makes INDEX in my configuration at every portstree update with
> postPortsTreeUpdate hook.
OK, two questions here.
1. How a ports tree environment ${PB}/scripts/etc/env/portstree.${PORTSTREE}
should be used.
2. How an environment from the hosts /etc/make.conf should be
avoided.
WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
More information about the tinderbox-list
mailing list