Ticket #41077: mod_jk.3.diff
File mod_jk.3.diff, 2.6 KB (added by girgen@…, 11 years ago) |
---|
-
(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 1 2 # $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $ 2 3 3 4 PortSystem 1.0 4 5 5 6 name mod_jk 6 version 1.2. 277 version 1.2.40 7 8 8 9 categories www java 9 10 license Apache-2 BSD 10 maintainers nomaintainer11 maintainers FreeBSD.org:girgen 11 12 platforms darwin 12 13 13 14 description Apache mod_jk remote server connector … … 21 22 homepage http://tomcat.apache.org/connectors-doc/ 22 23 23 24 distname tomcat-connectors-${version}-src 24 master_sites http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-${version}25 master_sites apache:tomcat/tomcat-connectors/jk 25 26 26 checksums md5 a15cc9e3813ef5b081c7de10e6a1fbed \ 27 sha1 361f8aaa1844ac76a5dda741152968190b34347b \ 28 rmd160 cb872030d4325ba15d0038c6c7b298213768300a 27 checksums rmd160 7e5f8d48405239076b9ce0dc21978369e36fcd7a \ 28 sha256 895e347c4dff74049a848603fb29958e6cf429ea0fc708d514b3a8958236705d 29 29 30 30 depends_build path:apache2/bin/httpd:apache2 31 31 worksrcdir ${distname}/native … … 35 35 36 36 set apachedir apache2 37 37 38 # Determine a valid value for javahome39 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-jni59 }60 61 38 pre-configure { 62 39 # Check to be sure the apache2 port has been updated, and 63 40 # warn the user if it hasn't been. … … 89 66 ${worksrcpath}/apache-2.0/mod_jk.so \ 90 67 ${destroot}${prefix}/${apachedir}/modules 91 68 92 if {[variant_isset jni]} {93 xinstall -m 644 \94 ${worksrcpath}/jni/jk_jnicb.so \95 ${destroot}${prefix}/${apachedir}/modules96 }97 98 69 xinstall -m 644 ${worksrcpath}/../conf/workers.properties.minimal \ 99 70 ${destroot}${prefix}/${apachedir}/conf/workers.properties.sample 100 71 }