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

Last change on this file since 80931 was 72252, checked in by jberry@…, 9 years ago

Drop maintainership of my recently ill-maintained java ports. I may still look in on them from time to time, but this feels better than to just ignore thme. Free to a good home.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 72252 2010-10-08 23:20:28Z jberry@macports.org $
2
3PortSystem 1.0
4
5name                            tomcat-native
6version                         1.1.20
7revision        1
8
9categories                      java www
10maintainers                     nomaintainer
11platforms                       darwin
12
13description                     Tomcat 5 HTTP Server native library support.
14long_description        This port provides access to native apr and other functions \
15                                        utilized by tomcat.
16homepage                        http://tomcat.apache.org/
17
18master_sites            apache:tomcat/tomcat-connectors/native/${version}/source/
19checksums                       md5 fb2b9d073cb6575c2d0020eda266ca0c \
20                                        sha1 35a176f3eb6516d84a109514d6a8b7c0af91441a
21
22distname                        ${name}-${version}-src
23worksrcdir                      ${distname}/jni/native
24
25depends_lib                     port:apr \
26                                        port:openssl
27
28if { [llength [array get env "JAVA_HOME"]] > 0 } {
29        set javahome $env(JAVA_HOME)
30} else {
31        set javahome "/System/Library/Frameworks/JavaVM.framework/Home"
32}
33
34configure.args          --with-apr=${prefix} \
35                                        --with-ssl=${prefix} \
36                                        --with-java-home=${javahome} \
37                                        --with-java-platform=2
38
39build.args                      EXTRA_LDFLAGS="-shrext .jnilib"
40
41notes "
42        To integrate this into tomcat, add something like
43        -Djava.library.path=${prefix} to the tomcat options.
44
45        You then need to configure a Connector in server.xml
46        with the appropriate apr protocol class for your use,
47        for instance:
48                protocol=\"org.apache.coyote.http11.Http11AprProtocol\",
49                protocol=\"org.apache.coyote.ajp.AjpAprProtocol\"
50
51        As 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"
Note: See TracBrowser for help on using the repository browser.