- 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 & "example-metadata.xml.in"
- ReplaceInFile ConfigFile, "@-PKGXMLDIR-@", ConvertedDir & "/share/xml/shibboleth"
- If (NOT FileSystemObj.FileExists(ConfigDir & "example-metadata.xml")) then
- FileSystemObj.CopyFile ConfigFile, ConfigDir & "example-metadata.xml", false
- End If
- If (FileSystemObj.FileExists(DistDir & "example-metadata.xml")) then
- FileSystemObj.DeleteFile DistDir & "example-metadata.xml", true
- End If
- FileSystemObj.MoveFile ConfigFile, DistDir & "example-metadata.xml"
-
- ConfigFile = DistDir & "shibboleth.xml.in"
- ReplaceInFile ConfigFile, "@-PKGXMLDIR-@", ConvertedDir & "/share/xml/shibboleth"
- ReplaceInFile ConfigFile, "@-PKGSYSCONFDIR-@", ConvertedDir & "/etc/shibboleth"
- ReplaceInFile ConfigFile, "@-LIBEXECDIR-@", ConvertedDir & "/libexec"
- ReplaceInFile ConfigFile, "@-LOGDIR-@", ConvertedDir & "/var/log/shibboleth"
- ReplaceInFile ConfigFile, "@-PREFIX-@", ConvertedDir
- ReplaceInFile ConfigFile, " <UnixListener address=""@-VARRUNDIR-@/shib-shar.sock""/>", "<!-- <UnixListener address=""@-VARRUNDIR-@/shib-shar.sock""/> -->"
- ReplaceInFile ConfigFile, "<!-- <TCPListener address=""127.0.0.1"" port=""12345"" acl=""127.0.0.1""/> -->", "<TCPListener address=""127.0.0.1"" port=""" & ShibdPort & """ acl=""127.0.0.1""/>"
- If (NOT FileSystemObj.FileExists(ConfigDir & "shibboleth.xml")) then
- FileSystemObj.CopyFile ConfigFile, ConfigDir & "shibboleth.xml", false
- End If
- If (FileSystemObj.FileExists(DistDir & "shibboleth.xml")) then
- FileSystemObj.DeleteFile DistDir & "shibboleth.xml", true
- End If
- FileSystemObj.MoveFile ConfigFile, DistDir & "shibboleth.xml"
-