hgomez      01/05/15 03:00:30

  Added:       jk/src/native/apache-1.3 build-hpux-cc.sh build-hpux.sh
                        build-solaris.sh build-unix.sh
  Log:
  move to apache-1.3
  
  Revision  Changes    Path
  1.1                  
jakarta-tomcat-connectors/jk/src/native/apache-1.3/build-hpux-cc.sh
  
  Index: build-hpux-cc.sh
  ===================================================================
  #!/bin/sh
  
  # build-hpux.sh for mod_jk.so
  #
  # Usage: # sh build-hpux.sh
  # for hpux 11 using gcc
  # Note: See README-hpux for details.  This builds mod_jk without JNI support.
  #
  # Mike Braden
  
  # Update the following according to your installation
  
  APACHE_HOME=/usr/local/apache
  JAVA_HOME=/opt/java1.3
  
  #### End of configuration - do not change below
  
  if [ -f $APACHE_HOME/bin/apxs ] ; then
     APXS=$APACHE_HOME/bin/apxs
  else
     echo Error: Unable to locate apxs.
     echo Verify that APACHE_HOME is set correctly in this script.
     exit 1
  fi
  if [ ! -d $JAVA_HOME/include/hp-ux ] ; then
     echo Error: Unable to locate Java libraries.
     echo Verify that JAVA_HOME is set correctly in this script.
     exit 1
  fi
  
  JAVA_INCLUDE="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/hp-ux"
  
  INCLUDE="-I../common $JAVA_INCLUDE"
  
  #SRC="../common/jk_ajp12_worker.c ../common/jk_ajp13.c ../common/jk_ajp13_worker.c 
../common/jk_connect.c ../common/jk_lb_worker.c ../common/jk_map.c 
../common/jk_msg_buff.c ../common/jk_nwmain.c ../common/jk_pool.c 
../common/jk_sockbuf.c ../common/jk_uri_worker_map.c ../common/jk_util.c 
../common/jk_worker.c mod_jk.c"
  
  SRC="../common/*.c mod_jk.c"
  
  # Run APXS to compile the mod_jk module and its components
  echo Building mod_jk
  $APXS -o mod_jk.so $INCLUDE -c $SRC
  
  # Check to see if the last command completed
  if [ $? -ne 0 ] ; then
    echo Error with apxs
    exit 1
  fi
  
  echo mod_jk build complete.
  
  #
  # Clean up
  #
  rm jk_*.o
  rm mod_jk.o
  
  echo Configuring apache...
  
  # Use apxs to add the correct lines to httpd.conf
  # Since our auto-config does this in the include
  # file (mod_jk-conf-auto), we'll add them as
  # commented statements for change later if
  # we decide not to use the auto-conf.
  #
  #$APXS -i -a mod_jk.so
  $APXS -i -A mod_jk.so
  
  # Check to see if the last command completed
  if [ $? -ne 0 ] ; then
    echo Error using apxs to add configuration to httpd.conf
    exit 1
  fi
  
  # Steps to complete install
  cat<<END
  
  Build and configuration of mod_jk is complete.
  
  To finish the installation, edit your apache/conf/httpd.conf file and
  add the following line to the end of the file:
  (Note: Change TOMCAT_HOME to the value of $TOMCAT_HOME)
  
  Include TOMCAT_HOME/conf/jk/mod_jk.conf-auto
  
  Example (/usr/local/apache/conf/httpd.conf):
  
  Include /usr/local/jakarta-tomcat-3.3/conf/jk/mod_jk.conf-auto
  
  Next copy TOMCAT_HOME/conf/jk/workers.properties.unix to
  TOMCAT_HOME/conf/jk/workers.properties
  
  Finally, add the apache auto-config setting to Tomcat.
  See the release notes for Tomcat 3.3 for information on enabling
  the auto-configure script in section 2, Tomcat Configuration:
  
  "To turn these on, add the following modules after the
    <AutoWebApp ... /> module in the server.xml file:
  
    Apache configs:  <ApacheConfig />"
  
  Example (TOMCAT_HOME/conf/serverl.xml):
  
          <AutoWebApp dir="webapps" host="DEFAULT" />
  
          <ApacheConfig />
  
  For more information, see the mod_jk-howto located in the docs dir
  of TOMCAT. (doc/mod_jk-howto.html)
  END
  
  
  
  1.1                  jakarta-tomcat-connectors/jk/src/native/apache-1.3/build-hpux.sh
  
  Index: build-hpux.sh
  ===================================================================
  #!/bin/sh
  
  # build-hpux.sh for mod_jk.so
  #
  # Usage: # sh build-hpux.sh
  # for hpux 11 using gcc
  # Note: See README-hpux for details.  This builds mod_jk without JNI support.
  #
  # Mike Braden
  
  # Update the following according to your installation
  
  APACHE_HOME=/usr/local/apache
  JAVA_HOME=/opt/java1.3
  
  #### End of configuration - do not change below
  
  if [ -f $APACHE_HOME/bin/apxs ] ; then
     APXS=$APACHE_HOME/bin/apxs
  else
     echo Error: Unable to locate apxs.
     echo Verify that APACHE_HOME is set correctly in this script.
     exit 1
  fi
  if [ ! -d $JAVA_HOME/include/hp-ux ] ; then
     echo Error: Unable to locate Java libraries.
     echo Verify that JAVA_HOME is set correctly in this script.
     exit 1
  fi
  
  JAVA_INCLUDE="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/hp-ux"
  
  INCLUDE="-I../common $JAVA_INCLUDE"
  
  SRC="../common/jk_ajp12_worker.c ../common/jk_ajp13.c ../common/jk_ajp13_worker.c 
