summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-09-23 09:27:59 +0000
committerasami <asami@FreeBSD.org>1996-09-23 09:27:59 +0000
commit7bdb586f14520e930b1d5e83381f43f993dcdcf5 (patch)
treed2ef563f7ea973de457bb5cddeb8bb391ace04aa /share/mk
parentd984089805ee5a6c85d2d2e8a5b1752377482e38 (diff)
downloadFreeBSD-src-7bdb586f14520e930b1d5e83381f43f993dcdcf5.zip
FreeBSD-src-7bdb586f14520e930b1d5e83381f43f993dcdcf5.tar.gz
Look on the CDROM for patch files too.
Submitted by: max While I'm here, add "${DIST_SUBDIR}/" at end of CDROM pathnames. Also add an empty declaration of PATCH_SITES next to MASTER_SITES to avoid "variable recursive" error.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.port.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index c5f3539..2ccee9c 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.223 1996/08/24 09:28:48 asami Exp $
+# $Id: bsd.port.mk,v 1.224 1996/08/25 21:07:38 wosch Exp $
#
# Please view me with 4 column tabs!
@@ -408,6 +408,7 @@ MASTER_SITE_OVERRIDE= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR
# Empty declaration to avoid "variable MASTER_SITES recursive" error
MASTER_SITES?=
+PATCH_SITES?=
# I guess we're in the master distribution business! :) As we gain mirror
# sites for distfiles, add them to this list.
.if !defined(MASTER_SITE_OVERRIDE)
@@ -421,7 +422,8 @@ 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/ ${MASTER_SITES}
+MASTER_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${MASTER_SITES}
+PATCH_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${PATCH_SITES}
.if defined(FETCH_SYMLINK_DISTFILES)
FETCH_BEFORE_ARGS+= -l
.endif
OpenPOWER on IntegriCloud