# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="An Apache2 DSO providing the JK2 Tomcat connector" HOMEPAGE="http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/" SRC_URI="http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz" DEPEND=">=virtual/jdk-1.4 >=net-www/tomcat-4.1 >=net-www/apache-2.0.45" LICENSE="Apache-1.1" KEYWORDS="x86" IUSE="" SLOT="0" S=${WORKDIR}/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 src_unpack() { unpack ${A} || die cd ${S} epatch ${FILESDIR}/mod_jk2-server-apache2-Makefile.in.patch } src_compile() { cd ${S} || die sh buildconf.sh || die sh configure --with-apxs2=`which apxs2` \ --with-tomcat41=$CATALINA_HOME \ --with-java-home=$JAVA_HOME \ --with-jni --with-pcre || die make || die } src_install() { cd ${S} || die dodir /usr/lib/apache2-extramodules cp ../build/jk2/apache2/*.so ${D}/usr/lib/apache2-extramodules insinto /etc/apache2/conf/modules.d doins ${FILESDIR}/105_mod_jk2.conf insinto /etc/apache2/conf doins ${FILESDIR}/workers2.properties einfo einfo "Please add \"-D JK2\" to your /etc/conf.d/apache2 file to" einfo "allow apache2 to recognize and load the mod_jk2 module." einfo }