tomcat 5.0.16 ist out Reproducible: Always Steps to Reproduce:
There seems to be no interest on gentoo side to support tomcat any longer since there are allreade open bugs vor 4.1.27 and 4.1.29. But yes I would like to see this ebuild to in the portage tree.
Created attachment 22234 [details] tomcat 5.0.16 ebuild and files This is a first crack at an ebuild for tomcat-5.0.16. Extract the tarball in /usr/local/portage/net-www/tomcat/. This is a modified version of the ebuild for tomcat-4.1.29 which can also be found in bugzilla. I modified gentoo.diff to work with the new scripts. I left the os400 and osx sections in place since they do not get in the way. Only path changes work copied over. My first test with this ebuild failed to properly install over an existing installation of 4.1.29 so I suggest unmerging tomcat-4 before upgrading to 5. My guess is that the jars did not get updated because of the gentoo-specific symlinks to /usr/shared/tomcat. Can someone else test this and post their results?
Created attachment 22235 [details] The fixed ebuild and the other files I ran the script, but like the previous tomcat script, it has some errors in the permissions for both /etc/conf.d/tomcat, /etc/env.d/21tomcat, /etc/init.d/tomcat. The problem was that they were all being made as 750 when only the /etc/init.d/tomcat should be. The other should be 644, so I fixed those in the ebuild that I attached. I also fixed the output from the groupmod/usermod for tomcat to be redirected to /dev/null. As for the original question, I emerge tomcat-4.1.24-r1 and then emerged tomcat-5.0.16. The only problem I had is that the tomcat user/group were removed from the install and the following differences: Files ./bin/catalina.sh and ../tomcat/./bin/catalina.sh differ Files ./bin/setclasspath.sh and ../tomcat/./bin/setclasspath.sh differ Files ./conf/tomcat-users.xml and ../tomcat/./conf/tomcat-users.xml differ diff: ../tomcat/./LICENSE: No such file or directory diff: ../tomcat/./RELEASE-NOTES: No such file or directory diff: ../tomcat/./RUNNING.txt: No such file or directory I used the following script to generate that list: for x in `find . -xtype f -follow`; do diff --brief $x ../tomcat/$x; done (I un-tared the tomcat-5 release into /opt/ and the emerged tomcat was also in /opt) Hope that was of some help.
Moving this again to java@gentoo.org, so everyone out there can help.
I downloaded/installed the ebuild provided by David and it worked. Only minor issue I had was a permissions problem with /opt/tomcat/conf. Changed the ownership to tomcat:tomcat (may not be correct/secure, will touch on this later but just wanted to get it up and running to make sure it worked). I am very interested in having ebuilds for tomcat 5 added to portage, as will several other friends of mine. So if a vote is needed, add a couple extra for me and my friends.
i have made an ebuild for tomcat-5.0.16 including the necessary startup scripts and diffs for /opt/tomcat/bin/setclasspath.sh for me i merges without mistakes and is running clean and smooth. so pls try this ebuild out and give me some feedback :-))) next attached is the ebuild an all additional files. so long andre lammel
Created attachment 24134 [details] tomcat-5.0.16 ebuild + necessary files + patch ebuild for tomcat-5.0.16 - paths in the tar are absolute :-)
I have tried the latest ebuilds and they work perfectly...lets get them in Portage.
Same here, the ebuild emerged w/o errors and '/etc/init.d/tomcat start' started tomcat at port 8080, serving pages.
Im actually working on bug #37922 thats is a tomcat 5 built from sources, also im adding all the deps to portage and i will try to get the best of that ebuild and this ebuild.
Created attachment 25432 [details] Updated ebuild for 5.0.18 & 4.1.29 Updated ebuilds for both 5.0.18 and 4.1.29. In addition to installing the latest revisions of each series they fix the following bugs: #21772 - upgrading tomcat removes tomcat user/group #38358 - wrong file permissions #27144 - permissions (same as above) #22040 - permissions (same as above) #19723 - classpath fixes #39819 - keepdir instead of touch .keep #26994 - request for 4.1.27 #32408 - request for 4.1.29
Created attachment 25437 [details] Updated ebuild for 5.0.18 & 4.1.29 (new fixes) Fixes bug #38952 and bug #38949. Previously, the jars from common/endorsed were moved to /usr/share/tomcat/lib along with the jars from common/lib. This breaks the endorsed dirs functionality. See here: http://java.sun.com/j2se/1.4.2/docs/guide/standards/
In portage now. Thanks guys!!!