summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2006-09-24 02:56:40 +0000
committerWilliam Thomson <wltjr@gentoo.org>2006-09-24 02:56:40 +0000
commit586c0db8f6f4d7fe1fa0de4c1f5d4fc611136dff (patch)
tree507c1d5944fa4ac4ab5f18eb381bcccc30c36237 /www-apache
parentInstall some more docs, and put docs in $PF rather than $PN. (diff)
downloadgentoo-2-586c0db8f6f4d7fe1fa0de4c1f5d4fc611136dff.tar.gz
gentoo-2-586c0db8f6f4d7fe1fa0de4c1f5d4fc611136dff.tar.bz2
gentoo-2-586c0db8f6f4d7fe1fa0de4c1f5d4fc611136dff.zip
New 0 day ebuild for mod_jk 1.2.19.
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_jk/files/digest-mod_jk-1.2.193
-rw-r--r--www-apache/mod_jk/mod_jk-1.2.19.ebuild75
2 files changed, 78 insertions, 0 deletions
diff --git a/www-apache/mod_jk/files/digest-mod_jk-1.2.19 b/www-apache/mod_jk/files/digest-mod_jk-1.2.19
new file mode 100644
index 000000000000..068380b5cd69
--- /dev/null
+++ b/www-apache/mod_jk/files/digest-mod_jk-1.2.19
@@ -0,0 +1,3 @@
+MD5 9c3b7135a4992c7f39d5f7aef9c25b30 tomcat-connectors-1.2.19-src.tar.gz 1246419
+RMD160 f48895b847b84a77f95ec87faa47115b023f686f tomcat-connectors-1.2.19-src.tar.gz 1246419
+SHA256 7d75e357c6ff083f5b383d53475a3f14d1f6a45294bf0f2de0a8c552a04746c0 tomcat-connectors-1.2.19-src.tar.gz 1246419
diff --git a/www-apache/mod_jk/mod_jk-1.2.19.ebuild b/www-apache/mod_jk/mod_jk-1.2.19.ebuild
new file mode 100644
index 000000000000..3bb315f10870
--- /dev/null
+++ b/www-apache/mod_jk/mod_jk-1.2.19.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_jk/mod_jk-1.2.19.ebuild,v 1.1 2006/09/24 02:56:40 wltjr Exp $
+
+inherit apache-module autotools java-pkg-opt-2
+
+MY_P="tomcat-connectors-${PV}-src"
+
+DESCRIPTION="JK module for connecting Tomcat and Apache using the ajp13 protocol"
+HOMEPAGE="http://tomcat.apache.org/connectors-doc"
+SRC_URI="mirror://apache/tomcat/tomcat-connectors/jk/source/jk-${PV}/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="apache2 java"
+
+DEPEND="java? ( || ( =virtual/jdk-1.4* =virtual/jdk-1.5* ) )"
+S="${WORKDIR}/${MY_P}/native"
+
+APACHE1_MOD_FILE="${S}/apache-1.3/mod_jk.so"
+APACHE1_MOD_CONF="88_${PN}"
+APACHE1_MOD_DEFINE="JK"
+
+APACHE2_MOD_FILE="${S}/apache-2.0/mod_jk.so"
+APACHE2_MOD_CONF="88_${PN}"
+APACHE2_MOD_DEFINE="JK"
+
+DOCFILES="CHANGES.txt README"
+
+need_apache
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ eautoreconf
+}
+
+src_compile() {
+ local apxs
+ local java_args
+ use apache2 && apxs="${APXS2}"
+ use apache2 || apxs="${APXS1}"
+ use java && java_args="--with-java-home=${JAVA_HOME} \
+ --with-java-platform=2 --enable-jni"
+
+ econf \
+ --with-apxs=${apxs} \
+ --with-apr-config=/usr/bin/apr-config \
+ ${java_args} \
+ || die "econf failed"
+ emake LIBTOOL="/bin/sh $(pwd)/libtool --silent" || die "make failed"
+}
+
+src_install() {
+ # install the workers.properties file
+ insinto ${APACHE_CONFDIR}
+ doins ${FILESDIR}/jk-workers.properties
+
+ # if using java install the jni stuff
+ if use java; then
+ insinto ${APACHE_MODULESDIR}
+ doins ${S}/jni/jk_jnicb.so
+ fi
+
+ # call the nifty default src_install :-)
+ apache-module_src_install
+}
+
+pkg_postinst() {
+ einfo "Tomcat is not a dependency of mod_jk any longer, if you intend"
+ einfo "to use it with Tomcat, you have to merge www-servers/tomcat on"
+ einfo "your own."
+}