77 lines
1.9 KiB
Bash
77 lines
1.9 KiB
Bash
# Template file for 'apache-tomcat'
|
|
pkgname=apache-tomcat
|
|
version=9.0.26
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}-src"
|
|
hostmakedepends="openjdk apache-ant"
|
|
depends="virtual?java-runtime"
|
|
short_desc="Open source implementation of the Java Servlet"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://tomcat.apache.org"
|
|
distfiles="http://mirrors.gigenet.com/apache/tomcat/tomcat-9/v${version}/src/${pkgname}-${version}-src.tar.gz"
|
|
checksum=d061aa50bcc51e28c40f5a2d5a06999d9a49ddcae5410f3bac99c8d5ded61935
|
|
|
|
system_accounts="tomcat"
|
|
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"
|
|
|
|
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() {
|
|
archs=noarch
|
|
short_desc+=" - Documentation"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/${sourcepkg}/webapps/docs
|
|
}
|
|
}
|
|
|
|
apache-tomcat-examples_package() {
|
|
archs=naorch
|
|
short_desc+=" - Examples"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/${sourcepkg}/webapps/examples
|
|
}
|
|
}
|
|
|
|
apache-tomcat-manager_package() {
|
|
archs=noarch
|
|
short_desc+=" - Manager"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/${sourcepkg}/webapps/manager
|
|
}
|
|
}
|
|
|
|
apache-tomcat-host-manager_package() {
|
|
archs=noarch
|
|
short_desc+=" - Host Manager"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/${sourcepkg}/webapps/host-manager
|
|
}
|
|
}
|