source: trunk/dports/java/tomcat-native/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem 1.0
5
6name                tomcat-native
7version             1.1.32
8categories          java www
9maintainers         nomaintainer
10license             Apache-2
11platforms           darwin
12
13description         Tomcat 5 HTTP Server native library support.
14long_description    This port provides access to native apr and other \
15                    functions utilized by tomcat.
16
17homepage            http://tomcat.apache.org/
18master_sites        apache:tomcat/tomcat-connectors/native/${version}/source/
19
20checksums           rmd160  0124ecee2fca0bab0019f3c34051fc0088fb215b \
21                    sha256  26936848f727e162f513bd2b5f7b2300d7d716a5e92e5f4ebcd0e1eff8e09584
22
23distname            ${name}-${version}-src
24worksrcdir          ${distname}/jni/native
25
26depends_lib         port:apr \
27                    path:lib/libssl.dylib:openssl
28
29configure.args      --with-apr=${prefix} \
30                    --with-ssl=${prefix} \
31                    --with-java-platform=2
32
33if {[info exists env(JAVA_HOME)]} {
34    configure.args-append   --with-java-home="$env(JAVA_HOME)"
35} else {
36    configure.args-append   --with-java-home="/System/Library/Frameworks/JavaVM.framework"
37}
38
39build.args          EXTRA_LDFLAGS="-shrext .jnilib"
40
41notes "
42To integrate this into tomcat, add something like
43-Djava.library.path=${prefix} to the tomcat options.
44
45You then need to configure a Connector in server.xml
46with the appropriate apr protocol class for your use,
47for instance:
48    protocol=\"org.apache.coyote.http11.Http11AprProtocol\",
49    protocol=\"org.apache.coyote.ajp.AjpAprProtocol\"
50
51As in:
52    <!-- Define a non-SSL HTTP/1.1 Connector on port 8081 using apr -->
53    <Connector port=\"8081\" maxHttpHeaderSize=\"8192\"
54               maxThreads=\"150\" minSpareThreads=\"25\" maxSpareThreads=\"75\"
55               enableLookups=\"false\" redirectPort=\"8443\" acceptCount=\"100\"
56               connectionTimeout=\"20000\" disableUploadTimeout=\"true\" protocol=\"org.apache.coyote.http11.Http11AprProtocol\" />
57"
58
59livecheck.type      regex
60livecheck.url       http://archive.apache.org/dist/tomcat/tomcat-connectors/native/
61livecheck.regex     {(\d+\.\d+\.\d+)/}
Note: See TracBrowser for help on using the repository browser.