From owner-freebsd-ports Thu Oct 1 00:09:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA01614 for freebsd-ports-outgoing; Thu, 1 Oct 1998 00:09:03 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from vader.cs.berkeley.edu (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA01605 for ; Thu, 1 Oct 1998 00:08:59 -0700 (PDT) (envelope-from asami@vader.cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca3-60.ix.netcom.com [209.109.233.60]) by vader.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id AAA07030 for ; Thu, 1 Oct 1998 00:08:42 -0700 (PDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.8.8/8.6.9) id AAA25628; Thu, 1 Oct 1998 00:08:39 -0700 (PDT) Date: Thu, 1 Oct 1998 00:08:39 -0700 (PDT) Message-Id: <199810010708.AAA25628@silvia.hip.berkeley.edu> To: ports@FreeBSD.ORG Subject: WRKDIRPREFIX From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What do you guys think about this one? Basically it will let you move WRKDIR anywhere by setting a simple variable (WRKDIRPREFIX). You don't have to do weird quoting in the shell if you want to set it from the environment (as opposed to /etc/make.conf), and it will give ports like editors/xemacs-mule-common a fighting chance in such setups. This will also allow us to start experimenting with a read-only ports tree. :) Satoshi ------- Index: bsd.port.mk =================================================================== RCS file: /usr/cvs/src/share/mk/bsd.port.mk,v retrieving revision 1.227.2.54 diff -u -r1.227.2.54 bsd.port.mk --- bsd.port.mk 1998/09/17 01:22:32 1.227.2.54 +++ bsd.port.mk 1998/09/30 08:23:41 @@ -173,8 +173,10 @@ # (default: ${PORTSDIR}/distfiles). # PACKAGES - A top level directory where all packages go (rather than # going locally to each port). (default: ${PORTSDIR}/packages). +# WRKDIRPREFIX - The place to root the temporary working directory +# hierarchy (default: none). # WRKDIR - A temporary working directory that gets *clobbered* on clean -# (default: ${.CURDIR}/work). +# (default: ${WRKDIRPREFIX}${.CURDIR}/work). # WRKSRC - A subdirectory of ${WRKDIR} where the distribution actually # unpacks to. (Default: ${WRKDIR}/${DISTNAME} unless # NO_WRKSUBDIR is set, in which case simply ${WRKDIR}). @@ -424,9 +426,9 @@ PACKAGES?= ${PORTSDIR}/packages TEMPLATES?= ${PORTSDIR}/templates .if !defined(NO_WRKDIR) -WRKDIR?= ${.CURDIR}/work +WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work .else -WRKDIR?= ${.CURDIR} +WRKDIR?= ${WRKDIRPREFIX}${.CURDIR} .endif .if defined(NO_WRKSUBDIR) WRKSRC?= ${WRKDIR} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message