Date: Thu, 1 Oct 1998 00:08:39 -0700 (PDT) From: asami@cs.berkeley.edu (Satoshi Asami) To: ports@FreeBSD.ORG Subject: WRKDIRPREFIX Message-ID: <199810010708.AAA25628@silvia.hip.berkeley.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810010708.AAA25628>