Date: Mon, 29 Apr 2002 00:04:59 -0500 From: Chip Norkus <wd@arpa.com> To: "N. Thomas" <nthomas@cise.ufl.edu> Cc: questions@FreeBSD.ORG Subject: Re: building ports *outside* /usr Message-ID: <20020429000459.B5383@arpa.com> In-Reply-To: <20020429045250.GA3915@cise.ufl.edu>; from nthomas@cise.ufl.edu on Mon, Apr 29, 2002 at 12:52:51AM -0400 References: <20020429042001.GA28503@cise.ufl.edu> <20020429063551.H501-100000@small.pukruppa.de> <20020429045250.GA3915@cise.ufl.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon Apr 29, 2002; 12:52AM -0400 N. Thomas propagated the following: > * Peter Ulrich Kruppa <root@pukruppa.de> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020429000459.B5383>