From owner-freebsd-ports@FreeBSD.ORG Tue Jan 11 17:53:23 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 053B616A4CE for ; Tue, 11 Jan 2005 17:53:23 +0000 (GMT) Received: from out005.verizon.net (out005pub.verizon.net [206.46.170.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63CC643D46 for ; Tue, 11 Jan 2005 17:53:22 +0000 (GMT) (envelope-from reso3w83@verizon.net) Received: from ringworm.mechee.com ([4.26.84.7]) by out005.verizon.net ESMTP <20050111175321.XTQC28362.out005.verizon.net@ringworm.mechee.com>; Tue, 11 Jan 2005 11:53:21 -0600 Received: by ringworm.mechee.com (Postfix, from userid 1001) id 8DC4E2CE741; Tue, 11 Jan 2005 09:50:01 -0800 (PST) From: "Michael C. Shultz" To: FreeBSD Ports Date: Tue, 11 Jan 2005 09:49:59 -0800 User-Agent: KMail/1.7.2 References: <20050111170828.GC8076@iib.unsam.edu.ar> In-Reply-To: <20050111170828.GC8076@iib.unsam.edu.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501110950.00729.reso3w83@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out005.verizon.net from [4.26.84.7] at Tue, 11 Jan 2005 11:53:21 -0600 Subject: Re: how to test ports before submission? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 17:53:23 -0000 On Tuesday 11 January 2005 09:08 am, Fernan Aguero wrote: > Hi! > > Perhaps this is a FAQ, but I've been unable to find a > satisfactory answer. > > I want to install a port which is not yet in the ports tree, > (i.e. it will not be in the INDEX either) and I do not want > pkgdb, portupgrade, etc. to complain. > > I always test the port by installing in another PREFIX, and > registering itself in a mock (empty) PKG_DBDIR. But once it > builds and installs fine, and before submission, I would > like to use it for a while. That is, install it in my usual > PREFIX (/usr/local) and register it in /var/db/pkg. > > Is this possible? (I mean, without having to edit > pkgtools.conf and perhaps other files each time) > > Thanks, > > Fernan > > PS: or perhaps just want to know how other porter's deal > with this :) > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org" excerpt from man 1 portmanager Here is how to handle locally installed ports if you plan to take advantage of some of FreeBSD's port system features: ######################################################################## # Makefile from /usr/ports/local/sysutils/somelocalportname/Makefile ######################################################################## PORTNAME= somelocalportname PORTVERSION= 0.1.0 CATEGORIES= local/sysutils # for FreeBSD to accept our # local category VALID_CATEGORIES+= ${CATEGORIES} Simply add a "local" directory to /usr/ports and install your local ports under that directory. Where a normal FreeBSD port may be in "sysutils/{portname} the example above would reside in "local/sysu- tils/{portname}". then in /etc/make.conf set prefix for the local port something like (an example of one I use): #Because I don't want my development version of portmanager #installing on top of the version in the ports tree .if ${.CURDIR:M*/local/sysutils/portmanager} PREFIX=/home/mike/TEMP .endif -Mike