Update examples (#595)

This commit is contained in:
Xavier Guimard 2017-02-28 20:21:59 +00:00
parent 7c4cb5d072
commit 4964b5a5d5
11 changed files with 29 additions and 9 deletions

View File

@ -51,13 +51,13 @@ DATADIR=$(LMPREFIX)/data
DOCUMENTROOT=$(LMPREFIX)/htdocs
PORTALDIR=$(DOCUMENTROOT)/portal
PORTALSITEDIR=$(PORTALDIR)
PORTALSTATICDIR=$(PORTALSITEDIR)/static
PORTALSTATICDIR=$(PORTALSITEDIR)/htdocs/static
PORTALRELATIVESTATICDIR=/static
PORTALTEMPLATESDIR=$(PORTALSITEDIR)/templates
MANAGERDIR=$(DOCUMENTROOT)/manager
MANAGERSITEDIR=$(MANAGERDIR)
MANAGERSTATICDIR=$(MANAGERSITEDIR)/static
MANAGERSTATICDIR=$(MANAGERSITEDIR)/htdocs/static
MANAGERRELATIVESTATICDIR=/static
MANAGERTEMPLATESDIR=$(MANAGERSITEDIR)/templates
DOCDIR=$(DOCUMENTROOT)
@ -665,13 +665,13 @@ install_portal_site: install_conf_dir
>$(RPORTALTEMPLATESDIR)/$$f; \
done; cd -
cd $(SRCPORTALDIR)/site/templates; for l in `find * -type l`; do \
echo lien à faire $$l `readlink $$l`; \
echo link to do $$l `readlink $$l`; \
target=`readlink $$l`; \
cd $(RPORTALTEMPLATESDIR); \
ln -s $$target $$l; \
cd -; \
done
@if test "$(USEEXTERNALLIBS)" = "yes"; then \
if test "$(USEEXTERNALLIBS)" = "yes"; then \
rm -rvf $(PORTALEXTERNALLIBS); \
elif test "$(USEDEBIANLIBS)" = "yes"; then \
rm -rvf $(PORTALLIBSTOREMOVEFORDEBIAN); \

View File

@ -1 +1 @@
debian/tmp/usr/share/lemonldap-ng/manager/manager.*
lemonldap-ng-manager/eg/*

View File

@ -0,0 +1 @@
lemonldap-ng-portal/eg/*

View File

@ -1,9 +1,9 @@
.bowerrc
bower.json
Changes
eg/manager-server.cgi
eg/manager-server.fcgi
eg/manager-server.psgi
eg/manager.cgi
eg/manager.fcgi
eg/manager.psgi
KINEMATIC.md
lib/Lemonldap/NG/Manager.pm
lib/Lemonldap/NG/Manager/Attributes.pm

View File

@ -1,7 +1,9 @@
.bowerrc
bower.json
Changes
eg/index.cgi
eg/index.fcgi
eg/index.psgi
example/soapconfigtest.pl
example/soaperrortest.pl
example/soaptest.pl

View File

@ -0,0 +1,7 @@
#!/usr/bin/env perl
use Plack::Handler::CGI;
use Lemonldap::NG::Portal::Main;
Plack::Handler::CGI->new->run( Lemonldap::NG::Portal->run( {} ) );

View File

@ -1 +0,0 @@
../site/htdocs/index.fcgi

View File

@ -0,0 +1,8 @@
#!/usr/bin/env perl
use Plack::Handler::FCGI;
use Lemonldap::NG::Portal::Main;
# Roll your own
my $server = Plack::Handler::FCGI->new();
$server->run( Lemonldap::NG::Portal::Main->run( {} ) );

View File

@ -0,0 +1,3 @@
use Lemonldap::NG::Portal::Main;
Lemonldap::NG::Portal::Main->run({});