From owner-freebsd-ports Sun Sep 27 10:20:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA17916 for freebsd-ports-outgoing; Sun, 27 Sep 1998 10:20:10 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA17911 for ; Sun, 27 Sep 1998 10:20:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA02090; Sun, 27 Sep 1998 10:20:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA17737; Sun, 27 Sep 1998 10:19:36 -0700 (PDT) (envelope-from nobody) Message-Id: <199809271719.KAA17737@hub.freebsd.org> Date: Sun, 27 Sep 1998 10:19:36 -0700 (PDT) From: moro@race.u-tokyo.ac.jp To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: ports/8063: [PATCH] Add multiple CDROM support to bsd.port.mk Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8063 >Category: ports >Synopsis: [PATCH] Add multiple CDROM support to bsd.port.mk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 27 10:20:00 PDT 1998 >Last-Modified: >Originator: MOROHOSHI Akihiko >Organization: EEICE, Faculty of Eng., University of Tokyo >Release: 2.2-stable >Environment: FreeBSD coco.moro.arakawa.tokyo.jp 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Jul 27 09:34:09 JST 1998 moro@coco.moro.arakawa.tokyo.jp:/data/stable/src/sys/compile/COCO i386 >Description: bsd.port.mk checks only one cdrom mountpoint. This patch makes it to check multiple cdroms listed in CD_MOUNTPOINTS for distfiles. I think this is useful today when distfiles overflow single cdrom. >How-To-Repeat: >Fix: # diff -u bsd.port.mk{.orig,} --- bsd.port.mk.orig Mon Aug 24 02:51:38 1998 +++ bsd.port.mk Mon Sep 28 01:58:02 1998 @@ -646,7 +646,8 @@ # Search CDROM first if mounted, symlink instead of copy if # FETCH_SYMLINK_DISTFILES is set -CD_MOUNTPT?= /cdrom +CD_MOUNTPOINTS?= /cdrom +.for CD_MOUNTPT in ${CD_MOUNTPOINTS} .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} @@ -654,6 +655,7 @@ FETCH_BEFORE_ARGS+= -l .endif .endif +.endfor # Derived names so that they're easily overridable. DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message