Date: Wed, 13 May 2020 20:19:32 +0100 From: Steve O'Hara-Smith <steve@sohara.org> To: Ede Wolf <listac@nebelschwaden.de> Cc: freebsd-questions@freebsd.org Subject: Re: Moving sources (base/ports) from /usr Message-ID: <20200513201932.8dd2cc135c50d54dc8daff0c@sohara.org> In-Reply-To: <20200508210444.7945f4ba@kaperfahrt.nebelschwaden.de> References: <20200508210444.7945f4ba@kaperfahrt.nebelschwaden.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 May 2020 21:04:44 +0200 Ede Wolf <listac@nebelschwaden.de> wrote: > Hi, > > As the title implies, I would like to move everything src/build related > from /usr to a different folder, let's call it /import. And since it > won't be mounted permanently, I'd rather like not to use links. That > would certainly work, but it's ugly. > > So I am looking for a more clean way of archiving this, but currently I > am having trouble to find a comprehensive list of the variables, that > would need to be set, and more over, where the proper place woulf be, to > do so. More often than not it is not /etc/make.conf > > For MAKEOBJDIRPREFIX it is src-env.conf, but what about the others? Yep you'll want that. > SRCDIR, PORTSDIR, WRKDIRPREFIX, DISTFILES, WRKSRC? Is that list correct SRCDIR you can leave alone, just move /usr/src anywhere you like and so long as you change into that directory to build all should be good because the Makefile sets everything up based on CURDIR. If that doesn't work then a bug report is probably in order. PORTSDIR should be enough to move the ports en-bloc, everything else defaults based off that. -- Steve O'Hara-Smith <steve@sohara.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200513201932.8dd2cc135c50d54dc8daff0c>