From owner-freebsd-questions Wed Sep 4 1: 2:51 2002 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 065DD37B400 for ; Wed, 4 Sep 2002 01:02:49 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0446543E72 for ; Wed, 4 Sep 2002 01:02:48 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g8482kGk026324; Wed, 4 Sep 2002 09:02:46 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g8482fan026323; Wed, 4 Sep 2002 09:02:41 +0100 (BST) Date: Wed, 4 Sep 2002 09:02:41 +0100 From: Matthew Seaman To: Ceri Davies Cc: questions@FreeBSD.ORG Subject: Re: make package without install Message-ID: <20020904080241.GA25988@happy-idiot-talk.infracaninophi> References: <20020903222039.GA2221@submonkey.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020903222039.GA2221@submonkey.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Sep 03, 2002 at 11:20:39PM +0100, Ceri Davies wrote: > Easy question for someone who knows: > > How do I "make package" without installing a port ? Alas, to create a package, you've got to build and install the port somewhere. You could try setting the PREFIX to somewhere like /var/tmp to avoid interfering with your live filesystems: make PREFIX=/var/tmp package but that probably means you'ld have to redirect the package back to the correct place when you install it: pkg_add -p /usr/local /path/to/your/package and it does depend on the port being PREFIX clean. Otherwise, you could do what the portbuild system does and go the whole hog: set up a jailed environment as in the jail(8) man page (including a clean install of the base system and a copy of the ports tree) and do all your package builds in the jail environment. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message