From owner-freebsd-ports@FreeBSD.ORG Tue Jan 11 18:42:37 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 6B49A16A4CE for ; Tue, 11 Jan 2005 18:42:37 +0000 (GMT) Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id C021743D2D for ; Tue, 11 Jan 2005 18:42:35 +0000 (GMT) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id j0BIsDnP024553; Tue, 11 Jan 2005 15:54:13 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: from pi.iib.unsam.edu.ar (localhost.iib.unsam.edu.ar [127.0.0.1]) by pi.iib.unsam.edu.ar (8.12.11/8.12.9) with ESMTP id j0BIgEnU029189; Tue, 11 Jan 2005 15:42:14 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.12.11/8.12.11/Submit) id j0BIgEm3029188; Tue, 11 Jan 2005 15:42:14 -0300 (ART) (envelope-from fernan@iib.unsam.edu.ar) X-Authentication-Warning: pi.iib.unsam.edu.ar: fernan set sender to fernan@iib.unsam.edu.ar using -f Date: Tue, 11 Jan 2005 15:42:14 -0300 From: Fernan Aguero To: "Michael C. Shultz" Message-ID: <20050111184214.GF8076@iib.unsam.edu.ar> Mail-Followup-To: "Michael C. Shultz" , FreeBSD Ports References: <20050111170828.GC8076@iib.unsam.edu.ar> <200501110950.00729.reso3w83@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200501110950.00729.reso3w83@verizon.net> User-Agent: Mutt/1.5.6i cc: FreeBSD Ports 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 18:42:37 -0000 +----[ Michael C. Shultz (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