source: trunk/dports/java/tomcat-native/Portfile

Last change on this file was 153951, checked in by larryv@…, 9 months ago

tomcat-native: Update to 1.2.10

Closes: #52624

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- 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
2# $Id: Portfile 153951 2016-10-16 21:01:24Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                tomcat-native
7version             1.2.10
8categories          java www
9maintainers         thebishops.org:matt
10license             Apache-2
11platforms           darwin
12
13description         Tomcat 7+ HTTP Server native library support.
14long_description    This port provides access to native apr and other \
15                    functions utilized by tomcat.
16
17homepage            http://tomcat.apache.org/
18master_sites        apache:tomcat/tomcat-connectors/native/${version}/source/
19
20checksums           rmd160  495d12834c1c36d00f156122448926d560ea476b \
21                    sha256  553a796f1efb9d52a22a24636baca45ae265327f2a2d2f3169436b4012df9c35
22
23distname            ${name}-${version}-src
24worksrcdir          ${distname}/native
25
26depends_lib         port:apr \
27                    path:lib/libssl.dylib:openssl
28
29configure.args      --with-apr=${prefix} \
30                    --with-ssl=${prefix}
31
32if {[info exists env(JAVA_HOME)]} {
33    configure.args-append   --with-java-home="$env(JAVA_HOME)"
34} else {
35    configure.args-append   --with-java-home="/System/Library/Frameworks/JavaVM.framework"
36}
37
38build.args          EXTRA_LDFLAGS="-shrext .jnilib"
39
40notes "
41To integrate this into tomcat, add something like
42-Djava.library.path=${prefix} to the tomcat options.
43
44You then need to configure a Connector in server.xml
45with the appropriate apr protocol class for your use,
46for instance:
47    protocol=\"org.apache.coyote.http11.Http11AprProtocol\",
48    protocol=\"org.apache.coyote.ajp.AjpAprProtocol\"
49
50As in:
51    <!-- Define a non-SSL HTTP/1.1 Connector on port 8081 using apr -->
52    <Connector port=\"8081\" maxHttpHeaderSize=\"8192\"
53               maxThreads=\"150\" minSpareThreads=\"25\" maxSpareThreads=\"75\"
54               enableLookups=\"false\" redirectPort=\"8443\" acceptCount=\"100\"
55               connectionTimeout=\"20000\" disableUploadTimeout=\"true\" protocol=\"org.apache.coyote.http11.Http11AprProtocol\" />
56
57For further information please see https://tomcat.apache.org/native-doc/index.html
58"
59
60livecheck.type      regex
61livecheck.url       http://archive.apache.org/dist/tomcat/tomcat-connectors/native/
62livecheck.regex     {(\d+\.\d+\.\d+)/}
Note: See TracBrowser for help on using the repository browser.