No build test port problem

Anton Yuzhaninov citrin+bsd at citrin.ru
Tue Apr 4 14:06:51 UTC 2017


On 04/02/17 16:10, Iskander Zemmouri wrote:
> I'm trying to package some scripts together. I run into problems because my
> do-install target installs the necessary files from ${WRKSRC}, so when I
> try to make the package, it complains that the appropriate files are not in
> the 'stage' directory.
> 
> How can I fix this?
> 
> I might help to know what the makefile looks like, so it's as simple as
> this:
> 
> NO_BUILD=yes
> 
> do-instasll:
>  ${INSTALL_DATA} ${WRKSRC}/foo ${PREFIX}/foo
> 
> .include <bsd.port.mk>

You should install files to the stage directory, e.g.

${INSTALL_DATA} ${WRKSRC}/foo ${STAGEDIR}${PREFIX}/foo


More information about the freebsd-questions mailing list