Date: Tue, 11 Jan 2005 15:42:14 -0300 From: Fernan Aguero <fernan@iib.unsam.edu.ar> To: "Michael C. Shultz" <reso3w83@verizon.net> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: how to test ports before submission? Message-ID: <20050111184214.GF8076@iib.unsam.edu.ar> In-Reply-To: <200501110950.00729.reso3w83@verizon.net> References: <20050111170828.GC8076@iib.unsam.edu.ar> <200501110950.00729.reso3w83@verizon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
+----[ Michael C. Shultz <reso3w83@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050111184214.GF8076>