From owner-freebsd-ports@FreeBSD.ORG Sun Nov 3 21:42:27 2013 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CE21B97; Sun, 3 Nov 2013 21:42:27 +0000 (UTC) (envelope-from melvyn@magemana.nl) Received: from fire.magemana.nl (magemana.nl [IPv6:2a01:7c8:aaae:25e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 93471245C; Sun, 3 Nov 2013 21:42:27 +0000 (UTC) Received: by fire.magemana.nl (Postfix, from userid 1003) id C3B3D4AB3B9; Sun, 3 Nov 2013 22:22:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by fire.magemana.nl (Postfix) with ESMTP id AC77B4AB3B8; Sun, 3 Nov 2013 22:22:24 +0100 (CET) Date: Sun, 3 Nov 2013 22:22:24 +0100 (CET) From: Melvyn Sopacua To: Tijl Coosemans Subject: Re: Staging and directory modes/ownerships In-Reply-To: <20131103222318.3f9d2c8a@kalimero.tijl.coosemans.org> Message-ID: References: <20131103222318.3f9d2c8a@kalimero.tijl.coosemans.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ports@FreeBSD.org, Melvyn Sopacua X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2013 21:42:27 -0000 On Sun, 3 Nov 2013, Tijl Coosemans wrote: > On Sun, 3 Nov 2013 14:47:00 +0100 (CET) Melvyn Sopacua wrote: >> I'm trying to upgrade www/magento and in the process make it use the >> stage. Aside from having to package a fixed plist again to set modes and >> ownerships, I can no longer find a way to set these properties on >> directory trees. > > After converting the Makefile for staging you can create an initial > pkg-plist using "make makeplist". Later you can also check for missing > items using "make check-orphans". Yes, I've read the Wiki page. I still opted to create my own "genplist" target and wrap it in MAINTAINER_MODE to start handling some of the %% variables. >> For now I'll go with adding @exec commands to ${TMPPLIST}, I suppose. > > Would this work: > > @owner www > @group www > www/magento/media/foo/bar If bar is a directory, I expect to see errors from the package tools here, but I haven't tried it. If bar is a file, then it doesn't change owner of media/foo (tested). Further more, it would be rather hard to do so, since in this case, www/magento should be left untouched. > @mode 0777 > @dirrm www/magento/media/foo This directive is processed on deinstallation. I don't think it will work but I have not tested it. Thanks for answering. -- Melvyn Sopacua