Ticket #12646: apache2-2.2.6.diff

File apache2-2.2.6.diff, 1.7 KB (added by nox@…, 17 years ago)
  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem       1.0
     4
    45name             apache2
    5 version          2.2.4
    6 revision         1
     6version          2.2.6
    77
    88categories       www
    99maintainers      imajes@macports.org
     
    1919
    2020master_sites     apache:httpd
    2121distname         httpd-${version}
    22 checksums        md5 536c86c7041515a25dd8bad3611da9a3
    2322use_bzip2        yes
    2423
     24checksums        md5 203bea91715064f0c787f6499d33a377 \
     25                 sha1 e6ef926ecd1f9a412af8c266239f0a6f58c63854 \
     26                                 rmd160 5ae895c6898213e1e3b7e7b02cdfcbe5b36a108f
     27
    2528depends_lib      port:apr \
    2629                 port:apr-util \
    2730                 port:expat \
     
    7578
    7679post-destroot {
    7780        set confDir ${destroot}${prefix}/apache2/conf
    78         file rename -force ${confDir}/httpd.conf ${confDir}/httpd.conf.sample
     81        move -force ${confDir}/httpd.conf ${confDir}/httpd.conf.sample
    7982
    8083        destroot.keepdirs ${destroot}${prefix}/apache2/logs
    8184
    8285        # fix libtool path
    8386        reinplace "s|/apache2/build/libtool|/share/apr-0/build/libtool|g" \
    8487                ${destroot}${prefix}/apache2/build/config_vars.mk
     88
     89        set docdir ${prefix}/share/doc/apache-${version}
     90        xinstall -d ${destroot}${docdir}
     91        xinstall -m 0644 -W ${worksrcpath} ABOUT_APACHE CHANGES LICENSE NOTICE README \
     92                README.platforms ROADMAP VERSIONING ${destroot}${docdir}
    8593}
    8694
    8795variant openbsd {
     
    119127"\[ -r ${prefix}/apache2/logs/httpd.pid \] && ${prefix}/apache2/bin/apachectl stop > /dev/null"
    120128startupitem.restart     \
    121129"${prefix}/apache2/bin/apachectl restart > /dev/null"
     130
     131livecheck.check regex
     132livecheck.url   ${homepage}
     133livecheck.regex "Apache (\\d+(?:\\.\\d+)*) Released"
     134