../common/jk_connect.c ../common/jk_lb_worker.c ../common/jk_map.c 
../common/jk_msg_buff.c ../common/jk_nwmain.c ../common/jk_pool.c 
../common/jk_sockbuf.c ../common/jk_uri_worker_map.c ../common/jk_util.c 
../common/jk_worker.c mod_jk.c"
  
  # Run APXS to compile the mod_jk module and its components
  echo Building mod_jk
  $APXS -DHPUX11GCC -o mod_jk.so $INCLUDE -c $SRC
  
  # Check to see if the last command completed
  if [ $? -ne 0 ] ; then
    echo Error with apxs
    exit 1
  fi
  
  echo mod_jk build complete.
  
  #
  # Clean up
  #
  rm jk_*.o
  rm mod_jk.o
  
  echo Configuring apache...
  
  # Use apxs to add the correct lines to httpd.conf
  # Since our auto-config does this in the include
  # file (mod_jk-conf-auto), we'll add them as
  # commented statements for change later if
  # we decide not to use the auto-conf.
  #
  #$APXS -i -a mod_jk.so
  $APXS -i -A mod_jk.so
  
  # Check to see if the last command completed
  if [ $? -ne 0 ] ; then
    echo Error using apxs to add configuration to httpd.conf
    exit 1
  fi
  
  # Steps to complete install
  cat<<END
  
  Build and configuration of mod_jk is complete.
  
  To finish the installation, edit your apache/conf/httpd.conf file and
  add the following line to the end of the file:
  (Note: Change TOMCAT_HOME to the value of \$TOMCAT_HOME)
  
  Include TOMCAT_HOME/conf/jk/mod_jk.conf-auto
  
  Example (/usr/local/apache/conf/httpd.conf):
  
  Include /usr/local/jakarta-tomcat-3.3/conf/jk/mod_jk.conf-auto
  
  Next copy TOMCAT_HOME/conf/jk/workers.properties.unix to
  TOMCAT_HOME/conf/jk/workers.properties
  
  Finally, add the apache auto-config setting to Tomcat.
  See the release notes for Tomcat 3.3 for information on enabling
  the auto-configure script in section 2, Tomcat Configuration:
  
  "To turn these on, add the following modules after the
    <AutoWebApp ... /> module in the server.xml file:
  
    Apache configs:  <ApacheConfig />"
  
  Example (TOMCAT_HOME/conf/serverl.xml):
  
          <AutoWebApp dir="webapps" host="DEFAULT" />
  
          <ApacheConfig />
  
  For more information, see the mod_jk-howto located in the docs dir
  of TOMCAT. (doc/mod_jk-howto.html)
  END
  
  
  
  1.1                  
jakarta-tomcat-connectors/jk/src/native/apache-1.3/build-solaris.sh
  
  Index: build-solaris.sh
  ===================================================================
  #!/bin/sh
  
  # build-solaris.sh for mod_jk.so
  #
  # Usage: # sh build-solaris.sh
  # for Solaris 8 using GNU gcc
  # Note: See README-solaris for details.
  #
  # Mike Braden
  # March 05, 2001
  
  # Update the following according to your installation
  
  APACHE_HOME=/usr/local/apache
  JAVA_HOME=/usr/java
  
  #### End of configuration - do not change below
  
  if [ -f $APACHE_HOME/bin/apxs ] ; then
     APXS=$APACHE_HOME/bin/apxs
  else
     echo Error: Unable to locate apxs.
     echo Verify that APACHE_HOME is set correctly in this script.
     exit 1
  fi
  if [ ! -d $JAVA_HOME/include/solaris ] ; then
     echo Error: Unable to locate Java libraries.
     echo Verify that JAVA_HOME is set correctly in this script.
     exit 1
  fi
  
  JAVA_INCLUDE="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris"
  
  INCLUDE="-I../common $JAVA_INCLUDE"
  SRC="../common/*.c mod_jk.c"
  
  # Run APXS to compile the mod_jk module and its components
  echo Building mod_jk
  $APXS -S CFLAGS="-DSOLARIS -DUSE_EXPAT -I../lib/expat-lite" -o mod_jk.so $INCLUDE 
