Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2017 11:23:20 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Writing a port that simply installs a bunch of files
Message-ID:  <fd9f7376-4839-7afe-e6b4-67a1b654c236@FreeBSD.org>
In-Reply-To: <3e2f217d-f853-4e37-c103-d0b5501520bc@netfence.it>
References:  <66d50818-f00e-9033-4c93-f159c38d04ba@netfence.it> <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de> <5e3354dc-b597-7622-dbae-07d4119d1b7a@netfence.it> <20170306165104.51c4f071@bsd64.grem.de> <20170306170505.7e043310@bsd64.grem.de> <03dbd850-c6d5-f7e9-9b6a-41e38da5b485@netfence.it> <3e2f217d-f853-4e37-c103-d0b5501520bc@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--e4meIWv86e7oJcN2Me32FUwsGhOcFg8XQ
Content-Type: multipart/mixed; boundary="KJ0rnuXDVDFKkdpGa2NT0kkSAB5ulXlDE";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-ports@freebsd.org
Message-ID: <fd9f7376-4839-7afe-e6b4-67a1b654c236@FreeBSD.org>
Subject: Re: Writing a port that simply installs a bunch of files
References: <66d50818-f00e-9033-4c93-f159c38d04ba@netfence.it>
 <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de>
 <5e3354dc-b597-7622-dbae-07d4119d1b7a@netfence.it>
 <20170306165104.51c4f071@bsd64.grem.de>
 <20170306170505.7e043310@bsd64.grem.de>
 <03dbd850-c6d5-f7e9-9b6a-41e38da5b485@netfence.it>
 <3e2f217d-f853-4e37-c103-d0b5501520bc@netfence.it>
In-Reply-To: <3e2f217d-f853-4e37-c103-d0b5501520bc@netfence.it>

--KJ0rnuXDVDFKkdpGa2NT0kkSAB5ulXlDE
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2017/03/09 10:58, Andrea Venturoli wrote:
> Now files have correct permissions, owner and group in ${STAGEDIR};
> however the group is lost in ${PREFIX} after "make install".
>=20
> Is specifying "@group" in pkg-plist the only way to keep that?

Yes, you need to specify what user or group ownership and what
permissions you want for files within the pkg-plist.  Unless they should
have the default root:wheel ownership and mode 755 for dirs and
executables or 644 for data and other non-executable files.

That's because the ports will build software, install it to staging and
create a package from it as a non-root user.  So the ownership and modes
of files in staging may well be nothing like what the files should have
when installed in production.  With the exception that the execute
permission bit setting does seem to be derived from what's in staging.
If that seems annoyingly inconsistent to you, consider what it would
take to update all of the pkg-plist files or equivalent port Makefile
entries to explicitly set the file modes for every executable that might
be installed by the ports, and to get there from here without breaking
everything while that work is in progress.

	Cheers,

	Matthew




--KJ0rnuXDVDFKkdpGa2NT0kkSAB5ulXlDE--

--e4meIWv86e7oJcN2Me32FUwsGhOcFg8XQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQJ8BAEBCgBmBQJYwTsuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnsDkQAI7IWKBDpy6kGfTvrDPbUe5c
+/D9goNUSVQ+l5fMuGB9Nq3/iWH1wpJD5Dq6m0YeOS3m9twHd42u6XZDBnyommpU
FO1DjgjCXiAVv8M7WRGtq7V4vvSzmSxISl+kL2Y1NS7LtPUuVlnYX7usCOOS+ZDa
7dZospkCDMS9e+6nt003pJdmuX5e8X1r/oBfBsZeV3kWTi3pewWcYAOWKCVEKjFi
x/mqJxDYB6NpgzoU38HsxwkGjTuKr3DNspEooDrKIp7yzBOVZyAcqkZeUvgbO/GT
vJVgBDJ/DOz3pLShRK+7gQHiGOobidd6hbDHz7FgzyZeIIVDwXbHDW7/TH1IlVea
HKnbF1GE0QOA6EkzaiBjdKHJyHLx347o2eIq/n6FtyPNQsAcZpO9jEh49DUGLLPf
ZFHkCfuo4/Mco8hSA7PZd7CV/gi2Sg8Q5sdoWx6a2eDDBr2S0ZO8l2ngQkuMP2bo
oQY+/pwEErB/BBhsumN2dCP2Ya6UM3c6N8IjKZC+0wvtvTTFDPwidO46BEYrNjpX
gfH0N7eh8qQQMotYd7byI+KwSrySDpYBFB59fkkGNI5WEBx1LbV7qzY9YZpGvpUE
/Z/loNV8LPtVuh6b8/opWpLNyA3cRsI+ueYNM3D6oel+1+g1T6YTsQQGq+uTX/AE
ZsgVRFlrwhz2vuxaS93w
=dYp5
-----END PGP SIGNATURE-----

--e4meIWv86e7oJcN2Me32FUwsGhOcFg8XQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fd9f7376-4839-7afe-e6b4-67a1b654c236>