Updated Solaris packaging files.
[shibboleth/cpp-opensaml.git] / postinstall
diff --git a/postinstall b/postinstall
new file mode 100644 (file)
index 0000000..49b5f30
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh\r
+\r
+cd ${CLIENT_BASEDIR}/share/xml/opensaml\r
+\r
+sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" saml10-catalog.xml > catalog.xml.tmp\r
+mv catalog.xml.tmp saml10-catalog.xml\r
+chmod 644 saml10-catalog.xml\r
+\r
+sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" saml11-catalog.xml > catalog.xml.tmp\r
+mv catalog.xml.tmp saml11-catalog.xml\r
+chmod 644 saml11-catalog.xml\r
+\r
+sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" saml20-catalog.xml > catalog.xml.tmp\r
+mv catalog.xml.tmp saml20-catalog.xml\r
+chmod 644 saml20-catalog.xml\r
+\r
+exit 0\r