summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-08-14 06:31:11 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-08-14 10:45:38 +0200
commitb5b916d886b69c6bcf686141b1784aa01ed0b68c (patch)
tree54e6e9923123e4ffedcbcd06e9d61ba59528c4e6 /www-apache
parentdev-python/elasticsearch: Add pyarrow test dep (diff)
downloadgentoo-b5b916d886b69c6bcf686141b1784aa01ed0b68c.tar.gz
gentoo-b5b916d886b69c6bcf686141b1784aa01ed0b68c.tar.bz2
gentoo-b5b916d886b69c6bcf686141b1784aa01ed0b68c.zip
www-apache/mod_jk: add 1.2.50
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38141 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_jk/Manifest2
-rw-r--r--www-apache/mod_jk/mod_jk-1.2.50.ebuild77
2 files changed, 79 insertions, 0 deletions
diff --git a/www-apache/mod_jk/Manifest b/www-apache/mod_jk/Manifest
index 698f03cb11cb..ad56adb2ba39 100644
--- a/www-apache/mod_jk/Manifest
+++ b/www-apache/mod_jk/Manifest
@@ -1,2 +1,4 @@
DIST tomcat-connectors-1.2.49-src.tar.gz 1702479 BLAKE2B 5994bbff6b8c11770cfe8287590d3af793d8720b8a54ecb066abe481e158517c25757a575c9db197e39b1ffc957f27237e92818a9da557db78e5d286b58b1d13 SHA512 936eb017ff9d9011996933838d5c306ede9ae1886405f4daed60719ee522cca6075dedb3b647863ef12155cca93f6db8e58209a5d3bbd2da157ffc536a6809f2
DIST tomcat-connectors-1.2.49-src.tar.gz.asc 873 BLAKE2B 52cd9b6f051a6a76b1823773c4af2742dfdd686afa951975623d2d2a42730cbd40882e0f6f13600a6e473d265418b662ae1a576889e25685d74d8e692ae1a42e SHA512 41edf25b31bbf280814451dcb9fdc28497394213dfd968c37b2c15670aee34e028a7fc1145a374f128d7ab969c43ca9ae6fd296fee6bf5fae4785ea35908b144
+DIST tomcat-connectors-1.2.50-src.tar.gz 1738508 BLAKE2B ffa76cde244010169753d903735157fadcc93e91f32cb604247a8db801d6c05cf67817f457f11ba1aaa3b9d5ae480fad4bde2e50f3114e4e64a70117062419b4 SHA512 9b5a1eb1c0fd38627c574102b3551cdc96fc438b00be5d65770c55b43234af445e642fe8bcbdfe47686b0f3aadab3679340fa76b54b693f57f2273e83ac114ab
+DIST tomcat-connectors-1.2.50-src.tar.gz.asc 833 BLAKE2B e27ef4f7a194623f6561b30f9a97ba0dd1391404d44577e8bfe8663513bf12801753d859fbd75c63d1ceafa59493d338f5b0a1db2eb3678caf807293dc2acd7e SHA512 359721d9bbf121415b655082db5dc9ca7e98aa952038e89c49a69da0c77a4cd183a3e4c40107aa4803885332439868abfe9473b296e99480d01dd2ccc4c9b98b
diff --git a/www-apache/mod_jk/mod_jk-1.2.50.ebuild b/www-apache/mod_jk/mod_jk-1.2.50.ebuild
new file mode 100644
index 000000000000..189e7d517342
--- /dev/null
+++ b/www-apache/mod_jk/mod_jk-1.2.50.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="tomcat-connectors-${PV#-*}-src"
+
+inherit apache-module autotools verify-sig
+
+DESCRIPTION="Provides an AJP Apache2-JK-connector for the Tomcat servlet engine"
+HOMEPAGE="https://tomcat.apache.org/connectors-doc/"
+SRC_URI="mirror://apache/tomcat/tomcat-connectors/jk/${MY_P}.tar.gz
+ verify-sig? ( https://downloads.apache.org/tomcat/tomcat-connectors/jk/tomcat-connectors-${PV}-src.tar.gz.asc )"
+S="${WORKDIR}/${MY_P}/native"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="dev-libs/apr:1="
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-lang/perl
+ verify-sig? ( sec-keys/openpgp-keys-apache-tomcat-connectors )
+"
+
+APACHE2_MOD_FILE="${S}/apache-2.0/${PN}.so"
+APACHE2_MOD_DEFINE="JK"
+VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/tomcat-connectors.apache.org.asc"
+
+need_apache2
+
+pkg_setup() {
+ # Calling depend.apache_pkg_setup fails because we do not have
+ # "apache2" in IUSE but the function expects this in order to call
+ # _init_apache2_late which sets the APACHE_MODULESDIR variable.
+ _init_apache2
+ _init_apache2_late
+}
+
+src_prepare() {
+ default
+
+ # Don't add '-Wl,' as prefix for CFLAGS, as linker will fail
+ sed -e '/JK_PREFIX_IF_MISSING/d' -i configure.ac || die
+ eautoreconf
+
+ # Adjust confpath and logpath for Gentoo
+ local logs_path="/var/log/apache2"
+ sed -e "s|conf|${APACHE_CONFDIR}|g" -e "s|logs|${logs_path}|g" -i ../conf/httpd-jk.conf || die
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ --with-apxs="${APXS}"
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ LIBTOOL="/bin/sh $(pwd)/libtool --silent"
+ default
+}
+
+src_install() {
+ apache-module_src_install
+
+ insinto "${APACHE_CONFDIR}"
+ doins "${S}"/../conf/*.properties
+
+ insinto "${APACHE_MODULES_CONFDIR}"
+ newins ../conf/httpd-jk.conf 88_mod_jk.conf
+
+ einstalldocs
+}