27 lines
808 B
Plaintext
27 lines
808 B
Plaintext
# Description: Java Servlet container (binary version)
|
|
# URL: http://jakarta.apache.org/tomcat/index.html
|
|
# Maintainer: Simone Rota, sip at varlock dot com
|
|
# Packager: Simone Rota, sip at varlock dot com
|
|
# Depends on: j2sdk
|
|
|
|
name=apache-tomcat
|
|
version=5.5.15
|
|
release=1
|
|
source=(http://apache.fis.uniroma2.it/tomcat/tomcat-5/v$version/bin/$name-$version.tar.gz \
|
|
tomcat)
|
|
|
|
build() {
|
|
|
|
mkdir -p $PKG/usr/lib/tomcat
|
|
cp -r $name-$version/* $PKG/usr/lib/tomcat
|
|
rm -r $PKG/usr/lib/tomcat/webapps/jsp-examples
|
|
rm -r $PKG/usr/lib/tomcat/webapps/servlets-examples/
|
|
rm -r $PKG/usr/lib/tomcat/webapps/tomcat-docs
|
|
rm $PKG/usr/lib/tomcat/{RUNNING.txt,LICENSE,RELEASE-NOTES}
|
|
find $PKG -name *.bat|xargs rm
|
|
find $PKG -name *.exe|xargs rm
|
|
|
|
mkdir -p $PKG/etc/rc.d
|
|
install -m 755 tomcat $PKG/etc/rc.d
|
|
}
|