From owner-freebsd-questions Fri Aug 20 17: 3:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from rackmount.ORG (grill.rackmount.ORG [209.79.28.99]) by hub.freebsd.org (Postfix) with SMTP id C053715AD3 for ; Fri, 20 Aug 1999 17:03:40 -0700 (PDT) (envelope-from steve@grill.rackmount.ORG) Received: (qmail 98475 invoked by uid 1050); 20 Aug 1999 17:06:21 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 20 Aug 1999 17:06:21 -0000 Date: Fri, 20 Aug 1999 17:06:21 +0000 (GMT) From: steve To: Alex Cc: freebsd-questions@FreeBSD.ORG Subject: Re: controlling where ports install? In-Reply-To: <199908202116.RAA07519@biohazard-cafe.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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