Subject: Re: DESTDIR and `make package'
To: Jim Wise <jwise@draga.com>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 01/26/2001 23:04:08
On Fri, 26 Jan 2001, Jim Wise wrote:
> >Rename BINPKG_ARGS => PKG_ARGS_COMMON
> 
> s/BINPKG_ARGS/BASE_PKG_ARGS/, right?

No. The idea is to start all variables for one thing with the same prefix
For pkg_create(8) here, let's stay at PKG_ARGS_*. Put the common ones into
PKG_ARGS_COMMON, and for installation and "make package" time add special
things in PKG_ARGS_INSTALL and PKG_ARGS_PKGING.


 - Hubert


> >Instead of setting PKG_ARGS:
> >PKG_ARGS_INSTALL=       ${BASE_PKG_COMMON} \
> >			-p ${PREFIX} ${BASE_PKG_COMMON} -O
> >
> >Instead of setting BINPKG_ARGS:
> >PKG_ARGS_PKGING=        ${BASE_PKG_COMMON} \
> >			-p ${PREFIX:C/^${DESTDIR}//} -L ${PREFIX}
> >
> >Then in the first call to PKG_CREATE (line ~1565), use:
> >        if ${PKG_CREATE} ${PKG_ARGS_PKGING} ${PKGFILE}; then
> >
> >In the second call to PKG_CREATE (line ~3197), use:
> >        ${PKG_CREATE} ${PKG_ARGS_INSTALL} ${PKGFILE}	\
> >		>${PKG_DBDIR}/${PKGNAME}/+CONTENTS;	\

-- 
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>