From owner-freebsd-ports@freebsd.org Tue Jan 9 03:22:36 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 49D61E7D3BE for ; Tue, 9 Jan 2018 03:22:36 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 39D712AFE for ; Tue, 9 Jan 2018 03:22:35 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-24-6-186-56.hsd1.ca.comcast.net [24.6.186.56]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id w093MY8l085652 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 8 Jan 2018 19:22:34 -0800 (PST) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-24-6-186-56.hsd1.ca.comcast.net [24.6.186.56] claimed to be yv.noip.me Subject: Re: First time porter seeks guidance on 'make package' (as user) To: James E Keenan , freebsd-ports@freebsd.org References: From: Yuri Message-ID: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> Date: Mon, 8 Jan 2018 19:22:33 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 03:22:36 -0000 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