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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Dec 6 03:15:39 CET 2010


Revision: 11798
          http://gar.svn.sourceforge.net/gar/?rev=11798&view=rev
Author:   bdwalton
Date:     2010-12-06 02:15:39 +0000 (Mon, 06 Dec 2010)

Log Message:
-----------
apache2: handle the index.html file again (accidentally dropped with postinstall script)

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

Added Paths:
-----------
    csw/mgar/pkg/apache2/trunk/files/index_cas_template

Modified: csw/mgar/pkg/apache2/trunk/Makefile
===================================================================
--- csw/mgar/pkg/apache2/trunk/Makefile	2010-12-06 00:37:38 UTC (rev 11797)
+++ csw/mgar/pkg/apache2/trunk/Makefile	2010-12-06 02:15:39 UTC (rev 11798)
@@ -198,7 +198,7 @@
 PKGFILES_CSWap2worker = .*share/doc/ap2_worker.* .*sbin/httpd.worker
 PKGFILES_CSWapache2rt = .*share/doc/apache2rt.*
 
-PROTOTYPE_FILTER = gawk '$$$$3 ~ /etc\/opt\/csw\/apache2/ && $$$$1 == "f" && $$$$3 !~ /CSW/ && $$$$3 !~ /original/ {$$$$1 = "e"; $$$$2 = "build"}; $$$$3 ~ /ssl_cert_migration.CSW/ {$$$$1 = "e"; $$$$2 = "build"}; {print}'
+PROTOTYPE_FILTER = gawk '$$$$3 ~ /etc\/opt\/csw\/apache2/ && $$$$1 == "f" && $$$$3 !~ /CSW/ && $$$$3 !~ /original/ {$$$$1 = "e"; $$$$2 = "build"}; $$$$3 ~ /ssl_cert_migration.CSW/ {$$$$1 = "e"; $$$$2 = "build"}; $$$$3 ~ /index.html.CSW/ {$$$$1 = "e"; $$$$2 = "build"}; {print}'
 
 include gar/category.mk
 
@@ -247,5 +247,8 @@
 			mv $$f $$f.CSW; \
 			$(abspath $(FILEDIR))/build_cas_template $$f > $$f; \
 		done; \
-		cp $(abspath $(FILEDIR))/ssl_cas_template ssl_cert_migration.CSW )
+	   cd $(PKGROOT)/opt/csw/apache2/share/htdocs; \
+		rm index.html; \
+		cp $(abspath $(FILEDIR))/index_cas_template index.html.CSW; \
+	   cp $(abspath $(FILEDIR))/ssl_cas_template ssl_cert_migration.CSW )
 	@$(MAKECOOKIE)

Added: csw/mgar/pkg/apache2/trunk/files/index_cas_template
===================================================================
--- csw/mgar/pkg/apache2/trunk/files/index_cas_template	                        (rev 0)
+++ csw/mgar/pkg/apache2/trunk/files/index_cas_template	2010-12-06 02:15:39 UTC (rev 11798)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+PIR=${PKG_INSTALL_ROOT:-/}
+INDEX_HTML=${PIR}/opt/csw/apache2/share/htdocs/index.html
+
+
+
+if [ "$1" = install ]; then
+   if [ ! -f "$INDEX_HTML" ]; then
+      echo "Installing default index.html..." >&2
+      echo "<html><body><h1>It works!</h1></body></html>" > ${INDEX_HTML}
+   fi
+
+   # create our 'template' version of the file regardless of normal version
+   echo "<html><body><h1>It works!</h1></body></html>"
+fi


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