2008-01-30 10:41:33 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar zxf $src
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
mv apache-tomcat*/* $out
|
2008-08-06 16:59:45 +02:00
|
|
|
|
|
|
|
# Rename the context.xml to context.xml.default in order to allow a custom context.xml
|
|
|
|
mv $out/conf/context.xml $out/conf/context.xml.default
|
|
|
|
|
|
|
|
# Change all references from CATALINA_HOME to CATALINA_BASE and add support for shared libraries
|
2008-08-06 15:25:51 +02:00
|
|
|
sed -i -e 's|${catalina.home}|${catalina.base}|g' \
|
|
|
|
-e 's|shared.loader=|shared.loader=${catalina.base}/shared/lib/*.jar|' $out/conf/catalina.properties
|