summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1998-07-28 22:27:16 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1998-07-28 22:27:16 +0000
commit8b9ac99a982a9ad9132d4d940d34ceb7df4f77ff (patch)
tree58718a8687457ce16ddd821c927aa8a55c106644 /Mk
parentUpgrade to version 4.35. (diff)
Add var "CD_MOUNTPT" set to /cdrom by default.
Ok'ed by: discussed with Satoshi at USENIX
Notes
Notes: svn path=/head/; revision=12192
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index d042161ca46d..c53c97245166 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $Id: bsd.port.mk,v 1.276 1998/05/20 22:27:18 jkh Exp $
+# $Id: bsd.port.mk,v 1.277 1998/07/13 23:39:02 se Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -622,9 +622,10 @@ PATCH_SITES:= ${MASTER_SITE_OVERRIDE} ${PATCH_SITES}
# Search CDROM first if mounted, symlink instead of copy if
# FETCH_SYMLINK_DISTFILES is set
-.if exists(/cdrom/ports/distfiles)
-MASTER_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${MASTER_SITES}
-PATCH_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${PATCH_SITES}
+CD_MOUNTPT?= /cdrom
+.if exists(${CD_MOUNTPT}/ports/distfiles)
+MASTER_SITES:= file:${CD_MOUNTPT}/ports/distfiles/${DIST_SUBDIR}/ ${MASTER_SITES}
+PATCH_SITES:= file:${CD_MOUNTPT}/ports/distfiles/${DIST_SUBDIR}/ ${PATCH_SITES}
.if defined(FETCH_SYMLINK_DISTFILES)
FETCH_BEFORE_ARGS+= -l
.endif