From owner-freebsd-ports Sat Sep 4 16: 0:44 1999 Delivered-To: freebsd-ports@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 29B7E14E32 for ; Sat, 4 Sep 1999 16:00:35 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id QAA13419 for ; Sat, 4 Sep 1999 16:00:34 -0700 (PDT) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id QAA16490 for ports@freebsd.org; Sat, 4 Sep 1999 16:00:34 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sat, 04 Sep 1999 16:00:33 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: ports@freebsd.org Subject: Handling distfiles in multiple subdirs on master site: how? Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm trying to make a new port and have run into something I don't know how to do. The master site has a funky system of cgi scripts (I guess) that constructs tarballs of arbitrary subtrees on the fly. I need to get several distfiles from various subdirectories on the same master site. Ideally, I'd like to be able to do something like this (just an example): MASTER_SITES= http://m3.polymtl.ca/m3htbin/download/m3/pkg/pm3-1.1.13/ DISTFILES= libs/set.tgz \ m3config.tgz \ graphics/gr-libs/ui DIST_SUBDIR= pm3-1.1.13 But having subdirectories in the DISTFILES list isn't working. Here's what happens when I have just "libs/set.tgz" in DISTFILES: =============================================================================== vashon# make >> libs/set.tgz doesn't seem to exist on this system. >> Attempting to fetch from http://m3.polymtl.ca/m3htbin/download/m3/pkg/pm3-1.1.13/. Receiving set.tgz: 7 Kbytes 7546 bytes transferred in 1.1 seconds (6.41 Kbytes/s) ===> Extracting for pm3-set-1.1.13 cannot open pm3-1.1.13/libs/set.tgz: no such file *** Error code 2 =============================================================================== The fetching worked. It put the tarball into "/usr/ports/distfiles/pm3-1.1.13/set.tgz" which is acceptable even though it omitted the "libs" subdirectory. But then the extract step looked for the tarball in the wrong place. I've come up with one idea so far: set FETCH_CMD to reference a shell script that will preserve the subdirectories when fetching the distfiles (e.g., "/usr/ports/distfiles/pm3-1.1.13/libs/set.tgz" in the example above). Is there a better way to do what I want to do? John --- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message