Commit 7d963dc2 authored by Xavier Guimard's avatar Xavier Guimard

Update Debian files (work done by the Debian Perl Group)

parent 775efc03
This diff is collapsed.
lemonldap-ng (1.2.2-2) unstable; urgency=low
Since 1.2.2, LemonLDAP::NG uses 'Demo' authentication backend by default
and the manager is protected by default by LemonLDAP::NG. So for an
unconfigured installation, you have to use dwho account to access to the
manager (password dwho)
-- Xavier Guimard <x.guimard@free.fr> Thu, 29 Nov 2012 06:22:45 +0100
lemonldap-ng for Debian
-----------------------
FIRST CONFIGURATION STEPS
Topics:
1 - Manager installation
2 - Portal installation
3 - Area protection
4 - Configuration storage
5 - Build packages
6 - Update the repository
1 - Change default DNS domain
-----------------------------
I - LEMONLDAP::NG MANAGER INSTALLATION
----------------------------------------
Package: liblemonldap-ng-manager-perl
By default, DNS domain is example.com. You can change using dpkg-reconfigure or
with a quick sed command. For example, we change it to ow2.org:
liblemonldap-ng-manager-perl installs files named manager-apache.conf and
manager-apache2.conf in /etc/lemonldap-ng/. Include it in apache configuration
and configure it (virtual host has to be adapt).
sed -i 's/example\.com/ow2.org/g' /etc/lemonldap-ng/* \
/var/lib/lemonldap-ng/conf/lmConf-1 /var/lib/lemonldap-ng/test/index.pl
2 - Enable LL::NG sites in Apache
---------------------------------
II - LEMONLDAP::NG PORTAL INSTALLATION
--------------------------------------
Package: liblemonldap-ng-portal-perl
Enable the components you've installed:
WARNING : since version 0.9.3, login form template has change. You have to
change your /var/lib/lemonldap-ng/portal/index.pl file using
/usr/share/lemonldap-ng/portal/index.pl
a2ensite handler-apache2.conf
a2ensite portal-apache2.conf
a2ensite manager-apache2.conf
liblemonldap-ng-portal-perl installs files named portal-apache.conf and
portal-apache2.conf in /etc/lemonldap-ng/. Include it in apache configuration
and configure it (virtual host has to be adapt). You can also customize
/var/lib/lemonldap-ng/portal/index.pl to adapt it to your site. This file is
protected against upgrade.
and enable mod_perl if not already loaded:
a2enmod perl
III - LEMONLDAP::NG AREA PROTECTION
----------------------------------
Package: liblemonldap-ng-handler-perl
Then restart Apache:
liblemonldap-ng-handler-perl installs a file named MyHandler.pm in
/var/lib/lemonldap-ng/handler/. See handler-apache.conf or handler-apache2.conf
in /etc/lemonldap-ng/ to know how to use it.
apache2ctl configtest
apache2ctl restart
You can also copy /usr/share/doc/lemonldap-ng/examples/test.pl into
/var/lib/lemonldap-ng/index.pl to see how to use Lemonldap::NG with a Perl or
PHP application.
3 - Check your DNS
------------------
Be sure that your browser can join (adapt it with your domain):
- auth.example.com : the authentication portal
- manager.example.com: the configuration interface
IV - LEMONLDAP::NG CONFIGURATION FILES
---------------------------------------
Package: liblemonldap-ng-conf-perl
Note that configuration files are now grouped in
/etc/lemonldap-ng/lemonldap-ng.ini
V - Build DEB packages
-----------------------
Note: official packages build is now hosted on https://github.com/guimard/LemonLDAP--NG-Debian-packaging
Untar the archive and launch:
$ make debian-packages
Packages are in /tmp
4 - Connect to the manager
--------------------------
Sign packages:
$ dpkg-sig -p --sign builder /tmp/*.deb
Go to http://manager.example.com/, you'll be redirected to the portal. Then
enjoy!
VI - Update DEB repository
--------------------------
5 - Default accounts
--------------------
The DEB repository is hosted on http://lemonldap-ng.org/deb
By default, LemonLDAP::NG use "Demo" authentication backend, so you can use the
following accounts:
Copy all deb files:
$ scp *.deb lemonldapng@lemonldap-ng.org:incoming/
Login Password Role
rtyler rtyler user
msmith msmith user
dwho dwho administrator
Then connect on the server and launch reprepro:
$ ssh lemonldapng@lemonldap-ng.org
lemonldapng@lemonldap-ng.org$ cd deb/
lemonldapng@lemonldap-ng.org$ reprepro --ask-passphrase -Vb . includedeb squeeze ../incoming/*1.2.2*deb
6 - See more
------------
See also reprepro configuration file: 'distributions'
http://lemonldap-ng.org/
Source: lemonldap-ng
Maintainer: Xavier Guimard <x.guimard@free.fr>
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Xavier Guimard <x.guimard@free.fr>
Section: perl
Priority: optional
Build-Depends: debhelper (>= 8),
......@@ -23,9 +24,9 @@ Build-Depends-Indep: libapache-session-perl,
liburi-perl,
libwww-perl,
libxml-libxslt-perl,
libxml-simple-perl
libxml-simple-perl,
perl
Standards-Version: 3.9.4
DM-Upload-Allowed: yes
Homepage: http://lemonldap-ng.org/
Package: lemonldap-ng
......@@ -59,7 +60,9 @@ Depends: ${misc:Depends},
liburi-perl,
libwww-perl
Recommends: libapache-session-browseable-perl
Suggests: liblemonldap-ng-portal-perl,
Suggests: libcache-memcached-perl,
libdigest-hmac-perl,
liblemonldap-ng-portal-perl,
libsoap-lite-perl
Description: Lemonldap::NG Apache module part
Lemonldap::NG is a complete Web-SSO system that can run with reverse-proxies
......@@ -126,10 +129,11 @@ Recommends: libapache-session-browseable-perl,
libconvert-pem-perl,
libemail-date-format-perl,
libnet-ldap-perl,
libnet-openid-consumer-perl | libnet-openid-server-perl | liblasso-perl (>=2.3.0) | libnet-twitter-perl
Suggests: libauthen-captcha-perl,
libnet-openid-consumer-perl | libnet-openid-server-perl | liblasso-perl (>= 2.3.0) | libnet-twitter-perl | libauthcas-perl
Suggests: libauthcas-perl,
libauthen-captcha-perl,
libauthen-sasl-perl,
liblasso-perl (>=2.3.0),
liblasso-perl (>= 2.3.0),
liblemonldap-ng-handler-perl (= ${binary:Version}),
libnet-openid-consumer-perl,
libnet-openid-server-perl,
......
......@@ -7,56 +7,118 @@ Files: tree.js
Copyright: 2008, Peter Panov <panov@elcat.kg>, IKEEN Group http://www.ikeen.com
License: BSD-3-Clause
Files: jquery.cookie.js
Copyright: 2006 Klaus Hartl (stilbuero.de)
License: GPL-2+
Files: jquery.base64.js
Copyright: Muhammad Hussein Fattahizadeh < muhammad [AT] semnanweb [DOT] com >
License: GPL-2
Copyright: Muhammad Hussein Fattahizadeh <muhammad@semnanweb.com>
License: GPL-2+
Files: jquery.elastic.source.js
Copyright: Jan Jarfalk - http://www.unwrongest.com
License: MIT
Files: jquery*.js
Copyright: 2010, The jQuery project and the jQuery UI team
Licence: GPL-2+
Files: lemonldap-ng-portal/examples/skins/common/apps/*.png
Copyright: 2006-2007 Everaldo Coelho, Crystal Project
License: GPL-2
License: LGPL-3
Files: *.js
Copyright: 2004-2012, Xavier Guimard <x.guimard@free.fr>
2004-2012, Clement Oudot <clem.oudot@gmail.com>
2004-2012, Thomas Chemineau <thomas.chemineau@gmail.com>
License: GPL-2+
Files: debian/*
Copyright: 2004-2012, Xavier Guimard <x.guimard@free.fr>
License: Artistic or GPL-1+
Files: *
Copyright: 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Xavier Guimard <x.guimard@free.fr>, Clement Oudot <clem.oudot@gmail.com>, Thomas Chemineau <thomas.chemineau@gmail.com>
License: Artistic or GPL-2
Copyright: 2004-2012, Xavier Guimard <x.guimard@free.fr>
2004-2012, Clement Oudot <clem.oudot@gmail.com>
2004-2012, Thomas Chemineau <thomas.chemineau@gmail.com>
License: Artistic or GPL-1+
License: Artistic
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License, which comes with Perl.
On Debian GNU/Linux systems, the complete text of the Artistic License
can be found in `/usr/share/common-licenses/Artistic'
License: GPL-2
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-2'
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License, which comes with Perl.
.
On Debian systems, the complete text of the Artistic License can be
found in `/usr/share/common-licenses/Artistic'.
License: GPL-1+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
.
On Debian systems, the complete text of version 1 of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-1'.
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
.
On Debian systems, the complete text of version 2 of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-2'
License: LGPL-3
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; version 3.
.
On Debian systems, the full text of the GNU Lesser General Public License
version 3 can be found in the file `/usr/share/common-licenses/LGPL-3'.
License: BSD-3-Clause
Copyright (c) The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
Copyright (c) The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
/usr/share/doc/lemonldap-ng/examples
Document: lemonldap-ng-doc
Title: Lemonldap::NG documentation
Author: Xavier Guimard
Author: Clément Oudot
Abstract: Those HTML documents contains all Lemonldap::NG documentation
imported from http://lemonldap-ng.org
Section: Web Development
......
debian/README.Debian
doc/*
README
/etc/lemonldap-ng
/usr/share/lemonldap-ng/bin
/var/lib/lemonldap-ng/conf
/var/lib/lemonldap-ng/sessions
/var/lib/lemonldap-ng/sessions/lock
/usr/share
/var/lib/lemonldap-ng/handler
/var/lib/lemonldap-ng/sessions
/var/lib/lemonldap-ng/sessions/lock
/etc/lemonldap-ng
/usr/share/lemonldap-ng/bin
/usr/share/lemonldap-ng/manager
/usr/share/lemonldap-ng/manager-skins
/var/lib/lemonldap-ng/manager
/etc/lemonldap-ng
/usr/share/lemonldap-ng/bin
/usr/share/lemonldap-ng/portal
/usr/share/lemonldap-ng/portal-skins
/var/lib/lemonldap-ng/portal
/var/lib/lemonldap-ng/sessions
/var/lib/lemonldap-ng/portal/captcha_output
/var/lib/lemonldap-ng/sessions/lock
/var/lib/lemonldap-ng/notifications
......@@ -36,7 +36,6 @@ override_dh_auto_install:
test -n "$$LOCALBUILD" || ./scripts/minifierjs $$(find debian/tmp/ -name '*.js')
test -n "$$LOCALBUILD" || ./scripts/minifiercss $$(find debian/tmp/ -name '*.css')
# Move perl scripts in /usr/share, links are created by *.postinst scripts
mkdir debian/tmp/usr/share/lemonldap-ng/manager debian/tmp/usr/share/lemonldap-ng/portal
mv debian/tmp/var/lib/lemonldap-ng/portal/*.pl debian/tmp/usr/share/lemonldap-ng/portal/
mv debian/tmp/var/lib/lemonldap-ng/manager/*pl debian/tmp/usr/share/lemonldap-ng/manager/
......
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