# Note: depends on pcre
# Note: depends on apr
# Note: depends on apr-util
wget -c http://apache.mirrors.spacedump.net/httpd/httpd-2.4.25.tar.bz2
tar -xjf httpd-2.4.25.tar.bz2
cd httpd-2.4.25
cat >> config.layout << 'END'
<Layout AOS>
    prefix:        /usr
    exec_prefix:   ${prefix}
    bindir:        ${exec_prefix}/bin
    sbindir:       ${exec_prefix}/sbin
    libdir:        ${exec_prefix}/lib
    libexecdir:    ${exec_prefix}/lib/apache-httpd/modules
    mandir:        ${exec_prefix}/share/man
    sysconfdir:    /etc/apache-httpd
    datadir:       ${exec_prefix}/share/apache-httpd
    iconsdir:      ${datadir}/icons
    htdocsdir:     ${localstatedir}/www/default
    manualdir:     ${htdocsdir}/manual
    cgidir:        ${prefix}/lib/cgi-bin
    includedir:    ${exec_prefix}/include/apache-httpd
    localstatedir: /var
    runtimedir:    ${localstatedir}/run/apache-httpd
    logfiledir:    ${localstatedir}/log/apache-httpd
    proxycachedir: ${localstatedir}/cache/apache-httpd/proxy
    infodir:       ${exec_prefix}/share/info
    installbuilddir: ${prefix}/share/apache-httpd/build
    errordir:      ${datadir}/error
</Layout>
END
mkdir -p builddir
cd builddir
../configure --enable-layout="AOS"
make # Doesn't mind -j#
make install
useradd -r -s /sbin/nologin daemon