|
|
@@ -1,9 +1,10 @@ |
|
|
# -*- 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 |
|
|
PortSystem 1.0 |
|
|
PortGroup java 1.0 |
|
|
|
|
|
name tomcat-native |
|
|
version 1.2.19 |
|
|
version 1.2.21 |
|
|
categories java www |
|
|
maintainers {thebishops.org:matt @mattbishop} openmaintainer |
|
|
license Apache-2 |
|
|
@@ -16,33 +17,30 @@ long_description This port provides access to native apr and other \ |
|
|
homepage http://tomcat.apache.org/ |
|
|
master_sites apache:tomcat/tomcat-connectors/native/${version}/source/ |
|
|
|
|
|
checksums rmd160 bc25cd36a839e8e613f1c2b44e7b49f69216801c \ |
|
|
sha256 95c91d17907b321f3abe8799bd73bf32b544dd12ff59bcb3eb7db584bbf65f63 \ |
|
|
size 418183 |
|
|
checksums rmd160 01c9c3e44c94adf5038fb4b7698a5c18f474c8cd \ |
|
|
sha256 05bba41671cc91c531c366a9ccd930b38a107a0212c73181961f3cda508d5007 \ |
|
|
size 418909 |
|
|
|
|
|
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} |
|
|
|
|
|
if {[info exists env(JAVA_HOME)]} { |
|
|
configure.args-append --with-java-home="$env(JAVA_HOME)" |
|
|
} else { |
|
|
configure.args-append --with-java-home="/System/Library/Frameworks/JavaVM.framework" |
|
|
} |
|
|
|
|
|
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,\ |
|
|
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\" |
|
|
|