summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-01-26 03:58:58 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-01-26 03:58:58 +0000
commit047e50052820f8d50471a8d506030e60ed431598 (patch)
tree628bdcb98088bcffbc93de193810655ceba78254 /Mk/bsd.port.mk
parentActivate the wmpinboard port. (diff)
(1) Rename "templates" to "Templates". The toplevel is getting
crowded and I don't want to confuse cvsup about what's in ports-base and what is not. (I.e., all uppercase files/directories are, all lowercase ones are not.) While I'm here, move the make_index script from templates to Tools. (2) Adjust the MASTER_SITE_OVERRIDE logic a bit. Formerly, it was not possible to specify both MASTER_SITE_OVERRIDE while still using MASTER_SITE_BACKUP as a backup, as they were tied in the implementation of MASTER_SITE_FREEBSD. You can now specify them independently if MASTER_SITE_FREEBSD is not set (in which case MASTER_SITE_BACKUP will be moved to the beginning of the list, like before).
Notes
Notes: svn path=/head/; revision=16359
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk21
1 files changed, 10 insertions, 11 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 1b6428627223..ee98ea25217e 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.301 1999/01/11 13:04:18 asami Exp $
+# $Id: bsd.port.mk,v 1.302 1999/01/20 01:55:05 asami Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -458,7 +458,7 @@ DISTDIR?= ${PORTSDIR}/distfiles
_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
EXTRACT_SUFX?= .tar.gz
PACKAGES?= ${PORTSDIR}/packages
-TEMPLATES?= ${PORTSDIR}/templates
+TEMPLATES?= ${PORTSDIR}/Templates
.if exists(${MASTERDIR}/patches.${ARCH}-${OPSYS})
PATCHDIR?= ${MASTERDIR}/patches.${ARCH}-${OPSYS}
@@ -854,24 +854,23 @@ PATCH_SITES:= ${PATCH_SITES:S/%SUBDIR%/${PATCH_SITE_SUBDIR}/}
MASTER_SITE_BACKUP?= \
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
-# If the user has this set, go to the FreeBSD repository for everything.
-.if defined(MASTER_SITE_FREEBSD)
-MASTER_SITE_OVERRIDE= ${MASTER_SITE_BACKUP}
-.endif
-
# Where to put distfiles that don't have any other master site
MASTER_SITE_LOCAL?= \
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/LOCAL_PORTS/
-# 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)
+# If the user has MASTER_SITE_FREEBSD set, go to the FreeBSD repository
+# for everything, but don't search it twice by appending it to the end.
+.if !defined(MASTER_SITE_FREEBSD)
MASTER_SITES+= ${MASTER_SITE_BACKUP}
PATCH_SITES+= ${MASTER_SITE_BACKUP}
-.else
+.if defined(MASTER_SITE_OVERRIDE)
MASTER_SITES:= ${MASTER_SITE_OVERRIDE} ${MASTER_SITES}
PATCH_SITES:= ${MASTER_SITE_OVERRIDE} ${PATCH_SITES}
.endif
+.else
+MASTER_SITES:= ${MASTER_SITE_BACKUP} ${MASTER_SITES}
+PATCH_SITES:= ${MASTER_SITE_BACKUP} ${MASTER_SITES}
+.endif
# Search CDROM first if mounted, symlink instead of copy if
# FETCH_SYMLINK_DISTFILES is set