From owner-freebsd-hackers Sat Dec 18 17:41:15 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mta3.rcsntx.swbell.net (mta3.rcsntx.swbell.net [151.164.30.27]) by hub.freebsd.org (Postfix) with ESMTP id 7AD1A15158 for ; Sat, 18 Dec 1999 17:41:12 -0800 (PST) (envelope-from chris@holly.dyndns.org) Received: from holly.dyndns.org ([216.62.157.60]) by mta3.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.1999.09.16.21.57.p8) with ESMTP id <0FMY00GAQSOGA2@mta3.rcsntx.swbell.net> for freebsd-hackers@FreeBSD.ORG; Sat, 18 Dec 1999 19:41:04 -0600 (CST) Received: (from chris@localhost) by holly.dyndns.org (8.9.3/8.9.3) id TAA11225; Sat, 18 Dec 1999 19:43:38 -0600 (CST envelope-from chris) X-URL: http://www.FreeBSD.org/~chris/ Date: Sat, 18 Dec 1999 19:43:37 -0600 From: Chris Costello Subject: Re: Anybody know if there is any way to make ports use different work dir? In-reply-to: <199912190133.RAA76536@apollo.backplane.com> To: Matthew Dillon Cc: freebsd-hackers@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <19991218194337.M523@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i X-Operating-System: FreeBSD 4.0-CURRENT (i386) References: <199912190133.RAA76536@apollo.backplane.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Dec 18, 1999, Matthew Dillon wrote: > It would be nice if there were a way to tell the ports system to put the > work directory somewhere other then where it is currently placed. For > example, to put it in /usr/obj or something like that. Has anyone done > this? The authors of bsd.port.mk have. Try this: $ cd /usr/ports/misc/rtfm $ WRKDIRPREFIX=/tmp DISTDIR=/tmp make >> rtfm-0.2.tar.gz doesn't seem to exist on this system. >> Attempting to fetch from http://www.freebsd.org/~chris/distfiles/. Receiving rtfm-0.2.tar.gz (4881 bytes): 100% 4881 bytes transferred in 0.1 seconds (48.25 Kbytes/s) ===> Extracting for rtfm-0.2 >> Checksum OK for rtfm-0.2.tar.gz. ===> Patching for rtfm-0.2 ===> Applying FreeBSD patches for rtfm-0.2 ===> Configuring for rtfm-0.2 ===> Building for rtfm-0.2 cc -o rtfm rtfm.c -O -pipe -Wall Simply set WRKDIRPREFIX and DISTDIR and nothing gets written to the ports directory. Obviously you could put this in /etc/make.conf and make it much easier on yourself. Note that you end up in this case with /tmp/usr/ports/misc/rtfm/work/rtfm-0.2/ that you get to rip out later. Additionally, a /tmp/rtfm-0.2.tar.gz is left behind. -- |Chris Costello |State-of-the-practice: What we can do with the money you have. `-------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message