how to test ports before submission?
Michael C. Shultz
reso3w83 at verizon.net
Tue Jan 11 09:53:23 PST 2005
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to
> "freebsd-ports-unsubscribe at 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
More information about the freebsd-ports
mailing list