how to install into staging area correctly?

Michael Gmelin freebsd at grem.de
Fri Dec 6 16:37:31 UTC 2013


On Fri, 6 Dec 2013 11:06:59 -0500
Vick Khera <vivek at khera.org> wrote:

> I have a port locally that does this to install a file so other ports
> that depend on this can have something to depend on from the file
> system.
> 
> do-install:
>         ${CP} /dev/null ${LOCALBASE}/etc/rwde-base-installed
> 
> 
> Lately it seems that the ports does a staging step, and the above
> file is not found when building the package for that process. I
> changed it to
> 
> 
> do-install:
>         ${CP} /dev/null
> ${STAGEDIR}${LOCALBASE}/etc/rwde-base-installed
> 
> 
> Is this safe to use ${STAGEDIR} unconditionally like this? Should I be
> using a different variable to install my file in the do-install step?

I think you should use ${STAGEDIR}${PREFIX}, not ${LOCALBASE}.

-- 
Michael Gmelin


More information about the freebsd-ports mailing list