From 0b462fd20b4cddf83495c2cbb7b5b56f705f5bba Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Mon, 12 Oct 2015 11:13:01 +0000 Subject: [PATCH] Backport changes from Debian packaging --- debian/NEWS | 17 +++++++++++++++++ debian/compat | 2 +- debian/liblemonldap-ng-common-perl.config | 6 ++++-- debian/liblemonldap-ng-common-perl.postinst | 8 ++++---- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/debian/NEWS b/debian/NEWS index b262e1010..033267373 100644 --- a/debian/NEWS +++ b/debian/NEWS @@ -1,3 +1,20 @@ +lemonldap-ng (1.4.6-1) unstable; urgency=medium + + Handler files "My::Package" are no longer installed by default as a module + "Lemonldap::NG::Handler" generic is now available. It is therefore + necessary either to modify Apache configuration files to use + "Lemonldap::NG::Handler" or create your own Perl modules using the provided + examples files. + + -- Xavier Guimard Mon, 29 Dec 2014 17:10:00 +0100 + +lemonldap-ng (1.2.2-3) unstable; urgency=low + + Examples files (Apache configuration and default handler files) are now not + installed in /var/lib/lemonldap-ng/handler but available as examples files + + -- Xavier Guimard Wed, 05 Dec 2012 06:27:45 +0100 + lemonldap-ng (1.2.2-2) unstable; urgency=low Since 1.2.2, LemonLDAP::NG uses 'Demo' authentication backend by default diff --git a/debian/compat b/debian/compat index 45a4fb75d..ec635144f 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -8 +9 diff --git a/debian/liblemonldap-ng-common-perl.config b/debian/liblemonldap-ng-common-perl.config index 47973e1a8..50b9dc654 100644 --- a/debian/liblemonldap-ng-common-perl.config +++ b/debian/liblemonldap-ng-common-perl.config @@ -17,8 +17,10 @@ db_input medium liblemonldap-ng-common-perl/managerPassword || true db_input medium liblemonldap-ng-common-perl/portal || true -if [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.0; then - db_input high liblemonldap-ng-common-perl/migrate || true +if [ "$2" != "" ]; then + if dpkg --compare-versions "$2" lt 1.0; then + db_input high liblemonldap-ng-common-perl/migrate || true + fi fi db_go || true diff --git a/debian/liblemonldap-ng-common-perl.postinst b/debian/liblemonldap-ng-common-perl.postinst index b4755f782..6c3485a64 100755 --- a/debian/liblemonldap-ng-common-perl.postinst +++ b/debian/liblemonldap-ng-common-perl.postinst @@ -20,12 +20,12 @@ then # Run migration script to convert menu format if old version is 0.9.* if [ "$2" != "" ]; then - if dpkg --compare-versions $2 lt 1.0; then + if dpkg --compare-versions "$2" lt 1.0; then if [ -e $CONFDIR/storage.conf -o -e $CONFDIR/apply.conf -o -e $CONFDIR/apps-list.xml ] ; then db_get liblemonldap-ng-common-perl/migrate - if [ "$RET" ]; then - $MIGRATION 2>&1 > /dev/null || : - fi + #if [ "$RET" ]; then + # $MIGRATION 2>&1 > /dev/null || : + #fi fi fi fi