Ignore:
Timestamp:
Aug 24, 2005, 4:28:49 AM (15 years ago)
Author:
jberry
Message:

Revisions to tomcat5 to make it possible to run it under JDK 5.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/tomcat5/Portfile

    r11924 r13664  
    1 # $Id: Portfile,v 1.17 2005/04/20 21:49:18 jberry Exp $
     1# $Id: Portfile,v 1.18 2005/08/24 04:28:49 jberry Exp $
    22
    33PortSystem 1.0
     
    55name                            tomcat5
    66version                         5.5.9
     7revision                        1
    78
    89categories                      java www
     
    7172
    7273build.cmd                       ant
    73 build.target            download dist
     74build.target            download dist compat
    7475build.args                      [join "
    7576                                        -Dbase.path=${worksrcpath}/Repository
     
    99100                                        "]
    100101
    101 default_variants        +compat
    102 
    103 # This variant provides compatibility with pre-JRE 1.5 systems
    104 variant compat {
    105         build.target-append compat
     102# Remove compatibility for pre-JRE 1.5 systems
     103variant nocompat {
     104        build.target-delete compat
    106105}
    107106
     
    129128       
    130129        # Add compat files as needed
    131         if { [variant_isset compat] } {
     130        if { ! [variant_isset nocompat] } {
    132131                system "tar -cf - -C ${worksrcpath}/compat . | tar xpf - -C ${target}"
    133132        }
     
    156155                ${filespath}/setenv.sh \
    157156                ${target}/bin
     157        xinstall -m 755 \
     158                ${filespath}/setenv.local
     159                ${target}/conf
    158160       
    159161        # Don't install startup script, as we're now generating a startupitem
     
    178180                                tomcat-users.xml
    179181                                web.xml
     182                                setenv.local
    180183                                " {
    181184                file rename ${target}/conf/${f} ${target}/conf/${f}.sample
     
    212215        ui_msg "# jsvc will drop its root privileges and run as user ${tomcatuser}."
    213216        ui_msg "#"
     217        ui_msg "# Under Apple Java, control over the Java version used to launch ${name} is"
     218        ui_msg "# through the shell variable JAVA_JVM_VERSION. This variable should be set"
     219        ui_msg "# to a java version such as 1.4, 1.5, or CurrentJDK (for the default version)."
     220        ui_msg "# You may set JAVA_JVM_VERSION in ${prefix}/${home}/bin/setenv.sh."
     221        ui_msg "#"
    214222}
    215223
Note: See TracChangeset for help on using the changeset viewer.