source: trunk/dports/www/mod_jk/Portfile

Last change on this file was 127224, checked in by cal@…, 3 years ago

mod_jk: convert post-install ui_msg to notes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
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
2# $Id: Portfile 127224 2014-10-23 19:08:59Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                mod_jk
7version             1.2.40
8
9categories          www java
10license             Apache-2 BSD
11maintainers         FreeBSD.org:girgen
12platforms           darwin
13
14description         Apache mod_jk remote server connector
15long_description    mod_jk is the connector supported by apache for communication between \
16                    the apache server and tomcat. mod_jk2, which had for some time superceeded mod_jk, \
17                    has now become officially 'unsupported' by the Apache group. \
18                    mod_jk allows apache to be used refer some request for processing by tomcat or any \
19                    other server that also supports the ajp13 protocol. \
20                    Apache 2.1 will contain a replacement for mod_jk(2) called mod_proxy_ajp. \
21                    At this time (this) mod_jk port supports only apache2, not apache 1.x.
22homepage            http://tomcat.apache.org/connectors-doc/
23
24distname            tomcat-connectors-${version}-src
25master_sites        apache:tomcat/tomcat-connectors/jk
26
27checksums           rmd160  7e5f8d48405239076b9ce0dc21978369e36fcd7a \
28                    sha256  895e347c4dff74049a848603fb29958e6cf429ea0fc708d514b3a8958236705d
29
30depends_build       path:apache2/bin/httpd:apache2
31worksrcdir          ${distname}/native
32
33
34configure.args      --with-apxs=${prefix}/apache2/bin/apxs
35
36set apachedir       apache2
37
38if {[variant_isset universal]} {
39    patchfiles-append   configure_universal.patch
40    post-configure {
41        system -W ${worksrcpath}/common "ed - ./portable.h < ${filespath}/common_portable.h.ed && touch ./stamp-h1"
42    }
43}
44
45destroot {
46    # Install the connector for apache2
47    xinstall -m 755 -d \
48        ${destroot}${prefix}/${apachedir}/modules \
49        ${destroot}${prefix}/${apachedir}/conf
50
51    xinstall -m 644 \
52        ${worksrcpath}/apache-2.0/mod_jk.so \
53        ${destroot}${prefix}/${apachedir}/modules
54
55    xinstall -m 644 ${worksrcpath}/../conf/workers.properties.minimal \
56        ${destroot}${prefix}/${apachedir}/conf/workers.properties.sample
57}
58
59
60notes "\
61Example file ${prefix}/${apachedir}/conf/workers.properties.sample has been\
62installed to illustrate the use of the jk connector between apache2 and\
63tomcat.
64You will want to create a working copy of this file as workers.properties and\
65configure the URI mappings within it, or by using directives within httpd.conf.
66
67Be sure to also add the following line to your httpd.conf:
68    LoadModule jk_module modules/mod_jk.so"
69
70variant apache20 description "install for apache 2.0.x" {
71    global apachedir
72    set apachedir apache20
73    depends_build-delete    path:apache2/bin/httpd:apache2
74    depends_build-append    path:apache20/bin/httpd:apache20
75    configure.args-delete   --with-apxs=${prefix}/apache2/bin/apxs
76    configure.args-append   --with-apxs=${prefix}/apache20/bin/apxs
77}
78
79livecheck.type  regex
80livecheck.regex "tomcat-connectors-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"
Note: See TracBrowser for help on using the repository browser.