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