From owner-freebsd-ports@freebsd.org Thu Mar 9 11:23:34 2017 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 9FBC3D04216 for ; Thu, 9 Mar 2017 11:23:34 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E3C3157C for ; Thu, 9 Mar 2017 11:23:34 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 7C80BE358 for ; Thu, 9 Mar 2017 11:23:29 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/7C80BE358; dkim=none; dkim-atps=neutral Subject: Re: Writing a port that simply installs a bunch of files To: freebsd-ports@freebsd.org 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> From: Matthew Seaman Message-ID: Date: Thu, 9 Mar 2017 11:23:20 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <3e2f217d-f853-4e37-c103-d0b5501520bc@netfence.it> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e4meIWv86e7oJcN2Me32FUwsGhOcFg8XQ" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,RCVD_IN_RP_RNBL, RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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: Thu, 09 Mar 2017 11:23:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --e4meIWv86e7oJcN2Me32FUwsGhOcFg8XQ Content-Type: multipart/mixed; boundary="KJ0rnuXDVDFKkdpGa2NT0kkSAB5ulXlDE"; protected-headers="v1" From: Matthew Seaman To: freebsd-ports@freebsd.org Message-ID: 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--