Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2017 10:06:45 -0400
From:      Anton Yuzhaninov <citrin+bsd@citrin.ru>
To:        Iskander Zemmouri <izemmouri91@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: No build test port problem
Message-ID:  <134039a3-c4a0-3e7d-a283-b0d65f00aaa2@citrin.ru>
In-Reply-To: <CA%2B1ivgQ7ENZN-mnvgDt=5kP1raGoaCrd7Y=ZvbL-YHzJQZUXfg@mail.gmail.com>
References:  <CA%2B1ivgQ7ENZN-mnvgDt=5kP1raGoaCrd7Y=ZvbL-YHzJQZUXfg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?134039a3-c4a0-3e7d-a283-b0d65f00aaa2>