Changeset 18815

Show
Ignore:
Timestamp:
26.03.2009 20:34:46 (10 years ago)
Author:
ak19
Message:

Making the apache webserver relocatable for the release-kit. 1. Modified the configure file so that it configures the apache webserver using the with-layout flag set to BinaryDistribution?. With this flag set, it generates shell scripts of apachectl and the rest instead of binaries, so that absolute location paths can be replaced. 2. Added new target apache-for-dist to Makefile.in that can be run for the release kit after make install to prepare the compiled up web server for relocation at a later time on a different machine (at that point the installer will call the install-bindist.sh script in the apache-httpd webserver folder upon reloaction)

Location:
gsdl/trunk/runtime-src/packages
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/packages/Makefile.in

    r18761 r18815  
    127127          (cd $$subdir && $(MAKE) distclean || exit 0) ; \ 
    128128        done 
     129 
     130apache-for-dist: 
     131    cp apache-httpd/apxs.in ${GSDLHOME}/apache-httpd/${GSDLOS}/apxs.in 
     132    cp apache-httpd/install-bindist.sh ${GSDLHOME}/apache-httpd/${GSDLOS}/install-bindist.sh 
     133    chmod 755 ${GSDLHOME}/apache-httpd/${GSDLOS}/install-bindist.sh 
     134    for one_file in apachectl envvars envvars-std; do \ 
     135      sed -e "s%${GSDLHOME}/apache-httpd/${GSDLOS}%*\*\APACHE_HOME_OS\*\*%" ${GSDLHOME}/apache-httpd/${GSDLOS}/bin/$$one_file > ${GSDLHOME}/apache-httpd/${GSDLOS}/bin/$$one_file.tmp ; \ 
     136      mv ${GSDLHOME}/apache-httpd/${GSDLOS}/bin/$$one_file.tmp ${GSDLHOME}/apache-httpd/${GSDLOS}/bin/$$one_file ; \ 
     137    done 
  • gsdl/trunk/runtime-src/packages/configure

    r18758 r18815  
    193193  gzip -dc httpd-2.2.11.tar.gz | tar -xf - 
    194194  cd httpd-2.2.11&& \ 
    195     ./configure $CACHE_FILE --with-layout=Apache --enable-most --prefix="${prefix}/apache-httpd/${GSDLOS}" $HOSTTARGETFLAGS 
     195    ./configure $CACHE_FILE --with-layout=BinaryDistribution --enable-most --prefix="${prefix}/apache-httpd/${GSDLOS}" $HOSTTARGETFLAGS 
    196196else 
    197197  echo "Apache httpd support disabled"