Files
2026-06-22 10:49:06 -04:00

62 lines
2.3 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup java 1.0
name tomcat-native
version 1.3.8
revision 0
categories java www
maintainers {thebishops.org:matt @mattbishop} openmaintainer
license Apache-2
description Tomcat 7+ HTTP Server native library support.
long_description This port provides access to native apr and other \
functions utilized by tomcat.
homepage https://tomcat.apache.org/
master_sites apache:tomcat/tomcat-connectors/native/${version}/source/
checksums rmd160 b6727c58fdd4f48bf6e6900fc30cf9af6ddf0d9c \
sha256 c482a3d29ab7eadc108e85b62e0d23c8a13663861ef7e4f975f9fe4c3fd31e90 \
size 355659
distname ${name}-${version}-src
worksrcdir ${distname}/native
depends_lib port:apr \
path:lib/libssl.dylib:openssl
# java Portgroup settings
java.version 1.7+
java.fallback openjdk8
configure.args --with-apr=${prefix} \
--with-ssl=${prefix}
build.args EXTRA_LDFLAGS="-shrext .jnilib"
notes "
To integrate this into tomcat, add -Djava.library.path=${prefix} to the tomcat options or\
to CATALINA_OPTS.
You then need to configure a Connector in server.xml with the appropriate apr protocol class for your use,\
for instance:
protocol=\"org.apache.coyote.http11.Http11AprProtocol\",
protocol=\"org.apache.coyote.ajp.AjpAprProtocol\"
As in:
<!-- Define a non-SSL HTTP/1.1 Connector on port 8081 using apr -->
<Connector port=\"8081\" maxHttpHeaderSize=\"8192\"
maxThreads=\"150\" minSpareThreads=\"25\" maxSpareThreads=\"75\"
enableLookups=\"false\" redirectPort=\"8443\" acceptCount=\"100\"
connectionTimeout=\"20000\" disableUploadTimeout=\"true\"
protocol=\"org.apache.coyote.http11.Http11AprProtocol\" />
For further information please see https://tomcat.apache.org/native-doc/index.html
"
livecheck.type regex
livecheck.url https://archive.apache.org/dist/tomcat/tomcat-connectors/native/
livecheck.regex {(1.[0-9.].[0-9.])}