generate an INDEX file for a ports tree

Alexey V. Degtyarev alexey at renatasystems.org
Thu May 7 09:18:13 EDT 2009


> >  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.

 According to make.conf(5) this should work as you want:

 env __MAKE_CONF=${PB}/scripts/etc/env/portstree.${PORTSTREE} \
 PORTSDIR=${PORTS_BASEDIR}/${PORTSTREE}/ports \
 INDEX_JOBS=`sysctl -n hw.ncpu || echo 1` make \
 -C ${PORTS_BASEDIR}/${PORTSTREE}/ports index

-- 
Alexey V. Degtyarev


More information about the tinderbox-list mailing list