Commit 0835ae98 authored by Yadd's avatar Yadd
Browse files

LEMONLDAP::NG : Better Debian structure and debconf management

parent cd0cf7e8
/usr/share
/var/lib/lemonldap-ng/handler
/var/lib/lemonldap-ng/sessions
example/handler/
debian/tmp/var/lib/lemonldap-ng/handler/autoProtectedCGI.pl
debian/tmp/var/lib/lemonldap-ng/handler/MyHandler*.pm
debian/handler-apache*.conf
#!/bin/bash
# Maintainer: #DEBHELPER#
. /usr/share/debconf/confmodule
EXAMPLEHANDLERFILE=/usr/share/doc/liblemonldap-ng-handler-perl/examples/MyHandler.pm
HANDLERFILE=/var/lib/lemonldap-ng/handler/MyHandler.pm
SESSIONSDIR=/var/lib/lemonldap-ng/sessions
if [ "$1" == "configure" ]
then
[ -e $HANDLERFILE ] || \
perl -000 -pe 's/(configStorage\s*=>\s*){[^}]+}/$1\$Lemonldap::NG::Conf::configStorage/;
s#^use#\nrequire "/usr/share/lemonldap-ng/configStorage.pm";\nuse#m;' \
$EXAMPLEHANDLERFILE >$HANDLERFILE
chmod 770 $SESSIONSDIR;
chown www-data.www-data $SESSIONSDIR;
fi
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_input high liblemonldap-ng-manager-conf-perl/newDirInfo || true
db_go || true
example/conf/
example/apache-session-mysql.sql
example/lmConfig.mysql
#!/bin/bash
# Maintainer: #DEBHELPER#
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
chown -R www-data /var/lib/lemonldap-ng/conf
fi
Template: liblemonldap-ng-manager-conf-perl/newDirInfo
Type: note
Description: Lemonldap::NG default configuration directory has moved to /var/lib/lemondap-ng/conf/
Description-fr: Le répertoire de configuration par défaut est maintenant /var/lib/lemondap-ng/conf/
/etc/lemonldap-ng/apply.conf
/etc/lemonldap-ng/manager-apache.conf
/etc/lemonldap-ng/manager-apache2.conf
/etc/lemonldap-ng
/usr/share/lemonldap-ng/bin
/var/lib/lemonldap-ng/manager
example/manager
debian/tmp/var/lib/lemonldap-ng/manager/apply.conf
debian/tmp/var/lib/lemonldap-ng/manager/index.pl
debian/tmp/var/lib/lemonldap-ng/manager/lmConfig.mysql
debian/tmp/var/lib/lemonldap-ng/manager/soapserver.pl
......@@ -11,3 +11,8 @@ debian/tmp/usr/share/man/man3/Lemonldap::NG::Manager.3pm
debian/tmp/usr/share/man/man3/Lemonldap::NG::Manager::SOAPServer.3pm
debian/tmp/usr/share/man/man3/Lemonldap::NG::Manager::Apache::Session::SOAP.3pm
debian/tmp/usr/share/man/man3/Lemonldap::NG::Manager::Restricted.3pm
debian/tmp/var/lib/lemonldap-ng/manager/apply.conf /etc/lemonldap-ng
debian/manager-apache*.conf /etc/lemonldap-ng
debian/tmp/var/lib/lemonldap-ng/manager/imgs
debian/tmp/var/lib/lemonldap-ng/manager/lemonldap-ng-manager.js
debian/tmp/var/lib/lemonldap-ng/manager/scripts/lmConfigEditor /usr/share/lemonldap-ng/bin
#!/bin/bash
# Maintainer: #DEBHELPER#
. /usr/share/debconf/confmodule
EXAMPLEMANAGERFILE=/usr/share/doc/liblemonldap-ng-manager-perl/examples/index.pl
MANAGERFILE=/var/lib/lemonldap-ng/manager/index.pl
if [ "$1" == "configure" ]
then
[ -e $MANAGERFILE ] || \
perl -000 -pe 's/(configStorage\s*=>\s*){[^}]+}/$1\$Lemonldap::NG::Conf::configStorage/;
s#^use#\nrequire "/usr/share/lemonldap-ng/configStorage.pm";\nuse#m;
s#(applyConfFile\s*=>\s*)(['"'"'"]).*?\2#$1$2/etc/lemonldap-ng/apply.conf$2#' \
$EXAMPLEMANAGERFILE >$MANAGERFILE
chmod +x $MANAGERFILE
chgrp www-data /etc/lemonldap-ng/apply.conf
chmod 640 /etc/lemonldap-ng/apply.conf
fi
/etc/lemonldap-ng/portal-apache.conf
/etc/lemonldap-ng/portal-apache2.conf
#
# Regular cron jobs for the Lemonldap::NG portal
#
*/10 * * * * www-data test -x /usr/share/lemonldap-ng/bin/purgeCentralCache
/etc/lemonldap-ng
/usr/share/lemonldap-ng/bin
/var/lib/lemonldap-ng/portal
/var/lib/lemonldap-ng/sessions
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