1 |
< |
### RPM external apache-tomcat 5.5.20 |
2 |
< |
Requires: gcc-wrapper |
3 |
< |
Source: http://download.nextag.com/apache/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.tar.gz |
1 |
> |
### RPM external apache-tomcat 5.5.26 |
2 |
> |
Source: http://download.nextag.com/apache/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.tar.gz |
3 |
|
Requires: java-jdk |
4 |
|
%build |
5 |
< |
## IMPORT gcc-wrapper |
5 |
> |
source $JAVA_JDK_ROOT/etc/profile.d/init.sh |
6 |
> |
export JAVA_HOME=$JAVA_JDK_ROOT |
7 |
|
cd bin |
8 |
|
tar xfz jsvc.tar.gz |
9 |
|
cd jsvc-src |
13 |
|
%install |
14 |
|
cp -r ./* %i |
15 |
|
|
16 |
+ |
%post |
17 |
+ |
# setup environment |
18 |
+ |
. $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh |
19 |
+ |
cat $APACHE_TOMCAT_ROOT/conf/server.xml | \ |
20 |
+ |
sed 's,connectionTimeout="20000" disableUploadTimeout="true",connectionTimeout="20000" disableUploadTimeout="true" maxPostSize="0",g' > $APACHE_TOMCAT_ROOT/conf/server.xml.tmp |
21 |
+ |
mv $APACHE_TOMCAT_ROOT/conf/server.xml.tmp $APACHE_TOMCAT_ROOT/conf/server.xml |
22 |
|
# |