From owner-freebsd-ports@FreeBSD.ORG Thu Apr 28 08:03:48 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B537116A4CE for ; Thu, 28 Apr 2005 08:03:48 +0000 (GMT) Received: from mail2out.barnet.com.au (mail2out.barnet.com.au [202.83.176.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id C587F43D2D for ; Thu, 28 Apr 2005 08:03:47 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mail2out.barnet.com.au (Postfix, from userid 27) id 2C02E70740D; Thu, 28 Apr 2005 18:03:46 +1000 (EST) X-Viruscan-Id: <427098E200004D57DF4B65@BarNet> Received: from mail2-auth.barnet.com.au (mail2.barnet.com.au [202.83.176.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id ABB8B707415; Thu, 28 Apr 2005 18:03:45 +1000 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (not verified)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id E6CEF70740D; Thu, 28 Apr 2005 18:03:44 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 77DAB61AD; Thu, 28 Apr 2005 18:03:41 +1000 (EST) Date: Thu, 28 Apr 2005 18:03:41 +1000 From: Edwin Groothuis To: Sam Lawrance Message-ID: <20050428080341.GM1175@k7.mavetju> References: <1114610923.45212.16.camel@dirk.no.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1114610923.45212.16.camel@dirk.no.domain> User-Agent: Mutt/1.5.6i cc: ports@freebsd.org Subject: Re: Why can't pkg-plist list directories? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 08:03:48 -0000 On Thu, Apr 28, 2005 at 12:08:41AM +1000, Sam Lawrance wrote: > Aside from the fact that the pkg_* tools don't currently support it, is > there a reason why we use @dirrm in packing lists rather than just > listing the directories? Foolproofing. If I copy a file to etc/foo where foo is a directory, but I forgot to create the directory first I end up with the file foo in etc/. Having the pkg-plist explicitely stating it as a directory, it will throw an error and the maintainer (and eeeeeeverybody else) will know he made a mistake. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/