Commit 18c6744d authored by Yadd's avatar Yadd
Browse files

Debian install:

 - preinst : remove index.pl if equal to example
 - postinst: install links to apache conf files in sites-available
parent f804756f
......@@ -66,6 +66,7 @@ Depends: ${misc:Depends}, libjs-jquery, libhtml-template-perl,
liblemonldap-ng-handler-perl (= ${binary:Version}),
libxml-libxml-perl, libxml-libxslt-perl, libcrypt-openssl-rsa-perl,
libxml-simple-perl, libjson-perl
Pre-Depends: debconf
Recommends: libcache-cache-perl, libapache-session-perl, libsoap-lite-perl
Description: Lemonldap::NG manager part
Lemonldap::NG is a complete Web-SSO system that can run with reverse-proxies
......@@ -80,6 +81,7 @@ Depends: ${misc:Depends}, libapache-session-perl, libnet-ldap-perl (>=1:0.38),
libjs-jquery, liblemonldap-ng-handler-perl (= ${binary:Version}),
libxml-libxml-perl, libxml-libxslt-perl, libstring-random-perl,
libsoap-lite-perl, libcrypt-openssl-x509-perl
Pre-Depends: debconf
Recommends: libmime-lite-perl, libemail-date-format-perl,
libnet-openid-consumer-perl | libnet-openid-server-perl | liblasso3-perl (>=2.2.91) | libnet-twitter-perl,
libconvert-pem-perl
......
......@@ -16,7 +16,8 @@ then
done
[ -d /etc/apache2/sites-available/ ] && \
[ ! -e /etc/apache2/sites-available/manager-apache2.conf ] && \
ln -s /etc/lemonldap-ng/manager-apache2.conf /etc/apache2/sites-available/manager-apache2.conf
ln -s /etc/lemonldap-ng/manager-apache2.conf /etc/apache2/sites-available/manager-apache2.conf \
|| true
fi
#!/bin/bash
# Maintainer: #DEBHELPER#
set -e
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
db_purge
fi
#!/bin/bash
# Maintainer: #DEBHELPER#
set -e
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
[ -f /var/lib/lemonldap-ng/manager/index.pl ] && \
diff /var/lib/lemonldap-ng/manager/index.pl \
/usr/share/doc/liblemonldap-ng-manager-perl/examples/index.pl && \
rm -rf /var/lib/lemonldap-ng/manager/index.pl
fi
......@@ -25,6 +25,7 @@ then
[ -d /etc/apache2/sites-available/ ] && \
[ ! -e /etc/apache2/sites-available/portal-apache2.conf ] && \
ln -s /etc/lemonldap-ng/portal-apache2.conf /etc/apache2/sites-available/portal-apache2.conf
ln -s /etc/lemonldap-ng/portal-apache2.conf /etc/apache2/sites-available/portal-apache2.conf \
|| true
fi
#!/bin/bash
# Maintainer: #DEBHELPER#
set -e
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
db_purge
fi
#!/bin/bash
# Maintainer: #DEBHELPER#
set -e
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
[ -f /var/lib/lemonldap-ng/portal/index.pl ] && \
diff /var/lib/lemonldap-ng/portal/index.pl \
/usr/share/doc/liblemonldap-ng-portal-perl/examples/index_skin.pl && \
rm -rf /var/lib/lemonldap-ng/portal/index.pl
fi
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