Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2013 17:30:46 +0100
From:      Michael Gmelin <freebsd@grem.de>
To:        Vick Khera <vivek@khera.org>
Cc:        FreeBSD Ports List <ports@freebsd.org>
Subject:   Re: how to install into staging area correctly?
Message-ID:  <20131206173046.48dd4b39@bsd64.grem.de>
In-Reply-To: <CALd%2BdceYa7M3XzjZthGDE-%2BsBXO_rdaV3NeWuf08t65EN21eCQ@mail.gmail.com>
References:  <CALd%2BdceYa7M3XzjZthGDE-%2BsBXO_rdaV3NeWuf08t65EN21eCQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Dec 2013 11:06:59 -0500
Vick Khera <vivek@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131206173046.48dd4b39>