Ignore:
Timestamp:
Apr 20, 2005, 9:49:18 PM (15 years ago)
Author:
jberry
Message:

Update tomcat5 --> 5.5.9, the latest stable version
Also add generation of a startupitem.

File:
1 edited

Legend:

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

    r11905 r11924  
    1 # $Id: Portfile,v 1.16 2005/04/19 18:15:09 jberry Exp $
     1# $Id: Portfile,v 1.17 2005/04/20 21:49:18 jberry Exp $
    22
    33PortSystem 1.0
    44
    55name                            tomcat5
    6 version                         5.5.7
     6version                         5.5.9
    77
    88categories                      java www
     
    1818distname                        jakarta-tomcat-${version}-src
    1919master_sites            apache:jakarta/tomcat-5/v${version}/src/
    20 checksums                       md5 f147b38974da403bb5b07b6900578a29
     20checksums                       md5 8304076be67a45bf19b1948c6c9e17c9
    2121
    2222patchfiles                      patch-catalina.sh.diff \
     
    6464        regexp {version (\d+(\.\d+)*)} $verOutput -> antVersion
    6565        if { [rpm-vercomp $antVersion "1.6.2"] < 0 } {
    66                 depends_build-append bin:XXX:apache-ant
     66                depends_build-append port:apache-ant
    6767        }
    6868}
     
    156156                ${filespath}/setenv.sh \
    157157                ${target}/bin
    158         xinstall -m 755 ${filespath}/tomcat5.sh \
    159                 ${destroot}${prefix}/etc/rc.d
     158       
     159        # Don't install startup script, as we're now generating a startupitem
     160        #xinstall -m 755 ${filespath}/tomcat5.sh \
     161        #       ${destroot}${prefix}/etc/rc.d
     162        #reinplace s|TOMCATPREFIX=$|TOMCATPREFIX=${prefix}/${home}| ${destroot}${prefix}/etc/rc.d/tomcat5.sh
    160163               
    161164        # Add a symlink from bin directory to tomcatctl
     
    165168        reinplace s|PREFIX=$|PREFIX=${prefix}| ${target}/bin/tomcatctl
    166169        reinplace s|TOMCAT_USER=$|TOMCAT_USER=${tomcatuser}| ${target}/bin/tomcatctl
    167         reinplace s|TOMCATPREFIX=$|TOMCATPREFIX=${prefix}/${home}| ${destroot}${prefix}/etc/rc.d/tomcat5.sh
    168170       
    169171        # Rename certain files as .sample to avoid replacing them on update
     
    207209        ui_msg "# The script ${prefix}/${home}/bin/tomcatctl has been installed to"
    208210        ui_msg "# facilitate start and stop of tomcat using the jsvc utility, which allows you to"
    209         ui_msg "# start tomcat as a true daemon process. Once it has acquired its TCP socket,"
     211        ui_msg "# start tomcat as a true daemon process. Once tomcat has acquired its TCP socket,"
    210212        ui_msg "# jsvc will drop its root privileges and run as user ${tomcatuser}."
    211213        ui_msg "#"
    212214}
     215
     216
     217startupitem.create              yes
     218startupitem.start               "${prefix}/bin/tomcatctl start"
     219startupitem.stop                "${prefix}/bin/tomcatctl stop"
     220startupitem.restart             "${prefix}/bin/tomcatctl restart"
     221
Note: See TracChangeset for help on using the changeset viewer.