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:
parent
f804756fad
commit
18c6744d4f
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
# Maintainer: #DEBHELPER#
|
||||
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
if [ "$1" == "configure" ]
|
||||
then
|
||||
db_purge
|
||||
fi
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
12
build/lemonldap-ng/debian/liblemonldap-ng-portal-perl.postrm
Normal file
12
build/lemonldap-ng/debian/liblemonldap-ng-portal-perl.postrm
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
# Maintainer: #DEBHELPER#
|
||||
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
if [ "$1" == "configure" ]
|
||||
then
|
||||
db_purge
|
||||
fi
|
||||
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user