X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configs%2FMakefile.am;h=31154b137cf5ad01824820efe2fa16051058b001;hb=1547c01785f3d5d740629a0f192f85b36888239b;hp=f403a3437e046d64287623cf55f44c9fcf5eac02;hpb=720938f839ffaa940bcd16537afdae3bec484eb0;p=shibboleth%2Fcpp-sp.git diff --git a/configs/Makefile.am b/configs/Makefile.am index f403a34..31154b1 100644 --- a/configs/Makefile.am +++ b/configs/Makefile.am @@ -2,40 +2,60 @@ AUTOMAKE_OPTIONS = foreign -pkglogdir = ${localstatedir}/log/@PACKAGE@ -shirelogdir = ${localstatedir}/log/httpd -pkgxmldir = $(datadir)/xml/@PACKAGE@ -varrundir = $(localstatedir)/run -pkgsysconfdir = $(sysconfdir)/@PACKAGE@ +pkglibdir = ${libdir}/@PACKAGE_NAME@ +pkglogdir = ${localstatedir}/log/@PACKAGE_NAME@ +shirelogdir = ${localstatedir}/log/@PACKAGE_NAME@-www +pkgxmldir = $(datadir)/xml/@PACKAGE_NAME@ +pkgwebdir = $(datadir)/@PACKAGE_NAME@ +pkgrundir = $(localstatedir)/run/@PACKAGE_NAME@ +pkgcachedir = $(localstatedir)/cache/@PACKAGE_NAME@ +pkgsysconfdir = $(sysconfdir)/@PACKAGE_NAME@ pkgsysconf_DATA = \ - shibd \ + shibd-systemd \ + shibd-redhat \ + shibd-amazon \ + shibd-suse \ + shibd-debian \ + shibd-osx.plist \ apache.config \ apache2.config \ - apache22.config + apache22.config \ + apache24.config \ + keygen.sh \ + metagen.sh \ + upgrade.xsl # The config files are installed "special". Unlike the entries in # pkgsysconf_DATA, these files are installed as "foo.dist" and only # installed as "foo" if "foo" does not already exist. In other words, # the config files will not overwrite existing versions. BUILTCONFIGFILES = \ - shibboleth.xml \ native.logger \ - shibd.logger \ - resolver-simple.xml \ - example-metadata.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 \ + protocols.xml \ + security-policy.xml \ + example-metadata.xml \ + example-shibboleth2.xml \ console.logger \ syslog.logger \ accessError.html \ - rmError.html \ + attrChecker.html \ sessionError.html \ metadataError.html \ - sslError.html \ - sp-example.key \ - sp-example.crt + bindingTemplate.html \ + discoveryTemplate.html \ + postTemplate.html \ + localLogout.html \ + globalLogout.html \ + partialLogout.html \ + sslError.html # # Some of these need building @@ -43,13 +63,15 @@ CONFIGFILES = \ do-build-file: rm -f ${FILE}.tmp sed < ${srcdir}/${FILE}.in > ${FILE}.tmp \ - -e 's:@-PREFIX-@:${prefix}:' \ - -e 's:@-LIBEXECDIR-@:${libexecdir}:' \ - -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \ - -e 's:@-PKGXMLDIR-@:${pkgxmldir}:' \ - -e 's:@-PKGLOGDIR-@:${pkglogdir}:' \ - -e 's:@-SHIRELOGDIR-@:${shirelogdir}:' \ - -e 's:@-VARRUNDIR-@:${varrundir}:' + -e 's:@-PREFIX-@:${prefix}:g' \ + -e 's:@-PKGLIBDIR-@:${pkglibdir}:g' \ + -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:g' \ + -e 's:@-PKGXMLDIR-@:${pkgxmldir}:g' \ + -e 's:@-PKGWEBDIR-@:${pkgwebdir}:g' \ + -e 's:@-PKGLOGDIR-@:${pkglogdir}:g' \ + -e 's:@-SHIRELOGDIR-@:${shirelogdir}:g' \ + -e 's:@-PKGRUNDIR-@:${pkgrundir}:g' \ + -e 's:@-PKGCACHEDIR-@:${pkgcachedir}:g' cmp -s ${FILE} ${FILE}.tmp || mv ${FILE}.tmp ${FILE} rm -f ${FILE}.tmp @@ -62,22 +84,31 @@ apache2.config: ${srcdir}/apache2.config.in Makefile ${top_builddir}/config.stat apache22.config: ${srcdir}/apache22.config.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ -shibd: ${srcdir}/shibd.in Makefile ${top_builddir}/config.status +apache24.config: ${srcdir}/apache24.config.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ -shibd.logger: ${srcdir}/shibd.logger.in Makefile ${top_builddir}/config.status +shibd-systemd: ${srcdir}/shibd-systemd.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ -native.logger: ${srcdir}/native.logger.in Makefile ${top_builddir}/config.status +shibd-redhat: ${srcdir}/shibd-redhat.in Makefile ${top_builddir}/config.status + $(MAKE) do-build-file FILE=$@ + +shibd-amazon: ${srcdir}/shibd-amazon.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ -shibboleth.xml: ${srcdir}/shibboleth.xml.in Makefile ${top_builddir}/config.status +shibd-suse: ${srcdir}/shibd-suse.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ -resolver-simple.xml: ${srcdir}/resolver-simple.xml.in Makefile ${top_builddir}/config.status +shibd-debian: ${srcdir}/shibd-debian.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ -example-metadata.xml: ${srcdir}/example-metadata.xml.in Makefile ${top_builddir}/config.status +shibd-osx.plist: ${srcdir}/shibd-osx.plist.in Makefile ${top_builddir}/config.status + $(MAKE) do-build-file FILE=$@ + +shibd.logger: ${srcdir}/shibd.logger.in Makefile ${top_builddir}/config.status + $(MAKE) do-build-file FILE=$@ + +native.logger: ${srcdir}/native.logger.in Makefile ${top_builddir}/config.status $(MAKE) do-build-file FILE=$@ all-data-local: $(BUILTCONFIGFILES) @@ -85,9 +116,9 @@ all-data-local: $(BUILTCONFIGFILES) install-data-local: all-data-local $(mkinstalldirs) $(DESTDIR)$(pkglogdir) $(mkinstalldirs) $(DESTDIR)$(shirelogdir) - $(mkinstalldirs) $(DESTDIR)$(varrundir) + $(mkinstalldirs) $(DESTDIR)$(pkgrundir) + $(mkinstalldirs) $(DESTDIR)$(pkgcachedir) $(mkinstalldirs) $(DESTDIR)$(pkgxmldir) - $(mkinstalldirs) $(DESTDIR)$(prefix)/data $(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir) for f in $(BUILTCONFIGFILES); do \ if test ! -f $(DESTDIR)${pkgsysconfdir}/$$f; then \ @@ -102,33 +133,46 @@ install-data-local: all-data-local $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)${pkgsysconfdir}/$$f.dist; \ done +install-data-hook: + chmod +x $(DESTDIR)$(pkgsysconfdir)/keygen.sh + chmod +x $(DESTDIR)$(pkgsysconfdir)/metagen.sh + if test -z "$(NOKEYGEN)"; then \ + cd $(DESTDIR)$(pkgsysconfdir); \ + sh ./keygen.sh -b ; \ + fi + CLEANFILES = \ apache.config \ apache2.config \ apache22.config \ - shibd \ + apache24.config \ + shibd-systemd \ + shibd-redhat \ + shibd-amazon \ + shibd-suse \ + shibd-debian \ + shibd-osx.plist \ shibd.logger \ - native.logger \ - shibboleth.xml \ - resolver-simple.xml \ - example-metadata.xml + native.logger -EXTRA_DIST = .cvsignore \ - shibboleth.xml.in \ +EXTRA_DIST = \ native.logger.in \ shibd.logger.in \ apache.config.in \ apache2.config.in \ apache22.config.in \ - shibd.in \ - console.logger \ - syslog.logger \ - accessError.html \ - rmError.html \ - sessionError.html \ - metadataError.html \ - sslError.html \ - resolver-simple.xml.in \ - example-metadata.xml.in \ - sp-example.key \ - sp-example.crt + apache24.config.in \ + shibd-systemd.in \ + shibd-redhat.in \ + shibd-amazon.in \ + shibd-suse.in \ + shibd-debian.in \ + shibd-osx.plist.in \ + keygen.bat \ + keygen.sh \ + metagen.sh \ + SetService32.bat \ + SetService64.bat \ + upgrade.xsl \ + xsltproc.js \ + $(CONFIGFILES)