From owner-freebsd-ports@FreeBSD.ORG Thu Dec 24 05:43:08 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FD2810656B7 for ; Thu, 24 Dec 2009 05:43:08 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2a01:198:206::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8CEF68FC14 for ; Thu, 24 Dec 2009 05:43:07 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id nBO5h3ak095344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Dec 2009 06:43:03 +0100 (CET) (envelope-from uqs@spoerlein.net) Received: (from uqs@localhost) by acme.spoerlein.net (8.14.3/8.14.3/Submit) id nBO5h2hY095343; Thu, 24 Dec 2009 06:43:02 +0100 (CET) (envelope-from uqs@spoerlein.net) Date: Thu, 24 Dec 2009 06:43:02 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Tijl Coosemans Message-ID: <20091224054302.GA75594@acme.spoerlein.net> Mail-Followup-To: Tijl Coosemans , freebsd-ports@freebsd.org, Matthew Seaman References: <20091214151318.GC1016@wicklow.lan> <4B274487.7080505@infracaninophile.co.uk> <200912151000.19393.tijl@coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200912151000.19393.tijl@coosemans.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-ports@freebsd.org Subject: Re: New version of the fakeroot patch X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 05:43:08 -0000 On Tue, 15.12.2009 at 10:00:18 +0100, Tijl Coosemans wrote: > On Tuesday 15 December 2009 09:10:47 Matthew Seaman wrote: > > Uh -- is it actually possible to create an empty directory when > > installing from a pkg tarball? > > > > I ran into this problem with the phpMyAdmin port, and the only good > > way I found to solve it was to add a stub file into any empty > > directories. You could use a post install script or an mtree file, > > but that seems like overkill for such a trivial operation. > > If you want to create ${PREFIX}/somedir you can add this line > to pkg-plist: > > @exec mkdir -p %D/somedir ... and then you still need to chmod/chown to fix permissions. I wonder why that doesn't work with tar. Is that a limitation of the format, should we perhaps use cpio (with bsdtar, it would be transparent anyway). All in all, this is the right way for package creation and will result in way better binary packages than before. Regards, Uli