From f38a507d05056271a0fd910abb639b738cf724f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Thu, 11 Mar 2010 16:00:25 +0000 Subject: [PATCH] Makefile: do not install Liberty Alliance portal by default --- build/lemonldap-ng/Makefile | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/build/lemonldap-ng/Makefile b/build/lemonldap-ng/Makefile index 491adec80..908e7f4cc 100644 --- a/build/lemonldap-ng/Makefile +++ b/build/lemonldap-ng/Makefile @@ -31,8 +31,6 @@ PORTALDIR=$(DOCUMENTROOT)/portal RPORTALDIR=$(DESTDIR)/$(PORTALDIR) PORTALSKINSDIR=$(PORTALDIR)/skins RPORTALSKINSDIR=$(DESTDIR)/$(PORTALSKINSDIR) -LASPPORTALDIR=$(DOCUMENTROOT)/liberty-alliance-sp-portal -RLASPPORTALDIR=$(DESTDIR)/$(LASPPORTALDIR) MANAGERDIR=$(DOCUMENTROOT)/manager RMANAGERDIR=$(DESTDIR)/$(MANAGERDIR) MANAGERSKINSDIR=$(MANAGERDIR)/skins @@ -95,6 +93,11 @@ SRCMANAGERDIR=lemonldap-ng-manager EXAMPLELANG=en # For static Manager example only ERASECONFIG=1 # Set to 0 if you do not want to replace your configuration +# Liberty Alliance support +WITHLA=0 # Set to 1 if you want to install Liberty Alliance portal (deprecated by SAML2 support) +LASPPORTALDIR=$(DOCUMENTROOT)/liberty-alliance-sp-portal +RLASPPORTALDIR=$(DESTDIR)/$(LASPPORTALDIR) + all: configure common handler manager portal @echo @echo "Building succeed. Now run :" @@ -299,8 +302,11 @@ install_manager_site: install_conf_dir install_portal_site: install_conf_dir # Portal install @install -v -d $(RPORTALDIR) $(RPORTALSKINSDIR) \ - $(RPORTALDIR)/skins/ $(RLASPPORTALDIR) \ + $(RPORTALDIR)/skins/ \ $(RCRONDIR) $(RCONFDIR) + @if [ "$(WITHLA)" -eq "1" ]; then \ + install -v -d $(RLASPPORTALDIR); \ + fi @for skin in $$(ls lemonldap-ng-portal/example/skins/); do \ [ -h $(RPORTALDIR)/skins/$$skin ] && rm -f $(RPORTALDIR)/skins/$$skin; \ install -v -d $(RPORTALSKINSDIR)/$$skin; \ @@ -318,8 +324,10 @@ install_portal_site: install_conf_dir done; \ fi # L-A portal install - @cp -pR --remove-destination ${SRCPORTALDIR}/example/AuthLA/* $(RLASPPORTALDIR) - @$(PERL) -i -pe 's#__DIR__#$(LASPPORTALDIR)/#g' $(RLASPPORTALDIR)/index.pl + @if [ "$(WITHLA)" -eq "1" ]; then \ + cp -pR --remove-destination ${SRCPORTALDIR}/example/AuthLA/* $(RLASPPORTALDIR); \ + $(PERL) -i -pe 's#__DIR__#$(LASPPORTALDIR)/#g' $(RLASPPORTALDIR)/index.pl; \ + fi # Cron files @cp --remove-destination lemonldap-ng-portal/example/scripts/purgeCentralCache.cron.d $(RCRONDIR)/lemonldap-ng @if [ ! "$(APACHEUSER)" ]; then \ @@ -355,7 +363,9 @@ install_examples_site: $(REXAMPLESDIR)/manager/skins \ $(REXAMPLESDIR)/manager/images \ @rm -rf $$(find $(REXAMPLESDIR) -type d -name .svn) - @$(PERL) -i -pe 's#__DIR__#$(LASPPORTALDIR)#g' $(REXAMPLESDIR)/portal/AuthLA/index.pl + @if [ "$(WITHLA)" -eq "1" ]; then \ + $(PERL) -i -pe 's#__DIR__#$(LASPPORTALDIR)#g' $(REXAMPLESDIR)/portal/AuthLA/index.pl; \ + fi @$(PERL) -i -pe 's#__SESSIONDIR__#$(APACHESESSIONFILEDIR)/#g;' $(REXAMPLESDIR)/portal/*.pl install_doc_site: