# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="An Apache2 DSO providing the JK2 Tomcat connector" HOMEPAGE="http://mirrorspace.org/apache/jakarta/tomcat-connectors/jk2/" SRC_URI="http://mirrorspace.org/apache/jakarta/tomcat-connectors/jk2/source/jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz" DEPEND=">=virtual/jdk-1.4 >=www-servers/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.4-src/jk/native2 src_unpack() { unpack ${A} || die cd ${S} } src_compile() { cd ${S} || die sh buildconf.sh || die sh configure --with-apxs2=`which apxs2` || 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 }