Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2023 18:58:05 -0500
From:      Kyle Evans <kevans@FreeBSD.org>
To:        David Chisnall <theraven@freebsd.org>
Cc:        Mark Johnston <markj@freebsd.org>, freebsd-ports@freebsd.org
Subject:   Re: Correct install locations for things using the base system make infrastructure
Message-ID:  <9b436070-412d-f782-d143-1a86733e03be@FreeBSD.org>
In-Reply-To: <ZOaFHiKfVE0PYbMH@nuc>
References:  <0899EA72-830E-453E-BAE4-127368FC248C@FreeBSD.org> <ZOaFHiKfVE0PYbMH@nuc>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/23/23 17:15, Mark Johnston wrote:
> On Wed, Aug 23, 2023 at 10:04:45PM +0100, David Chisnall wrote:
>> Hi all,
>>
>> I’ve been fighting this for over an hour and I presume someone else has done it in the past.  If something is built using the BSD bsd.prog.mk build goo, what do I need to do in the ports infrastructure to make sure that BINDIR and MANDIR are set, to make it install things in the right places?
>>
>> So far, every invocation I’ve tried has made things differently wrong and the porters handbook is completely silent on the case of bmake.  Any help gratefully received!
> 
> ftp/netdumpd does this.  The recipe seems to be:
> 
> MAKE_ARGS+=BINDIR=${PREFIX}/bin
> 
> etc.
> 

Right, the two key things I noted when adding sysutils/quickjail is that 
with bsd.prog.mk you'll need USES=uidfix, and then

MAKE_ENV+=      BINDIR="${PREFIX}/bin" \ 

                 MANDIR="${PREFIX}/share/man/man" 


(Both of which I ${MKDIR} in pre-install)

Thanks,

Kyle Evans



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9b436070-412d-f782-d143-1a86733e03be>