opt/apache-tomcat/Pkgfile

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Java Servlet container (binary version)
# URL: http://jakarta.apache.org/tomcat/index.html
2006-04-13 23:43:04 +02:00
# Maintainer: Simone Rota, sip at crux dot nu
# Packager: Simone Rota, sip at crux dot nu
2006-10-07 18:17:25 +02:00
# Depends on: jdk
2006-02-23 16:26:10 +01:00
name=apache-tomcat
2006-10-03 13:03:38 +02:00
version=5.5.20
release=1
source=(http://www.eu.apache.org/dist/tomcat/tomcat-5/v$version/bin/$name-$version.tar.gz \
2006-02-23 16:26:10 +01:00
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}
2006-03-30 13:38:55 +02:00
find $PKG -name *.bat|xargs rm -f
find $PKG -name *.exe|xargs rm -f
2006-02-23 16:26:10 +01:00
mkdir -p $PKG/etc/rc.d
install -m 755 tomcat $PKG/etc/rc.d
# Adjust for non-root setup
chown tomcat.tomcat $PKG/usr/lib/tomcat/logs
chown tomcat.tomcat $PKG/usr/lib/tomcat/temp
for f in $PKG/usr/lib/tomcat/conf/*.* $PKG/usr/lib/tomcat/conf/Catalina/localhost/*; do
chown root.tomcat $f
chmod 640 $f
done
cat << EOF > $PKG/usr/lib/tomcat/bin/setenv.sh
#!/bin/sh
# Setup envirnoment variables for tomcat
export JAVA_HOME=/usr/lib/java
EOF
chmod 755 $PKG/usr/lib/tomcat/bin/setenv.sh
2006-02-23 16:26:10 +01:00
}