Date: Fri, 20 Aug 1999 17:06:21 +0000 (GMT) From: steve <steve@grill.rackmount.ORG> To: Alex <xela@MIT.EDU> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: controlling where ports install? Message-ID: <Pine.BSF.4.10.9908201704450.98391-100000@grill.rackmount.ORG> In-Reply-To: <199908202116.RAA07519@biohazard-cafe.mit.edu>
index | next in thread | previous in thread | raw e-mail
This comes directly from the FreeBSD handbook which you should check out
prior to asking questions on here. Only cause I'm a nice guy, I'll post
without making you search, even though it's really not that hard (:
* Q. Does the ports scheme only work if you have everything in
/usr/ports? My system
administrator says I must put everything under
/u/people/guests/wurzburger, but it
does not seem to work.
A. You can use the PORTSDIR and PREFIX variables to tell the ports
mechanism to use
different directories. For instance,
# make PORTSDIR=/u/people/guests/wurzburger/ports install
will compile the port in /u/people/guests/wurzburger/ports and
install everything
under /usr/local.
# make PREFIX=/u/people/guests/wurzburger/local install
will compile it in /usr/ports and install it in
/u/people/guests/wurzburger/local.
And of course
# make PORTSDIR=.../ports PREFIX=.../local install
will combine the two (it is too long to fit on the page if I write
it in full, but I
am sure you get the idea).
If you do not fancy typing all that in every time you install a
port (and to be
honest, who would?), it is a good idea to put these variables into
your environment.
--Steve
steve@rackmount.org
On Fri, 20 Aug 1999, Alex wrote:
> Hi---
>
> I'm fairly new to FreeBSD, coming from a mostly NetBSD background.
> One thing NetBSD does that I like is that the package system
> (ports in FreeBSD parlance) installs into a seperate path
> (/usr/pkg) rather than into /usr/local/. (Please no flames. I
> thought the NetBSD approach was stupid at first and just made
> /usr/pkg a symlink to /usr/local. After some experience I decided
> the other way was better --- having stuff I've installed by hand
> segregated from stuff installed by the package system has IMHO its
> merits. YMMV.)
>
> At any rate, I'm wondering whether the location where FreeBSD
> installs ports can be set by some environment variable or other
> straightforward mechanism?
>
> Thanks in advance,
>
> ---Alex
>
> Carl Alexander
> ------------- MIT (where Alex hangs out):
> xela@mit.edu Course VI (sometime special student) SIPB (prospective)
> Mitgaard ("honorary mold") MITSFS LSC (night worker)
> http://www.mit.edu/~xela
> ------------- Work (where they call me 'Carl'):
> carl@terc.edu System Administrator & User Services Manager, TERC
> http://www.terc.edu
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908201704450.98391-100000>
