Ticket #41077: mod_jk.3.diff

File mod_jk.3.diff, 2.6 KB (added by girgen@…, 10 years ago)

Update mod_jk to 1.2.40

  • (a) /Users/girgen/Portfile.orig vs. (b) Portfile

    a b  
     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
    12# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $
    23
    34PortSystem 1.0
    45
    56name                            mod_jk
    6 version                         1.2.27
     7version                         1.2.40
    78
    89categories                      www java
    910license                         Apache-2 BSD
    10 maintainers                     nomaintainer
     11maintainers                     FreeBSD.org:girgen
    1112platforms                       darwin
    1213
    1314description                     Apache mod_jk remote server connector
     
    2122homepage                        http://tomcat.apache.org/connectors-doc/
    2223
    2324distname                        tomcat-connectors-${version}-src
    24 master_sites            http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-${version}
     25master_sites            apache:tomcat/tomcat-connectors/jk
    2526
    26 checksums           md5     a15cc9e3813ef5b081c7de10e6a1fbed \
    27                     sha1    361f8aaa1844ac76a5dda741152968190b34347b \
    28                     rmd160  cb872030d4325ba15d0038c6c7b298213768300a
     27checksums           rmd160  7e5f8d48405239076b9ce0dc21978369e36fcd7a \
     28                                        sha256  895e347c4dff74049a848603fb29958e6cf429ea0fc708d514b3a8958236705d
    2929
    3030depends_build           path:apache2/bin/httpd:apache2
    3131worksrcdir                      ${distname}/native
     
    3535
    3636set apachedir       apache2
    3737
    38 # Determine a valid value for javahome
    39 if { [llength [array get env "JAVA_HOME"]] > 0 } {
    40         set javahome $env(JAVA_HOME)
    41 } else {
    42         set javahome ""
    43 }
    44 if { ![file isdirectory ${javahome}] } {
    45         if { ${os.platform} eq "darwin" } {
    46                 if { [file isdirectory "/System/Library/Frameworks/JavaVM.framework/Home"] } {
    47                         set javahome "/System/Library/Frameworks/JavaVM.framework/Home"
    48                 }
    49         }
    50 }
    51 if { ![file isdirectory ${javahome}] } {
    52     pre-fetch {
    53             error "This port needs a reasonable value for JAVA_HOME, but couldn't automatically determine one: please set the environment variable."
    54     }
    55 }
    56 
    57 variant jni description {Build jni_connect.so and enable jni_worker} {
    58         configure.args-append --with-java-home=${javahome} --enable-jni
    59 }
    60 
    6138pre-configure {
    6239        # Check to be sure the apache2 port has been updated, and
    6340        # warn the user if it hasn't been.
     
    8966                ${worksrcpath}/apache-2.0/mod_jk.so \
    9067                ${destroot}${prefix}/${apachedir}/modules
    9168               
    92         if {[variant_isset jni]} {
    93                 xinstall -m 644 \
    94                         ${worksrcpath}/jni/jk_jnicb.so \
    95                         ${destroot}${prefix}/${apachedir}/modules
    96         }
    97                
    9869        xinstall -m 644 ${worksrcpath}/../conf/workers.properties.minimal \
    9970                ${destroot}${prefix}/${apachedir}/conf/workers.properties.sample
    10071}