1 | PortSystem 1.0 |
---|
2 | name mod_jk |
---|
3 | version 1.2.4 |
---|
4 | revision 1.0 |
---|
5 | categories www |
---|
6 | platforms darwin freebsd |
---|
7 | maintainers jcorley1@nc.rr.com |
---|
8 | description The Tomcat "connector" module for Apache |
---|
9 | long_description mod_jk is a replacement to the elderly mod_jserv. It is a completely new \ |
---|
10 | Apache module that handles the communication between Tomcat and Apache. |
---|
11 | homepage http://jakarta.apache.org/tomcat/index.html |
---|
12 | |
---|
13 | master_sites http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v${version}/src/ |
---|
14 | |
---|
15 | distname jakarta-tomcat-connectors-jk-${version}-src |
---|
16 | checksums ${distname}${extract.sufx} md5 9641a826b87e64692377161215cfd5e1 |
---|
17 | worksrcdir ${distname}/jk/native |
---|
18 | |
---|
19 | depends_build path:${prefix}/apache-1.3.27/sbin/apxs:apache |
---|
20 | |
---|
21 | configure { reinplace "s|libtoolize|glibtoolize|g" \ |
---|
22 | ${workpath}/${worksrcdir}/buildconf.sh |
---|
23 | system "cd ${workpath}/${worksrcdir} && \ |
---|
24 | sh buildconf.sh && \ |
---|
25 | ./configure \ |
---|
26 | --with-apxs=${prefix}/apache-1.3.27/sbin/apxs \ |
---|
27 | --enable-EAPI" } |
---|
28 | |
---|
29 | build.args LIBTOOL=/usr/bin/glibtool |
---|
30 | |
---|
31 | install { system "mkdir -p ${destroot}/${prefix}/apache-1.3.27/libexec/apache" |
---|
32 | system "cp ${workpath}/${worksrcdir}/apache-1.3/mod_jk*.so \ |
---|
33 | ${destroot}/${prefix}/apache-1.3.27/libexec/apache" |
---|
34 | system "cp ${workpath}/${distname}/jk/conf/workers.properties \ |
---|
35 | ${destroot}/${prefix}/apache-1.3.27/etc/apache" } |
---|
36 | |
---|
37 | variant apache2 { |
---|
38 | depends_build path:${prefix}/apache2/bin/apxs:apache2 |
---|
39 | depends_lib lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util |
---|
40 | |
---|
41 | configure { reinplace "s|libtoolize|glibtoolize|g" \ |
---|
42 | ${workpath}/${worksrcdir}/buildconf.sh |
---|
43 | system "cd ${workpath}/${worksrcdir} && \ |
---|
44 | sh buildconf.sh && \ |
---|
45 | ./configure \ |
---|
46 | --with-apxs=${prefix}/apache2/bin/apxs" |
---|
47 | reinplace "s|JK_INCL=|JK_INCL=-I${prefix}/include/apr-0|g" \ |
---|
48 | ${workpath}/${worksrcdir}/apache-2.0/Makefile } |
---|
49 | |
---|
50 | install { system "mkdir -p ${destroot}/${prefix}/apache2/modules" |
---|
51 | system "mkdir -p ${destroot}/${prefix}/apache2/conf" |
---|
52 | system "cp ${workpath}/${worksrcdir}/apache-2.0/mod_jk*.so \ |
---|
53 | ${destroot}/${prefix}/apache2/modules" |
---|
54 | system "cp ${workpath}/${distname}/jk/conf/workers.properties \ |
---|
55 | ${destroot}/${prefix}/apache2/conf" } |
---|
56 | } |
---|