Ticket #23023: mod_jk2.diff
File mod_jk2.diff, 4.5 KB (added by haraoka@…, 15 years ago) |
---|
-
mod_jk2/Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name mod_jk2 6 version 5.5.46 version 2.0.4 7 7 8 8 categories www java 9 9 maintainers nomaintainer 10 10 platforms darwin 11 11 12 12 description Apache mod_jk2 remote server connector (from Tomcat). 13 long_description mod_jk2 provides a connection between apache2 and a remote \13 long_description mod_jk2 provides a connection between apache20 and a remote \ 14 14 server. It passes incoming requests on to the remote server \ 15 15 for handling. Configurations may be mixed such that each \ 16 16 server handles a particular type of request. mod_jk2 comes \ … … 21 21 core module, proxy_ajp, replaces mod_jk2. 22 22 homepage http://jakarta.apache.org/tomcat/connectors-doc/ 23 23 24 distname jakarta-tomcat-${version}-src 25 master_sites apache:jakarta/tomcat-5/v${version}/src/ 26 checksums md5 2fdfb34df8f670af2669d02fb6103a45 24 distname jakarta-tomcat-connectors-jk2-${version}-src 25 master_sites apache:tomcat/tomcat-connectors/jk2/source/ 26 checksums md5 444bef31619f772df1f0b1c50e6ba773 \ 27 sha1 b81b262f1086e324216684b05753d562d7182e2c \ 28 rmd160 d02eaab9b50f816884850ccb6f41d9204927cad5 27 29 28 patchfiles patch-workers2.properties.minimal.diff29 30 30 depends_build path:apache2 /bin/httpd:apache231 depends_build path:apache20/bin/httpd:apache20 31 32 depends_lib lib:pcre:pcre 32 33 33 worksrcdir ${distname}/jakarta-tomcat-connectors/jk/native2 34 worksrcdir ${distname}/jk/native2 35 34 36 35 37 36 38 # Try to determine a reasonable JAVA_HOME value … … 56 58 reinplace s|libtoolize|glibtoolize| ${worksrcpath}/buildconf.sh 57 59 58 60 # Fix link 59 reinplace s|-lcrypt|| ${worksrcpath}/server/apache2/Makefile.in61 reinplace s|-lcrypt|| ${worksrcpath}/server/apache2/Makefile.in 60 62 } 61 63 62 64 pre-configure { 63 # Check to be sure the apache2 port has been updated, and65 # Check to be sure the apache20 port has been updated, and 64 66 # warn the user if it hasn't been. 65 67 # In port versions prior to 2.0.52_1, apxs didn't know where libdir was. 66 68 # That information is needed by the jk2 configure script. 67 set apxs ${prefix}/apache2/bin/apxs 69 system "test -h ${prefix}/lib/libapr-0.so || ln -s libapr-0.dylib ${prefix}/lib/libapr-0.so" 70 set apxs ${prefix}/apache20/bin/apxs 68 71 if { [file executable ${apxs}] } { 69 72 set libdir [exec ${apxs} -q LIBDIR] 70 73 if { 0 == [string length ${libdir}] || ![file isdirectory ${libdir}] } { 71 error "Your apache2 installation doesn't know where its library directory is. Please update your apache2port."74 error "Your apache20 installation doesn't know where its library directory is. Please update your apache20 port." 72 75 } 73 76 } 74 77 … … 78 81 } 79 82 80 83 configure.args --with-pcre \ 81 --with-apxs2=${prefix}/apache2/bin/apxs \ 82 --with-jni \ 83 --with-java-home=${javahome} 84 --with-apache2=${prefix}/apache20 \ 85 --with-apxs2=${prefix}/apache20/bin/apxs \ 86 --with-apr-lib=${prefix}/lib \ 87 --with-apr-include=${prefix}/include/apr-0 \ 88 # --with-apr-util=${prefix}/lib/apr-util-1 \ 89 --with-jni \ 90 --with-java-home=${javahome} 91 92 # --with-apr=${prefix} \ 84 93 85 94 destroot { 86 # Install the jk2 connector for apache2 95 # Install the jk2 connector for apache20 87 96 xinstall -m 755 -d \ 88 ${destroot}${prefix}/apache2 /modules \89 ${destroot}${prefix}/apache2 /conf97 ${destroot}${prefix}/apache20/modules \ 98 ${destroot}${prefix}/apache20/conf 90 99 91 100 xinstall -m 644 \ 92 101 ${worksrcpath}/../build/jk2/apache2/mod_jk2.so \ 93 ${worksrcpath}/../build/jk2/apache2/libjkjni.so \ 94 ${destroot}${prefix}/apache2/modules 102 ${destroot}${prefix}/apache20/modules 95 103 96 104 xinstall -m 644 ${worksrcpath}/../conf/workers2.properties.minimal \ 97 ${destroot}${prefix}/apache2 /conf/workers2.properties.sample105 ${destroot}${prefix}/apache20/conf/workers2.properties.sample 98 106 } 99 107 100 108 101 109 post-install { 102 110 ui_msg "#" 103 ui_msg "# Example file ${prefix}/apache2 /conf/workers2.properties.sample has"111 ui_msg "# Example file ${prefix}/apache20/conf/workers2.properties.sample has" 104 112 ui_msg "# been installed to illustrate use of the jk2 connector between " 105 ui_msg "# apache2 and tomcat over a unix domain socket."113 ui_msg "# apache20 and tomcat over a unix domain socket." 106 114 ui_msg "#" 107 115 ui_msg "# You will want to create a working copy of this file as workers2.properties" 108 116 ui_msg "# and configure the uri mappings within it, or using JkUriSet in httpd.conf."