Date: Wed, 16 Jul 2003 15:03:04 +0300 From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> To: freebsd-questions@freebsd.org Subject: How an arbitrary user can install ports in own home dir? Message-ID: <20030716120304.GA44094@pm514-9.comsys.ntu-kpi.kiev.ua>
next in thread | raw e-mail | index | archive | help
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)?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030716120304.GA44094>