Date: Mon, 27 Jan 2014 15:46:21 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "Montgomery-Smith, Stephen" <stephen@missouri.edu>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org> Subject: Re: Questions about staging Message-ID: <52E67F4D.2040908@infracaninophile.co.uk> In-Reply-To: <52E6727E.8040304@missouri.edu> References: <52E5AA90.4060800@missouri.edu> <52E605BB.1030601@infracaninophile.co.uk> <52E6727E.8040304@missouri.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qGnVb3STVOWf3u0oDQ2CQ575A5hhn3Us3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/27/14 14:51, Montgomery-Smith, Stephen wrote: > So it would only be necessary to do this if you want to set ownership > to anything other than root:wheel, since the pkg install program > should automatically set things to root:wheel anyway? (Because things > installed the usual "make install" way will be set similarly?) Yes, absolutely. Files will be installed with ownership by root:wheel by default, unless there are post-install script actions (ie. generally derived from @user / @group settings in pkg-plist) irrespective of what ownership they have in staging. There is a 'NEED_ROOT' compatibility thing but that's not ideal, and I believe the plan is ultimately to do away with it as part of the switch over to staging. > And presumably the same for chmod - it would only be necessary when > setting things like setuid or setgid bits, since otherwise it will > merely copy permissions from whatever the file in the tarball has? Yes -- exactly. Anything involving chown / chgrp / chmod that requires root level privileges should be done this way. Cheers, Matthew --qGnVb3STVOWf3u0oDQ2CQ575A5hhn3Us3 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.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJS5n9UXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnhdUP/2YEFDJ+FRUv8dJMDfps+7Yv LDJM3+I9cWOO0cancD7OD/LMs8din3YW+c4uZa+op5NB8p8sTU1YtLGgfdHgvhjG ZcBbTruCV3xZ82yJIvaOfUJOFoqmUQDtCIURrvMYYSriH+w0udmJTK0NkPf72AqD oj5in05Q7hKUjUGFTcsMP/0UQgZwuD+P9T5gXxkbLzv0TL61GQ3C6+pUBolQpuoU eLxZ308So71HLesAvqZXE/z+5VFPe+0qkXTf23FtRTqXDq1BXxOucqpUSuxO6gLk 9xt93pM4jcUnp3DyNk+VC622tMVZHlpa70c+kqqXa45F3SRk8cChBESsIsKv9pet Pw8Y56IK/rhTY29OYuVRCkA2Kw9e0KEpImn2m9xxKvmSwUKX7ofV6yaXGDyp/LnM GBRXGdRlAmk7CQP2w3qsvN4gwTFFveqpUAUtwvA4i1xYhgZIihEAe7EDJMIEvZzg mUCw7tiq6l+sntKEkyGsZ+pJp4bhVzJs/b+40UWmpq3gnF+Lj2JulqIOi67sWbc3 m2BSHc7n5GJEunqEss9717R/kyruG+wr0CctFfQNvnWOCO9MYC8QNP+ZTC3bFHho b/VuRPN8hNie57PFK9tN06yGRgO2vgDi1rlOMZNhCeDXbsEYThxpsA6krpl1Fcq3 TzjA588DEOTJpo8w+Pfw =VL6O -----END PGP SIGNATURE----- --qGnVb3STVOWf3u0oDQ2CQ575A5hhn3Us3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52E67F4D.2040908>