From owner-freebsd-questions@FreeBSD.ORG Tue Dec 3 17:18:35 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E44AAED for ; Tue, 3 Dec 2013 17:18:35 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 440FB12BD for ; Tue, 3 Dec 2013 17:18:35 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 4DB6433C1D; Tue, 3 Dec 2013 12:08:58 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id AC83239830; Tue, 3 Dec 2013 12:08:56 -0500 (EST) From: Lowell Gilbert To: till plewe Subject: Re: local ports collection References: Date: Tue, 03 Dec 2013 12:08:56 -0500 In-Reply-To: (till plewe's message of "Wed, 4 Dec 2013 00:46:01 +0900") Message-ID: <44r49tg8uv.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: FreeBSD-Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: FreeBSD-Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Dec 2013 17:18:35 -0000 till plewe writes: > I would like to use the ports tree to install and manage packages inside my > home directory. I tried setting: > > PKG_DBDIR,PREFIX,PORTSDIR,LOCALBASE,PORT_DBDIR,DESTDIR Don't use DESTDIR; it doesn't do what you think it does. [What did you think it did anyway, and why?] > to directories within my home directory but then I get error messages like > > $ make build > ===> Creating some important subdirectories > mount_nullfs: Operation not permitted > > when trying to build/install ports. > > Any suggestions on how to use ports completely avoiding root? > (I rented space on a server and have permission to install binaries > but do not have root access) You'll probably have to change SU_CMD as well. Something like "su $USER -c" should do it. And you may need to bootstrap the pkg(8) command somehow. Good luck.