binbuild.sh revision 0bfd482e54583b43b826299aa6c9853f703191ed
echo "Only a standard Apache 2.0 source distribution should be used to" echo "create a binary distribution." echo "Building Apache $VER binary distribution..." echo "Platform is \"$OS\"..." ( echo "Build log for Apache binary distribution" && \ echo "----------------------------------------------------------------------" && \ echo "----------------------------------------------------------------------" && \ echo "----------------------------------------------------------------------" && \ echo "----------------------------------------------------------------------" && \ echo "----------------------------------------------------------------------" && \ echo "----------------------------------------------------------------------" && \ echo "ERROR: Failed to build Apache. See \"build.log\" for details." echo "Binary image successfully created..." echo "Creating supplementary files..." echo "Apache $VER binary distribution" && \ echo "================================" && \ echo "This binary distribution is usable on a \"$OS\"" && \ echo "system and was built by \"$USER\"." && \ echo "The distribution contains all standard Apache modules as shared" && \ echo "objects. This allows you to enable or disable particular modules" && \ echo "without the need to re-compile Apache." && \ echo "NOTE: Please do not send support-related mails to the address mentioned" && \ echo " above or to any member of the Apache Group! Support questions" && \ echo " (as appropriate for the platform you use), where some of the" && \ echo " Apache team lurk, in the company of many other Apache gurus" && \ echo " who should be able to help." && \ echo " If you think you found a bug in Apache or have a suggestion please" && \ echo "----------------------------------------------------------------------" && \ echo "----------------------------------------------------------------------" \ echo "Apache $VER binary installation" && \ echo "================================" && \ echo "To install this binary distribution you have to execute the installation" && \ echo "The script takes the ServerRoot directory into which you want to install" && \ echo "Apache as an option. If you ommit the option the default path" && \ echo "Make sure you have write permissions in the target directory, e.g. switch" && \ echo "to user \"root\" before you execute the script." && \ echo "See \"README.bindist\" for further details about this distribution." && \ echo "Please note that this distribution includes the complete Apache source code." && \ echo "Therefore you may compile Apache yourself at any time if you have a compiler" && \ echo "installation on your system." && \ echo "See \"INSTALL\" for details on how to accomplish this." && \ echo "# This script installs the Apache binary distribution and" && \ echo "# was automatically created by binbuild.sh." && \ echo " dirs=\`echo \$1 | sed -e 's%/% %g'\`" && \ echo " set -- \${dirs}" && \ echo " for d in \${dirs}" && \ echo " path=\"\${path}/\$d\"" && \ echo " if test ! -d \"\${path}\" ; then" && \ echo " mkdir \${path}" && \ echo " if test \$? -ne 0 ; then" && \ echo " echo \"Failed to create directory: \${path}\"" && \ echo " chmod \${mode} \${path}" && \ echo " test -d \${to} || lmkdir \${to} \${dmode}" && \ echo " (cd \${from} && tar -cf - *) | (cd \${to} && tar -xf -)" && \ echo " if test \"X\${fmode}\" != X ; then" && \ echo " find \${to} -type f -print | xargs chmod \${fmode}" && \ echo " if test \"X\${dmode}\" != X ; then" && \ echo " find \${to} -type d -print | xargs chmod \${dmode}" && \ echo "## determine path to (optional) Perl interpreter" && \ echo "PERL=no-perl5-on-this-system" && \ echo "perls='perl5 perl'" && \ echo "path=\`echo \$PATH | sed -e 's/:/ /g'\`" && \ echo "for dir in \${path} ; do" && \ echo " for pperl in \${perls} ; do" && \ echo " if test -f \"\${dir}/\${pperl}\" ; then" && \ echo " if \`\${dir}/\${pperl} -v | grep 'version 5\.' >/dev/null 2>&1\` ; then" && \ echo " PERL=\"\${dir}/\${pperl}\"" && \ echo "if [ .\$1 = . ]" && \ echo "echo \"Installing binary distribution for platform $OS\"" && \ echo "echo \"into directory \$SR ...\"" && \ echo "lmkdir \$SR 755" && \ echo "lmkdir \$SR/logs 750" && \ echo "if [ -d \$SR/conf ]" && \ echo " echo \"[Preserving existing configuration files.]\"" && \ echo " echo \"[Preserving existing htdocs directory.]\"" && \ echo " echo \"[Preserving existing error documents directory.]\"" && \ echo "sed -e \"s;^#!/.*;#!\$PERL;\" -e \"s;\@prefix\@;\$SR;\" -e \"s;\@sbindir\@;\$SR/bin;\" \\" && \ echo " -e \"s;\@libexecdir\@;\$SR/libexec;\" -e \"s;\@includedir\@;\$SR/include;\" \\" && \ echo "echo \"Ready.\"" && \ echo "echo \" +--------------------------------------------------------+\"" && \ echo "echo \" | You now have successfully installed the Apache $VER |\"" && \ echo "echo \" | HTTP server. To verify that Apache actually works |\"" && \ echo "echo \" | correctly you should first check the (initially |\"" && \ echo "echo \" | created or preserved) configuration files: |\"" && \ echo "echo \" | |\"" && \ echo "echo \" | |\"" && \ echo "echo \" | You should then be able to immediately fire up |\"" && \ echo "echo \" | Apache the first time by running: |\"" && \ echo "echo \" | |\"" && \ echo "echo \" | |\"" && \ echo "echo \" | Thanks for using Apache. The Apache Group |\"" && \ echo "echo \" +--------------------------------------------------------+\"" && \ -e
"s%^ServerAdmin.*%ServerAdmin you@your.address%" \
-e
"s%#ServerName.*%#ServerName localhost%" \
-e
"s%Port 8080%Port 80%" \
echo "Creating distribution archive and readme file..." echo "ERROR: Failed to build Apache. See \"build.log\" for details." echo "ERROR: Could not find a 'tar' program!" echo " Please execute the following commands manually:" echo " tar -cf ../httpd-$VER-$OS.tar ." echo "and the readme file (httpd-$VER-$OS.README) in the"