Date: Mon, 8 Jan 2018 19:22:33 -0800 From: Yuri <yuri@rawbw.com> To: James E Keenan <jkeenan@pobox.com>, freebsd-ports@freebsd.org Subject: Re: First time porter seeks guidance on 'make package' (as user) Message-ID: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> In-Reply-To: <d7b95861-868f-8287-259d-fca9da6d0431@pobox.com> References: <d7b95861-868f-8287-259d-fca9da6d0431@pobox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01/08/18 12:46, James E Keenan wrote: > Can someone offer guidance as to how to proceed? 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=(ALL) ALL' in the sudoers file) 5. Add these 2 lines to sudoers: Defaults env_reset,timestamp_timeout=240 Defaults !tty_tickets 6. In /etc/make.conf: add the line 'SU_CMD= /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. Using this method, you never need to do anything as a root again within the ports tree. How to work with poudriere - is another story. :-) Hope this helps, Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24>