Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95C959AB2 for ; Mon, 27 Feb 2012 22:26:52 +0000 (UTC) Received: (qmail 71850 invoked by uid 500); 27 Feb 2012 22:26:52 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 71784 invoked by uid 500); 27 Feb 2012 22:26:52 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 71777 invoked by uid 99); 27 Feb 2012 22:26:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 22:26:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 22:26:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8F9AC23888D2; Mon, 27 Feb 2012 22:25:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1294368 - in /httpd/httpd/branches/2.4.x: build/aix/buildaix.ksh config.layout Date: Mon, 27 Feb 2012 22:25:58 -0000 To: cvs@httpd.apache.org From: minfrin@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120227222558.8F9AC23888D2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: minfrin Date: Mon Feb 27 22:25:58 2012 New Revision: 1294368 URL: http://svn.apache.org/viewvc?rev=1294368&view=rev Log: Backport: AIX: Update the build to support AIX packages. Submitted by: Michael Felt Modified: httpd/httpd/branches/2.4.x/build/aix/buildaix.ksh httpd/httpd/branches/2.4.x/config.layout Modified: httpd/httpd/branches/2.4.x/build/aix/buildaix.ksh URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/build/aix/buildaix.ksh?rev=1294368&r1=1294367&r2=1294368&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/build/aix/buildaix.ksh (original) +++ httpd/httpd/branches/2.4.x/build/aix/buildaix.ksh Mon Feb 27 22:25:58 2012 @@ -16,38 +16,112 @@ # # -# buildaix.ksh: This script builds an AIX fileset +# buildaix.ksh: This script builds an AIX fileset of Apache httpd +# if arguments - try to run fast +cmd=$0 + +export CFLAGS='-O2 -qlanglvl=extc99' + +lslpp -L bos.adt.insttools >/dev/null + [[ $? -ne 0 ]] && echo "must have bos.adt.insttools installed" && exit -1 + +apr_config=`which apr-1-config` +apu_config=`which apu-1-config` + +if [[ -z ${apr_config} && -z ${apu_config} ]] +then + export PATH=/opt/bin:${PATH} + apr_config=`which apr-1-config` + apu_config=`which apu-1-config` +fi + +while test $# -gt 0 +do + # Normalize + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case "$1" in + --with-apr=*) + apr_config=$optarg + ;; + esac + + case "$1" in + --with-apr-util=*) + apu_config=$optarg + ;; + esac + + shift + argc-- +done + +if [ ! -f "$apr_config" -a ! -f "$apr_config/configure.in" ]; then + echo "The apr source directory / apr-1-config could not be found" + echo "If available, install the ASF.apu.rte and ASF.apr.rte filesets" + echo "Usage: $cmd [--with-apr=[dir|file]] [--with-apr-util=[dir|file]]" + exit 1 +fi + +if [ ! -f "$apu_config" -a ! -f "$apu_config/configure.in" ]; then + echo "The apu source directory / apu-1-config could not be found" + echo "If available, install the ASF.apu.rte and ASF.apr.rte filesets" + echo "Usage: $cmd [--with-apr=[dir|file]] [--with-apr-util=[dir|file]]" + exit 1 +fi + +. build/aix/aixinfo LAYOUT=AIX -TEMPDIR=/var/tmp/$USER/httpd-root +TEMPDIR=/var/tmp/$USER/${NAME}.${VERSION} rm -rf $TEMPDIR -## strange interaction between install and libtool requires a regular install -## for all the links to succeed in the TEMPDIR -## httpd-2.0 does not include ssl by default -## will make a seperate build for that later - -> nohup.out -./configure \ - --enable-layout=$LAYOUT \ - --enable-module=so \ - --enable-proxy \ - --enable-cache \ - --enable-disk-cache \ - --with-mpm=worker \ - --enable-mods-shared=all | tee nohup.out - -make | tee -a nohup.out - -make install > install.log -make install DESTDIR=$TEMPDIR - -# will make use of the pkginfo data as input for mkinstallp template -cp build/aix/pkginfo $TEMPDIR +if [[ ! -e ./Makefile ]] # if Makefile exists go faster +then +# --with-mpm=worker \n\ + echo "+ ./configure \n\ + --enable-layout=$LAYOUT \n\ + --with-apr=$apr_config \n\ + --with-apr-util=$apu_config \n\ + --enable-mpms-shared=all \n\ + --enable-mods-shared=all \n\ + --disable-lua > build/aix/configure.out" + +# --with-mpm=worker \ + ./configure \ + --enable-layout=$LAYOUT \ + --with-apr=$apr_config \ + --with-apr-util=$apu_config \ + --enable-mpms-shared=all \ + --enable-mods-shared=all \ + --disable-lua > build/aix/configure.out + [[ $? -ne 0 ]] && echo './configure' returned an error && exit -1 +else + echo $0: using existing Makefile + echo $0: run make distclean to get a standard AIX configure + echo + ls -l ./Makefile config.* + echo +fi + +echo "+ make > build/aix/make.out" +make > build/aix/make.out + [[ $? -ne 0 ]] && echo 'make' returned an error && exit -1 + +echo "+ make install DESTDIR=$TEMPDIR > build/aix/install.out" +make install DESTDIR=$TEMPDIR > build/aix/install.out + [[ $? -ne 0 ]] && echo 'make install' returned an error && exit -1 + +echo "+ build/aix/mkinstallp.ksh $TEMPDIR > build/aix/mkinstallp.out" +build/aix/mkinstallp.ksh $TEMPDIR > build/aix/mkinstallp.out + [[ $? -ne 0 ]] && echo mkinstallp.ksh returned an error && exit -1 -## no seperate filesets for man pages, documents, etc. - -build/aix/aixproto.ksh $TEMPDIR +rm -rf $TEMPDIR -# rm -rf $TEMPDIR -ls -ltr build/aix | grep -i aix +# list installable fileset(s) +echo ======================== +installp -d build/aix -L +echo ======================== Modified: httpd/httpd/branches/2.4.x/config.layout URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/config.layout?rev=1294368&r1=1294367&r2=1294368&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/config.layout (original) +++ httpd/httpd/branches/2.4.x/config.layout Mon Feb 27 22:25:58 2012 @@ -336,12 +336,12 @@ datadir: /var/httpd installbuilddir: ${datadir}/build errordir: ${datadir}/error - iconsdir: ${datadir}/icons htdocsdir: ${datadir}/htdocs - manualdir: ${datadir}/manual cgidir: ${datadir}/cgi-bin + iconsdir: ${prefix}/icons + manualdir: ${prefix}/manual includedir: ${prefix}/include - localstatedir: /var+ + localstatedir: /var/httpd runtimedir: ${localstatedir}/run logfiledir: ${localstatedir}/logs proxycachedir: ${localstatedir}/proxy