From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 05:04:14 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD3CF37B407 for ; Wed, 16 Jul 2003 05:04:14 -0700 (PDT) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27C1243FA3 for ; Wed, 16 Jul 2003 05:04:12 -0700 (PDT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id D500019BE3 for ; Wed, 16 Jul 2003 15:03:55 +0300 (EEST) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id h6GC8lr04638 for ; Wed, 16 Jul 2003 15:08:47 +0300 (EEST) Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000) id 30443127; Wed, 16 Jul 2003 15:03:04 +0300 (EEST) Date: Wed, 16 Jul 2003 15:03:04 +0300 From: Andrey Simonenko To: freebsd-questions@freebsd.org Message-ID: <20030716120304.GA44094@pm514-9.comsys.ntu-kpi.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: How an arbitrary user can install ports in own home dir? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 12:04:15 -0000 Hello all, How an arbitrary user (without root credentials) can install ports in own home dir? How I tried to do this: I created ~/local/ports, place Mk, Tools, Templates there. I defined in .cshrc: setenv PORTSDIR ~/local/ports setenv PREFIX ~/local setenv PKG_DBDIR ~/local/var/db But when I install any ports I'm asked to enter root password. This is from the bsd.port.mk: .if ${UID} != 0 && defined(_${target:U}_SUSEQ) [skip] @echo "===> Switching to root credentials for '${target}' target" @cd ${.CURDIR} && \ ${SU} root -c "${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SUSEQ}" @echo "===> Returning to user credentials" If I give correct root's password, then a port is installed to ~/local and a package is registered in ~/local/var/db. Questions: 1. Is there any way to tell ports system not to ask me root's password? I guess that there should be a way to do it, whithout patching Mk/* files. 2. How to tell make(1) to use ~/local/etc/make.conf file (use another file, than /etc/make.conf)?