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

Last change on this file since 108305 was 108305, checked in by larryv@…, 7 years ago

tomcat-native: Fix livecheck.

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