From: cantor Date: Wed, 30 Jan 2008 18:49:45 +0000 (+0000) Subject: Change remaining XML to unbuilt files. X-Git-Tag: 2.4~573 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=9384ccbef30941750b55e4710e693239840c840b Change remaining XML to unbuilt files. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2713 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/configs/Makefile.am b/configs/Makefile.am index fb6cd71..affbfee 100644 --- a/configs/Makefile.am +++ b/configs/Makefile.am @@ -23,14 +23,14 @@ pkgsysconf_DATA = \ # the config files will not overwrite existing versions. BUILTCONFIGFILES = \ native.logger \ - shibd.logger \ - attribute-map.xml \ - attribute-policy.xml + shibd.logger # While BUILTCONFIGFILES are processed, these are not; so we should pull # them from SRCDIR. CONFIGFILES = \ shibboleth2.xml \ + attribute-map.xml \ + attribute-policy.xml \ example-metadata.xml \ console.logger \ syslog.logger \ @@ -87,12 +87,6 @@ shibd.logger: ${srcdir}/shibd.logger.in Makefile ${top_builddir}/config.status native.logger: ${srcdir}/native.logger.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ -attribute-map.xml: ${srcdir}/attribute-map.xml.in Makefile ${top_builddir}/config.status - $(MAKE) do-build-file FILE=$@ - -attribute-policy.xml: ${srcdir}/attribute-policy.xml.in Makefile ${top_builddir}/config.status - $(MAKE) do-build-file FILE=$@ - all-data-local: $(BUILTCONFIGFILES) install-data-local: all-data-local @@ -123,13 +117,9 @@ CLEANFILES = \ shibd-debian \ shibd-osx.plist \ shibd.logger \ - native.logger \ - attribute-map.xml \ - attribute-policy.xml + native.logger EXTRA_DIST = \ - attribute-map.xml.in \ - attribute-policy.xml.in \ native.logger.in \ shibd.logger.in \ apache.config.in \ diff --git a/configs/attribute-map.xml.in b/configs/attribute-map.xml similarity index 96% rename from configs/attribute-map.xml.in rename to configs/attribute-map.xml index e4ab30b..fa16dad 100644 --- a/configs/attribute-map.xml.in +++ b/configs/attribute-map.xml @@ -1,6 +1,4 @@ - + diff --git a/configs/attribute-policy.xml.in b/configs/attribute-policy.xml similarity index 89% rename from configs/attribute-policy.xml.in rename to configs/attribute-policy.xml index c04d18f..c19ed16 100644 --- a/configs/attribute-policy.xml.in +++ b/configs/attribute-policy.xml @@ -2,8 +2,7 @@ xmlns="urn:mace:shibboleth:2.0:afp:mf:basic" xmlns:basic="urn:mace:shibboleth:2.0:afp:mf:basic" xmlns:afp="urn:mace:shibboleth:2.0:afp" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="urn:mace:shibboleth:2.0:afp @-PKGXMLDIR-@/shibboleth-2.0-afp.xsd urn:mace:shibboleth:2.0:afp:mf:basic @-PKGXMLDIR-@/shibboleth-2.0-afp-mf-basic.xsd urn:mace:shibboleth:2.0:afp:mf:saml @-PKGXMLDIR-@/shibboleth-2.0-afp-mf-saml.xsd"> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> diff --git a/msi/scripts/shib_edit_config_files.vbs b/msi/scripts/shib_edit_config_files.vbs index 2b10f67..175b533 100644 --- a/msi/scripts/shib_edit_config_files.vbs +++ b/msi/scripts/shib_edit_config_files.vbs @@ -60,26 +60,6 @@ if (Err = 0) then 'Afterwards, if the config file doesn't already exist, copy up to etc/shibboleth 'Also strip *.in for files in dist - ConfigFile = DistDir & "attribute-map.xml.in" - ReplaceInFile ConfigFile, "@-PKGXMLDIR-@", ConvertedDir & "/share/xml/shibboleth" - If (NOT FileSystemObj.FileExists(ConfigDir & "attribute-map.xml")) then - FileSystemObj.CopyFile ConfigFile, ConfigDir & "attribute-map.xml", false - End If - If (FileSystemObj.FileExists(DistDir & "attribute-map.xml")) then - FileSystemObj.DeleteFile DistDir & "attribute-map.xml", true - End If - FileSystemObj.MoveFile ConfigFile, DistDir & "attribute-map.xml" - - ConfigFile = DistDir & "attribute-policy.xml.in" - ReplaceInFile ConfigFile, "@-PKGXMLDIR-@", ConvertedDir & "/share/xml/shibboleth" - If (NOT FileSystemObj.FileExists(ConfigDir & "attribute-policy.xml")) then - FileSystemObj.CopyFile ConfigFile, ConfigDir & "attribute-policy.xml", false - End If - If (FileSystemObj.FileExists(DistDir & "attribute-policy.xml")) then - FileSystemObj.DeleteFile DistDir & "attribute-policy.xml", true - End If - FileSystemObj.MoveFile ConfigFile, DistDir & "attribute-policy.xml" - ConfigFile = DistDir & "shibd.logger.in" ReplaceInFile ConfigFile, "@-PKGLOGDIR-@", ConvertedDir & "/var/log/shibboleth" If (NOT FileSystemObj.FileExists(ConfigDir & "shibd.logger")) then @@ -209,6 +189,14 @@ if (Err = 0) then FileSystemObj.CopyFile DistDir & "example-metadata.xml", ConfigDir, false End If + If (NOT FileSystemObj.FileExists(ConfigDir & "attribute-map.xml")) then + FileSystemObj.CopyFile DistDir & "attribute-map.xml", ConfigDir, false + End If + + If (NOT FileSystemObj.FileExists(ConfigDir & "attribute-policy.xml")) then + FileSystemObj.CopyFile DistDir & "attribute-policy.xml", ConfigDir, false + End If + ' Finally, fix up schema catalogs. XMLDir = InstallDir & "\share\xml\xmltooling\"