[Pkg-mono-svn-commits] rev 622 - in libapache-mod-mono/branches: . 0.7-4
Pablo Fischer
pabl0-guest@haydn.debian.org
Tue, 27 Apr 2004 11:32:21 -0600
Author: pabl0-guest
Date: 2004-04-27 11:32:18 -0600 (Tue, 27 Apr 2004)
New Revision: 622
Added:
libapache-mod-mono/branches/0.7-4/
libapache-mod-mono/branches/0.7-4/500mod_mono.info
libapache-mod-mono/branches/0.7-4/README.Debian
libapache-mod-mono/branches/0.7-4/TODO
libapache-mod-mono/branches/0.7-4/changelog
libapache-mod-mono/branches/0.7-4/control
libapache-mod-mono/branches/0.7-4/copyright
libapache-mod-mono/branches/0.7-4/docs
libapache-mod-mono/branches/0.7-4/files
libapache-mod-mono/branches/0.7-4/libapache-mod-mono.config
libapache-mod-mono/branches/0.7-4/libapache-mod-mono.dirs
libapache-mod-mono/branches/0.7-4/libapache-mod-mono.postinst
libapache-mod-mono/branches/0.7-4/libapache-mod-mono.prerm
libapache-mod-mono/branches/0.7-4/libapache-mod-mono.templates
libapache-mod-mono/branches/0.7-4/mono.conf
libapache-mod-mono/branches/0.7-4/postrm.debhelper
libapache-mod-mono/branches/0.7-4/rules
libapache-mod-mono/branches/0.7-4/substvars
Log:
Stable Version..
Added: libapache-mod-mono/branches/0.7-4/500mod_mono.info
===================================================================
--- libapache-mod-mono/branches/0.7-4/500mod_mono.info 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/500mod_mono.info 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,2 @@
+LoadModule: mono_module /usr/lib/apache/1.3/mod_mono.so
+Description: Run ASP.NET Pages on UNIX with Apache and Mono
Added: libapache-mod-mono/branches/0.7-4/README.Debian
===================================================================
--- libapache-mod-mono/branches/0.7-4/README.Debian 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/README.Debian 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,14 @@
+libapache-mod-mono for Debian
+-----------------------------
+
+libapache-mod-mono contains the mod_mono module for Apache that is needed to run
+asp.net applications in Apache.
+
+libapache-mod-mono depends on mono-server, cause mod_mono needs a socket to be connected, and
+mono-server (mod-mono-server) has it.
+
+If you want use apache as your webserver to run asp.net applications and want to test your
+own application, I suggest you to add a new alias in /etc/apache/conf.d/mono.conf and read the
+README.Debian of mono-server.
+
+ -- Pablo Fischer <pablo@pablo.com.mx>, Sat, 28 Feb 2004 14:55:56 -0600
Added: libapache-mod-mono/branches/0.7-4/TODO
===================================================================
--- libapache-mod-mono/branches/0.7-4/TODO 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/TODO 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,3 @@
+29 feb 2004 02:52:24
+
+* Look for beta testers :)
Added: libapache-mod-mono/branches/0.7-4/changelog
===================================================================
--- libapache-mod-mono/branches/0.7-4/changelog 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/changelog 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,46 @@
+libapache-mod-mono (0.7-4) unstable; urgency=low
+
+ * Fixed inst and removal scripts, now we check if we should start the mono-server
+ daemon, so we show the user a 'cleaner' way to install libapache-mod-mono :-)
+
+ -- Pablo Fischer <pablo@pablo.com.mx> Fri, 9 Apr 2004 18:41:36 -0600
+
+libapache-mod-mono (0.7-3) unstable; urgency=low
+
+ * libapache-mod-mono.prerm
+ + Fixed the apachecfg dir, I was using apache2.. and eww.. we are using apache 1.3, Fixed!
+ * control
+ + Removed libapache-mod-mono from the mono-server dependencies. When we are uninstalling
+ mod_mono we need mono-server to stop the daemon, removing it, fixes the problem
+ * libapache-mod-mono.postinst:
+ + A fix in the rules, in the != ones, I should do: "$var" != "cond", instead of
+ $var != "cond"
+ + Removed the turn on and turn off options, we don't need them, just with modules-config, and that's
+ all what we need to activate the mod_mono module, and added a disable functiont to disable
+ the module
+ * README.Debian
+ + Added with a brief explanation of what is the package and what is mod_mono.
+ * mono.conf:
+ + Added a new alias, /monodoc, for /monodoc application
+
+ -- Pablo Fischer <pablo@pablo.com.mx> Tue, 16 Mar 2004 12:31:57 -0600
+
+libapache-mod-mono (0.7-2) unstable; urgency=low
+
+ * Initial Release.
+ * Pablo Fischer:
+ + to the postinst: added two functions: restart_apache and
+ restart_monoserver.
+ + mono.conf: Added the DirectoryIndex. If we are running apache
+ with mod_mono, the best idea is to show first the index.aspx
+ as the index page.
+ + rules: We create the full parent directories to /etc/apache/conf.d.
+
+ -- Pablo Fischer <pablo@pablo.com.mx> Sun, 29 Feb 2004 03:35:16 -0600
+
+libapache-mod-mono (0.7-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Pablo Fischer <pablo@pablo.com.mx> Sat, 28 Feb 2004 14:55:56 -0600
+
Added: libapache-mod-mono/branches/0.7-4/control
===================================================================
--- libapache-mod-mono/branches/0.7-4/control 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/control 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,12 @@
+Source: libapache-mod-mono
+Section: unknown
+Priority: optional
+Maintainer: Pablo Fischer <pablo@pablo.com.mx>
+Build-Depends: debhelper (>= 4.0.0), apache-dev, libmono-dev
+Standards-Version: 3.6.0
+
+Package: libapache-mod-mono
+Architecture: any
+Depends: ${shlibs:Depends}, apache (>= 1.3.27-0.1), mono-jit, mono-server
+Description: Run ASP.NET Pages on UNIX with Apache and Mono
+ Run ASP.NET pages on Unix with Apache and Mono!
Added: libapache-mod-mono/branches/0.7-4/copyright
===================================================================
--- libapache-mod-mono/branches/0.7-4/copyright 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/copyright 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,10 @@
+This package was debianized by Pablo Fischer <pablo@pablo.com.mx> on
+Sat, 28 Feb 2004 14:55:56 -0600.
+
+It was downloaded from <fill in ftp site>
+
+Upstream Author(s): <put author(s) name and email here>
+
+Copyright:
+
+<Must follow here>
Added: libapache-mod-mono/branches/0.7-4/docs
===================================================================
--- libapache-mod-mono/branches/0.7-4/docs 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/docs 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,4 @@
+FAQ-old.txt
+FAQ-old.txt
+NEWS
+README
Added: libapache-mod-mono/branches/0.7-4/files
===================================================================
--- libapache-mod-mono/branches/0.7-4/files 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/files 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1 @@
+libapache-mod-mono_0.7-4_i386.deb unknown optional
Added: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.config
===================================================================
--- libapache-mod-mono/branches/0.7-4/libapache-mod-mono.config 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/libapache-mod-mono.config 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,36 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+db_capb backup
+db_title Mod Mono
+
+apachecfg="/etc/apache"
+
+STATE=1
+while [ "$STATE" != 0 -a "$STATE" != 3 ]; do
+ case "$STATE" in
+ 1)
+ db_input medium libapache-mod-mono/wellcome || true
+ if db_go; then
+ db_get libapache-mod-mono/wellcome || true
+ STATE=2
+ else
+ STATE=0
+ fi
+ ;;
+ 2)
+ db_input medium libapache-mod-mono/activate || true
+ if db_go; then
+ db_get libapache-mod-mono/activate || true
+ STATE=3
+ else
+ STATE=1
+ fi
+ ;;
+ esac
+done
+
+if [ "$STATE" = 0 ]; then
+ exit 1
+fi
Property changes on: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.config
___________________________________________________________________
Name: svn:executable
+ *
Added: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.dirs
===================================================================
--- libapache-mod-mono/branches/0.7-4/libapache-mod-mono.dirs 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/libapache-mod-mono.dirs 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,3 @@
+usr/lib
+usr/lib/apache/1.3
+etc/apache/conf.d
Added: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.postinst
===================================================================
--- libapache-mod-mono/branches/0.7-4/libapache-mod-mono.postinst 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/libapache-mod-mono.postinst 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,116 @@
+#!/bin/sh -e
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+
+apachecfg="/etc/apache"
+modmono_conf="$apachecfg/conf.d/mono.conf"
+tempfile=`/bin/tempfile`
+virtual_dirs=`mono-server-reader.conf`
+
+activate_module() {
+for i in apache apache-ssl; do
+ if [ -e $apachecfg ]; then
+ if [ -d /etc/$i ]; then
+ modules-config $i enable mod_mono
+ fi
+ fi
+done
+
+}
+
+disable_module() {
+for i in apache apache-ssl; do
+ if [ -e $apachecfg ]; then
+ if [ -d /etc/$i ]; then
+ modules-config $i disable mod_mono
+ fi
+ fi
+done
+
+}
+
+
+restart_apache() {
+ #Apache is already running?
+ if [ -f /var/run/mono-server ]; then
+ # Are we really running apache?
+ apache_pid=`cat /var/run/apache.pid`
+ apache_ps=`ps -p $apache_pid | wc -l`
+ # Are there any process running by that pid?
+ if [ "$apache_ps" != "1" ]; then
+ /etc/init.d/apache restart
+ fi
+ fi
+
+}
+
+
+shouldrestart_monoserver() {
+ if [ -e "/etc/default/mono-server" ]; then
+ . "/etc/default/mono-server"
+ if [ "$start_boot" != "true" ]; then
+ return 1
+ fi
+ fi
+
+ if [ ! -f /usr/lib/apache/1.3/500mod_mono.info ]; then
+ return 1
+ fi
+
+ if [ ! -e "/etc/mono-server/mono-server-hosts.conf" ]; then
+ return 1
+ fi
+
+ if [[ $virtual_dirs = *Sorry* ]]; then
+ return 1
+ fi
+
+ if [[ -z $virtual_dirs ]]; then
+ return 1
+ fi
+ return 0
+}
+
+restart_monoserver() {
+ if shouldrestart_monoserver ; then
+ echo -n "Starting Mono Server, mono-server: mono-server"
+ /etc/init.d/mono-server start > /dev/null 2>&1 || true
+ fi
+}
+
+
+case "$1" in
+ configure)
+ db_get libapache-mod-mono/activate
+ modmono_activate="$RET"
+
+ if [ $modmono_activate = "true" ]; then
+ activate_module
+ else
+ disable_module
+ fi
+
+ restart_apache
+ restart_monoserver
+
+ rm -Rf $tempfile
+
+
+ # Should we restart Apache?
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ #Do nothing..
+ ;;
+
+ *)
+ echo "postinst failed \`$1'" >&2
+ exit 0
+ ;;
+esac
+
+exit 0
Property changes on: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.postinst
___________________________________________________________________
Name: svn:executable
+ *
Added: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.prerm
===================================================================
--- libapache-mod-mono/branches/0.7-4/libapache-mod-mono.prerm 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/libapache-mod-mono.prerm 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,67 @@
+#!/bin/sh -e
+
+apachecfg="/etc/apache"
+
+turnoff_module() {
+for i in apache apache-ssl; do
+ if [ -e $apachecfg ]; then
+ if [ -d /etc/$i ]; then
+ modules-config $i disable mod_mono quiet
+ fi
+ fi
+done
+
+}
+
+
+restart_apache() {
+ #Apache is already running?
+ if [ -f /var/run/mono-server ]; then
+ # Are we really running apache?
+ apache_pid=`cat /var/run/apache.pid`
+ apache_ps=`ps -p $apache_pid | wc -l`
+ # Are there any process running by that pid?
+ if [ "$apache_ps" != "1" ]; then
+ /etc/init.d/apache restart
+ fi
+ fi
+}
+
+shouldstop_monoserver() {
+ if [ -f "/var/run/mono-server" ]; then
+ # Are we really running monoserver?
+ monoserver_pid=`cat /var/run/mono-server`
+ monoserver_ps=`ps -p $monoserver_pid | wc -l`
+ # Are there any process running by that pid?
+ if [ "$monoserver_ps" = "2" ]; then
+ return 0
+ else
+ return 1
+ fi
+ fi
+ return 0
+}
+
+restart_monoserver() {
+ if shouldstop_monoserver ; then
+ echo "Stopping Mono Server, mono-server: mono-server "
+ /etc/init.d/mono-server stop > /dev/null 2>&1 || true
+ fi
+}
+
+case "$1" in
+ remove)
+ turnoff_module
+ restart_apache
+ restart_monoserver
+ ;;
+ upgrade | deconfigure | failed-upgrade)
+ :
+ ;;
+ *)
+ echo "postinst failed \`$1'" >&2
+ exit 0
+ ;;
+esac
+
+exit 0
Property changes on: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.prerm
___________________________________________________________________
Name: svn:executable
+ *
Added: libapache-mod-mono/branches/0.7-4/libapache-mod-mono.templates
===================================================================
--- libapache-mod-mono/branches/0.7-4/libapache-mod-mono.templates 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/libapache-mod-mono.templates 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,12 @@
+Template: libapache-mod-mono/wellcome
+Type: text
+Description: Wellcome to ModMono Configuration
+ During the configuration of mod_mono you will be asked for
+ boolean questions. Once you finish it, you will be able to
+ enjoy the power of viewing and creating ASP.NET website
+
+Template: libapache-mod-mono/activate
+Default: true
+Type: boolean
+Description: Activate Module
+ Would you like to me to activate the mono module?
Added: libapache-mod-mono/branches/0.7-4/mono.conf
===================================================================
--- libapache-mod-mono/branches/0.7-4/mono.conf 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/mono.conf 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,12 @@
+#This is the config file for mod_mono
+#I suggest you to DON'T EDIT this file, you are warned
+
+<IfModule mod_mono.c>
+ AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
+ MonoUnixSocket /tmp/.mono-server/mod_mono_server
+ DirectoryIndex index.aspx
+ # The ASP.NET examples directory, create an Alias
+ Alias /samples /usr/share/asp.net-demos/asp
+ Alias /monodoc /usr/share/dotnet/monodoc/web
+</IfModule>
+
Added: libapache-mod-mono/branches/0.7-4/postrm.debhelper
===================================================================
--- libapache-mod-mono/branches/0.7-4/postrm.debhelper 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/postrm.debhelper 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,6 @@
+# Automatically added by dh_installdebconf
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+# End automatically added section
Added: libapache-mod-mono/branches/0.7-4/rules
===================================================================
--- libapache-mod-mono/branches/0.7-4/rules 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/rules 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1,112 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+APACHELIB = $(CURDIR)/debian/libapache-mod-mono/usr/lib/apache/1.3
+APACHEETC = $(CURDIR)/debian/libapache-mod-mono/etc/apache/conf.d
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+ dh_testdir
+ # Add here commands to configure the package.
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-apxs=/usr/bin/apxs
+
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #/usr/bin/docbook-to-man debian/libapache-mod-mono.sgml > libapache-mod-mono.1
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+ cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+ cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/libapache-mod-mono.
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/libapache-mod-mono
+
+ mkdir -p $(APACHEETC)
+ cp -f $(CURDIR)/debian/500mod_mono.info $(APACHELIB)/500mod_mono.info
+ cp -f $(CURDIR)/debian/mono.conf $(APACHEETC)/mono.conf
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+ dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
Property changes on: libapache-mod-mono/branches/0.7-4/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: libapache-mod-mono/branches/0.7-4/substvars
===================================================================
--- libapache-mod-mono/branches/0.7-4/substvars 2004-04-27 17:30:42 UTC (rev 621)
+++ libapache-mod-mono/branches/0.7-4/substvars 2004-04-27 17:32:18 UTC (rev 622)
@@ -0,0 +1 @@
+misc:Depends=debconf (>= 0.5) | debconf-2.0