Changeset 14789 for trunk/dports


Ignore:
Timestamp:
Oct 24, 2005, 8:29:18 PM (14 years ago)
Author:
mww
Message:

Bug: #5389

add startupitem support, remove rc-style script, inc. revision

Location:
trunk/dports/www/apache2
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/apache2/Portfile

    r14674 r14789  
    1 # $Id: Portfile,v 1.30 2005/10/17 17:19:39 ricci Exp $
     1# $Id: Portfile,v 1.31 2005/10/24 20:29:18 mww Exp $
    22
    33PortSystem 1.0
    44name             apache2
    55version          2.0.55
    6 revision         0
     6revision         1
    77categories       www
    88maintainers      james@imajes.info
     
    2222use_bzip2        yes
    2323
    24 depends_lib      lib:libapr.0:apr \
    25                  lib:libaprutil.0:apr-util \
    26                  lib:libexpat.0:expat \
     24depends_lib      port:apr \
     25                 port:apr-util \
     26                 port:expat \
    2727                                 port:openssl
    2828
     
    6666        destroot.keepdirs ${destroot}${prefix}/apache2/logs
    6767
    68         # Install startup script.
    69         set rcDir ${destroot}${prefix}/etc/rc.d
    70         set rcFile ${name}.sh
    71 
    72         xinstall -m 755 -d ${rcDir}
    73         xinstall -m 644 ${filespath}/${rcFile} ${rcDir}
    74         reinplace "s|@@PREFIX@@|${prefix}|g" ${rcDir}/${rcFile}
    75 
    7668        # fix libtool path
    7769        reinplace "s|/apache2/build/libtool|/share/apr-0/build/libtool|g" \
     
    7971}
    8072
    81 post-install {
    82         ui_msg ""
    83         ui_msg "In order for apache2 to start on system boot,"
    84         ui_msg "make sure DarwinPortsStartup is installed."
    85         ui_msg ""
    86 }
    87 
    8873variant openbsd {
    8974        build.env-append "LD_LIBRARY_PATH=${prefix}/lib"
    9075}
     76
     77startupitem.create      yes
     78startupitem.start       \
     79"\[ -x ${prefix}/apache2/bin/apachectl \] && ${prefix}/apache2/bin/apachectl start > /dev/null"
     80startupitem.stop        \
     81"\[ -r ${prefix}/apache2/logs/httpd.pid \] && ${prefix}/apache2/bin/apachectl stop > /dev/null"
     82startupitem.restart     \
     83"\[ -r ${prefix}/apache2/logs/httpd.pid \] && ${prefix}/apache2/bin/apachectl restart > /dev/null"
     84
Note: See TracChangeset for help on using the changeset viewer.