blob: ddf61f8b0b26a9a5866adf0431e9863dd3a48c96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit apache-module java-pkg-opt-2 readme.gentoo-r1
MY_P="tomcat-connectors-${PV#-*}-src"
DESCRIPTION="JK module for connecting Tomcat and Apache using the ajp13 protocol"
HOMEPAGE="https://tomcat.apache.org/connectors-doc/"
SRC_URI="mirror://apache/tomcat/tomcat-connectors/jk/${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86"
IUSE="java"
S="${WORKDIR}/${MY_P}/native"
APACHE2_MOD_FILE="${S}/apache-2.0/${PN}.so"
APACHE2_MOD_CONF="88_${PN}"
APACHE2_MOD_DEFINE="JK"
CONF_DIR="${WORKDIR}/${MY_P}/conf"
DEPEND="java? ( >=virtual/jdk-1.4 )"
RDEPEND=""
need_apache2
DOC_CONTENTS="
Advanced Directives and Options can be found at:
https://tomcat.apache.org/connectors-doc/reference/workers.html
"
pkg_setup() {
use java && java-pkg-2_pkg_setup
}
src_configure() {
econf \
--with-apxs=${APXS}
}
src_compile() {
emake LIBTOOL="/bin/sh $(pwd)/libtool --silent"
}
src_install() {
# install the workers.properties file
insinto "${APACHE_CONFDIR}"
newins "${CONF_DIR}/workers.properties" \
jk-workers.properties
doins "${CONF_DIR}/uriworkermap.properties"
apache-module_src_install
readme.gentoo_create_doc
}
|