# -*- 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
checksums rmd160 2f81b55c14f3bc3b2e46a9b841c798071983deb5 \
sha256 3498dc5c6772fac2eb7307dc7963122ffe243b5e806e0be4fb51974ff759d726 \
maintainers {ryandesign @ryandesign} {mps @Schamschula} {pixilla @pixilla} openmaintainer
description The extremely popular second version of the Apache http server
long_description Apache is an HTTP server designed as a plug-in replacement for the NCSA \
server version 1.3 (or 1.4). It fixes numerous bugs in the NCSA server \
and includes many frequently requested new features, and has an API \
which allows it to be extended to meet users' needs more easily.
homepage http://httpd.apache.org/
platforms darwin freebsd openbsd
master_sites apache:httpd
distname httpd-${version}
path:lib/libssl.dylib:openssl \
patchfiles patch-build-rules.mk.in.diff \
patch-config.layout.diff \
patch-support-apxs.in.diff
reinplace "s,@MANDIR@,\${prefix}/share/${name},g" \
${worksrcpath}/config.layout
reinplace "s,@APACHE_NAME@,${name},g" \
${worksrcpath}/config.layout
reinplace -E "s/(User|Group) daemon/\\1 _www/" \
${worksrcpath}/docs/conf/httpd.conf.in
patchfiles-append patch-support-apachectl.in.diff
# Customize userdir naming to match darwin
reinplace "s|/home/|/Users/|g" ${worksrcpath}/docs/conf/extra/httpd-userdir.conf.in
reinplace "s|public_html|Sites|g" ${worksrcpath}/docs/conf/extra/httpd-userdir.conf.in
# HFS can be case insensitive, so protect for this as in
# http://docs.info.apple.com/article.html?artnum=300422
patchfiles-append patch-docs-conf-httpd.conf.in.diff