Bug 13926

Summary: Patch to allow subdirectories in DISTFILES
Product: Ports & Packages Reporter: John Polstra <jdp>
Component: Individual Port(s)Assignee: Satoshi Asami <asami>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
bsd.port.mk.patch none

Description John Polstra 1999-09-24 00:50:01 UTC
	The attached patch allows filenames in DISTFILES to include
	subdirectory components.  I need this feature for some new PM3
	(Polymtl Modula-3) that I would like to commit.

	Here's what this patch does:

	* If filenames in DISTFILES contain one or more "/"
	characters, their directory structure is preserved on the
	local machine.  This is done by creating the necessary
	directories and adding a "-o path" option to the fetch
	command.

	* If there are no "/" characters in the filenames, the
	"-o path" argument is omitted from the fetch command, and
	everything happens just the same as always.  Thus, existing
	ports which override FETCH_CMD won't experience any surprises.

How-To-Repeat: 
	Here is an example of the kind of situation where the patch
	is useful:

	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

	This doesn't work currently, because DISTFILES is assumed to
	contain only simple filenames (no "/" characters).  The
	patch makes it work.
Comment 1 Satoshi Asami freebsd_committer freebsd_triage 1999-09-24 01:54:49 UTC
Responsible Changed
From-To: freebsd-ports->asami

Will test and commit. 
Comment 2 Satoshi Asami freebsd_committer freebsd_triage 1999-10-01 10:28:41 UTC
State Changed
From-To: open->closed

Committed, thanks!