Date: Tue, 9 Jan 2018 09:26:00 +0100 From: Mathieu Arnold <mat@FreeBSD.org> To: Yuri <yuri@rawbw.com>, James E Keenan <jkeenan@pobox.com>, freebsd-ports@freebsd.org Subject: Re: First time porter seeks guidance on 'make package' (as user) Message-ID: <d76dffae-f6a2-623b-37ac-bb1b84b668e4@FreeBSD.org> In-Reply-To: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> References: <d7b95861-868f-8287-259d-fca9da6d0431@pobox.com> <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oYpEiiqhvX3WwMeMfO52uolDoKe6DIQEV Content-Type: multipart/mixed; boundary="UTSEXbHRRhTe1tPcopj5ZtpPbxT0ZLFqM"; protected-headers="v1" From: Mathieu Arnold <mat@FreeBSD.org> To: Yuri <yuri@rawbw.com>, James E Keenan <jkeenan@pobox.com>, freebsd-ports@freebsd.org Message-ID: <d76dffae-f6a2-623b-37ac-bb1b84b668e4@FreeBSD.org> Subject: Re: First time porter seeks guidance on 'make package' (as user) References: <d7b95861-868f-8287-259d-fca9da6d0431@pobox.com> <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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d76dffae-f6a2-623b-37ac-bb1b84b668e4>