Debian install:

- preinst : remove index.pl if equal to example
 - postinst: install links to apache conf files in sites-available
This commit is contained in:
Xavier Guimard 2010-09-30 20:40:33 +00:00
parent f804756fad
commit 18c6744d4f
7 changed files with 60 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,12 @@
#!/bin/bash
# Maintainer: #DEBHELPER#
set -e
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
db_purge
fi

View File

@ -0,0 +1,15 @@
#!/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

View File

@ -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

View File

@ -0,0 +1,12 @@
#!/bin/bash
# Maintainer: #DEBHELPER#
set -e
. /usr/share/debconf/confmodule
if [ "$1" == "configure" ]
then
db_purge
fi

View File

@ -0,0 +1,15 @@
#!/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