how to test ports before submission?

Fernan Aguero fernan at iib.unsam.edu.ar
Tue Jan 11 10:42:37 PST 2005


+----[ Michael C. Shultz <reso3w83 at verizon.net> (11.Jan.2005 14:57):
|

[snip]

| 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}".

OK, that's a clever thing. 

Now, the only thing that is left for the maintainer to do is
to fix the Makefile (s/local// and remove the line with the
VALID_CATEGORIES) before preparing a diff or shar for
send-pr.

| 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
|
+----]

OK, I also like this, but perhaps it could be made to set
PREFIX for any port under ports/local? Would the following
work?

.if ${.CURDIR:M/usr/ports/local/*}
PREFIX=/my/favourite/prefix
.endif

Thanks for the tips,

Fernan


More information about the freebsd-ports mailing list