Hello. I'm new to Gentoo (as of today); in the process of configuring my server, I've generated some new Portage ebuilds; the first is an update for the new Tomcat 4.0.4, which I needed because 4.0.3 had some problems with some common servlets (Cocoon, most notably). Attached is a tarball containing updates for the net-www/tomcat ebuild: ChangeLog files/digest-tomcat-4.0.4 tomcat-4.0.4.ebuild The ebuild file is basically a clone of 4.0.3.
Created attachment 1683 [details] ebuild updates for the net-www/tomcat package
Whoa, nelly! Ok, the previous archive (a) contains files that aren't in a containing directory, (b) and is superceded by the attached file. I really hate archives that spew files into pwd; I must have been asleep when I built the tarball. In any case, I discovered that the existing ebuild didn't do anything with the init.d rc file, so I patched it so that it did. Then I discovered that the reason the rc file wasn't being installed was because it was only partially complete, and didn't work at all. I've fixed both problems -- both start() and stop() in the rc file work. Contained in this archive, along with the ubiquitous changelog and digest, are a working init.d script and an ebuild that installs it. I've also added -r2 to the package name, to be consistent with the Portage naming conventions. Also, all files in this archive are properly encapsulated in tomcat/. This unpacks into net-www, where tomcat currently lives. NOTE: this does /not/ patch the Apache config files to create the hook; the Apache->Tomcat hook is a moving target, AFAIK; in any case, it doesn't currently exist for Apache 2, which is what I'm using. This doesn't stop tomcat from being useful; you just have to hit :8080 directly to get servlets.
Created attachment 1685 [details] Adds init.d support to net-www/tomcat This obsoletes the 1693 attachment, but I'm not authorized to do the obsoletion, so there it is.
A stop-gap 4.0.4 version is already in CVS. Scripts and other goodies will be fixed as we rewrite the ebuild to start building tomcat from sources.