From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 23:43:55 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 9966016A4CE for ; Tue, 21 Dec 2004 23:43:55 +0000 (GMT) Received: from ns1.netavail.net (ns1.netavail.net [66.45.229.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B52743D2D for ; Tue, 21 Dec 2004 23:43:53 +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 760153C063; Tue, 21 Dec 2004 18:43:51 -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 iBLNhmpD017088; Tue, 21 Dec 2004 18:43:48 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id iBLNhmjV017087; Tue, 21 Dec 2004 18:43:48 -0500 (EST) (envelope-from brent) Date: Tue, 21 Dec 2004 18:43:48 -0500 From: Brent Verner To: Thomas Duffey Message-ID: <20041221234347.GA16825@rcfile.org> References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> <37919c31041221110775dc0396@mail.gmail.com> <20041221193221.GA14792@rcfile.org> <41C87FC4.4070803@homeboyz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41C87FC4.4070803@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: Tue, 21 Dec 2004 23:43:55 -0000 [2004-12-21 13:55] Thomas Duffey said: | Hi All, Hiya. | Although this is not a solution to the overwriting problem, it is a | workaround that I typically use on all of my Tomcat servers to make it [description of using CATALINA_BASE to run tomcat from config outside of installation directory] Thomas, thanks for reminding me of CATALINA_BASE :-) This might well be the best solution. Keep all user configured files away from the port-managed files. Many other systems package/install tomcat in this manner, FWIW. Where could a directory be created to hold more than one CATALINA_BASE directory? In that directory could be directories with names based on the package's ${ORIGIN}... ${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. The do-install target would check for existence of the CATALINA_BASE directory. If not present, the directory is created and populated with the necessary files. If the catalina.sh were used to start/stop the tomcat, we could simply create/supply a setenv.sh file (next to catalina.sh) that defined the external CATALINA_BASE if not already defined in the environment. Thoughts? cheers. Brent