Ok, I understand now -- from your announcement of the RPM I thought the FHS work had 
been done, but you are saying that it has not been done but will be done prior to the 
final RPM of 4.0.4.  I guess that makes more sense. :-) I haven't looked at these new 
RPMs too closely but I noticed a couple of errors on install/removal.  Right now, 
/var/tomcat4 and /etc/tomcat4 are not owned by the RPM, so they don't get removed when 
rpm -e executes.  Also, the %preun removes a nonexistant file (wrong path).  Here is a 
patch to the specfile to fix those errors (not sure if the /etc/tomcat4 solution is 
the right way to do this or if it should be defined as a macro).  I'll send more if I 
find anything.
Thanks,
Jason
P.S.  http://www.jpackage.org/ is pretty cool.  Should there be a link in the RPM 
directory to the site (for those who want to build the tomcat4 RPM but don't know 
where to get those packages)?


--- tomcat4-4.0.4-b2.spec       Tue May  7 11:39:15 2002
+++ tomcat4-4.0.4-b2.spec.new   Tue May  7 11:54:10 2002
@@ -256,7 +256,7 @@

     # remove linked jars
     rm -f %{homedir}/common/lib/servlet.jar
-    rm -f %{homedir}/servlet/lib/jakarta-regexp-1.2.jar
+    rm -f %{homedir}/server/lib/jakarta-regexp-1.2.jar
     rm -f %{homedir}/common/lib/xerces.jar

     %{_sbindir}/userdel %{name}
@@ -271,10 +271,12 @@

 %files
 %defattr(644 root root 755)
+%attr(755,root,root)      %dir                  %{homedir}
 %attr(755,root,root)      %dir                  %{appdir}
 %attr(755,root,root)      %dir                  %{bindir}
 %attr(755,root,root)      %dir                  %{commondir}
 %attr(755,root,root)      %dir                  %{confdir}
+%attr(755,root,root)      %dir                  %{_sysconfdir}/%{name}
 %attr(755,root,root)      %dir                  %{sconfdir}
 %attr(755,root,root)      %dir                  %{libdir}
 %attr(755,root,root)      %dir                  %{logdir}

-----Original Message-----
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 10:48 AM
To: Tomcat Developers List
Subject: RE: tomcat 4.0.4b2 rpm available


>I have a couple of quick questions for you about the tomcat4 
>RPMs.  You left %{confdir} defined as %{homedir}/conf which 
>leaves server.xml, web.xml, etc. installed in 
>/var/tomcat4/conf.  Is this intentional?  

Yes, but the spec make provision to locate confdir in /etc/tomcat4/conf.
And to keep compat with tc we'll use symlink between real location,
/etc/tomcat4/conf and /var/tomcat4/conf

>Also, what distro 
>and version are you building these on (just for curiosity 
>sake)?  

Redhat 6.2 or 7.2, with jikes 1.15

>I was going to try to build from the SRPM and see if I 
>couldn't help out, but I don't have junit and xalan-j RPMs 
>(and can't seem to find them on their respective home pages).  

You could find them at www.jpackage.org, a Java RPM packaging
project which cover many many java tools (I'm also involved there)

>Do you have pre-built versions of these RPMs, and if so where 
>can I get them?  If not, should they be built (I can try my 
>hand at it) and included in the same directory for people who 
>want to download and build via SRPM?

You could get them at jpackage ;)

BTW, the FHS location and tomcat 4 listening on standard port
8080, 8081, 8009 (ajp) is planned for tomcat 4.0.4 rpm (or may
be tomcat 4.0.4b2 rpm release 2.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to