From owner-freebsd-ports@FreeBSD.ORG Sun Nov 3 14:06:57 2013 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F0FD6F3A for ; Sun, 3 Nov 2013 14:06:57 +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 B906D2072 for ; Sun, 3 Nov 2013 14:06:57 +0000 (UTC) Received: by fire.magemana.nl (Postfix, from userid 1003) id 64B644AB3B9; Sun, 3 Nov 2013 14:47:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by fire.magemana.nl (Postfix) with ESMTP id 519A04AB3B8 for ; Sun, 3 Nov 2013 14:47:00 +0100 (CET) Date: Sun, 3 Nov 2013 14:47:00 +0100 (CET) From: Melvyn Sopacua To: freebsd-ports@FreeBSD.org Subject: Staging and directory modes/ownerships Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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 14:06:58 -0000 Hi, 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. The short version: How do I convert the following in do-install to work with staging? ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/magento/media ${FIND} ${PREFIX}/www/magento -type d -exec ${CHMOD} a+w {} + Note that this *has* to ensure that if the top level directory exists and has a different mode/owner they are changed. I tried using @mode and @owner on the first occurance of the top-level directory in the pkg-plist but this only sets the properties for the files in question. Since @mkdir is ignored and @exec frowned upon, I don't see a proper way to do this. For now I'll go with adding @exec commands to ${TMPPLIST}, I suppose. -- Melvyn Sopacua