From owner-freebsd-questions Sun Apr 28 22: 5: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from arpa.com (arpa.com [199.245.173.5]) by hub.freebsd.org (Postfix) with ESMTP id 158AE37B41B for ; Sun, 28 Apr 2002 22:05:00 -0700 (PDT) Received: by arpa.com (Postfix, from userid 103) id 9FD78F0401; Mon, 29 Apr 2002 00:04:59 -0500 (CDT) Date: Mon, 29 Apr 2002 00:04:59 -0500 From: Chip Norkus To: "N. Thomas" Cc: questions@FreeBSD.ORG Subject: Re: building ports *outside* /usr Message-ID: <20020429000459.B5383@arpa.com> References: <20020429042001.GA28503@cise.ufl.edu> <20020429063551.H501-100000@small.pukruppa.de> <20020429045250.GA3915@cise.ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020429045250.GA3915@cise.ufl.edu>; from nthomas@cise.ufl.edu on Mon, Apr 29, 2002 at 12:52:51AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon Apr 29, 2002; 12:52AM -0400 N. Thomas propagated the following: > * Peter Ulrich Kruppa [2002-04-29 06:41:39 +0000]: > > > > > > > > > What is the best way to do this, i.e. is there documentation available for > > > compiling packages outside /usr/ports? > > > > As a "regular user" you are not allowed to install software - you > > would need root access for this. > > hi Uli, > > I think you misunderstood what I intended to do. I want to compile software > and install in my home directory for my own personal use. I never mean for > this to be installed system wide. > Hi. With a few extra arguments you can build any port in your home directory. Example: (~)% mkdir ports (~)% cd /usr/ports/irc/epic4 (/usr/ports/irc/epic4)% make DISTDIR=/home/you/ports/distfiles \ PKG_DBDIR=/home/you/ports/db WRKDIRPREFIX=/home/you/ports/build \ PREFIX=/home/you/ports all install clean This will install the epic4 port in ~/ports as if ~/ports was (for example) /usr/local. There may be slightly more elegant solutions, and other things necessary to build more complex packages. In general, you will probably want to look at /usr/ports/Mk/bsd.port.mk for various variables and their uses. Good luck. > thomas > > -- > N. Thomas > nthomas@cise.ufl.edu > Etiamsi occiderit me, in ipso sperabo > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -wd -- chip norkus; unix geek and programmer; wd@arpa.com "question = (to) ? be : !be;" --Shakespeare http://telekinesis.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message