# -*- 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 # $Id$ PortSystem 1.0 name tomcat-native version 1.2.10 categories java www maintainers thebishops.org:matt license Apache-2 platforms darwin description Tomcat 7+ HTTP Server native library support. long_description This port provides access to native apr and other \ functions utilized by tomcat. homepage http://tomcat.apache.org/ master_sites apache:tomcat/tomcat-connectors/native/${version}/source/ checksums rmd160 495d12834c1c36d00f156122448926d560ea476b \ sha256 553a796f1efb9d52a22a24636baca45ae265327f2a2d2f3169436b4012df9c35 distname ${name}-${version}-src worksrcdir ${distname}/native depends_lib port:apr \ path:lib/libssl.dylib:openssl 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 something like -Djava.library.path=${prefix} to the tomcat options. 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: For further information please see https://tomcat.apache.org/native-doc/index.html " livecheck.type regex livecheck.url http://archive.apache.org/dist/tomcat/tomcat-connectors/native/ livecheck.regex {(\d+\.\d+\.\d+)/}