Apache httpd 2.4.x layout

Bjarne D Mathiesen macintosh at mathiesen.info
Tue May 29 06:20:35 PDT 2012


##
##  config.layout -- Pre-defined Installation Path Layouts
##
##  Hints:
##  - layouts can be loaded with configure's --enable-layout=ID option
##  - when no --enable-layout option is given, the default layout is
`Apache'
##  - a trailing plus character (`+') on paths is replaced with a
##    `/<target>' suffix where <target> is currently hardcoded to 'apache2'.
##    (This may become a configurable parameter at some point.)
##

Proposed apache 2.4 layout:
ServerRoot              ::      ${prefix}/www/
DocumentRoot            ::      ${prefix}/www/htdocs
Apache Config File      ::      ${prefix}/etc/${name}/httpd.conf
Include Files           ::      ${prefix}/include/${name}
Other Config Files      ::      ${prefix}/etc/${name}/extra/
Module Locations        ::      ${prefix}/lib/${name}/modules
ErrorLog                ::      ${prefix}/var/log/${name}/error_log
AccessLog               ::      ${prefix}/var/log/${name}/access_log
cgi-bin                 ::      ${prefix}/www/cgi-bin
binary                  ::      ${prefix}/bin/httpd
start/stop              ::      ${prefix}/bin/apachectl
apxs                    ::      ${prefix}/bin/apxs

                                        ++++++++++++++++++++++++++++
                                        ||||||||||||||||||||||||||||
#   Classical Apache path layout.
<Layout Apache>                         <Layout MacPorts>
    prefix:        /usr/local/apache2       /usr/local
    exec_prefix:   ${prefix}                ${prefix}
    bindir:        ${exec_prefix}/bin       ${exec_prefix}/bin
    sbindir:       ${exec_prefix}/bin       ${exec_prefix}/sbin
    libdir:        ${exec_prefix}/lib       ${exec_prefix}/lib+
    libexecdir:    ${exec_prefix}/modules   ${libdir}/modules
    mandir:        ${prefix}/man            ${prefix}/share/man
    sysconfdir:    ${prefix}/conf           ${prefix}/etc+
    datadir:       ${prefix}                ${prefix}/www+
    installbuilddir: ${datadir}/build       ${datadir}/build
    errordir:      ${datadir}/error         ${datadir}/error
    iconsdir:      ${datadir}/icons         ${datadir}/icons
    htdocsdir:     ${datadir}/htdocs        ${datadir}/htdocs
    manualdir:     ${datadir}/manual        ${datadir}/manual
    cgidir:        ${datadir}/cgi-bin       ${datadir}/cgi-bin
    includedir:    ${prefix}/include        ${prefix}/include+
    localstatedir: ${prefix}                ${prefix}/var
    runtimedir:    ${localstatedir}/logs    ${localstatedir}/run+
    logfiledir:    ${localstatedir}/logs    ${localstatedir}/log+
    proxycachedir: ${localstatedir}/proxy   ${localstatedir}/tmp+
</Layout>
                                        ||||||||||||||||||||||||||||
                                        ++++++++++++++++++++++++++++

So, we'll have to state
configure.pre_args  --prefix=${prefix}
configure.args      --enable-layout=MacPorts

Any comments ???

:-)
-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3


More information about the macports-dev mailing list