Merge pull request #4488 from the-maldridge/apache-tomcat

New package: apache-tomcat-8.5.4
This commit is contained in:
Toyam Cox 2016-08-27 23:04:58 -04:00 committed by GitHub
commit 060ebbcb9e
6 changed files with 82 additions and 0 deletions

1
srcpkgs/apache-tomcat-doc Symbolic link
View File

@ -0,0 +1 @@
apache-tomcat

View File

@ -0,0 +1 @@
apache-tomcat

View File

@ -0,0 +1 @@
apache-tomcat

View File

@ -0,0 +1 @@
apache-tomcat

View File

@ -0,0 +1,7 @@
#!/bin/sh
export CATALINA_BASE=/usr/share/apache-tomcat
export CATALINA_TMPDIR=/tmp
exec chpst -u tomcat:tomcat /usr/share/apache-tomcat/bin/catalina.sh run

View File

@ -0,0 +1,71 @@
# Template file for 'apache-tomcat'
pkgname=apache-tomcat
version=8.5.4
revision=1
wrksrc=${pkgname}-${version}-src
hostmakedepends="openjdk apache-ant"
depends="virtual?java-runtime"
make_dirs="/usr/share/${pkgname}/webapps 0755 tomcat tomcat \
/usr/share/${pkgname}/conf 0755 tomcat tomcat \
/usr/share/${pkgname}/logs 0755 tomcat tomcat \
/usr/share/${pkgname}/temp 0755 tomcat tomcat"
system_accounts="tomcat"
short_desc="An open source implementation of the Java Servlet"
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
license="Apache-2.0"
homepage="https://tomcat.apache.org"
distfiles="http://mirrors.advancedhosters.com/apache/tomcat/tomcat-8/v${version}/src/apache-tomcat-${version}-src.tar.gz"
checksum=bb35d2b37e2ff237e09e389dbfb0a99fa8a71f11c947c20f5bbea375f6f3449d
do_build() {
ant
}
post_build() {
rm output/build/bin/*.bat
rm output/build/bin/{startup.sh,shutdown.sh}
}
do_install() {
vlicense LICENSE
mkdir -p ${DESTDIR}/usr/share/${pkgname}
cp -r output/build/* ${DESTDIR}/usr/share/${pkgname}
vsv apache-tomcat
}
post_install() {
rm -r ${DESTDIR}/usr/share/${pkgname}/webapps/ROOT
}
apache-tomcat-doc_package() {
short_desc+=" - Documentation"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/${sourcepkg}/webapps/docs
}
}
apache-tomcat-examples_package() {
short_desc+=" - Examples"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/${sourcepkg}/webapps/examples
}
}
apache-tomcat-manager_package() {
short_desc+=" - Manager"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/${sourcepkg}/webapps/manager
}
}
apache-tomcat-host-manager_package() {
short_desc+=" - Host Manager"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/${sourcepkg}/webapps/host-manager
}
}