# -*- 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
PortGroup active_variants 1.1
maintainers {ryandesign @ryandesign} openmaintainer
description The extremely popular second version of the Apache http server
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}
checksums rmd160 7e913d60ac02c815edac6ab0614f5dc40618c073 \
sha256 e53183d5dfac5740d768b4c9bea193b1099f4b06b57e5f28d7caaf9ea7498160 \
path:lib/libssl.dylib:openssl \
patchfiles patch-docs-cgi-examples-printenv.diff \
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/docs/cgi-examples/printenv
reinplace -E "s/(User|Group) daemon/\\1 www/" ${worksrcpath}/docs/conf/httpd.conf.in
# 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-httpd.conf.in-sensitive-files.diff