Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 09:49:59 -0800
From:      "Michael C. Shultz" <reso3w83@verizon.net>
To:        FreeBSD Ports <ports@freebsd.org>
Subject:   Re: how to test ports before submission?
Message-ID:  <200501110950.00729.reso3w83@verizon.net>
In-Reply-To: <20050111170828.GC8076@iib.unsam.edu.ar>
References:  <20050111170828.GC8076@iib.unsam.edu.ar>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501110950.00729.reso3w83>