-lposix4 -c $SRC
  
  # Check to see if the last command completed
  if [ $? -ne 0 ] ; then
    echo Error with apxs
    exit 1
  fi
  
  echo mod_jk build complete.
  
  #
  # Clean up
  #
  rm jk_*.o
  rm mod_jk.o
  
  echo Configuring apache...
  
  # Use apxs to add the correct lines to httpd.conf
  # Since our auto-config does this in the include
  # file (mod_jk-conf-auto), we'll add them as
  # commented statements for change later if
  # we decide not to use the auto-conf.
  #
  #$APXS -i -a mod_jk.so
  $APXS -i -A mod_jk.so
  
  # Check to see if the last command completed
  if [ $? -ne 0 ] ; then
    echo Error using apxs to add configuration to httpd.conf
    exit 1
  fi
  
  # Steps to complete install
  cat<<END
  
  Build and configuration of mod_jk is complete.
  
  To finish the installation, edit your apache/conf/httpd.conf file and
  add the following line to the end of the file:
  (Note: Change TOMCAT_HOME to the value of \$TOMCAT_HOME)
  
  Include TOMCAT_HOME/conf/jk/mod_jk.conf-auto
  
  Example (/usr/local/apache/conf/httpd.conf):
  
  Include /usr/local/jakarta-tomcat-3.3/conf/jk/mod_jk.conf-auto
  
  Next copy TOMCAT_HOME/conf/jk/workers.properties.unix to
  TOMCAT_HOME/conf/jk/workers.properties
  
  Finally, add the apache auto-config setting to Tomcat.
  See the release notes for Tomcat 3.3 for information on enabling
  the auto-configure script in section 2, Tomcat Configuration:
  
  "To turn these on, add the following modules after the
    <AutoWebApp ... /> module in the server.xml file:
  
    Apache configs:  <ApacheConfig />"
  
  Example (TOMCAT_HOME/conf/serverl.xml):
  
          <AutoWebApp dir="webapps" host="DEFAULT" />
  
          <ApacheConfig />
  
  For more information, see the mod_jk-howto located in the docs dir
  of TOMCAT. (doc/mod_jk-howto.html)
  END
  
  
  
  1.1                  jakarta-tomcat-connectors/jk/src/native/apache-1.3/build-unix.sh
  
  Index: build-unix.sh
  ===================================================================
  #!/bin/sh
  
  # $Id: build-unix.sh,v 1.1 2001/05/15 10:00:29 hgomez Exp $
  
  # build.sh for mod_jk.so
  # Usage: build-unix.sh 
  
  # Sets a bunch of variables and calls APXS to build mod_jk
  # on Unix.  An alternative to the makefiles, hopefully more portable.
  
  # Configure by changing the following variables:
  
  # JAVA_HOME is required, but it should be set in the environment, not here
  #JAVA_HOME=/usr/local/jdk1.2
  
  # Where your apache lives
  if [ -z "$APACHE_HOME" ]
  then
  echo APACHE_HOME=/usr/local/apache
  APACHE_HOME=/usr/local/apache
  fi
  
  # name of subdir under JAVA_HOME/jre/lib
  ARCH=i386
  
  CFLAGS="-DHAVE_CONFIG_H -g -fpic  -DSHARED_MODULE -O2 -D_REENTRANT -pthread -DLINUX 
-Wall"
  
  APXS=$APACHE_HOME/bin/apxs
  
  # Find JAVA_HOME
  if [ -z "$JAVA_HOME" ]
  then
  echo "Please set JAVA_HOME"
  exit 1
  fi
  
  # Figure out INCLUDE directories
  
  # use "find" to pick the right include directories for current machine
  JAVA_INCLUDE="`find ${JAVA_HOME}/include -type d -printf \"-I %p \"`" ||  echo "find 
failed, edit build-unix.sh source to fix"
  
  # if "find" fails, use (uncomment) the following instead, substituting your
  # platform for "linux"
  # JAVA_INCLUDE="-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/linux"
  
  INCLUDE="-I ../common $JAVA_INCLUDE"
  SRC="mod_jk.c ../common/*.c"
  
  #echo INCLUDE=$INCLUDE
  #echo SRC=$SRC
  
  # Run APXS to compile module
  echo Compiling mod_jk
  $APXS -c -o mod_jk.so $INCLUDE $LIB $SRC
  
  # Copy mod_jk.so into the apache libexec directory
  echo Installing mod_jk.so into $APACHE_HOME/libexec
  cp mod_jk.so $APACHE_HOME/libexec
  
  # Done!
  echo "Done. Install by running ./install-unix.sh"
  
  
  
  

Reply via email to