Changeset 16415


Ignore:
Timestamp:
Feb 15, 2006, 8:00:21 PM (14 years ago)
Author:
jberry
Message:

Modify tomcat-native to build it's library with a proper extension such that
System.loadLibrary will know how to load it on Mac OS, where the extension
for jni libraries is expected to be .jnilib rather than .dylib.

Add a comment, for now, with some usage notes. That should probably get turned into
an emitted instruction once confirmed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/tomcat-native/Portfile

    r16396 r16415  
    1 # $Id: Portfile,v 1.1 2006/02/14 23:39:05 jberry Exp $
     1# $Id: Portfile,v 1.2 2006/02/15 20:00:21 jberry Exp $
    22
    33PortSystem 1.0
     
    55name                            tomcat-native
    66version                         1.1.1
     7revision                        1
    78
    89categories                      java www
     
    2829        set javahome "/System/Library/Frameworks/JavaVM.framework/Home"
    2930}
    30        
     31
    3132configure.args          --with-apr=${prefix} \
    3233                                        --with-ssl=${prefix} \
     
    3435                                        --with-java-platform=2
    3536
     37build.args                      EXTRA_LDFLAGS="-shrext .jnilib"
    3638
     39
     40#
     41#       INTERNAL Notes, for now.
     42#
     43#       To integrate this into tomcat, add something like
     44#       -Djava.library.path=${prefix} to the tomcat options.
     45#
     46#       You then need to configure a Connector in server.xml
     47#       with the appropriate apr protocol class for your use,
     48#       for instance:
     49#               protocol="org.apache.coyote.http11.Http11AprProtocol",
     50#               protocol="org.apache.coyote.ajp.AjpAprProtocol"
     51#
     52#       As in:
     53#    <!-- Define a non-SSL HTTP/1.1 Connector on port 8081 using apr -->
     54#    <Connector port="8081" maxHttpHeaderSize="8192"
     55#               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
     56#               enableLookups="false" redirectPort="8443" acceptCount="100"
     57#               connectionTimeout="20000" disableUploadTimeout="true" protocol="org.apache.coyote.http11.Http11AprProtocol" />
     58#
Note: See TracChangeset for help on using the changeset viewer.