[Pkg-mono-svn-commits] rev 2975 - libapache-mod-mono/trunk/debian
D. Moonfire
dmoonfire-guest at alioth.debian.org
Wed Feb 28 04:42:05 CET 2007
Author: dmoonfire-guest
Date: 2007-02-28 04:42:05 +0100 (Wed, 28 Feb 2007)
New Revision: 2975
Added:
libapache-mod-mono/trunk/debian/libapache2-mod-mono.config
libapache-mod-mono/trunk/debian/libapache2-mod-mono.templates
Modified:
libapache-mod-mono/trunk/debian/changelog
libapache-mod-mono/trunk/debian/libapache2-mod-mono.postinst
Log:
Got the first draft of the pseudo autoselector for mod-mono. I might need
help with wording and some of the Debian-fu tweaks to this.
Modified: libapache-mod-mono/trunk/debian/changelog
===================================================================
--- libapache-mod-mono/trunk/debian/changelog 2007-02-28 02:34:55 UTC (rev 2974)
+++ libapache-mod-mono/trunk/debian/changelog 2007-02-28 03:42:05 UTC (rev 2975)
@@ -1,10 +1,12 @@
mod-mono (1.2.1-2) unstable; urgency=low
+ * NOT READY FOR PRIMETIME.
* Dylan R. E. Moonfire
+ Added German, Swedish, Czech, Galician, Portuguese, and Japanese
translations (Closes: #400392, #407853, #412309, #412343, #412403,
#412501).
+ debian/control: Corrected the Apache 2.2 reference (Closes: #400985)
+ + Added a debconf option to ask which version to use (Closes: #405164)
-- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org> Tue, 27 Feb 2007 20:29:43 -0600
Added: libapache-mod-mono/trunk/debian/libapache2-mod-mono.config
===================================================================
--- libapache-mod-mono/trunk/debian/libapache2-mod-mono.config 2007-02-28 02:34:55 UTC (rev 2974)
+++ libapache-mod-mono/trunk/debian/libapache2-mod-mono.config 2007-02-28 03:42:05 UTC (rev 2975)
@@ -0,0 +1,75 @@
+#!/bin/bash -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+db_capb backup
+db_title Apache 2.2 mod-mono
+
+tempfile=`/bin/tempfile`
+
+# Figure out which module we want to connect to
+USE_MONO_SERVER=none
+
+if [ -x /usr/bin/mod-mono-server ]; then
+ USE_MONO_SERVER=mod-mono-server
+fi
+
+if [ -x /usr/bin/mod-mono-server2 ]; then
+ if [ -x /usr/bin/mod-mono-server ]; then
+ USE_MONO_SERVER=ask
+ else
+ USE_MONO_SERVER=mod-mono-server2
+ fi
+fi
+
+# See if we need to ask questions
+if [ "x$USE_MONO_SERVER" = "xask" ]; then
+ # Loop until we get a proper response
+ STATE=1
+
+ while [ "$STATE" != 0 -a "$STATE" != 2 ]; do
+ case "$STATE" in
+ 1)
+ db_input medium libapache2-mod-mono/mono-server || true
+ if db_go; then
+ db_get libapache2-mod-mono/mono-server || true
+ USE_MONO_SERVER=$RET
+ STATE=2
+ else
+ STATE=0
+ fi
+ ;;
+ esac
+ done
+
+ if [ "$STATE" = 0 ]; then
+ exit 1
+ fi
+fi
+
+# Change the includes as appropriate
+MONO_CONF=/etc/apache2/mods-available/mod_mono.conf
+
+case "$USE_MONO_SERVER" in
+ none)
+ # Can't find anything
+ echo "Either mono-apache-server or mono-apache-server2 needs "
+ echo "to be installed."
+ exit 1
+ ;;
+ mod-mono-server)
+ echo "Using mono-apache-server..."
+ sed 's@^Include.*$@Include /etc/mono-server/mono-server-hosts.conf@' \
+ < $MONO_CONF > $tempfile
+ cp -f $tempfile $MONO_CONF
+ rm -f $tempfile
+ ;;
+ mod-mono-server2)
+ echo "Using mono-apache-server2..."
+ sed 's@^Include.*$@Include /etc/mono-server2/mono-server2-hosts.conf@'\
+ < $MONO_CONF > $tempfile
+ cp -f $tempfile $MONO_CONF
+ rm -f $tempfile
+ ;;
+esac
+
Modified: libapache-mod-mono/trunk/debian/libapache2-mod-mono.postinst
===================================================================
--- libapache-mod-mono/trunk/debian/libapache2-mod-mono.postinst 2007-02-28 02:34:55 UTC (rev 2974)
+++ libapache-mod-mono/trunk/debian/libapache2-mod-mono.postinst 2007-02-28 03:42:05 UTC (rev 2975)
@@ -1,15 +1,20 @@
#!/bin/sh -e
+# Set up the environment
set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
+
#DEBHELPER#
+# If we aren't configuring, we don't do anything
if [ "$1" != "configure" ]; then
exit 0
fi
+# We're upgrading, don't ask again
if [ -n "$2" ]; then
-# we're upgrading, don't ask again
exit 0
fi
Added: libapache-mod-mono/trunk/debian/libapache2-mod-mono.templates
===================================================================
--- libapache-mod-mono/trunk/debian/libapache2-mod-mono.templates 2007-02-28 02:34:55 UTC (rev 2974)
+++ libapache-mod-mono/trunk/debian/libapache2-mod-mono.templates 2007-02-28 03:42:05 UTC (rev 2975)
@@ -0,0 +1,7 @@
+Template: libapache2-mod-mono/mono-server
+Type: select
+Choices: mod-mono-server, mod-mono-server2
+_Description: Use mono-server:
+ This module, libapache2-mod-mono, can be used with one of two different
+ mono ASP backends. `mono-server' implements ASP 1.1 while `mono-server2'
+ enables some, but not all, ASP 2.0 features.
More information about the Pkg-mono-svn-commits
mailing list