From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 26 08:04:29 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2B8937B401 for ; Thu, 26 Jun 2003 08:04:28 -0700 (PDT) Received: from softcon.mail.net (softcon.mail.net [209.47.5.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id C01EF43F85 for ; Thu, 26 Jun 2003 08:04:25 -0700 (PDT) (envelope-from Dwayne.MacKinnon@xwave.com) Received: from xwave.com (saturn.mail.net [209.47.5.34]) by softcon.mail.net (6.21b/6.21b) with ESMTP id h5QF3nIK043097; Thu, 26 Jun 2003 11:03:50 -0400 (EDT) (envelope-from Dwayne.MacKinnon@xwave.com) Message-ID: <3EFB0B50.2090603@xwave.com> Date: Thu, 26 Jun 2003 11:03:44 -0400 From: Dwayne MacKinnon Organization: xwave User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030421 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: pkg_create broken? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dwayne.MacKinnon@xwave.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 15:04:29 -0000 Julian Elischer wrote: > Alternatively, the man page hints that > a 'srcdir' would stop a following 'cwd' from having effect in the create > phase. Just wanted to mention that order is extremely important with package creation. If you have @cwd /foo/bar; @srcdir /bar/foo your files will be picked up from /bar/foo. If you have @srcdir /bar/foo; @cwd /foo/bar your files will be picked up from /foo/bar. @cwd changes the directory pointer for both creation and extraction, and so if you have @cwd AFTER @srcdir the @srcdir command effectively gets over-written. An experiment using just @srcdir and @dstdir might be worthwhile... Cheers, DMK