From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 01:08:35 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21E6616A4CE for ; Wed, 22 Dec 2004 01:08:35 +0000 (GMT) Received: from ns1.netavail.net (ns1.netavail.net [66.45.229.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id A51A143D2F for ; Wed, 22 Dec 2004 01:08:32 +0000 (GMT) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (cpe-065-184-047-009.nc.rr.com [65.184.47.9]) by ns1.netavail.net (Postfix) with ESMTP id C4FD93C063; Tue, 21 Dec 2004 20:08:30 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.13.1/8.13.1) with ESMTP id iBM18R6T017698; Tue, 21 Dec 2004 20:08:27 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id iBM18RPA017697; Tue, 21 Dec 2004 20:08:27 -0500 (EST) (envelope-from brent) Date: Tue, 21 Dec 2004 20:08:27 -0500 From: Brent Verner To: Thomas Duffey Message-ID: <20041222010827.GA17485@rcfile.org> References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> <20041221234347.GA16825@rcfile.org> <41C8BDBC.4050801@homeboyz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41C8BDBC.4050801@homeboyz.org> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.10-STABLE #31: Thu Nov 18 11:01:01 EST 2004 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mutt.rcfile.org cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 01:08:35 -0000 [2004-12-21 18:20] Thomas Duffey said: | Hi Brent, Hi Thomas, | > ${SITE_BASE}/tomcat4 | > ${SITE_BASE}/tomcat41 | > ${SITE_BASE}/tomcat5 | > | >where SITE_BASE could default to something like | >/usr/local/www-java or /usr/local/www/catalina-base. | > | > | I'm not sure I follow you. Are you trying to declare a default location | for individual "instances" of specific versions of Tomcat? I think that's what I intend. I guess what I was saying is that, instead of CATALINA_BASE being inside of the tomcat installation directory, the user-configured files used by each tomcat port installation be outside of that tomcat's installation directory. This protects them from being overwritten when the port is upgraded. That's really all. | When I build a Tomcat port, then, would I need to build/install it once | for each instance? Suppose I have three instances, would I need to do: | | # CATALINA_BASE=/home/appserver1/tomcat make && make install | # CATALINA_BASE=/home/appserver2/tomcat make && make install | # CATALINA_BASE=/home/appserver3/tomcat make && make install I didn't envision this necessarily. I imagined more that make install would only (once per ${PKGORIGIN}) create a CATALINA_BASE directory structure used by that port's default instance. If an administrator, like in your case, wanted to create multiple instances, they would do that outside of the port, and the port would know nothing about it. I don't think what I've proposed would affect what you are doing in any way. It would only do something similar to what you are doing for a single default tomcat instance (to sidestep the configuration squashing upgrades) per tomcat port ${PKGORIGIN}. A new CATALINA_BASE directory would only be created when a port is installed from a new ${PKGORIGIN} -- an upgrade of tomcat from 5.0.25 to 5.0.29 would not create a new CATALINA_BASE dir. Only when the port ${PKGORIGIN} changed from www/jakarta-tomcat5 to www/jakarta-tomcat51 would a new CATALINA_BASE directory be created by the port. Of course, this would require that all versions of tomcat installed from a given ${PKGORIGIN} be compatible, but I think that is a reasonable constraint. The only thing this approach would change is where the configuration and files for the default instance are located. Instead of /usr/local/jakarta-tomcatN*/, the default instance would run from /usr/local/elsewhere/tomcatN*/. | Whatever you come up with, please keep things simple for those of us who | expect the port to install a standard Tomcat setup, including the latest | default configuration files. I hope I'm not coming up with this :-) I would just like to see the itches in freebsd's tomcat ports scratched. I'm just throwing ideas about. If we decide on a best way to fix the(se) port(s), maybe someone will implement it. If not, I may try to find time to do it, but my time get pretty scarce at times :-\ Thanks for your comments. If this is, again, unclear, let me know and I'll try again. If this is all pointless discussion, the lists readership could let me know that, too :-) cheers. Brent