From owner-freebsd-ports@freebsd.org Sat Sep 10 12:18:28 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 605EDBD4425 for ; Sat, 10 Sep 2016 12:18:28 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (prod2.absolight.net [79.143.243.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F2CA31E3 for ; Sat, 10 Sep 2016 12:18:27 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 2633CBDC98; Sat, 10 Sep 2016 14:18:25 +0200 (CEST) Received: from atuin.in.mat.cc (unknown [176.157.109.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id E5A85BDC85; Sat, 10 Sep 2016 14:18:24 +0200 (CEST) Subject: Re: ${INSTALL_DATA} problems To: Aristedes Maniatis , FreeBSD Mailing List References: <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org> From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: <35e0ace2-ad10-c103-e3d9-c106286ad28a@FreeBSD.org> Date: Sat, 10 Sep 2016 14:18:28 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MVOhBRG7AgESnVHNsdaAASpPB9BkMQL55" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2016 12:18:28 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MVOhBRG7AgESnVHNsdaAASpPB9BkMQL55 Content-Type: multipart/mixed; boundary="lrsBl1awGdNLI4rPPimPkJxJEvq8PxMK4"; protected-headers="v1" From: Mathieu Arnold To: Aristedes Maniatis , FreeBSD Mailing List Message-ID: <35e0ace2-ad10-c103-e3d9-c106286ad28a@FreeBSD.org> Subject: Re: ${INSTALL_DATA} problems References: <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org> In-Reply-To: <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org> --lrsBl1awGdNLI4rPPimPkJxJEvq8PxMK4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le 10/09/2016 =C3=A0 05:32, Aristedes Maniatis a =C3=A9crit : > On 8/09/2016 10:47pm, Mathieu Arnold wrote: >> Now, I'm seeing something else that is a bad idea, it is using the -o >> flag. Ports must build as a regular user. A regular user will not be= >> able to change the owner of the files. This must be done in the >> pkg-plist file, using @owner/@group as described in the Porter's >> Handbook: >> https://www.freebsd.org/doc/en/books/porters-handbook/plist-keywords.h= tml > > I've just tried this but ran into some difficulty. Specifically I have = a plist which is many hundreds of lines long. There is no way this will b= e maintained into the future without mistake. The plist can be generated automatically with "make makeplist" there is no way it is hard to do, or maintain. > I really only want one folder installed with the correct permissions, b= ut do I need to move my chmod code into the rc.d startup script instead a= nd tying it into the pkg install? If it is an empty folder, or you just want the folder itself to have the permissions, do: @dir(%%owner%%,%%group%%,optional mode) the/dir like described in the page I sent you to. If you also need to files, add a: @owner %%owner%% @group %%group%% block before the files of that directory, and add: @owner @group after it. --=20 Mathieu Arnold --lrsBl1awGdNLI4rPPimPkJxJEvq8PxMK4-- --MVOhBRG7AgESnVHNsdaAASpPB9BkMQL55 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJX0/oVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IqtoP/RhfAO+CKc1vIJIbTL8TaUcx RMxY5+Sh8eUTL6fnBSMaVClRTjtMv4EKURUCckQSl/Cn3qt/49ufFLNmrtvp24wN wOqomMpNGTbWWQ1xFYEJosKFdmDJDqJFGCS0z0ltQFUv8Es/BNWEON0+SqNTuIBi OmrfaCfhXw0itRiyOZqHxuBVZrJqmx21MUo+JGJZNf43ihPzBVnMyi6VNudXSR2t SKIbNGQaUJhKVgERkzCCV1cNhwmjj9MeEgRloIvy/DqSDEi+wxBUn4kWPADcAs6d Bu2f6+cQj23Pnbr0VAPzpz1Shxah1KGk5LwKgy1MfVD38/gOAQdRGaoBrmanAqhu ijUm4nT5fa/R/yEpW08gkRXaODF9PdhnLUzEEtT8v1hfsgKgceyPeOAQLTtY4yc7 sy6vIrfhMEoES5E9mj+bmXsPf5jT+Av+e/pACqqJCZGUbsMHpbkAwkdIGfoZKlHX HBicgUOM6nKTAZkqIYlWgsG4idj8pag4pa/vI1GF34oLfOIlVOPyOV6sUxQ7aZbg nx/4tLTUhJSvN7OKv1Su/pFLo0/9Bkx9ldbMO7U/kNpHgg2Z955RNxdbwKkd3N06 g/96hU8xiJhICjVjEr+dpYeo/J5QKSlgpHPEKuf3B4aS9aJgPtoVSMJujXzffhQS NYdbm2svMCUm59tsqZoz =hSQg -----END PGP SIGNATURE----- --MVOhBRG7AgESnVHNsdaAASpPB9BkMQL55--