[csw-devel] SF.net SVN: gar:[11628] csw/mgar/pkg/apache2/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Nov 15 04:34:49 CET 2010


Revision: 11628
          http://gar.svn.sourceforge.net/gar/?rev=11628&view=rev
Author:   bdwalton
Date:     2010-11-15 03:34:49 +0000 (Mon, 15 Nov 2010)

Log Message:
-----------
apache2: completely remove postinstall script as it now lives in build CAS files

Modified Paths:
--------------
    csw/mgar/pkg/apache2/trunk/Makefile

Removed Paths:
-------------
    csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall

Modified: csw/mgar/pkg/apache2/trunk/Makefile
===================================================================
--- csw/mgar/pkg/apache2/trunk/Makefile	2010-11-15 03:25:15 UTC (rev 11627)
+++ csw/mgar/pkg/apache2/trunk/Makefile	2010-11-15 03:34:49 UTC (rev 11628)
@@ -37,7 +37,7 @@
 # Standard package bits
 DISTFILES += CSWapache2.killproc cswapache2
 
-DISTFILES += CSWapache2.preinstall CSWapache2.postinstall
+DISTFILES += CSWapache2.preinstall
 
 # Configuration templates
 DISTFILES += update20to22 server.crt.build_cas

Deleted: csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall
===================================================================
--- csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall	2010-11-15 03:25:15 UTC (rev 11627)
+++ csw/mgar/pkg/apache2/trunk/files/CSWapache2.postinstall	2010-11-15 03:34:49 UTC (rev 11628)
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-ROOT=${PKG_INSTALL_ROOT:-/}
-CSW_PREFIX=${ROOT}/opt/csw
-AP2_PREFIX=$CSW_PREFIX/apache2
-AP2_BINDIR=$AP2_PREFIX/sbin
-AP2_LIBEXEC=$AP2_PREFIX/libexec
-AP2_CONFDIR=$AP2_PREFIX/etc
-AP2_EXTRADIR=$AP2_CONFDIR/extra
-
-
-
-UPGRADE_CONFIGS="\
-    httpd.conf \
-    ssl.conf \
-    extra/httpd-ssl.conf \
-    extra/httpd-mpm.conf \
-    "
-# Don't overwrite config if it exists
-warn_update=0
-# For use in config files and certificate generation
-hostname=`hostname`
-echo "Checking configuration files:"
-for file in $UPGRADE_CONFIGS; do
-    config=$AP2_CONFDIR/$file
-    if [ -f "$config" ]; then 
-        if [ -n "`grep mod_auth.so $config`" ]; then
-            echo "Updating syntax of $config to Apache 2.2"
-            $AP2_BINDIR/update20to22 $config
-            warn_update=1
-        fi
-        # Ensure that the PidFile is pointed at ServerRoot relative path.
-        perl -i -plne 's#PidFile /var#PidFile var#'
-    fi
-done
-
-if [ $warn_update -eq 1 ] ; then
-cat << EOF
-
-*** NOTICE: Existing configuration files have been updated to
-*** Apache 2.2 syntax.  Additional files can be updated using
-*** /opt/csw/apache2/sbin/update20to22.
-
-EOF
-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