From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 15:31:27 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94501106566C for ; Thu, 21 Jul 2011 15:31:27 +0000 (UTC) (envelope-from peter@vereshagin.org) Received: from mx1.skyriver.ru (ns1.skyriver.ru [89.108.118.221]) by mx1.freebsd.org (Postfix) with ESMTP id 511E08FC3D for ; Thu, 21 Jul 2011 15:31:27 +0000 (UTC) Received: from localhost (chomsky.torservers.net [77.247.181.162]) by mx1.skyriver.ru (Postfix) with ESMTPSA id E39505B03 for ; Thu, 21 Jul 2011 19:02:11 +0400 (MSD) Date: Thu, 21 Jul 2011 19:30:50 +0400 From: Peter Vereshagin To: freebsd-questions@freebsd.org Message-ID: <20110721153050.GA76083@external.screwed.box> References: <20110721100259.GA5326@external.screwed.box> <80674226c5ead62b213864dcd36b6a75.squirrel@www.magehandbook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <80674226c5ead62b213864dcd36b6a75.squirrel@www.magehandbook.com> Organization: ' X-Face: 8T>{1owI$Byj]]a; ^G]kRf*dkq>E-3':F>4ODP[#X4s"dr?^b&2G@'3lukno]A1wvJ_L(~u 6>I2ra/<,j1%@C[LN=>p#_}RIV+#:KTszp-X$bQOj,K Subject: Re: build ports from not a root user? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 15:31:27 -0000 You'll never silence the voice of the voiceless, freebsd-questions! 2011/07/21 11:04:57 -0400 Daniel Staal => To freebsd-questions@freebsd.org : DS> > I'd like to build my ports from not a root user. DS> > How can I tell the ports system that it should su ( switch user ) before DS> > to DS> > build the dependencies? DS> > Can portupgrade handle this? DS> > Dependencies should be installed from a root user. DS> DS> Install sudo, and (as long as your permissions are set correctly) the DS> ports system can do everything except the install and configure from a DS> user in the 'wheel' group. Heck I know I can use su or sudo and after chown -Rf user00:group00 /usr/ports/ /usr/src/ /usr/obj I can build world or a single port with 'make'. It's easy. But with ports I know the dependencies will not follow my policy to install the every single port as: $ cd /usr/ports/category/port00 $ make $ su - # cd /usr/ports/category/port00 # make install # exit $ cd /usr/ports/category/port01 ... and so on ... In different words, I want the 'make install' from the partivular port's directory to automate /usr/ports/category/ports00 # make install behind its scenes like this: # cd /usr/category/category/dependence-port01 # su user00 -c make # make every_install_target # cd /usr/ports/category/ports00 # su user00 -c make # make every_install_target Think 'dependence-port01' and 'every_install_target' are self-explanatory. 73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB 12F8 0CE1 4AAC A0E2 6627) -- http://vereshagin.org