From owner-freebsd-questions Wed Sep 6 15:48:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rz.uni-ulm.de (sirius-ether.rz.uni-ulm.de [134.60.1.36]) by hub.freebsd.org (Postfix) with ESMTP id 5225437B422 for ; Wed, 6 Sep 2000 15:48:25 -0700 (PDT) Received: from gmx.de (lilith.wohnheim.uni-ulm.de [134.60.106.64]) by mail.rz.uni-ulm.de (8.9.3/8.9.3) with ESMTP id AAA29011; Thu, 7 Sep 2000 00:48:13 +0200 (MEST) Message-ID: <39B6C9AC.56464D1C@gmx.de> Date: Thu, 07 Sep 2000 00:48:12 +0200 From: Siegbert Baude X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1-STABLE i386) X-Accept-Language: de, en MIME-Version: 1.0 To: paradive , "freebsd-questions@freebsd.org" Subject: Re: Installing CD packages to HD? References: <14773.33577.842372.439782@guru.mired.org> <39B61430.1F2F60BD@gmx.de> <031501c0184f$0747c180$02fea8c0@localdomain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello paradive; > > > I believe the 4.0-RELEASE cdrom was equally damaged. Personally, I > > > *hate* this. Since I build ports with LOCALBASE=/usr/opt, the packages > > > are useless. Since the distfiles can be used to create the packages, > > > but not vice versa, this is a loss in functionality. My use of the > > > things is now restricted to dealing with -questions (as above), and > > > making copies for friends who otherwise wouldn't look at FreeBSD. > > > > Look at the -p (prefix) option of pkg_add. You can change the install > directory > > there. > > is there a way to do this with "make" using ports as well? From the handbook (rtfm ;-) ): 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 write fully on the page, but it should give you the general idea). If you do not fancy typing all that in every time you install a port, it is a good idea to put these variables into your environment. Read the man page for your shell for instructions on doing so. Regards Siegbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message