From owner-freebsd-ports@FreeBSD.ORG Sat Feb 22 19:05:48 2014 Return-Path: Delivered-To: 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 ESMTPS id 04B77325 for ; Sat, 22 Feb 2014 19:05:48 +0000 (UTC) Received: from apnoea.adamw.org (apnoea.adamw.org [204.109.59.150]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D205C13BF for ; Sat, 22 Feb 2014 19:05:47 +0000 (UTC) Received: by apnoea.adamw.org (Postfix, from userid 1002) id 25D8011FBE8; Sat, 22 Feb 2014 14:05:41 -0500 (EST) Date: Sat, 22 Feb 2014 14:05:41 -0500 From: Adam Weinberger To: ports@FreeBSD.org Subject: Changing ownership of a directory when using staging Message-ID: <20140222190540.GA9375@apnoea.adamw.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: Vim 7.3 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-Adamw: ADAMW!!! X-URL: http://www.adamw.org User-Agent: Mutt/1.5.22 (2013-10-16) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Feb 2014 19:05:48 -0000 How do I specify the owner/group and mode of a directory when using staging? It appears to automatically create every directory as root:wheel. Setting @user/@group in pkg-plist doesn't affect things with @exec mkdir. The only thing I can figure is: @exec install -d -m 730 -o user -g group %D/path/to/dir But that'll fail when installed by anyone except root, right? This problem breaks usability of a number of ports---especially web-based ones where specific directories need specific owners. Every time www/dokuwiki is upgraded or reinstalled, a half dozen directories have to be manually chown'd on the command line, for example. # Adam -- Adam Weinberger adamw@adamw.org http://www.adamw.org