From owner-freebsd-ports@FreeBSD.ORG Tue Jul 15 12:56:38 2003 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 577ED37B401 for ; Tue, 15 Jul 2003 12:56:38 -0700 (PDT) Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C59B43F93 for ; Tue, 15 Jul 2003 12:56:37 -0700 (PDT) (envelope-from Alexander@Leidinger.net) Received: from fwd03.aul.t-online.de by mailout02.sul.t-online.com with smtp id 19cVuc-0004qX-05; Tue, 15 Jul 2003 21:56:34 +0200 Received: from Andro-Beta.Leidinger.net (G-SFRZZ-gemu5vvqRN5qoL1kbWURWAhe3pNjhqSufWQrtIryL2zUr-@[80.131.113.89]) by fmrl03.sul.t-online.com with esmtp id 19cVuU-03I2Hw0; Tue, 15 Jul 2003 21:56:26 +0200 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) h6FJuOYs000472; Tue, 15 Jul 2003 21:56:25 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.9/8.12.9) with SMTP id h6FJuOER066358; Tue, 15 Jul 2003 21:56:24 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Tue, 15 Jul 2003 21:56:24 +0200 From: Alexander Leidinger To: Brooks Davis Message-Id: <20030715215624.59e1e1ff.Alexander@Leidinger.net> In-Reply-To: <20030715144458.GA10979@Odin.AC.HMC.Edu> References: <20030714201655.GA880@Odin.AC.HMC.Edu> <20030715112430.39e9a64c.Alexander@Leidinger.net> <20030715144458.GA10979@Odin.AC.HMC.Edu> X-Mailer: Sylpheed version 0.9.3claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: G-SFRZZ-gemu5vvqRN5qoL1kbWURWAhe3pNjhqSufWQrtIryL2zUr-@t-dialin.net cc: freebsd-ports@freebsd.org Subject: Re: not installing under PREFIX 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, 15 Jul 2003 19:56:38 -0000 On Tue, 15 Jul 2003 07:44:58 -0700 Brooks Davis wrote: > > > when it is run. My port currently installs with SGE_ROOT equal to > > > ${PREFIX}/sge which should be fine for most people, but I'd like to > > > support installation at an arbitrary location. Is there a reasionable > > > way to do that? The only real issue seems to be with the plist. I > > > > Use PLIST_SUB (it's used in many ports, so you should find enough > > examples). > > I tried that, but I couldn't figure out what to sub. Unless I'm missing > something, ${PREFIX} still gets prepended to lines containing absolute > paths. Yes, so why not sub the "sge" part above? If someone wants a non standard location, he/she has to set PREFIX _and_ "SGEBASE", the result will end up in '$PREFIX/$SGEBASE'. Bye, Alexander. -- The three Rs of Microsoft support: Retry, Reboot, Reinstall. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7