Commit 0939fa03 authored by Clément OUDOT's avatar Clément OUDOT

LEMONLDAP::NG : put all configuration in /etc/lemonldap-ng/

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/trunk@375 1dbb9719-a921-0410-b57f-c3a383c2c641
parent fa47858a
......@@ -10,14 +10,14 @@ DNSDOMAIN="example.com"
# LDAP parameters
LDAPHOST="localhost"
LDAPPORT="389"
LDAPSUFFIX="dc=example,dc=com"
LDAPSUFFIX="dc=example,dc=net"
# Other
VERSION=`head -n1 changelog |sed -e 's/lemonldap-ng (//' -e 's/).*$$//'`
SRCHANDLERDIR=lemonldap-ng-handler
SRCPORTALDIR=lemonldap-ng-portal
SRCMANAGERDIR=lemonldap-ng-manager
EXAMPLELANG=en # For static Manager only
DESTFILECONFDIR=$(SCRIPTSDIR)conf/
DESTFILECONFDIR=$(SYSTEMCONFDIR)conf/
DESTSESSIONDIR=$(SCRIPTSDIR)sessions/
DESTLASPDIR=$(SCRIPTSDIR)liberty-alliance-sp-portal
DESTPORTALDIR=$(SCRIPTSDIR)portal/
......@@ -29,29 +29,29 @@ all: handler manager portal
handler: handler_conf
@$(MAKE) -C ${SRCHANDLERDIR}
@touch .handler
@touch handler
portal: portal_conf
@$(MAKE) -C ${SRCPORTALDIR}
@touch .portal
@touch portal
manager: manager_conf
@$(MAKE) -C ${SRCMANAGERDIR}
@touch .manager
@touch manager
configure: handler_conf portal_conf manager_conf
handler_conf:
@cd ${SRCHANDLERDIR}; perl Makefile.PL
@touch .handler_conf
@touch handler_conf
portal_conf:
@cd ${SRCPORTALDIR}; perl Makefile.PL
@touch .portal_conf
@touch portal_conf
manager_conf:
@cd ${SRCMANAGERDIR}; perl Makefile.PL
@touch .manager_conf
@touch manager_conf
test: manager handler portal manager_test handler_test portal_test
......@@ -68,15 +68,15 @@ install: handler_install portal_install manager_install
handler_install: handler
@$(MAKE) -C ${SRCHANDLERDIR} install
@touch .handler_install
@touch handler_install
portal_install: portal
@$(MAKE) -C ${SRCPORTALDIR} install
@touch .portal_install
@touch portal_install
manager_install: manager
@$(MAKE) -C ${SRCMANAGERDIR} install
@touch .manager_install
@touch manager_install
distclean: clean
......@@ -87,15 +87,15 @@ clean: handler_clean portal_clean manager_clean
handler_clean:
- $(MAKE) -C ${SRCHANDLERDIR} distclean
@rm -vf .handler*
@rm -vf handler*
portal_clean:
- $(MAKE) -C ${SRCPORTALDIR} distclean
@rm -vf .portal*
@rm -vf portal*
manager_clean:
- $(MAKE) -C ${SRCMANAGERDIR} distclean
@rm -vf .manager*
@rm -vf manager*
example: all
@mkdir -p ${DESTFILECONFDIR} ${DESTPORTALDIR} ${DESTHANDLERDIR} ${DESTMANAGERDIR} ${SYSTEMCONFDIR} ${DESTDOCSDIR} ${DESTSESSIONDIR}
......@@ -108,8 +108,8 @@ example: all
@cp -a _example/var/lib/lemonldap-ng/* ${SCRIPTSDIR}
@cp -a doc/* ${DESTDOCSDIR}
@find ${DESTLASPDIR} -type f -exec perl -i -pe 's#__DIR__/?#'${DESTLASPDIR}'#g;s#__CONFDIR__/?#'${DESTFILECONFDIR}'#g' {} \;
@find ${SCRIPTSDIR} -type f -exec perl -i -pe 's#__DIR__/?#'${SCRIPTSDIR}'#g;s#__CONFDIR__/?#'${DESTFILECONFDIR}'#g;s#__SESSIONDIR__/?#'${DESTSESSIONDIR}'#g;s#__DNSDOMAIN__#'${DNSDOMAIN}'#g;s#__LDAPHOST__#'${LDAPHOST}'#g;s#__LDAPPORT__#'${LDAPPORT}'#g;s#__LDAPSUFFIX__#'${LDAPSUFFIX}'#g;' {} \;
@find ${SYSTEMCONFDIR} -type f -exec perl -i -pe 's#__DIR__/?#'${SCRIPTSDIR}'#g;s#__DNSDOMAIN__#'${DNSDOMAIN}'#g;' {} \;
@find ${SCRIPTSDIR} -type f -exec perl -i -pe 's#__DIR__/?#'${SCRIPTSDIR}'#g;s#__SYSCONFDIR__/?#'${SYSTEMCONFDIR}'#g;s#__CONFDIR__/?#'${DESTFILECONFDIR}'#g;s#__SESSIONDIR__/?#'${DESTSESSIONDIR}'#g;s#__DNSDOMAIN__#'${DNSDOMAIN}'#g;s#__LDAPHOST__#'${LDAPHOST}'#g;s#__LDAPPORT__#'${LDAPPORT}'#g;s#__LDAPSUFFIX__#'${LDAPSUFFIX}'#g;' {} \;
@find ${SYSTEMCONFDIR} -type f -exec perl -i -pe 's#__DIR__/?#'${SCRIPTSDIR}'#g;s#__SESSIONDIR__/?#'${DESTSESSIONDIR}'#g;s#__DNSDOMAIN__#'${DNSDOMAIN}'#g;s#__LDAPHOST__#'${LDAPHOST}'#g;s#__LDAPPORT__#'${LDAPPORT}'#g;s#__LDAPSUFFIX__#'${LDAPSUFFIX}'#g;' {} \;
@echo
@echo "LemonLDAP::NG example v${VERSION} is installed with these parameters:"
@echo " - System configuration: ${SYSTEMCONFDIR}"
......@@ -160,15 +160,15 @@ uninstall: configure handler_uninstall portal_uninstall manager_uninstall
handler_uninstall: handler
@$(MAKE) -C ${SRCHANDLERDIR} uninstall
@rm -vf .handler_uninstall
@rm -vf handler_uninstall
portal_uninstall: portal
@$(MAKE) -C ${SRCPORTALDIR} uninstall
@rm -vf .portal_uninstall
@rm -vf portal_uninstall
manager_uninstall: manager
@$(MAKE) -C ${SRCMANAGERDIR} uninstall
@rm -vf .manager_uninstall
@rm -vf manager_uninstall
dist: clean
@- $(MAKE) clean
......
<!ELEMENT menu (category*) >
<!ELEMENT category (application*, category*) >
<!ATTLIST category name CDATA #REQUIRED >
<!ELEMENT application (name, uri?, description?, logo?, screenshot?, display?) >
<!ATTLIST application id ID #REQUIRED >
<!ELEMENT name ( #PCDATA ) >
<!ELEMENT uri ( #PCDATA ) >
<!ELEMENT description ( #PCDATA ) >
<!ELEMENT logo ( #PCDATA ) >
<!ELEMENT screenshot ( #PCDATA ) >
<!ELEMENT display ( #PCDATA ) >
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE menu SYSTEM "apps-list.dtd">
<menu>
<category name="Example">
<application id="test1">
<name>Application Test 1</name>
<uri>http://test1.__DNSDOMAIN__</uri>
<description>A simple application displaying authenticated user</description>
<logo>wheels.png</logo>
<display>auto</display>
</application>
<application id="test2">
<name>Application Test 2</name>
<uri>http://test2.__DNSDOMAIN__</uri>
<description>The same simple application displaying authenticated user</description>
<logo>wheels.png</logo>
<display>auto</display>
</application>
</category>
<category name="Administration">
<application id="manager">
<name>WebSSO Manager</name>
<uri>http://manager.__DNSDOMAIN__</uri>
<description>Configure LemonLDAP::NG WebSSO</description>
<logo>tools.png</logo>
<display>on</display>
</application>
</category>
<category name="Documentation">
<application id="localdoc">
<name>Local documentation</name>
<uri>http://manager.__DNSDOMAIN__/docs/</uri>
<description>Documentation supplied with LemonLDAP::NG</description>
<logo>docs.png</logo>
<display>on</display>
</application>
<application id="officialwebsite">
<name>Offical Website</name>
<uri>http://wiki.lemonldap.objectweb.org/xwiki/bin/view/NG/Presentation</uri>
<description>Official LemonLDAP::NG Website</description>
<logo>web.png</logo>
<display>on</display>
</application>
</category>
</menu>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment