Relocate XML schemas to share/xml/shibboleth
authorScott Cantor <cantor.2@osu.edu>
Mon, 24 Jan 2005 04:17:58 +0000 (04:17 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 24 Jan 2005 04:17:58 +0000 (04:17 +0000)
shib-target/Makefile.am
shib-target/shib-paths.h.in
shib-target/shib-target.h

index defebb0..db78557 100644 (file)
@@ -3,6 +3,7 @@
 AUTOMAKE_OPTIONS = foreign
 
 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
+pkgxmldir = $(datadir)/xml/@PACKAGE@
 
 lib_LTLIBRARIES = libshib-target.la
 
@@ -59,7 +60,8 @@ do_rpcgen:
 shib-paths.h: ${srcdir}/shib-paths.h.in Makefile ${top_builddir}/config.status
        rm -f $@.tmp
        sed < ${srcdir}/$@.in > $@.tmp \
-           -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:'
+           -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
+           -e 's:@-PKGXMLDIR-@:${pkgxmldir}:'
        cmp -s $@ $@.tmp || mv $@.tmp $@
        rm -f $@.tmp
 
index 6a6bad0..772e1bb 100644 (file)
@@ -62,7 +62,7 @@
 /*
  * SHIB_SCHEMAS defines the default location where the schemas will be installed.
  */
-#define SHIB_SCHEMAS "@-PKGSYSCONFDIR-@"
+#define SHIB_SCHEMAS "@-PKGXMLDIR-@"
 
 /*
  * SHIB_CONFIG defines the default location of the Shib Target Configuration File.
index dc9969e..5a6b3fd 100644 (file)
@@ -66,7 +66,7 @@
 # ifndef SHIBTARGET_EXPORTS
 #  define SHIBTARGET_EXPORTS __declspec(dllimport)
 # endif
-# define SHIB_SCHEMAS "/opt/shibboleth/etc/shibboleth"
+# define SHIB_SCHEMAS "/opt/shibboleth/share/xml/shibboleth"
 # define SHIB_CONFIG "/opt/shibboleth/etc/shibboleth/shibboleth.xml"
 #else
 # include <shib-target/shib-paths.h>