### this file is sourced not run
PKGVER=7.0.67
PKGBUILD=1
PKGARCH=noarch

# source: james
TARBALL=apache-tomcat-$PKGVER.tar.gz
MD5SUM=55a5ef91b4bd9082ad5faf91d3372ae2
SRC_URL=http://apache.mirrors.tds.net/tomcat/tomcat-7/v$PKGVER/bin/$TARBALL
BUNDLE=

SLACKREQ= # some sort of Java, of course, either Oracle or OpenJDK's one.
SLACKDESC="java-tomcat7: java-tomcat $PKGVER (Apache Tomcat App Server)  
java-tomcat7:  
java-tomcat7: Apache Tomcat is an open source software implementation of the 
java-tomcat7: Java Servlet and JavaServer Pages technologies. This package 
java-tomcat7: installs a copy of Apache tomcat in /opt/tomcat, but does not 
java-tomcat7: have any startup scripts etc, which you will have to do by 
java-tomcat7: yourself.  
java-tomcat7: 
java-tomcat7: 
java-tomcat7: 
java-tomcat7: http://tomcat.apache.org/index.html
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd tmp
	mkdir -p /opt &&
	mv apache* /opt/tomcat-$PKGVER &&
	
	ln -sf tomcat-$PKGVER /opt/tomcat &&
	
	mkdir -p /etc/profile.d &&
	install -m755 /tmp/pkg/tomcat-profile.sh /etc/profile.d/tomcat.sh &&
	pkg_build_slackdesc
}


