[libembperl-perl] 01/02: Drop dep. on mod_perl in zembperl.load, enable mod_perl in postinst if present
gregor herrmann
gregoa at debian.org
Fri May 19 11:16:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch jessie
in repository libembperl-perl.
commit 3862c344433be22823483a3a7327a98a2e32998e
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Thu Jan 14 00:51:44 2016 +0100
Drop dep. on mod_perl in zembperl.load, enable mod_perl in postinst if present
This should still enable mod_perl by default if libembperl-perl +
Recommends are installed, but should also works if
libapache2-mod-perl2 is not installed (as it's only recommended).
---
debian/libembperl-perl.postinst | 6 ++++++
debian/zembperl.load.in | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/libembperl-perl.postinst b/debian/libembperl-perl.postinst
index 3223cfd..9ce3aee 100644
--- a/debian/libembperl-perl.postinst
+++ b/debian/libembperl-perl.postinst
@@ -11,11 +11,17 @@ if [ "$1" = "configure" ]; then
# mod_embperl is not thread-safe, requires the prefork MPM
if [ $(a2query -M) != 'prefork' ] ; then
if apache2_switch_mpm prefork ; then
+ if [ -e /etc/apache2/mods-available/perl.load ]; then
+ apache2_invoke enmod perl
+ fi
apache2_invoke enmod zembperl
else
apache2_msg err "Could not switch to prefork, not enabling mod_embperl (you must use cgi or offline mode to use Embperl)"
fi
else
+ if [ -e /etc/apache2/mods-available/perl.load ]; then
+ apache2_invoke enmod perl
+ fi
apache2_invoke enmod zembperl
fi
fi
diff --git a/debian/zembperl.load.in b/debian/zembperl.load.in
index ce9542b..91bb120 100644
--- a/debian/zembperl.load.in
+++ b/debian/zembperl.load.in
@@ -1,6 +1,6 @@
# The sucky "zembperl" name is so we load after perl
-# Depends: perl
+# Recommends: perl
<IfModule mod_perl.c>
LoadModule embperl_module @ARCHLIB@/auto/Embperl/Embperl.so
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libembperl-perl.git
More information about the Pkg-perl-cvs-commits
mailing list