hgomez      01/05/15 02:57:58

  Added:       jk/src/native/apache-2.0 Makefile.linux build-unix.sh
                        install-unix.sh
  Log:
  move to apache-2.0
  
  Revision  Changes    Path
  1.1                  
jakarta-tomcat-connectors/jk/src/native/apache-2.0/Makefile.linux
  
  Index: Makefile.linux
  ===================================================================
  ## You need to edit this file - configure later :-)
  
  ## I assume this one is set up already
  # JAVA_HOME=
  OS=linux
  
  JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS}
  JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L ${JAVA_HOME}/lib/${ARCH}/native_threads
  
  #
  # I've built a RPM, named apache2 (ftp://ftp.falsehope.com/home/gomez/apache2/),
  # which postfix all apache2 stuff with 2, ie apxs = apxs2. 
  # It will allow to have both apache 1.3 and 2.0 the same time on the system
  #
  #ifndef APXS
  APXS=/usr/sbin/apxs2
  #endif
  
  JK=../common
  SRCS=${JK}/jk_ajp12_worker.c ${JK}/jk_connect.c ${JK}/jk_msg_buff.c ${JK}/jk_util.c 
${JK}/jk_ajp13.c \
       ${JK}/jk_jni_worker.c ${JK}/jk_pool.c ${JK}/jk_worker.c ${JK}/jk_ajp13_worker.c 
${JK}/jk_lb_worker.c \
       ${JK}/jk_sockbuf.c  ${JK}/jk_map.c ${JK}/jk_uri_worker_map.c          
  
  LSRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \
        jk_jni_worker.c jk_pool.c jk_worker.c jk_ajp13_worker.c jk_lb_worker.c \
        jk_sockbuf.c  jk_map.c jk_uri_worker_map.c          
  
  
  all: mod_jk.so
  
  mod_jk.so: 
        $(APXS) -I ${JK} ${JAVA_INCL} -c -o mod_jk.la mod_jk.c $(SRCS) 
        mv .libs/mod_jk.so .
  
  clean:
        rm -f *.o *.so *.lo *.la *.slo ${JK}/*.o ${JK}/*.so ${JK}/*.lo ${JK}/*.la 
${JK}/*.slo
        rm -rf .libs
  
  
  
  1.1                  jakarta-tomcat-connectors/jk/src/native/apache-2.0/build-unix.sh
  
  Index: build-unix.sh
  ===================================================================
  #!/bin/sh
  
  # $Id: build-unix.sh,v 1.1 2001/05/15 09:57:56 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 -I$APACHE_HOME/include/apr-util $JAVA_INCLUDE"
  # SRC="mod_jk.c ../common/*.c"
  SRC="*.c"
  
  #echo INCLUDE=$INCLUDE
  #echo SRC=$SRC
  
  # Run APXS to compile module
  echo Compiling mod_jk
  cp ../common/*.c .
  $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"
  
  
  
  
  1.1                  
jakarta-tomcat-connectors/jk/src/native/apache-2.0/install-unix.sh
  
  Index: install-unix.sh
  ===================================================================
  #!/bin/sh
  
  # $Id: install-unix.sh,v 1.1 2001/05/15 09:57:56 hgomez Exp $
  
  # install.sh for mod_jk.so
  # copies built mod_jk.so into apache/libexec dir
  # Usage: install-unix.sh 
  
  # Sets a bunch of variables and calls APXS to install mod_jk
  # on Unix.  An alternative to the makefiles, hopefully more portable.
  
  # Find APACHE_HOME
  if [ -z "$APACHE_HOME" ]
  then
  # Where your apache lives
  APACHE_HOME=/usr/local/apache
  fi
  
  # 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. Add the following line to $APACHE_HOME/conf/httpd.conf:
  echo "   " Include TOMCAT_HOME/conf/mod_jk.conf-auto
  echo '(replace "TOMCAT_HOME" with the actual directory name)'
  
  
  

Reply via email to