[csw-devel] SF.net SVN: gar:[11116] csw/mgar/pkg/cswclassutils/trunk/files

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Fri Oct 1 14:23:35 CEST 2010


Revision: 11116
          http://gar.svn.sourceforge.net/gar/?rev=11116&view=rev
Author:   bdwalton
Date:     2010-10-01 12:23:34 +0000 (Fri, 01 Oct 2010)

Log Message:
-----------
cswclassutils: move the ap2mod CAS scripts for delivery with apache

Removed Paths:
-------------
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswap2mod
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswap2mod

Deleted: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswap2mod
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswap2mod	2010-10-01 08:45:06 UTC (rev 11115)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswap2mod	2010-10-01 12:23:34 UTC (rev 11116)
@@ -1,79 +0,0 @@
-#!/bin/sh
-#
-# i.cswap2mod - Class action script for installing apache2 modules
-#
-# Written by Ben Walton
-#
-# 2010-09-29 First Release
-#
-
-# Source csw.conf, if it exists
-if [ -f $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf ] ; then
-  . $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf
-fi
-if [ -f $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf ] ; then
-  . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
-fi
-
-AP2_PREFIX=/opt/csw/apache2
-AP2_BINDIR=$AP2_PREFIX/sbin
-AP2_LIBEXEC=$AP2_PREFIX/libexec
-AP2_CONFDIR=$AP2_PREFIX/etc
-AP2_CONFIG=$AP2_CONFDIR/httpd.conf
-AP2_APXS=$AP2_BINDIR/apxs
-
-PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
-
-while read src dest; do
-      # Place the file first
-      /usr/bin/cp -p $src $dest || exit 2
-      echo $dest
-      
-      CONF=$PKG_INSTALL_ROOT/$AP2_CONFIG
-      APXS=$PKG_INSTALL_ROOT/$AP2_APXS
-      MODFILE=`basename $dest`
-      MODNAME=`echo $MODFILE | sed 's/mod_//; s/\.so$//'`
-
-      # Modules will be enabled by default, but a global kill switch
-      # is checked , followed by a module specific value.  Thus,
-      # either ap2_enable_modules or ap2_enable_suexec (for example)
-      # could disable activation of the suexec module.  The 
-      #
-      # This value is passed to apxs (-a: add, enable; -A: add,
-      # disable)
-      enmod=-a
-
-      if [ "$ap2_enable_modules" = "no" ]; then
-	  enmod=-A
-      fi
-
-      eval ap2_mod_specific="\$ap2_enable_$MODNAME"
-      if [ "$ap2_mod_specific" = "no" ]; then
-	  enmod=-A
-      elif [ "$ap2_mod_specific" = "yes" ]; then
-	  enmod=-a
-      fi
-
-      if [ -f "$CONF" -a -x "$APXS" ]; then
-	  # Add the module module, optionally enabling it by default
-	  chroot $PKG_INSTALL_ROOT \
-	      $APXS -e $enmod -n $MODNAME $MODFILE
-	  conftouched=1
-      fi
-done
-
-if [ "$conftouched" = "1" ]; then
-	  cat <<END
-
-
-NOTICE: One or more LoadModule lines was added to your httpd.conf.
-Depending on your csw.conf settings for ap2_enable_modules or the
-ap2_enable_\$modulename they may be enabled.  Please review the
-changes, make any futher modifications and then restart apache as
-required.
-
-
-END
-fi
-
-exit 0

Deleted: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswap2mod
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswap2mod	2010-10-01 08:45:06 UTC (rev 11115)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswap2mod	2010-10-01 12:23:34 UTC (rev 11116)
@@ -1,50 +0,0 @@
-#!/bin/sh
-#
-# r.cswap2mod - Class action script for removing apache2 modules
-#
-# Written by Ben Walton
-#
-# 2010-09-29 First Release
-#
-
-AP2_PREFIX=/opt/csw/apache2
-AP2_BINDIR=$AP2_PREFIX/sbin
-AP2_LIBEXEC=$AP2_PREFIX/libexec
-AP2_CONFDIR=$AP2_PREFIX/etc
-AP2_CONFIG=$AP2_CONFDIR/httpd.conf
-AP2_APXS=$AP2_BINDIR/apxs
-
-PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
-
-while read dest; do
-      echo $dest
-      
-      CONF=$PKG_INSTALL_ROOT/$AP2_CONFIG
-      APXS=$PKG_INSTALL_ROOT/$AP2_APXS
-      MODFILE=`basename $dest`
-      MODNAME=`echo $MODFILE | sed 's/mod_//; s/\.so$//'`
-
-      if [ -f "$CONF" -a -x "$APXS" ]; then
-	  # Disable the module
-	  chroot $PKG_INSTALL_ROOT \
-	      $APXS -e -A -n $MODNAME $MODFILE
-	  conftouched=1
-      fi
-
-      # Now actually remove the file.
-      /usr/bin/rm -f $dest || exit 2
-done
-
-if [ "$conftouched" = "1" ]; then
-	  cat <<END
-
-
-NOTICE: One or more apache modules was disabled in your apache
-configuration.  Please review these changes and restart apache as
-required.
-
-
-END
-fi
-
-exit 0


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list