Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apache/mod_jk/files/, www-apache/mod_jk/
Date: Fri, 23 Jun 2017 15:23:10
Message-Id: 1498231357.2620cebb313f435d213434e210692a0744fb7475.monsieurp@gentoo
1 commit: 2620cebb313f435d213434e210692a0744fb7475
2 Author: Timo Gurr <timo.gurr <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 20 13:23:59 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 23 15:22:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2620cebb
7
8 www-apache/mod_jk: version bump to 1.2.42.
9
10 Gentoo-Bug: https://bugs.gentoo.org/551216
11
12 Closes: https://github.com/gentoo/gentoo/pull/4962
13
14 www-apache/mod_jk/Manifest | 1 +
15 www-apache/mod_jk/files/88_mod_jk.conf | 5 +++
16 www-apache/mod_jk/mod_jk-1.2.42.ebuild | 60 ++++++++++++++++++++++++++++++++++
17 3 files changed, 66 insertions(+)
18
19 diff --git a/www-apache/mod_jk/Manifest b/www-apache/mod_jk/Manifest
20 index ceb4768bb50..1a3592c1ebb 100644
21 --- a/www-apache/mod_jk/Manifest
22 +++ b/www-apache/mod_jk/Manifest
23 @@ -1,2 +1,3 @@
24 DIST tomcat-connectors-1.2.37-src.tar.gz 1528647 SHA256 38a92623ddd28b85bbf54cf77f4c867ccbebafb71233131471623691e4e751f9 SHA512 96d0d3baba661a14a2235424ad7bdd78b8b44db168cabd015cba328a200f3df00aa922fd6afb4cd3cff896591e7aeb65cdde16c641ccff5bdcb84518d8d0862f WHIRLPOOL 4d6b7b24610309f0fa44951dca81e0638aa92646e171df95fa225d1f813841592c687d6204dd0be4fb03303ad84ccee3f2adf54b542ee365877e74caaa5581d4
25 DIST tomcat-connectors-1.2.40-src.tar.gz 1526449 SHA256 895e347c4dff74049a848603fb29958e6cf429ea0fc708d514b3a8958236705d SHA512 502424add813e85d725dfd0658809db113510a9ed755d24257fa4ee50224971f9cd679fad4f6b4ecbcca0a6ecd1414c86b0d08023ce123374dc28538f1e53c1c WHIRLPOOL 7a5810727987b4aa76134fd813c611ea813bbd99b68bb283fdebc77ee0e67f00676a410de01984f880611e8033e80fadbb8bc6b480df5d3c5ea4c456cb11fa4b
26 +DIST tomcat-connectors-1.2.42-src.tar.gz 3143693 SHA256 ea119f234c716649d4e7d4abd428852185b6b23a9205655e45554b88f01f3e31 SHA512 9a796e2a7865a99c16595deaead94e843c291ed7229f48414edf0a260b2dda05fc94671e8b863a9ccef719bbe2ca7622c06e3dae6ccf68a41f7d96e847b68791 WHIRLPOOL e103c1bff37b841d629b42b0a2b23f5048666f58e102da4c42571a54323454e5a799c1c2494f8641ad8b16e267954d7eb60688f4ca13b8fe12d3d81f9897565a
27
28 diff --git a/www-apache/mod_jk/files/88_mod_jk.conf b/www-apache/mod_jk/files/88_mod_jk.conf
29 index 60d40baba4f..1c66783cca1 100644
30 --- a/www-apache/mod_jk/files/88_mod_jk.conf
31 +++ b/www-apache/mod_jk/files/88_mod_jk.conf
32 @@ -15,6 +15,11 @@ JkWorkersFile /etc/apache2/jk-workers.properties
33 # specify the location where mod_jk is going to place its log file.
34 JkLogFile /var/log/apache2/mod_jk.log
35
36 +###
37 +### Where to put mod_jk shm file
38 +###
39 +# specify the location where mod_jk is going to place its shared memory file.
40 +JkShmFile /var/log/apache2/jk-runtime-status
41
42 ###
43 ### Set the jk log level [debug/error/info]
44
45 diff --git a/www-apache/mod_jk/mod_jk-1.2.42.ebuild b/www-apache/mod_jk/mod_jk-1.2.42.ebuild
46 new file mode 100644
47 index 00000000000..eed7662cad2
48 --- /dev/null
49 +++ b/www-apache/mod_jk/mod_jk-1.2.42.ebuild
50 @@ -0,0 +1,60 @@
51 +# Copyright 1999-2017 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=5
55 +
56 +inherit apache-module java-pkg-opt-2 readme.gentoo-r1
57 +
58 +MY_P="tomcat-connectors-${PV#-*}-src"
59 +
60 +DESCRIPTION="JK module for connecting Tomcat and Apache using the ajp13 protocol"
61 +HOMEPAGE="https://tomcat.apache.org/connectors-doc/"
62 +SRC_URI="mirror://apache/tomcat/tomcat-connectors/jk/${MY_P}.tar.gz"
63 +
64 +LICENSE="Apache-2.0"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~ppc ~x86"
67 +IUSE="java"
68 +
69 +S="${WORKDIR}/${MY_P}/native"
70 +
71 +APACHE2_MOD_FILE="${S}/apache-2.0/${PN}.so"
72 +APACHE2_MOD_CONF="88_${PN}"
73 +APACHE2_MOD_DEFINE="JK"
74 +
75 +CONF_DIR="${WORKDIR}/${MY_P}/conf"
76 +
77 +DEPEND="java? ( >=virtual/jdk-1.4 )"
78 +RDEPEND=""
79 +
80 +need_apache2
81 +
82 +DOC_CONTENTS="
83 + Advanced Directives and Options can be found at:
84 + https://tomcat.apache.org/connectors-doc/reference/workers.html
85 +"
86 +
87 +pkg_setup() {
88 + use java && java-pkg-2_pkg_setup
89 +}
90 +
91 +src_configure() {
92 + econf \
93 + --with-apxs=${APXS}
94 +}
95 +
96 +src_compile() {
97 + emake LIBTOOL="/bin/sh $(pwd)/libtool --silent"
98 +}
99 +
100 +src_install() {
101 + # install the workers.properties file
102 + insinto "${APACHE_CONFDIR}"
103 + newins "${CONF_DIR}/workers.properties" \
104 + jk-workers.properties
105 + doins "${CONF_DIR}/uriworkermap.properties"
106 +
107 + apache-module_src_install
108 +
109 + readme.gentoo_create_doc
110 +}