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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Nov 15 03:56:27 CET 2010


Revision: 11624
          http://gar.svn.sourceforge.net/gar/?rev=11624&view=rev
Author:   bdwalton
Date:     2010-11-15 02:56:27 +0000 (Mon, 15 Nov 2010)

Log Message:
-----------
apache2: update prototype filter for server.crt file handline; ensure the post-merge routine sets tight perms on this too

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

Modified: csw/mgar/pkg/apache2/trunk/Makefile
===================================================================
--- csw/mgar/pkg/apache2/trunk/Makefile	2010-11-15 02:53:20 UTC (rev 11623)
+++ csw/mgar/pkg/apache2/trunk/Makefile	2010-11-15 02:56:27 UTC (rev 11624)
@@ -198,7 +198,7 @@
 PKGFILES_CSWap2worker = .*share/doc/ap2_worker.* .*sbin/httpd.worker
 PKGFILES_CSWapache2rt = .*share/doc/apache2rt.*
 
-PROTOTYPE_FILTER = gawk '$$$$3 ~ /apache2\/etc/ && $$$$1 == "f" && $$$$3 !~ /CSW/ && $$$$3 !~ /original/ {$$$$1 = "e"; $$$$2 = "build"}; {print}'
+PROTOTYPE_FILTER = gawk '$$$$3 ~ /apache2\/etc/ && $$$$1 == "f" && $$$$3 !~ /CSW/ && $$$$3 !~ /original/ {$$$$1 = "e"; $$$$2 = "build"}; $$$$3 ~ /server.crt/ { $$$$4 = "0600" }; {print}'
 
 include gar/category.mk
 
@@ -250,6 +250,7 @@
 			$(abspath $(FILEDIR))/build_cas_template $$f > $$f; \
 		done )
 	@echo "  => Creating ssl server.crt build CAS template."
-	@cp -p $(WORKDIR)/server.crt.build_cas $(PKGROOT)/$(prefix)/apache2/etc/server.crt
+	@(cp -p $(WORKDIR)/server.crt.build_cas $(PKGROOT)/$(prefix)/apache2/etc/server.crt; \
+		chmod 600 $(PKGROOT/$(prefix)/apache2/etc/server.crt )
 	@$(MAKECOOKIE)
 


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