From owner-freebsd-ports@freebsd.org Tue Jan 9 08:26:08 2018 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 74211E6D511 for ; Tue, 9 Jan 2018 08:26:08 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (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 2AE3D7074D for ; Tue, 9 Jan 2018 08:26:08 +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 D4F5ABDD25; Tue, 9 Jan 2018 09:26:02 +0100 (CET) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) (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 9A21ABDD1E; Tue, 9 Jan 2018 09:26:02 +0100 (CET) Subject: Re: First time porter seeks guidance on 'make package' (as user) To: Yuri , James E Keenan , freebsd-ports@freebsd.org References: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Tue, 9 Jan 2018 09:26:00 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oYpEiiqhvX3WwMeMfO52uolDoKe6DIQEV" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2018 08:26:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oYpEiiqhvX3WwMeMfO52uolDoKe6DIQEV Content-Type: multipart/mixed; boundary="UTSEXbHRRhTe1tPcopj5ZtpPbxT0ZLFqM"; protected-headers="v1" From: Mathieu Arnold To: Yuri , James E Keenan , freebsd-ports@freebsd.org Message-ID: Subject: Re: First time porter seeks guidance on 'make package' (as user) References: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> In-Reply-To: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> --UTSEXbHRRhTe1tPcopj5ZtpPbxT0ZLFqM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: fr Le 09/01/2018 =C3=A0 04:22, Yuri a =C3=A9crit=C2=A0: > On 01/08/18 12:46, James E Keenan wrote: >> Can someone offer guidance as to how to proceed?=20 > > > As a root: > > 1. Check out the ports tree: svn checkout > https://svn.FreeBSD.org/ports/head /usr/ports (if you don't have it > checked out yet) > > 2. Change the ports tree to your user: chown -R {username}:users > /usr/ports > > 3. Install sudo: pkg install sudo > > 4. Add yourself to sudoers: /usr/local/etc/sudoers (alternatively, add > yourself to the 'wheel' group and enable '%wheel ALL=3D(ALL) ALL' in th= e > sudoers file) > > 5. Add these 2 lines to sudoers: > > Defaults=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 env_reset,timestamp_= timeout=3D240 > Defaults=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 !tty_tickets > > 6. In /etc/make.conf: add the line 'SU_CMD=3D /usr/local/bin/sudo -E sh= -c' > > As your own user: > > 7. Go into any port directory: cd /usr/ports/{category}/{portdir} > > 8. commands like 'make makesum', 'make install', 'make package', 'make > clean' will only require your password once in 4 hours > > You can download tarballs, build, install, uninstall, build packages, > all without typing in your password more often than once in 240 minutes= =2E > > Using this method, you never need to do anything as a root again > within the ports tree. What an insanely long and complicated method. As your own user: 1. checkout the ports tree in your home: svn checkout https://svn.FreeBSD.org/ports/head $HOME/ports (or where-ever you want it) 2. Then, either add PORTSDIR=3D$HOME/ports to your environment, or as root, edit /etc/make.conf and add: =2Eif ${USER:U} =3D=3D youruser PORTSDIR=3D$HOME/ports =2Eendif There, no need to do anything else, except setup poudriere to use this ports tree, as root too: poudriere ports -c -p default -m null -M /home/youruser/ports --=20 Mathieu Arnold --UTSEXbHRRhTe1tPcopj5ZtpPbxT0ZLFqM-- --oYpEiiqhvX3WwMeMfO52uolDoKe6DIQEV 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 iQJ8BAEBCgBmBQJaVHyaXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IOKcP/0neW4bko0Ya/WJMqbfxyPb1 70JKGEWMnwcFO9hxyGrKd4Mq+pzjqOZzQBJgkrUvIHaDLp2dKR8vPLF5kPks6cCH KjEKDg95huV/XpDbSV4crAwyAwDte5+lIGq5Umv/61AiaT6Dqf8QwsU/mlaI3sU2 qM61UocmP8+Nc3rThhylxkTFstw19tdx585P61cIagwv/2oWZ0pVU36UjobK5C3W k9E+uYrvjZB/BYyVYDta3VgdZoQp7dJNRjbwnAl+rnNTHPk/N7B08KL3VsVxwluv NONxDOOFb3KXRCsulHEREQ25sG4YHpX45GjeTsabpDlL/l9AaqCmBGc3BFQvIyCG eflnKAeuVPL0SkhagM9J3pjYrumRiQDiCnU2rs7Bk6F0X5gY9yi209zID+i0bppV x4kEkURbSrufKWrofSrr7u+v/5WAqamG8MXcDUYah/WQcYdiU/Skz4peaKePEQnj OfHtJapdW6I/vcVGNS54CGCOtUoFYZM8yPZoR2t+1S+znijJDWsejpCcH9q2jVQZ r8lTMSo7sUWkMmb93wvE7c4CAm7AIEvEikwqz5bCiODdHOcM0VNrznULscvNbVLt K5HUBjCS+ykaohjuyowDN3YHnBpRlaYsrpbOND/u4YHpfOCvsw9CxfMSxQnxbMT4 l5vqaKmB9RaflG5cNWb7 =uaMR -----END PGP SIGNATURE----- --oYpEiiqhvX3WwMeMfO52uolDoKe6DIQEV--