--- xsp-1.9.1.orig/debian/mono-fastcgi-server2.docs
+++ xsp-1.9.1/debian/mono-fastcgi-server2.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS
--- xsp-1.9.1.orig/debian/mono-apache-server.docs
+++ xsp-1.9.1/debian/mono-apache-server.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS
--- xsp-1.9.1.orig/debian/mono-xsp.prerm
+++ xsp-1.9.1/debian/mono-xsp.prerm
@@ -0,0 +1,38 @@
+#!/bin/sh -e
+
+NAME=mono-xsp
+DESC="XSP WebServer"
+
+#0 : false
+#1 : true
+should_stop() {
+    if [ -f /var/run/$NAME.pid ]; then
+	# Are we really running xsp?
+	xsp_pid=`cat /var/run/$NAME.pid`
+	xsp_ps=`ps -p $xsp_pid | wc -l`
+	# Are there any process running by that pid?
+	if [ "$xsp_ps" = "2" ]; then
+	    return 0
+	else
+	    return 1
+	fi
+    fi  
+    return 0
+}
+
+case "$1" in
+    remove)
+	# should we stop the server?
+	if should_stop ; then
+	    if which invoke-rc.d >/dev/null 2>&1; then
+		invoke-rc.d mono-xsp stop
+	    else
+		/etc/init.d/mono-xsp stop
+	    fi
+	fi
+	;;
+    esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/mono-apache-server.config
+++ xsp-1.9.1/debian/mono-apache-server.config
@@ -0,0 +1,30 @@
+#!/bin/bash -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+db_capb backup
+db_title ModMono Server
+
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium monoserver/monoserver_restartapache || true
+	    if db_go; then
+		db_get monoserver/monoserver_restartapache || true
+		if [ "$RET" = "true" ]; then
+		    STATE=2
+		else
+		    db_set  monoserver/monoserver_restartapache false || true
+		    STATE=2
+		fi
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
--- xsp-1.9.1.orig/debian/dirs
+++ xsp-1.9.1/debian/dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/sbin
+usr/share/man/man8
+usr/share/man/man1
--- xsp-1.9.1.orig/debian/mono-apache-server2.config
+++ xsp-1.9.1/debian/mono-apache-server2.config
@@ -0,0 +1,30 @@
+#!/bin/bash -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+db_capb backup
+db_title ModMono Server
+
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium monoserver2/monoserver2_restartapache || true
+	    if db_go; then
+		db_get monoserver2/monoserver2_restartapache || true
+		if [ "$RET" = "true" ]; then
+		    STATE=2
+		else
+		    db_set  monoserver2/monoserver2_restartapache false || true
+		    STATE=2
+		fi
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
--- xsp-1.9.1.orig/debian/mono-apache-server.install
+++ xsp-1.9.1/debian/mono-apache-server.install
@@ -0,0 +1,5 @@
+debian/tmp/usr/lib/mono/1.0/mod-mono-server.exe
+debian/tmp/usr/lib/mono/gac/mod-mono-server
+debian/tmp/usr/bin/mod-mono-server
+debian/tmp/usr/sbin/mono-server-admin
+debian/tmp/usr/sbin/mono-server-update
--- xsp-1.9.1.orig/debian/asp.net2-examples.README.Debian
+++ xsp-1.9.1/debian/asp.net2-examples.README.Debian
@@ -0,0 +1,16 @@
+asp.net-examples for Debian
+----------------------------
+
+This package contains example ASP.NET 2.0 applications. The examples are
+installed in /usr/share/asp.net2-demos/.
+
+If you are using the standalone XSP2 server, you can access the examples at
+http://localhost:8080/samples
+
+If you are using mod_mono to run ASP.NET applications via Apache, you can
+access the examples at http://localhost/samples
+
+Be sure to make sure xsp2 is running instead of xsp or you will
+encounter errors.
+
+ -- Dylan R. E. Moonfire <debian@mfgames.com>, Thu, 21 Jul 2005 11:49:29 -0500
--- xsp-1.9.1.orig/debian/mono-xsp2-update.conf
+++ xsp-1.9.1/debian/mono-xsp2-update.conf
@@ -0,0 +1,225 @@
+#!/usr/bin/perl -w
+# Automatic mono-server file generator
+#
+# With this script the user can update the host files 
+# that are installed in /etc/mono-server/conf.d/package and create a 
+# 'big' host file (/etc/mono-server/mono-server*-hosts.conf) that will be used
+# by mono-server to setup the virtual hosts needed by 
+# the user.
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-xsp2-update.conf - creates .webapp needed by xsp2
+
+=head1 SYNOPSIS
+
+mono-xsp2-update.conf
+
+=head1 DESCRIPTION
+
+ mono-xsp2-update.conf is a perl tool to update/create a .webapp in /etc/xsp2
+
+ This file is needed by xsp2 cause it has all each ASP.NET application with a path and alias, needed 
+ by xsp2 to setup these applications.
+
+ The .webapp is created with other host configuration files that are in /etc/xsp2/conf.d
+
+ For more information read the README.Debian of this package (/usr/share/doc/mono-xsp2/README.Debian).
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut
+
+use strict; 
+use Digest::MD5;
+
+#Main vars..
+my ($monoxsp2_dir, $monoxsp2_confd, $monoxsp2_hostfile, $monoxsp2_webapp,
+    $daemon, $daemon_pid, $default_file,
+    $applications, $libs);
+
+#Setup main vars
+$monoxsp2_dir = "/etc/xsp2";
+$monoxsp2_confd = "$monoxsp2_dir/conf.d";
+$monoxsp2_webapp = "$monoxsp2_dir/debian.webapp";
+$daemon = "/etc/init.d/mono-xsp2";
+$daemon_pid = "/var/run/mono-xsp2.pid";
+$applications = "";
+$default_file = "/etc/default/mono-xsp2";
+
+my $restart = "yes";
+my $first_file = "yes";
+my ($orig_md5, $new_md5);
+
+#Check write access to $monoxsp2_hostfile
+if( ( -e "$monoxsp2_webapp" && ! -w "$monoxsp2_webapp" ) || ! -w "$monoxsp2_dir" ) {
+    print "mono-xsp2-update.conf requires write access to $monoxsp2_webapp or 
+be executed by root\n" ; 
+    exit 1 ;
+}
+
+#Read the default file
+&read_default_file;
+#Orig md5
+$orig_md5 = &get_md5;
+#Read directory..
+&read_dir;
+#The tail
+&write_tempdefault_end;
+#Prepare the application string
+$applications =~ s/,$//;
+#Final md5
+$new_md5 = &get_md5;
+#Equal?
+if(("$new_md5" ne "$orig_md5") && ($restart eq "yes")) {
+    if(( -f $daemon ) && ( -f $daemon_pid )) {
+	system("$daemon restart");
+    }
+}
+
+
+sub get_md5 {
+    if( -e $monoxsp2_webapp ) {
+	open(WEBAPP, $monoxsp2_webapp);
+	binmode(WEBAPP);
+	return Digest::MD5->new->addfile(*WEBAPP)->hexdigest;
+	
+    }
+    else {
+	return "";
+    }
+}
+
+sub read_default_file {
+    
+    if(-e $default_file) {
+	open(DEFAULT_FILE, "$default_file");
+	while(my $line = <DEFAULT_FILE>) {
+	    if($line =~ /start_boot/i) {
+		if($line =~ /true/i) {
+		    $restart = "yes";
+		}
+		else {
+		    $restart = "no";
+		}
+	    }
+	}
+	close(DEFAULT_FILE);
+    }
+}
+
+
+sub read_dir {
+    opendir(DIR, $monoxsp2_confd);
+    my @host_dirs = sort (grep { -d "$monoxsp2_confd/$_" } readdir(DIR));
+    closedir(DIR);
+
+    system("rm -Rf $monoxsp2_webapp");
+    system("touch $monoxsp2_webapp");
+
+    #How many dirs?
+    if($#host_dirs ne "0") {
+	#The head
+	&write_tempdefault_start;
+	foreach my $dir (@host_dirs) {
+	    if(($dir ne "..") && ($dir ne ".")) {
+		#Ok, in the dir.. we have more files, so read them
+		opendir(DIR, "$monoxsp2_confd/$dir");
+		my @host_files = sort (readdir(DIR));
+		closedir(DIR);
+		#Is it empty?		
+		if($#host_files ne "0") {
+		    #So, read it..
+		    foreach my $hostfile (@host_files) {
+			#Just remember.. we don't like directories inside directories!
+			if(($hostfile ne "..") && ($hostfile ne ".")) {
+			    $hostfile = "$monoxsp2_confd/$dir/$hostfile";
+			    write_tempxsp2hostfile($hostfile);
+			}
+		    }
+		}
+	    }
+	}
+    }
+}
+
+sub write_tempdefault_start {
+
+    open(TEMPWEBAPP, ">> $monoxsp2_webapp");
+    print TEMPWEBAPP "<apps>\n";
+    close(TEMPWEBAPP);
+    
+}
+
+
+sub write_tempdefault_end {
+
+    open(TEMPWEBAPP, ">> $monoxsp2_webapp");
+    print TEMPWEBAPP "</apps>\n";
+    close(TEMPWEBAPP);
+
+}  
+
+sub write_tempxsp2hostfile {
+    my $hostfile = shift;
+
+    #Write the content to a temp file..
+    open(TEMPWEBAPP, ">> $monoxsp2_webapp");
+    #And open the hostfile..
+    open(HOSTFILE, "$hostfile");
+    #Read it..
+    my @content_hostfile = <HOSTFILE>;
+    #Close it..
+    close(HOSTFILE);
+    #Write the header to the monoxsp2_hostfile
+    
+    my ($path, $alias, $name);
+
+    foreach my $line (@content_hostfile) {	
+	if($line =~ /path/i) {
+	    #Ok, the directory exists?
+	    my $dir = (split /\=/, $line)[1];
+	    #Remove blank spaces
+	    $dir =~ tr/\ //d;
+	    #remove that \n
+	    $dir =~ s/\n//;
+ 	    if ( ! -d "$dir" ) {
+		$dir = "";
+		last;
+ 	    }
+	    else {
+		$path = $dir;
+	    }
+	}
+
+	if($line =~ /alias/i) {
+	    $alias = (split /\=/, $line)[1];
+	    #Blank Spaces
+	    $alias =~ tr/\ //d;
+	    #New lines..
+	    $alias =~ s/\n//;
+	    #The name
+	    $name = $alias;
+	    $name =~ s|/*||;
+	}	
+    }	
+    
+    if($path) {
+	$applications = "$applications$alias:$path,";
+	$libs = "$libs:";
+
+	print TEMPWEBAPP "  <web-application>\n";
+	print TEMPWEBAPP "    <name>$name</name>\n";
+	print TEMPWEBAPP "    <vpath>$alias</vpath>\n";       
+	print TEMPWEBAPP "    <path>$path</path>\n";
+	print TEMPWEBAPP "  </web-application>\n";
+    }
+    close(TEMPWEBAPP);
+}  
--- xsp-1.9.1.orig/debian/mono-xsp2-admin.conf
+++ xsp-1.9.1/debian/mono-xsp2-admin.conf
@@ -0,0 +1,173 @@
+#!/usr/bin/perl
+# mono-xsp2 hosts file creator
+#
+# With this script the user can create a host file in one step, 
+# these hosts file are installed in /etc/xsp2/conf.d/package and 
+# then used in a 'big' host file (/etc/xsp2/mono-server*-hosts.conf) 
+# that will be used by XSP2
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-xsp2-admin.conf - mono-xsp2 hosts file creator
+    
+=head1 SYNOPSIS
+    
+mono-xsp2-admin.conf [action] [args]
+
+=head2 OPTIONS
+
+  Actions:
+    
+    add        Use 'add' if you want to create an application and want mono-xsp2 scripts to manage it
+    del        If you want to remove an application
+
+  Args:
+
+    --path     The path where you have your aspx files, MUST EXISTS!, required only with add action
+    --app      The name of your application
+
+=head1 DESCRIPTION
+
+ mono-xsp2-admin.conf is a perl tool to adminstrate your ASP.NET webapps that will be executed with 
+ xsp2.
+
+ When you try to add an application, admin.conf will verify that your path exists, if it is, it will 
+ add a directory inside /etc/xsp2/conf.d with the name of your app, and also as a file with the 
+ filename format: 10_appname. This file will have the information (path, app).
+
+ So, when mono-xsp2-update.conf is executed it will read those dirs and create a debian.webapp in
+ /etc/xsp2 that the xsp2 daemon will read.
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut 
+
+use strict;
+
+my (%OPT);
+
+my $confd_directory = "/etc/xsp2/conf.d";
+
+#Read the opts
+foreach my $opt (@ARGV) {
+    if($opt =~ /^add/) {
+	$OPT{'action'} = "add";
+    }
+    
+    elsif($opt =~ /^del/) {
+	$OPT{'action'} = "del";
+    }	
+
+    elsif($opt =~ /--path/) {
+	$OPT{'path'} = $opt;
+    }    
+
+    elsif($opt =~ /--app/) {
+	$OPT{'app'} = $opt;
+    }   
+}
+
+
+#clean strange chars, like ':', commas, etc.. I don't like those chars
+sub clean_opts() {
+    foreach my $key (keys %OPT) {	
+	next unless $key ne "action";
+	my $value = $OPT{$key};
+	$OPT{$key} = (split("=", $OPT{$key}))[1];
+	if($key ne "path") {
+	    $OPT{$key} =~ s|/*||;
+	}
+	$OPT{$key} =~ s{/$}{}; 
+			$OPT{$key} =~ s|:*||;
+		    }
+    }
+
+#We have the path, app, name and the action?
+    sub verify_neededopts() {
+	if($OPT{'action'} ne "add" && $OPT{'action'} ne "del") {
+	    &help;
+	    exit;
+	}
+
+	if(!$OPT{'path'}) {
+	    print "I need the path of your asp.net application\n";
+	    exit;
+	}
+
+	if(!$OPT{'app'}) {
+	    print "You should declare the application name!\n";
+	    exit;
+	}
+    }
+
+#Add the Host file and directory    
+    sub add_host() {
+	if( ! -d $OPT{'path'} ) {
+	    print "$OPT{'path'} does not exists!\n";
+	    exit;
+	}
+	#But what if the conf.d package directory already exists?
+	if ( -d "$confd_directory/$OPT{'app'}") {
+	    print "Sorry but $confd_directory/$OPT{'app'} already exist, you might change your application name\n";
+	    exit;
+	}
+	
+	#Ok, create the conf.d package directory
+	system("mkdir $confd_directory/$OPT{'app'}");
+	#And create the file
+	system("touch $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+	
+	open(PACKAGEFILE, "> $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+	print PACKAGEFILE "This is the configuration file \n";
+	print PACKAGEFILE "for the $OPT{'app'} virtualhost\n";
+	print PACKAGEFILE "path = $OPT{'path'}\n";
+	print PACKAGEFILE "alias = /$OPT{'app'}\n";
+	close(PACKAGEFILE);
+	
+	system("/usr/sbin/mono-xsp2-update.conf");
+	print "done!\n";
+    }
+
+#Remove the host directory
+    sub del_host() {
+	
+	system("rm -Rf $confd_directory/$OPT{'app'}");
+	system("/usr/sbin/mono-xsp2-update.conf");
+	
+	print "done!\n";
+    }
+    
+    sub help() {
+	print "This script let the user to create a application host file in one step \n";
+	print "for XSP2 (/etc/xsp2/conf.d/application\n\n";
+	print "Use:\n";
+	print " mono-xsp2-admin.conf [action] --path=/real/path --app=/applicationame\n\n";
+	print "Where:\n";
+	print " action:\n";
+	print " add                   Creates an application\n";
+	print " del                   Delete an application (the directory /etc/mono-server/conf.d/application\n";
+	print " --path=/real/path     A real and true path where you have your ASP.NET applicatio running\n";
+	print " --app=/application    The name of the application\n";
+    }
+
+    &clean_opts;
+    &verify_neededopts;
+
+    if($OPT{'action'} eq"add") {
+	&add_host;
+    }
+    elsif($OPT{'action'} eq "del") {
+	&del_host;
+    }
+
+    
+
+
+
--- xsp-1.9.1.orig/debian/mono-server-reader.conf
+++ xsp-1.9.1/debian/mono-server-reader.conf
@@ -0,0 +1,109 @@
+#!/usr/bin/perl -w
+# Automatic mono-server file generator
+#
+# With this script the user (or daemon) can check if the 'big' mono-server host 
+# file is ok and in the right sintax, if there is an error it will exit
+# and print the reason in the format: *SORRY*: message.
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+use strict;
+
+#Main vars..
+my ($monoserver_dir, $monoserver_confd, $monoserver_hostfile);
+
+
+#Setup main vars
+$monoserver_dir = "/etc/mono-server";
+$monoserver_confd = "$monoserver_dir/conf.d";
+$monoserver_hostfile = "$monoserver_dir/mono-server-hosts.conf";  
+
+
+#Check if the user have write access to $monoserver_hostfile
+if( ( -e "$monoserver_hostfile" && ! -w "$monoserver_hostfile" ) || ! -w "$monoserver_dir" ) {
+    print "mono-host-reader requires to be executed as root\n" ; 
+    exit 1 ;
+}
+
+if( ! -f "$monoserver_hostfile" ) {
+    print "Sorry\, but you don't have $monoserver_hostfile\n";
+    exit 0;
+}
+
+my $opened_section = 0;
+my $applications = "";
+
+my ($path, $alias);
+#1 -> true
+#0 -> false
+#Ok, open the file for read mode
+
+open(HOSTFILE, $monoserver_hostfile);
+#.. read it!
+#Line counter
+my $counter = 0;
+while(my $line = <HOSTFILE>) {
+    $counter++;
+    if($line =~ /begin/i) {
+	if($opened_section eq "1") {
+	    print "Sorry\, but you are opening a section before closing the last one (line $counter)\n";
+	    last;
+	}
+	else {
+	    $opened_section = "1";
+	}
+    }
+
+    if($line =~ /end/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you are closing an unopened section (line $counter)\n";
+	}
+	else {
+	    $opened_section = "0";
+	    $applications = "$applications$alias:$path,";
+	}
+    }	
+    
+    if($line =~ /path/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you have a path in a unopened section (line $counter)\n";
+	    last;
+	}
+	else {
+	    #Ok, the directory exists?
+	    my $dir = (split /\=/, $line)[1];
+	    #Remove blank spaces
+	    $dir =~ tr/\ //d;
+	    #remove that \n
+	    $dir =~ s/\n//;
+ 	    if ( ! -d "$dir" ) {
+ 		print "Sorry\, but you have a path that doesn't exists in your system! (line $counter)\n";
+		last;
+ 	    }
+	    else {
+		$path = $dir;
+	    }
+	}
+    }
+
+    if($line =~ /alias/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you have an alias in a unopened section (line $counter)\n";
+	    last;
+	}
+	else {
+	    $alias = (split /\=/, $line)[1];
+	    #Blank Spaces
+	    $alias =~ tr/\ //d;
+	    #New lines..
+	    $alias =~ s/\n//;
+	}
+    }	
+}
+	
+close(HOSTFILE);
+$applications =~ s/,$//;
+print $applications;
--- xsp-1.9.1.orig/debian/mono-xsp.config
+++ xsp-1.9.1/debian/mono-xsp.config
@@ -0,0 +1,72 @@
+#!/bin/bash -e
+
+# Initialization
+. /usr/share/debconf/confmodule
+db_version 2.0
+db_capb backup
+db_title XSP WebServer
+
+# Autostart
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium xsp/xsp_autostart || true
+	    if db_go; then
+		db_get xsp/xsp_autostart || true
+		if [ "$RET" = "true" ]; then
+		    STATE=2
+		else
+		    db_set  xsp/xsp_autostart false || true
+		    STATE=2
+		fi
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
+
+# Bind
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium xsp/xsp_bind || true
+	    if db_go; then
+		db_get xsp/xsp_bind || true
+		STATE=2
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
+
+# Port
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium xsp/xsp_port || true
+	    if db_go; then
+		db_get xsp/xsp_port || true
+		STATE=2
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
--- xsp-1.9.1.orig/debian/mono-xsp2.preinst
+++ xsp-1.9.1/debian/mono-xsp2.preinst
@@ -0,0 +1,21 @@
+#!/bin/sh
+set -e
+
+NAME=mono-xsp2
+DESC="XSP WebServer"
+
+case "$1" in
+   upgrade|install)
+	if [ -f /etc/init.d/mono-xsp2 ]; then
+	    if which invoke-rc.d > /dev/null 2>&1; then
+		invoke-rc.d mono-xsp2 stop
+	    else
+		/etc/init.d/mono-xsp2 stop
+	    fi
+	fi
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/postinst-monoxsp
+++ xsp-1.9.1/debian/postinst-monoxsp
@@ -0,0 +1,8 @@
+if [ "$1" = "configure" ]; then
+    if [ -x /usr/sbin/mono-xsp-update ]; then
+	/usr/sbin/mono-xsp-update || true
+    fi
+    if [ -x /usr/sbin/mono-server-update ]; then
+	/usr/sbin/mono-server-update || true
+    fi
+fi
--- xsp-1.9.1.orig/debian/watch
+++ xsp-1.9.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://go-mono.com/sources-stable/ .*/xsp-(.*)\.(?:zip|(?:tar\.(?:bz2|gz)))
--- xsp-1.9.1.orig/debian/mono-apache-server.postinst
+++ xsp-1.9.1/debian/mono-apache-server.postinst
@@ -0,0 +1,45 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+modmono_default="/etc/default/mono-apache-server"
+
+restart_apache_on() {
+    sed s/start_apache=false/start_apache=true/g $modmono_default > $tempfile
+    cp $tempfile $modmono_default
+}
+
+restart_apache_off() {
+    sed s/start_apache=true/start_apache=false/g $modmono_default > $tempfile
+    cp $tempfile $modmono_default
+}
+
+daemon_turn_off() {
+    if [ -x /etc/init.d/mono-server ]; then
+	update-rc.d -f mono-server remove > /dev/null
+    fi
+}
+
+case "$1" in
+    configure)
+	tempfile=$(/bin/tempfile)
+	
+	db_get monoserver/monoserver_restartapache || true
+	daemon_turn_off
+	if [ "$RET" = "true" ]; then
+	    restart_apache_on
+	else
+	    restart_apache_off
+	fi
+
+	mono-server-update
+	
+	rm $tempfile
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/mono-server2-admin.conf
+++ xsp-1.9.1/debian/mono-server2-admin.conf
@@ -0,0 +1,203 @@
+#!/usr/bin/perl
+# mono-server22 hosts file creator
+#
+# With this script the user can create a host file in one step, 
+# these hosts file are installed in /etc/mono-server22/conf.d/package and 
+# then used in a 'big' host file (/etc/mono-server22/mono-server2*-hosts.conf) 
+# that will be used by mono-server22
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-server2-admin - mono-server2 hosts file creator, hosts file is part of the debianized mod_mono package
+    
+=head1 SYNOPSIS
+    
+mono-server2-admin.conf [action] [args]
+
+=head2 OPTIONS
+
+  Actions:
+    
+    add        Use 'add' if you want to create an application and want mono-server2 scripts to manage it
+    del        If you want to remove an application
+
+  Args:
+
+    --path     The path where you have your aspx files, MUST EXISTS!, required only with add action
+    --app      The name of your application
+    --libs     If you have dlls outside your path, you must use this!
+    --port     Needed if you are running multiple virtual hosts in different ports in Apache 
+    --vhost    If you want to add asp.net support to a virtualhost you must use this. Example: foobar.com
+
+=head1 DESCRIPTION
+
+ mono-server2-admin.conf is a perl tool to adminstrate your ASP.NET webapps that will be executed with 
+ mod_mono.
+
+ When you try to add an application, admin.conf will verify that your path exists, if it is, it will 
+ add a directory inside /etc/xsp/conf.d with the name of your app, and also as a file with the 
+ filename format: 10_appname. This file will have the information (path, app).
+
+ So, when mono-xsp-update.conf is executed it will read those dirs and create a debian.webapp in
+ /etc/xsp that the xsp daemon will read, also with a mono-server2-hosts.conf that will have your 
+ directory settings with apache directives. Apache will read mono-server2-hosts.conf!
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut 
+
+use strict;
+
+my (%OPT);
+
+#Initializes vars
+$OPT{'port'} = "80";
+$OPT{'vhost'} = "*";
+
+my $confd_directory = "/etc/mono-server2/conf.d";
+
+#Read the opts
+foreach my $opt (@ARGV) {
+    if($opt =~ /^add/) {
+	$OPT{'action'} = "add";
+    }
+    
+    elsif($opt =~ /^del/) {
+	$OPT{'action'} = "del";
+    }	
+
+    elsif($opt =~ /--path/) {
+	$OPT{'path'} = $opt;
+    }    
+
+    elsif($opt =~ /--app/) {
+	$OPT{'app'} = $opt;
+    }   
+
+    elsif($opt =~ /--libs/) {
+	$OPT{'libs'} = $opt;
+    }
+
+    elsif($opt =~ /--port/) {
+	$OPT{'port'} = $opt;
+    }
+
+    elsif($opt =~ /--vhost/) {
+	$OPT{'vhost'} = $opt;
+    }
+}
+
+#clean strange chars, like ':', commas, etc.. I don't like those chars
+sub clean_opts() {
+    foreach my $key (keys %OPT) {	
+	next unless $key ne "action";
+	my $value = $OPT{$key};
+	$OPT{$key} = (split("=", $OPT{$key}))[1];
+	if($key ne "path" && $key ne "libs") {
+	    $OPT{$key} =~ s|/*||;
+	}
+	$OPT{$key} =~ s{/$}{}; 
+	$OPT{$key} =~ s|:*||;
+    }
+}
+
+#We have the path, app, name and the action?
+sub verify_neededopts() {
+    if($OPT{'action'} ne "add" && $OPT{'action'} ne "del") {
+	&help;
+	exit;
+    }
+
+    if(!$OPT{'path'} && $OPT{'action'} eq "add") {
+	print "I need the path of your asp.net application\n";
+	exit;
+    }
+
+    if(!$OPT{'app'}) {
+	print "You should declare the application name!\n";
+	exit;
+    }
+}
+
+#Add the Host file and directory    
+sub add_host() {
+    if( ! -d $OPT{'path'} ) {
+	print "$OPT{'path'} does not exists!\n";
+	exit;
+    }
+    #But what if the conf.d package directory already exists?
+    if ( -d "$confd_directory/$OPT{'app'}") {
+	print "Sorry but $confd_directory/$OPT{'app'} already exist, you might change your application name\n";
+	exit;
+    }
+    
+    #Ok, create the conf.d package directory
+    system("mkdir $confd_directory/$OPT{'app'}");
+    #And create the file
+    system("touch $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+    
+    open(PACKAGEFILE, "> $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+    print PACKAGEFILE "This is the configuration file \n";
+    print PACKAGEFILE "for the $OPT{'app'} virtualhost\n";
+    print PACKAGEFILE "path = $OPT{'path'}\n";
+    print PACKAGEFILE "alias = /$OPT{'app'}\n";
+    if($OPT{'libs'}) {
+	print PACKAGEFILE "libs = $OPT{'libs'}\n";
+    }
+    if($OPT{'vhost'}) {
+	print PACKAGEFILE "vhost = $OPT{'vhost'}\n";
+    } else {
+	print PACKAGEFILE "vhost = localhost\n";
+    }
+    if($OPT{'port'}) {
+	print PACKAGEFILE "port = $OPT{'port'}\n";
+    } else {
+	print PACKAGEFILE "port = 80\n";
+    }
+    close(PACKAGEFILE);
+    
+    system("/usr/sbin/mono-server2-update.conf");
+    print "done!\n";
+}
+
+#Remove the host directory
+sub del_host() {
+    
+    system("rm -Rf $confd_directory/$OPT{'app'}");
+    system("/usr/sbin/mono-server2-update.conf");
+    
+    print "done!\n";
+}
+    
+sub help() {
+    print "This script let the user to create a application host file in one step \n";
+    print "for mono-server2 (/etc/mono-server2/conf.d/application\n\n";
+    print "Use:\n";
+    print " mono-server2-admin.conf [action] --path=/real/path --app=/applicationame\n\n";
+    print "Where:\n";
+    print " action:\n";
+    print " add                   Creates an application\n";
+    print " del                   Delete an application (the directory /etc/mono-server2/conf.d/application\n";
+    print " --path=/real/path     A real and true path where you have your ASP.NET applicatio running\n";
+    print " --app=/application    The name of the application\n";
+    print " --libs=/libs          If you have your libs out of path\n";
+    print " --vhost=vhost         The VirtualHost you have in your apache config, Default: localhost\n";
+    print " --port=port           The port of your virtualhost. Default: 80\n";
+}
+
+&clean_opts;
+&verify_neededopts;
+
+if($OPT{'action'} eq "add") {
+    &add_host;
+}
+elsif($OPT{'action'} eq "del") {
+    &del_host;
+}
--- xsp-1.9.1.orig/debian/mono-xsp2.prerm
+++ xsp-1.9.1/debian/mono-xsp2.prerm
@@ -0,0 +1,39 @@
+#!/bin/sh
+set -e
+
+NAME=mono-xsp2
+DESC="XSP WebServer"
+
+#0 : false
+#1 : true
+should_stop() {
+    if [ -f /var/run/$NAME.pid ]; then
+	# Are we really running xsp2?
+	xsp2_pid=`cat /var/run/$NAME.pid`
+	xsp2_ps=`ps -p $xsp2_pid | wc -l`
+	# Are there any process running by that pid?
+	if [ "$xsp2_ps" = "2" ]; then
+	    return 0
+	else
+	    return 1
+	fi
+    fi  
+    return 0
+}
+
+case "$1" in
+    remove)
+	# should we stop the server?
+	if should_stop ; then
+	    if which invoke-rc.d >/dev/null 2>&1; then
+		invoke-rc.d mono-xsp2 stop
+	    else
+		/etc/init.d/mono-xsp2 stop
+	    fi
+	fi
+	;;
+    esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/patches/99_autoreconf.dpatch
+++ xsp-1.9.1/debian/patches/99_autoreconf.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 99_autoreconf.dpatch by Mirco Bauer <meebey@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad xsp-1.9.1~/Makefile.in xsp-1.9.1/Makefile.in
+--- xsp-1.9.1~/Makefile.in	2008-04-09 00:56:59.000000000 +0200
++++ xsp-1.9.1/Makefile.in	2008-07-24 18:07:07.000000000 +0200
+@@ -163,7 +163,7 @@
+ target_vendor = @target_vendor@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = man src test tools scripts docs packaging unittests
++SUBDIRS = man src test tools scripts docs packaging
+ all: all-recursive
+ 
+ .SUFFIXES:
--- xsp-1.9.1.orig/debian/patches/fix_mono_nunit.dpatch
+++ xsp-1.9.1/debian/patches/fix_mono_nunit.dpatch
@@ -0,0 +1,32 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix_mono_nunit.dpatch by Jo Shields <directhex@apebox.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Change pkg-config requests from 'mono-nunit' to 'nunit'
+
+@DPATCH@
+diff -urNad xsp-1.9.1~/unittests/Tests.XSP.Security/Makefile.am xsp-1.9.1/unittests/Tests.XSP.Security/Makefile.am
+--- xsp-1.9.1~/unittests/Tests.XSP.Security/Makefile.am	2008-06-16 10:34:15.000000000 +0100
++++ xsp-1.9.1/unittests/Tests.XSP.Security/Makefile.am	2008-06-16 10:34:37.000000000 +0100
+@@ -9,7 +9,7 @@
+ unittests_DATA = $(security_test_sources) Tests.XSP.Security.dll Makefile
+ 
+ Tests.XSP.Security.dll: $(security_test_sources)
+-	mcs -debug -pkg:mono-nunit -out:$@ -t:library $(security_test_sources)
++	mcs -debug -pkg:nunit -out:$@ -t:library $(security_test_sources)
+ 
+ run-test: Tests.XSP.Security.dll
+ 	nunit-console Tests.XSP.Security.dll
+diff -urNad xsp-1.9.1~/unittests/Tests.XSP.Security/Makefile.in xsp-1.9.1/unittests/Tests.XSP.Security/Makefile.in
+--- xsp-1.9.1~/unittests/Tests.XSP.Security/Makefile.in	2008-06-16 10:34:15.000000000 +0100
++++ xsp-1.9.1/unittests/Tests.XSP.Security/Makefile.in	2008-06-16 10:34:46.000000000 +0100
+@@ -337,7 +337,7 @@
+ 
+ 
+ Tests.XSP.Security.dll: $(security_test_sources)
+-	mcs -debug -pkg:mono-nunit -out:$@ -t:library $(security_test_sources)
++	mcs -debug -pkg:nunit -out:$@ -t:library $(security_test_sources)
+ 
+ run-test: Tests.XSP.Security.dll
+ 	nunit-console Tests.XSP.Security.dll
+
--- xsp-1.9.1.orig/debian/patches/fix_dbpage1_typo.dpatch
+++ xsp-1.9.1/debian/patches/fix_dbpage1_typo.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix_dbpage1_typo.dpatch by  <dylan@localhost>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad xsp-1.2.4~/test/1.1/webcontrols/dbpage1.aspx xsp-1.2.4/test/1.1/webcontrols/dbpage1.aspx
+--- xsp-1.2.4~/test/1.1/webcontrols/dbpage1.aspx	2007-04-19 23:11:28.000000000 -0500
++++ xsp-1.2.4/test/1.1/webcontrols/dbpage1.aspx	2007-06-20 18:01:04.000000000 -0500
+@@ -30,7 +30,7 @@
+ 			providerAssembly = "Npgsql";
+ 		
+ 		if (cncTypeName == null || cncTypeName == "")
+-			cncTypeName = "Npgsql.NpgqlConnection";
++			cncTypeName = "Npgsql.NpgsqlConnection";
+ 		
+ 		if (cncString == null || cncString == "")
+ 			cncString = "server=127.0.0.1;user id=monotest;password=monotest;dbname=monotest";
--- xsp-1.9.1.orig/debian/patches/disable_building_unittests.dpatch
+++ xsp-1.9.1/debian/patches/disable_building_unittests.dpatch
@@ -0,0 +1,14 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## disable_building_unittests.dpatch by Mirco Bauer <meebey@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad xsp-1.2.6~/Makefile.am xsp-1.2.6/Makefile.am
+--- xsp-1.2.6~/Makefile.am	2007-11-16 23:58:08.000000000 +0100
++++ xsp-1.2.6/Makefile.am	2008-03-01 16:38:32.000000000 +0100
+@@ -1,2 +1,2 @@
+-SUBDIRS=man src test tools scripts docs packaging unittests
++SUBDIRS=man src test tools scripts docs packaging
+ 
--- xsp-1.9.1.orig/debian/patches/00list
+++ xsp-1.9.1/debian/patches/00list
@@ -0,0 +1,4 @@
+#fix_dbpage1_typo.dpatch
+#fix_mono_nunit.dpatch
+disable_building_unittests
+99_autoreconf
--- xsp-1.9.1.orig/debian/asp.net-examples.install
+++ xsp-1.9.1/debian/asp.net-examples.install
@@ -0,0 +1 @@
+debian/tmp/usr/share/asp.net-demos
--- xsp-1.9.1.orig/debian/mono-xsp-base.install
+++ xsp-1.9.1/debian/mono-xsp-base.install
@@ -0,0 +1,8 @@
+debian/tmp/usr/lib/mono/1.0/Mono.WebServer.dll
+debian/tmp/usr/lib/mono/gac/Mono.WebServer
+debian/tmp/usr/lib/pkgconfig/xsp.pc
+debian/dh_installxsp /usr/bin
+debian/postrm-monoxsp /usr/share/debhelper/autoscripts
+debian/postrm-monoxsp2 /usr/share/debhelper/autoscripts
+debian/postinst-monoxsp /usr/share/debhelper/autoscripts
+debian/postinst-monoxsp2 /usr/share/debhelper/autoscripts
--- xsp-1.9.1.orig/debian/mono-server-update.conf
+++ xsp-1.9.1/debian/mono-server-update.conf
@@ -0,0 +1,364 @@
+#!/usr/bin/perl -w
+# Automatic mono-server file generator
+#
+# With this script the user can update the host files 
+# that are installed in /etc/mono-server/conf.d/package and create a 
+# 'big' host file (/etc/mono-server/mono-server*-hosts.conf) that will be used
+# by mono-server to setup the virtual hosts needed by 
+# the user.
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-server-update - creates .webapp and .host file for mod_mono and mono-server
+
+=head1 SYNOPSIS
+
+mono-server-update
+
+=head1 DESCRIPTION
+
+ mono-server-update is a perl tool to update/create a .webapp and a .host file in 
+ /etc/mono-server.
+
+ These two files are needed by mod_mono (apache), they setup the alias, directory permissions, 
+ and ASP.NET applications.
+
+ Both files are created with other host configuration files that are in /etc/mono-server/conf.d
+
+ For more information read the README.Debian of this package (/usr/share/doc/mono-server/README.Debian).
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut
+
+use strict; 
+use Digest::MD5;
+
+#Main vars..
+my ($monoserver_dir, $monoserver_confd, $monoserver_hostfile, $monoserver_webapp,
+    $daemon, $daemon_pid, $default_file,
+    $applications, $libs, $daemon2, $daemon2_pid);
+
+#Setup main vars
+$monoserver_dir = "/etc/mono-server";
+$monoserver_confd = "$monoserver_dir/conf.d";
+$monoserver_webapp = "$monoserver_dir/debian.webapp";
+$monoserver_hostfile = "$monoserver_dir/mono-server-hosts.conf";
+$daemon = "/etc/init.d/apache";
+$daemon_pid = "/var/run/apache.pid";
+$daemon2 = "/etc/init.d/apache2";
+$daemon2_pid = "/var/run/apache2.pid";
+$applications = "";
+$default_file = "/etc/default/mono-apache-server";
+$libs = "";
+
+my $restart = "yes";
+my $first_file = "yes";
+my ($orig_md5, $new_md5);
+
+#Check write access to $monoserver_hostfile
+if( ( -e "$monoserver_hostfile" && ! -w "$monoserver_hostfile" ) || ! -w "$monoserver_dir" ) {
+    print "mono-xsp-update requires write access to $monoserver_hostfile or 
+be executed by root\n" ; 
+    exit 1 ;
+}
+
+#Read the default file
+&read_default_file;
+#Orig md5
+$orig_md5 = &get_md5;
+#Read directory..
+&read_dir;
+if(-f "$monoserver_hostfile.tmp") {
+    #Prepare the application string
+    $applications =~ s/,$//;
+    #and the libs..
+    $libs = "/usr/lib/mono/1.0:/usr/lib:$libs"; 
+    $libs =~ s/:$//;
+    #sed the $monoserver_hostfile to replace the Applications
+#    &replace_applications;
+    #Replace the MONOPATH
+    &replace_monopath;
+    &write_tempdefault_end;
+    #cp the temp file to the original one..    
+    system("cp -f $monoserver_hostfile.tmp $monoserver_hostfile");    
+    #rm the temp
+    system("rm -Rf $monoserver_hostfile.tmp");
+    #Final md5
+    $new_md5 = &get_md5;
+    #Equal?
+    if(("$new_md5" ne "$orig_md5") && ($restart eq "yes")) {
+	if(( -f $daemon ) && ( -f $daemon_pid )) {
+	    system("$daemon reload");
+	    system("$daemon restart");
+	}
+	if(( -f $daemon2 ) && ( -f $daemon2_pid )) {
+	    system("$daemon2 reload");
+	    system("$daemon2 restart");
+	}
+    }
+}
+
+sub get_md5 {
+    if( -e $monoserver_hostfile ) {
+	open(HOSTFILE, $monoserver_hostfile);
+	binmode(HOSTFILE);
+	return Digest::MD5->new->addfile(*HOSTFILE)->hexdigest;
+	
+    }
+    else {
+	return "";
+    }
+}
+
+sub read_default_file {
+    
+    if(-e $default_file) {
+	open(DEFAULT_FILE, "$default_file");
+	while(my $line = <DEFAULT_FILE>) {
+	    if($line =~ /start_apache/i) {
+		if($line =~ /true/i) {
+		    $restart = "yes";
+		}
+		else {
+		    $restart = "no";
+		}
+	    }
+	}
+	close(DEFAULT_FILE);
+    }
+}
+
+
+sub read_dir {
+    opendir(DIR, $monoserver_confd);
+    my @host_dirs = sort (grep { -d "$monoserver_confd/$_" } readdir(DIR));
+    closedir(DIR);
+
+    #to verify that the cfg file is new.. we should create a new one
+    system("rm -Rf $monoserver_hostfile");
+    system("touch $monoserver_hostfile");
+    #also to the debian.webapp
+    system("rm -Rf $monoserver_webapp");
+    system("touch $monoserver_webapp");
+
+    #How many dirs?
+    if($#host_dirs ne "0") {
+	#Write default content
+	&write_tempdefault_start;
+	foreach my $dir (@host_dirs) {
+	    if(($dir ne "..") && ($dir ne ".")) {
+		#Ok, in the dir.. we have more files, so read them
+		opendir(DIR, "$monoserver_confd/$dir");
+		my @host_files = sort (readdir(DIR));
+		closedir(DIR);
+		#Is it empty?		
+		if($#host_files ne "0") {
+		    #So, read it..
+		    foreach my $hostfile (@host_files) {
+			#Just remember.. we don't like directories inside directories!
+			if(($hostfile ne "..") && ($hostfile ne ".")) {
+			    $hostfile = "$monoserver_confd/$dir/$hostfile";
+			    write_tempxsphostfile($hostfile);
+			}
+		    }
+		}
+	    }
+	}
+    }
+}
+
+sub replace_applications {
+    local $/;
+
+    open(TEMPHOST, "$monoserver_hostfile.tmp");
+    my $content = <TEMPHOST>;
+    close(TEMPHOST);
+
+    if($applications) {
+	$content =~ s/MonoApplications .*/MonoApplications $applications/gi;
+    }
+    else {
+	$content =~ s/MonoApplications//gi;
+    }
+    
+    open(TEMPHOST, "> $monoserver_hostfile.tmp");
+    print TEMPHOST $content;
+    close(TEMPHOST);
+}
+
+   
+sub replace_monopath {
+    local $/;
+
+    open(TEMPHOST, "$monoserver_hostfile.tmp");
+    my $content = <TEMPHOST>;
+    close(TEMPHOST);
+
+    if($libs) {
+	$content =~ s/MonoPath .*/MonoPath default $libs/gi;
+    }
+    else {
+	$content =~ s/MonoPath default//gi;
+    }
+    
+    open(TEMPHOST, "> $monoserver_hostfile.tmp");
+    print TEMPHOST $content;
+    close(TEMPHOST);
+}
+
+sub write_tempdefault_start {
+    open(TEMPHOST, ">> $monoserver_hostfile.tmp");
+
+    print TEMPHOST "# Default configuration, don't edit it!\n";
+    print TEMPHOST "<IfModule mod_mono.c>\n";
+    print TEMPHOST "  MonoUnixSocket default /tmp/.mod_mono_server\n";
+    print TEMPHOST "  MonoServerPath default /usr/bin/mod-mono-server\n";
+    print TEMPHOST "  AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx\n";
+    print TEMPHOST "  MonoApplicationsConfigDir default /etc/mono-server\n";
+    print TEMPHOST "  MonoPath default \n";
+
+    close(TEMPHOST);
+
+    open(TEMPWEBAPP, ">> $monoserver_webapp");
+    print TEMPWEBAPP "<apps>\n";
+    close(TEMPWEBAPP);
+    
+}
+
+sub write_tempdefault_end {
+    open(TEMPHOST, ">> $monoserver_hostfile.tmp");
+    print TEMPHOST "</IfModule>\n";
+    close(TEMPHOST);
+
+    #Now the debian.webapp
+    open(TEMPWEBAPP, ">> $monoserver_webapp");
+    print TEMPWEBAPP "</apps>\n";
+    close(TEMPWEBAPP);
+
+}   
+
+
+sub write_tempxsphostfile {
+    my $hostfile = shift;
+
+    #Write the content to a temp file..
+    open(TEMPHOST, ">> $monoserver_hostfile.tmp");
+    open(TEMPWEBAPP, ">> $monoserver_webapp");
+
+    #And open the hostfile..
+    open(HOSTFILE, "$hostfile");
+    #Read it..
+    my @content_hostfile = <HOSTFILE>;
+    #Close it..
+    close(HOSTFILE);
+    #Write the header to the monoserver_hostfile
+    
+    my ($path, $alias, $vhost, $port, $name);
+
+    $vhost = "localhost";
+    $port = "80";
+    foreach my $line (@content_hostfile) {	
+	if($line =~ /path/i) {
+	    #Ok, the directory exists?
+	    my $dir = (split /\=/, $line)[1];
+	    #Remove blank spaces
+	    $dir =~ tr/\ //d;
+	    #remove that \n
+	    $dir =~ s/\n//;
+ 	    if ( ! -d "$dir" ) {
+		$dir = "";
+		last;
+ 	    }
+	    else {
+		$path = $dir;
+	    }
+	}
+
+	if($line =~ /alias/i) {
+	    $alias = (split /\=/, $line)[1];
+	    #Blank Spaces
+	    $alias =~ tr/\ //d;
+	    #New lines..
+	    $alias =~ s/\n//;
+	    #The name
+	    $name = $alias;
+	    $name =~ s|/*||;
+	}
+
+	if($line =~ /lib/i) {
+	    $libs = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $libs =~ tr/\ //d;
+	    #New lines..
+	    $libs =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $libs =~ s/:$//;
+        }    
+
+	if($line =~ /vhost/i) {
+	    $vhost = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $vhost =~ tr/\ //d;
+	    #New lines..
+	    $vhost =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $vhost =~ s/:$//;
+        }   
+
+	if($line =~ /port/i) {
+	    $port = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $port =~ tr/\ //d;
+	    #New lines..
+	    $port =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $port =~ s/:$//;
+        }  
+
+	if($line =~ /name/i) {
+	    $name = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $name =~ tr/\ //d;
+	    #New lines..
+	    $name =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $name =~ s/:$//;
+        }  
+	
+    }	
+    
+    if($path) {
+	$applications = "$applications$alias:$path,";
+	$libs = "$libs:";
+
+	print TEMPWEBAPP "  <web-application>\n";
+	print TEMPWEBAPP "    <name>$name</name>\n";
+	print TEMPWEBAPP "    <vpath>$alias</vpath>\n";       
+	print TEMPWEBAPP "    <path>$path</path>\n";
+	print TEMPWEBAPP "    <vhost>$vhost</vhost>\n";
+	print TEMPWEBAPP "    <port>$port</port>\n";
+	print TEMPWEBAPP "  </web-application>\n";
+
+	print TEMPHOST "# start $hostfile\n";
+	print TEMPHOST "     Alias $alias \"$path\"\n";
+	print TEMPHOST "     AddMonoApplications default \"$alias:$path\"\n";
+	print TEMPHOST "       <Directory $path>\n";
+	print TEMPHOST "         SetHandler mono\n";
+	print TEMPHOST "           <IfModule mod_dir.c>\n";
+	print TEMPHOST "              DirectoryIndex index.aspx\n";
+	print TEMPHOST "           </IfModule>\n";
+	print TEMPHOST "       </Directory>\n";
+	print TEMPHOST "# end $hostfile\n";
+	
+    }
+    close(TEMPHOST);
+    close(TEMPWEBAPP);
+}  
--- xsp-1.9.1.orig/debian/asp.net-examples.README.Debian
+++ xsp-1.9.1/debian/asp.net-examples.README.Debian
@@ -0,0 +1,13 @@
+asp.net-examples for Debian
+----------------------------
+
+This package contains example ASP.NET applications. The examples are
+installed in /usr/share/asp.net-demos/asp/
+
+If you are using the standalone XSP server, you can access the examples at
+http://localhost:8080/samples
+
+If you are using mod_mono to run ASP.NET applications via Apache, you can
+access the examples at http://localhost/samples
+
+ -- Fabian Fagerholm <fabbe@paniq.net>, Fri,  6 Aug 2004 12:00:12 +0300
--- xsp-1.9.1.orig/debian/mono-xsp2.postinst
+++ xsp-1.9.1/debian/mono-xsp2.postinst
@@ -0,0 +1,97 @@
+#!/bin/bash
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+xsp2_default="/etc/default/mono-xsp2"
+NAME=mono-xsp2
+DESC="XSP 2 WebServer"
+CFGDIR=/etc/xsp2
+VIRTUALFILE=$CFGDIR/debian.webapp
+
+update_port() {
+    db_get xsp2/xsp2_port || true
+    R=$RET
+    echo "Using Mono XSP 2 port: $R"
+    sed "s/port=.*/port=$R/g" $xsp2_default > $tempfile
+    cp -f $tempfile $xsp2_default
+}
+
+update_bind() {
+    db_get xsp2/xsp2_bind || true
+    R=$RET
+    echo "Binding Mono XSP 2 address: $R"
+    sed "s/address=.*/address=$R/g" $xsp2_default > $tempfile
+    cp -f $tempfile $xsp2_default
+}
+
+should_start() {
+    if [ -e $xsp2_default ]; then
+	. $xsp2_default
+        if [ "$start_boot" != "true" ]; then
+	    return 1
+        fi
+    fi
+
+    if [ ! -e $VIRTUALFILE -o `cat $VIRTUALFILE | wc -l` = "2" ]; then
+	echo "mono-xsp2: Not started, you need asp.net-examples/monodoc-http or an ASP.NET application"
+	return 1
+    fi 
+    
+    if [ -f /var/run/$NAME.pid ]; then
+	# Are we really running xsp2?
+	xsp2_pid=`cat /var/run/$NAME.pid`
+	xsp2_ps=`ps -p $xsp2_pid | wc -l`
+	if [ "$xsp2_ps" != "2" ]; then
+	    return 0
+	else
+	    return 1
+	fi
+    else
+	return 1
+    fi
+    
+    return 1
+}
+
+case "$1" in
+    configure)
+	tempfile=$(/bin/tempfile)
+	
+	# Configure autostart, but don't prevent the init script
+	# from starting it manually.
+	autostart="true"
+	db_get xsp2/xsp2_autostart || true
+	if [ "$RET" = "true" ]; then	    
+	    if [ -x "/etc/init.d/mono-xsp2" ]; then
+		update-rc.d mono-xsp2 defaults > /dev/null 2>&1 || true
+	    fi
+	else
+	    update-rc.d -f mono-xsp2 remove > /dev/null 2>&1  || true
+	fi
+
+	# Configure the port and address
+	update_port
+	update_bind
+
+	# chmod the working directories
+	chown -R www-data:www-data /var/run/mono-xsp2
+	mono-xsp2-update
+	if [ "$RET" = "true" ]; then
+	    if should_start -a $autostart = "true" ; then
+		if which invoke-rc.d >/dev/null 2>&1; then
+		    invoke-rc.d mono-xsp2 start
+		else
+		    /etc/init.d/mono-xsp2 start
+		fi
+	    fi
+	fi
+
+	rm $tempfile
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/po/POTFILES.in
+++ xsp-1.9.1/debian/po/POTFILES.in
@@ -0,0 +1,3 @@
+[type: gettext/rfc822deb] mono-apache-server.templates
+[type: gettext/rfc822deb] mono-xsp.templates
+[type: gettext/rfc822deb] mono-xsp2.templates
--- xsp-1.9.1.orig/debian/po/sv.po
+++ xsp-1.9.1/debian/po/sv.po
@@ -0,0 +1,118 @@
+# translation of xsp_1.2.5-2.1_sv.po to swedish
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+# Developers do not need to manually edit POT or PO files.
+# 
+# Martin Bagge <martin.bagge@bthstudent.se>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp_1.2.5-2.1_sv\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-06-22 18:07+0200\n"
+"Last-Translator: Martin Bagge <martin.bagge@bthstudent.se>\n"
+"Language-Team: swedish <debian-l10n-swedish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Låta mono-apache-servern starta om Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+#, fuzzy
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"Debian-versionen av mono-apache-servern inkluderar ett skript, mono-server-"
+"update.conf som skapar en konfigurationsfil för apache för att starta ASP."
+"NET-applikationer. Skriptet mono-server-update.conf kan starta om apache om "
+"det finns en ny konfigurationsfil (/etc/mono-server/mono-server-hosts.conf). "
+"Vill du starta om apache om det finns en ny mono-server-hosts.conf fil?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Starta vid uppstart av systemet?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr "I så fall kommer XSP starta automatiskt när datorn startar."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Vvilken adress ska användas?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"XSP fungerar inte korrekt utan att ställas in för att använda en särskild IP-"
+"adress. Standardvärdet är \"0.0.0.0\" och motsvarar alla förekommande IP-"
+"adresser i datorn för att sedan begränsa det till en särskild port. För att "
+"endast använda XSP lokalt anger du 2127.0.0.1\"."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Vilken port ska användas?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"Vilken port vill du att XSP-processen ska använda sig av? Vanliga värden är "
+"80, 8080 eller 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr "I så fall kommer XSP2 starta automatiskt när datorn startar."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"XSP2 fungerar inte korrekt utan att ställas in för att använda en särskild "
+"IP-adress. Standardvärdet är \"0.0.0.0\" och motsvarar alla förekommande IP-"
+"adresser i datorn för att sedan begränsa det till en särskild port. För att "
+"endast använda XSP2 lokalt anger du 2127.0.0.1\"."
--- xsp-1.9.1.orig/debian/po/fi.po
+++ xsp-1.9.1/debian/po/fi.po
@@ -0,0 +1,79 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-04-15 23:16+0200\n"
+"Last-Translator: Esko ArajÃ¤rvi <edu@iki.fi>\n"
+"Language-Team: Finnish <debian-l10n-finnish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-Language: Finnish\n"
+"X-Poedit-Country: FINLAND\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Saako mono-apache-server kÃ¤ynnistÃ¤Ã¤ Apachen uudelleen?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "The debian version of mono-apache-server includes a mono-server-update script that creates a configuration file for apache to start the ASP.NET applications, and mono-server-update can restart apache if there's a new configuration file (/etc/mono-server/mono-server-hosts.conf). If this is true, then apache will be restarted when there is a new mono-server-hosts.conf file."
+msgstr "Paketin mono-apache-server Debian-versio sisÃ¤ltÃ¤Ã¤ komentosarjan mono-server-update, joka luo Apachelle asetustiedoston ASP.NET-ohjelmien kÃ¤ynnistÃ¤mistÃ¤ varten. Komentosarja mono-server-update voi kÃ¤ynnistÃ¤Ã¤ Apachen uudelleen, kun asetustiedosto (/etc/mono-server/mono-server-hosts.conf) uudistuu. Valitse tÃ¤mÃ¤, jos haluat, ettÃ¤ Apache kÃ¤ynnistetÃ¤Ã¤n tÃ¤llÃ¶in uudelleen."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+#: ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "KÃ¤ynnistetÃ¤Ã¤nkÃ¶ ohjelma kÃ¤ynnistettÃ¤essÃ¤ jÃ¤rjestelmÃ¤?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid "If this is true, then XSP will automatically start when the computer is turned on."
+msgstr "Jos valitset tÃ¤mÃ¤n vaihtoehdon, XSP kÃ¤ynnistetÃ¤Ã¤n automaattisesti, kun jÃ¤rjestelmÃ¤Ã¤ kÃ¤ynnistetÃ¤Ã¤n."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+#: ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Kuunneltava osoite:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid "To function properly, XSP needs to be bound to an IP address. The default (\"0.0.0.0\") binds to all addresses of the server, but a specific port can be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr "Toimiakseen oikein XSP:n tÃ¤ytyy kuunnella jotain IP-osoitetta. Oletusarvoisesti (â€0.0.0.0â€) kuunnellaan palvelimen kaikkia osoitteita, mutta tietty portti voidaan valita. Valinnalla â€127.0.0.1â€ XSP toimii vain paikallisesti."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001
+#: ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Kuunneltava portti:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001
+#: ../mono-xsp2.templates:3001
+msgid "XSP is bound to a specific port on the server. Common values are 80, 8080, or 8081."
+msgstr "XSP kuuntelee tiettyÃ¤ palvelimen porttia. Yleisia arvoja ovat 80, 8080 ja 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid "If this is true, then XSP2 will automatically start when the computer is turned on."
+msgstr "Jos valitset tÃ¤mÃ¤n vaihtoehdon, XSP2 kÃ¤ynnistetÃ¤Ã¤n automaattisesti, kun jÃ¤rjestelmÃ¤ kÃ¤ynnistyy."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid "To function properly, XSP2 needs to be bound to an IP address. The default (\"0.0.0.0\") binds to all addresses of the server, but a specific port can be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr "Toimiakseen oikein XSP2:n tÃ¤ytyy kuunnella jotain IP-osoitetta. Oletusarvoisesti (â€0.0.0.0â€) kuunnellaan palvelimen kaikkia osoitteita, mutta tietty portti voidaan valita. Valinnalla â€127.0.0.1â€ XSP2 toimii vain paikallisesti."
+
--- xsp-1.9.1.orig/debian/po/de.po
+++ xsp-1.9.1/debian/po/de.po
@@ -0,0 +1,113 @@
+# Translation of xsp debconf templates to German
+# Copyright (C) Helge Kreutzmann <debian@helgefjell.de>, 2007, 2008.
+# This file is distributed under the same license as the xsp package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.2.5-2\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-02-21 22:11+0100\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: de <debian-l10n-german@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Soll mono-apache-server Apache neustarten?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"Die Debian-Version von mono-apache-server enthält ein Skript mono-server-"
+"update, das eine Konfigurationsdatei für Apache erstellt, um die ASP.NET-"
+"Anwendungen zu starten und mono-server-update kann Apache neustarten, falls "
+"es eine neue Konfigurationsdatei (/etc/mono-server/mono-server-hosts.conf) "
+"gibt. Falls dies stimmt, dann wird Apache neu gestartet, wenn es eine neue "
+"mono-server-hosts.conf-Datei gibt."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Beim Systemstart starten?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Falls dies stimmt, dann wird XSP automatisch gestartet, wenn Ihr Computer "
+"eingeschaltet wird."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Binde an Adresse:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Um korrekt zu funktionieren, muss XSP sich an eine IP-Adresse binden. Der "
+"Standard (»0.0.0.0«) bindet sich an alle Adressen auf dem Server, aber ein "
+"spezieller Port kann ausgewählt werden. Um XSP lokal zu verwenden, verwenden "
+"Sie »127.0.0.1« für diese Adresse."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Binde an Port:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP bindet sich an einen speziellen Port auf dem Server. Typische Werte sind "
+"80, 8080 oder 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Falls dies stimmt, wird XSP2 automatisch gestartet, wenn Ihr Computer "
+"eingeschaltet wird."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Um korrekt zu funktionieren, muss XSP2 sich an eine IP-Adresse binden. Der "
+"Standard (»0.0.0.0«) bindet sich an alle Adressen auf dem Server, aber ein "
+"spezieller Port kann ausgewählt werden. Um XSP2 lokal zu verwenden, "
+"verwenden Sie »127.0.0.1« für diese Adresse."
--- xsp-1.9.1.orig/debian/po/fr.po
+++ xsp-1.9.1/debian/po/fr.po
@@ -0,0 +1,116 @@
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+# Developers do not need to manually edit POT or PO files.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-17 23:51+0100\n"
+"PO-Revision-Date: 2006-10-14 10:31+0200\n"
+"Last-Translator: Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Faut-il laisser mono-apache-server redémarrer Apache ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"La version Debian de mono-apache-server comporte le script mono-server-"
+"update qui crée un fichier de configuration pour Apache, servant à lancer "
+"les applications ASP.NET. Ce script peut redémarrer Apache s'il existe un "
+"nouveau fichier de configuration /etc/mono-server/mono-server-hosts.conf."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Faut-il le lancer au démarrage ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Si vous acceptez ici, XSP sera lancé automatiquement au démarrage du système"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Adresse à laquelle le processus doit être lié :"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Afin de fonctionner correctement, XSP doit être lié à une adresse IP. La "
+"valeur par défaut (0.0.0.0) le lie à toutes les adresses du serveur, mais un "
+"port spécifique peut être choisi. Pour n'utiliser XSP que localement, "
+"veuillez indiquer l'adresse 127.0.0.1."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Port auquel le processus doit être lié :"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP doit être lié a un port particulier du serveur. Des valeurs courantes "
+"sont 80, 8080 et 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Si vous acceptez ici, XSP2 sera lancé automatiquement au démarrage du système"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Afin de fonctionner correctement, XSP2 doit être lié à une adresse IP. La "
+"valeur par défaut (0.0.0.0) le lie à toutes les adresses du serveur, mais un "
+"port spécifique peut être choisi. Pour n'utiliser XSP2 que localement, "
+"veuillez indiquer l'adresse 127.0.0.1."
--- xsp-1.9.1.orig/debian/po/cs.po
+++ xsp-1.9.1/debian/po/cs.po
@@ -0,0 +1,154 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#    Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-17 23:51+0100\n"
+"PO-Revision-Date: 2008-07-05 21:02+0200\n"
+"Last-Translator: Miroslav Kure <kurem@debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "MÃ¡ mono-apache-server restartovat Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"mono-apache-server v Debianu obsahuje skript mono-server-update, kterÃ½ "
+"slouÅ¾Ã­ pro vytvoÅ™enÃ­ konfiguraÄnÃ­ho souboru pro Apache, aby mohl Apache "
+"spouÅ¡tÄ›t aplikace v ASP.NET. Skript mono-server-update umÃ­ rozpoznat, "
+"zda je vytvoÅ™en novÃ½ konfiguraÄnÃ­ soubor /etc/mono-server/mono-server-hosts."
+"conf a pÅ™Ã­padnÄ›  restartovat Apache, aby se zmÄ›ny projevily. Chcete "
+"restartovat Apache v pÅ™Ã­padÄ› novÃ©ho konfiguraÄnÃ­ho souboru mono-server-hosts."
+"conf?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Spustit pÅ™i zavÃ¡dÄ›nÃ­ systÃ©mu?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"OdpovÃ­te-li kladnÄ›, XSP se bude spouÅ¡tÄ›t automaticky po zapnutÃ­ poÄÃ­taÄe."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "NavÃ¡zat na adresu:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Aby XSP pracoval sprÃ¡vnÄ›, musÃ­ se navÃ¡zat na IP adresu. VÃ½chozÃ­ â€ž0.0.0.0â€œ se "
+"navÃ¡Å¾e na vÅ¡echny adresy na serveru, nicmÃ©nÄ› stÃ¡le si mÅ¯Å¾ete zvolit port. "
+"Chcete-li XSP pouÅ¾Ã­vat pouze lokÃ¡lnÄ›, pouÅ¾ijte adresu â€ž127.0.0.1â€œ."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "NavÃ¡zat na port:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP je na serveru navÃ¡zÃ¡n na konkrÃ©tnÃ­ port. BÄ›Å¾nÃ© hodnoty jsou 80, 8080 nebo "
+"8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"OdpovÃ­te-li kladnÄ›, XSP2 se bude spouÅ¡tÄ›t automaticky po zapnutÃ­ poÄÃ­taÄe."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Aby XSP2 pracoval sprÃ¡vnÄ›, musÃ­ se navÃ¡zat na IP adresu. VÃ½chozÃ­ â€ž0.0.0.0â€œ se "
+"navÃ¡Å¾e na vÅ¡echny adresy na serveru, nicmÃ©nÄ› stÃ¡le si mÅ¯Å¾ete zvolit port. "
+"Chcete-li XSP2 pouÅ¾Ã­vat pouze lokÃ¡lnÄ›, pouÅ¾ijte adresu â€ž127.0.0.1â€œ."
+
+#~ msgid "Autostart XSP?"
+#~ msgstr "SpouÅ¡tÄ›t XSP automaticky?"
+
+#~ msgid ""
+#~ "Would you like to autostart the XSP process when you start your computer?"
+#~ msgstr "Chcete XSP spouÅ¡tÄ›t automaticky pÅ™i startu poÄÃ­taÄe?"
+
+#~ msgid ""
+#~ "What address would you like XSP to bind to? To bind to all of them, enter "
+#~ "0.0.0.0."
+#~ msgstr ""
+#~ "Na kterou adresu se mÃ¡ XSP navÃ¡zat? Pokud se mÃ¡ svÃ¡zat se vÅ¡emi adresami, "
+#~ "zadejte 0.0.0.0."
+
+#~ msgid "Autostart XSP 2?"
+#~ msgstr "SpouÅ¡tÄ›t XSP 2 automaticky?"
+
+#~ msgid ""
+#~ "Would you like to autostart the XSP2 process when you start your computer?"
+#~ msgstr "Chcete XSP 2 spouÅ¡tÄ›t automaticky pÅ™i startu poÄÃ­taÄe?"
+
+#~ msgid ""
+#~ "What address would you like XSP 2 to bind to? To bind to all of them, "
+#~ "enter 0.0.0.0."
+#~ msgstr ""
+#~ "Na kterou adresu se mÃ¡ XSP 2 navÃ¡zat? Pokud se mÃ¡ svÃ¡zat se vÅ¡emi "
+#~ "adresami, zadejte 0.0.0.0."
+
+#~ msgid ""
+#~ "What port would you like the XSP 2 process to bind to on start? Common "
+#~ "values are 80, 8080, or 8081."
+#~ msgstr ""
+#~ "Na kterÃ½ port se mÃ¡ XSP 2 pÅ™i startu navÃ¡zat? BÄ›Å¾nÃ© hodnoty jsou 80, 8080 "
+#~ "nebo 8081."
--- xsp-1.9.1.orig/debian/po/eu.po
+++ xsp-1.9.1/debian/po/eu.po
@@ -0,0 +1,117 @@
+# translation of xsp debconf template to Basque
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Xabier Bilbao <xabidu@gmail.com>, 2008.
+# Piarres Beobide <pi@beobide.net>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp-eu\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-07-05 22:49+0200\n"
+"Last-Translator: Piarres Beobide <pi@beobide.net>\n"
+"Language-Team: Euskara <debian-l10n-basque@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Utzi mono-apache-server-i Apache berrabiarazten?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"Debianen mono-apache-server bertsioak apache-rentzat konfigurazio fitxategi "
+"bat sortzen duen mono-server-update script-a dakar, ASP.NET aplikazioak "
+"abiarazteko. Script honek apache berrabiaraz dezake konfigurazio fitxategi "
+"berria baldin badago (/etc/mono-server/mono-server-hosts.conf). Hau onartzen "
+"baduzu, apache berrabiaraziko da mono-server-hosts.conf fitxategi berri bat "
+"dagoenean."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Ordenagailuaren abioan abiarazi?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Hau onartzen baduzu, XSP automatikoki abiatuko da ordenagailua "
+"pizten denean."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "IP helbide honi lotu:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Behar bezala funtzionatzeko, XSPk IP helbide bati loturik egon behar du. "
+"Aukera lehenetsiak (\"0.0.0.0\") zerbitzariaren helbide guztiekin lotzen du, "
+"baina ataka zehatz bat hauta daiteke. XSP lokalean erabiltzeko, ezar ezazu "
+"\"127.0.0.1\" helbide gisa."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Ataka honi lotu:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP zerbitzariko ataka zehatz bati lotzen zaio. Balio arruntak 80, 8080, "
+"edo 8081 dira."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Hau aukeratzen baduzu, XSP2 automatikoki abiaraziko da ordenagailua "
+"pizten denean."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Behar bezala funtzionatzeko, XSP2k IP helbide bati loturik egon behar du. "
+"Aukera lehenetsiak (\"0.0.0.0\") zerbitzariaren helbide guztiekin lotzen du, "
+"baina ataka zehatz bat hauta daiteke. XSP2 lokalean erabiltzeko, ezar "
+"ezazu \"127.0.0.1\" helbide gisa."
+
--- xsp-1.9.1.orig/debian/po/pt.po
+++ xsp-1.9.1/debian/po/pt.po
@@ -0,0 +1,119 @@
+# Portuguese translation of xsp's debconf messages.
+# 2005, LuÃ­s Ferreira <anarka@gmail.com>
+#
+# 31-10-2005 - LuÃ­s Ferreira <anarka@gmail.com>- Initial translation
+# Miguel Figueiredo <elmig@debianpt.org>, 2007-2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.2.1-1\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-06-26 20:30+0100\n"
+"Last-Translator: Miguel Figueiredo <elmig@debianpt.org>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Permitir que o mono-apache-server reinicie o Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"A versÃ£o debian do mono-apache-server inclui um script mono-server-update"
+"que cria um ficheiro de configuraÃ§Ã£o para o apache iniciar as aplicaÃ§Ãµes "
+"ASP.NET, e o mono-server-update pode reiniciar o apache se existir um novo "
+"ficheiro de configuraÃ§Ã£o (/etc/mono-server/mono-server-hosts.conf). Se isto "
+"for verdade, entÃ£o o apache irÃ¡ ser reiniciado quando existir um novo "
+"ficheiro mono-server-hosts.conf"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Iniciar no arranque?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Se isto for verdade, entÃ£o o XSP irÃ¡ iniciar automaticamente quando o "
+"computador for ligado."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Ligar ao endereÃ§o:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Para funcionar correctamente, o XSP necessita de ser ligado a um endereÃ§o "
+"IP. A prÃ©-definiÃ§Ã£o (\"0.0.0.0\") liga a todos os endereÃ§os do servidor, "
+"mas pode ser escolhido um porto especifico. Para utilizar o XSP apenas "
+"localmente, utilize \"127.0.0.1\" como endereÃ§o."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Ligar ao porto:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"O XSP Ã© ligado a um porto especifico no servidor. Os valores usuais sÃ£o 80, "
+"8080 ou 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Se isto for verdade, entÃ£o o XSP2 irÃ¡ iniciar automaticamente quando o "
+"computador for ligado."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Para funcionar correctamente, o XSP2 necessita de ser ligado a um endereÃ§o "
+"IP. A prÃ©-definiÃ§Ã£o (\"0.0.0.0\") liga a todos os endereÃ§os do servidor, "
+"mas pode ser escolhido um porto especifico. Para utilizar o XSP2 apenas "
+"localmente, utilize \"127.0.0.1\" como endereÃ§o."
+
+#~ msgid ""
+#~ "Would you like to autostart the XSP process when you start your computer?."
+#~ msgstr "Deseja iniciar automaticamente o XSP quando inicia o computador?"
--- xsp-1.9.1.orig/debian/po/templates.pot
+++ xsp-1.9.1/debian/po/templates.pot
@@ -0,0 +1,95 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
--- xsp-1.9.1.orig/debian/po/ru.po
+++ xsp-1.9.1/debian/po/ru.po
@@ -0,0 +1,117 @@
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <kozlov.y@gmail.com>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.2.5-2.1\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-05-03 12:38+0400\n"
+"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "ÐŸÐ¾Ð·Ð²Ð¾Ð»ÑÑ‚ÑŒ mono-apache-server Ð¿ÐµÑ€ÐµÐ·Ð°Ð¿ÑƒÑÐºÐ°Ñ‚ÑŒ Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"Debian-Ð²ÐµÑ€ÑÐ¸Ñ mono-apache-server Ð²ÐºÐ»ÑŽÑ‡Ð°ÐµÑ‚ ÑÑ†ÐµÐ½Ð°Ñ€Ð¸Ð¹ mono-server-update, "
+"ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ð¹ ÑÐ¾Ð·Ð´Ð°Ñ‘Ñ‚ Ñ„Ð°Ð¹Ð» Ð½Ð°ÑÑ‚Ñ€Ð¾Ð¹ÐºÐ¸ apache Ð´Ð»Ñ Ð·Ð°Ð¿ÑƒÑÐºÐ° Ð¿Ñ€Ð¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ð¹ ASP.NET, "
+"Ð° mono-server-update Ð¿Ð¾Ð·Ð²Ð¾Ð»ÑÐµÑ‚ Ð¿ÐµÑ€ÐµÐ·Ð°Ð¿ÑƒÑÐºÐ°Ñ‚ÑŒ apache, ÐµÑÐ»Ð¸ Ð¿Ð¾ÑÐ²Ð»ÑÐµÑ‚ÑÑ Ð½Ð¾Ð²Ñ‹Ð¹ "
+"Ñ„Ð°Ð¹Ð» Ð½Ð°ÑÑ‚Ñ€Ð¾Ð¹ÐºÐ¸ (/etc/mono-server/mono-server-hosts.conf). Ð•ÑÐ»Ð¸ Ð²Ñ‹ Ð¾Ñ‚Ð²ÐµÑ‚Ð¸Ñ‚Ðµ "
+"ÑƒÑ‚Ð²ÐµÑ€Ð´Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾, Ñ‚Ð¾ apache Ð±ÑƒÐ´ÐµÑ‚ Ð¿ÐµÑ€ÐµÐ·Ð°Ð¿ÑƒÑ‰ÐµÐ½ Ð¿Ñ€Ð¸ Ð¿Ð¾ÑÐ²Ð»ÐµÐ½Ð¸Ð¸ Ð½Ð¾Ð²Ð¾Ð³Ð¾ Ñ„Ð°Ð¹Ð»Ð° "
+"mono-server-hosts.conf."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Ð—Ð°Ð¿ÑƒÑÐºÐ°Ñ‚ÑŒ Ð¿Ñ€Ð¸ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ð¸ ÐºÐ¾Ð¼Ð¿ÑŒÑŽÑ‚ÐµÑ€Ð°?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Ð•ÑÐ»Ð¸ Ð²Ñ‹ Ð¾Ñ‚Ð²ÐµÑ‚Ð¸Ñ‚Ðµ ÑƒÑ‚Ð²ÐµÑ€Ð´Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾, Ñ‚Ð¾ XSP Ð±ÑƒÐ´ÐµÑ‚ Ð·Ð°Ð¿ÑƒÑÐºÐ°Ñ‚ÑŒÑÑ Ð°Ð²Ñ‚Ð¾Ð¼Ð°Ñ‚Ð¸Ñ‡ÐµÑÐºÐ¸ Ð¿Ñ€Ð¸ "
+"Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ð¸ ÐºÐ¾Ð¼Ð¿ÑŒÑŽÑ‚ÐµÑ€Ð°."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "ÐŸÑ€Ð¸Ð²ÑÐ·ÐºÐ° Ðº Ð°Ð´Ñ€ÐµÑÑƒ:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Ð”Ð»Ñ Ð¿Ñ€Ð°Ð²Ð¸Ð»ÑŒÐ½Ð¾Ð¹ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹, XSP Ð½ÑƒÐ¶Ð½Ð¾ Ð¿Ñ€Ð¸Ð²ÑÐ·Ð°Ñ‚ÑŒ Ðº IP-Ð°Ð´Ñ€ÐµÑÑƒ. ÐŸÐ¾ ÑƒÐ¼Ð¾Ð»Ñ‡Ð°Ð½Ð¸ÑŽ "
+"Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÐµÑ‚ÑÑ \"0.0.0.0\", Ñ‡Ñ‚Ð¾ Ð¾Ð·Ð½Ð°Ñ‡Ð°ÐµÑ‚ Ð¿Ñ€Ð¸Ð²ÑÐ·ÐºÑƒ ÐºÐ¾ Ð²ÑÐµÐ¼ Ð°Ð´Ñ€ÐµÑÐ°Ð¼ ÑÐµÑ€Ð²ÐµÑ€Ð°, Ð½Ð¾ "
+"Ð¼Ð¾Ð¶Ð½Ð¾ ÑƒÐºÐ°Ð·Ð°Ñ‚ÑŒ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»Ñ‘Ð½Ð½Ñ‹Ð¹ Ð¿Ð¾Ñ€Ñ‚. ÐŸÑ€Ð¸ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ð¸ XSP Ñ‚Ð¾Ð»ÑŒÐºÐ¾ Ð´Ð»Ñ "
+"Ð»Ð¾ÐºÐ°Ð»ÑŒÐ½Ð¾Ð¹ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹, Ð²Ð²ÐµÐ´Ð¸Ñ‚Ðµ \"127.0.0.1\"."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "ÐŸÑ€Ð¸Ð²ÑÐ·ÐºÐ° Ðº Ð¿Ð¾Ñ€Ñ‚Ñƒ:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP Ð¿Ñ€Ð¸Ð²ÑÐ·Ñ‹Ð²Ð°ÐµÑ‚ÑÑ Ðº Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»Ñ‘Ð½Ð½Ð¾Ð¼Ñƒ Ð¿Ð¾Ñ€Ñ‚Ñƒ ÑÐµÑ€Ð²ÐµÑ€Ð°. ÐžÐ±Ñ‹Ñ‡Ð½Ð¾ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑŽÑ‚ÑÑ Ð¿Ð¾Ñ€Ñ‚Ñ‹ 80, "
+"8080 Ð¸Ð»Ð¸ 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Ð•ÑÐ»Ð¸ Ð²Ñ‹ Ð¾Ñ‚Ð²ÐµÑ‚Ð¸Ñ‚Ðµ ÑƒÑ‚Ð²ÐµÑ€Ð´Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾, Ñ‚Ð¾ XSP2 Ð±ÑƒÐ´ÐµÑ‚ Ð·Ð°Ð¿ÑƒÑÐºÐ°Ñ‚ÑŒÑÑ Ð°Ð²Ñ‚Ð¾Ð¼Ð°Ñ‚Ð¸Ñ‡ÐµÑÐºÐ¸ Ð¿Ñ€Ð¸ "
+"Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ð¸ ÐºÐ¾Ð¼Ð¿ÑŒÑŽÑ‚ÐµÑ€Ð°."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Ð”Ð»Ñ Ð¿Ñ€Ð°Ð²Ð¸Ð»ÑŒÐ½Ð¾Ð¹ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹, XSP2 Ð½ÑƒÐ¶Ð½Ð¾ Ð¿Ñ€Ð¸Ð²ÑÐ·Ð°Ñ‚ÑŒ Ðº IP-Ð°Ð´Ñ€ÐµÑÑƒ. ÐŸÐ¾ ÑƒÐ¼Ð¾Ð»Ñ‡Ð°Ð½Ð¸ÑŽ "
+"Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÐµÑ‚ÑÑ \"0.0.0.0\", Ñ‡Ñ‚Ð¾ Ð¾Ð·Ð½Ð°Ñ‡Ð°ÐµÑ‚ Ð¿Ñ€Ð¸Ð²ÑÐ·ÐºÑƒ ÐºÐ¾ Ð²ÑÐµÐ¼ Ð°Ð´Ñ€ÐµÑÐ°Ð¼ ÑÐµÑ€Ð²ÐµÑ€Ð°, Ð½Ð¾ "
+"Ð¼Ð¾Ð¶Ð½Ð¾ ÑƒÐºÐ°Ð·Ð°Ñ‚ÑŒ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»Ñ‘Ð½Ð½Ñ‹Ð¹ Ð¿Ð¾Ñ€Ñ‚. ÐŸÑ€Ð¸ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ð¸ XSP2 Ñ‚Ð¾Ð»ÑŒÐºÐ¾ Ð´Ð»Ñ "
+"Ð»Ð¾ÐºÐ°Ð»ÑŒÐ½Ð¾Ð¹ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹, Ð²Ð²ÐµÐ´Ð¸Ñ‚Ðµ \"127.0.0.1\"."
+
--- xsp-1.9.1.orig/debian/po/gl.po
+++ xsp-1.9.1/debian/po/gl.po
@@ -0,0 +1,111 @@
+# Galician translation of xsp's debconf templates
+# This file is distributed under the same license as the xsp package.
+# Jacobo Tarrio <jtarrio@debian.org>, 2007, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-05-13 00:56+0100\n"
+"Last-Translator: Jacobo Tarrio <jtarrio@debian.org>\n"
+"Language-Team: Galician <proxecto@trasno.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Â¿Permitir que mono-apache-server reinicie Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"A versiÃ³n de Debian de mono-apache-server inclÃºe un script mono-server-"
+"update que crea un ficheiro de configuraciÃ³n para que Apache inicie as "
+"aplicaciÃ³ns ASP.NET, e mono-server-update pode reiniciar Apache se hai un "
+"novo ficheiro de configuraciÃ³n (/etc/mono-server/mono-server-hosts.conf). Se "
+"acepta isto, hase reiniciar Apache cando haxa un novo ficheiro mono-server-"
+"hosts.conf."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Â¿Inicialo co ordenador?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Se acepta isto, XSP hase iniciar automaticamente ao arrincar o ordenador."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Ligar ao enderezo:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Para que funcione correctamente, hai que ligar XSP a un enderezo IP. O velor "
+"por defecto (\"0.0.0.0\") sirve para o ligar a tÃ³dolos enderezos do "
+"servidor, pero pÃ³dese seleccionar un porto determinado. Para empregar XSP sÃ³ "
+"localmente, empregue \"127.0.0.1\" coma enderezo."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Ligar ao porto:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP vai ligado a un porto determinado do servidor. Os valores habituais son "
+"80, 8080 ou 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Se acepta isto, XSP2 hase iniciar automaticamente ao arrincar o ordenador."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Para que funcione correctamente, hai que ligar XSP2 a un enderezo IP. O "
+"velor por defecto (\"0.0.0.0\") sirve para o ligar a tÃ³dolos enderezos do "
+"servidor, pero pÃ³dese seleccionar un porto determinado. Para empregar XSP2 "
+"sÃ³ localmente, empregue \"127.0.0.1\" coma enderezo."
--- xsp-1.9.1.orig/debian/po/nl.po
+++ xsp-1.9.1/debian/po/nl.po
@@ -0,0 +1,115 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-02-25 19:46+0100\n"
+"Last-Translator: Bart Cornelis <cobaco@skolelinux.no>\n"
+"Language-Team: debian-l10n-dutch <debian-l10n-dutch@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Dutch\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Wilt u mono-apache-server Apache laten herstarten?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"De Debian-versie van mono-apache-server bevat het script mono-server-update. "
+"Dit script maakt een configuratiebestand aan voor apache dat de ASP.NET-"
+"applicaties start, en kan apache herstarten als er een nieuw "
+"configuratiebestand is (/etc/mono-server/mono-server-hosts.conf). Als u hier "
+"aanvaard wordt apache herstart wanneer er een nieuw 'mono-server-hosts.conf'-"
+"bestand aanwezig is."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Wilt u XSP opstarten tijdens het opstarten van het systeem?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Als u dit aanvaard wordt XSP automatisch opgestart telkens wanneer de "
+"computer opstart."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Adres waaraan te binden:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Om juist te werken dient XSP zich te binden aan een IP-adres. De "
+"standaardwaarde ('0.0.0.0') bindt aan alle adressen op de server, maar een "
+"specifieke poort kan geselecteerd worden. Als u XSP enkel lokaal wilt "
+"gebruiken, kiest u best '127.0.0.1' voor het adres."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Poort waaraan te binden:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP bindt zich aan een specifieke poort op de server. Veelgebruikte waardes "
+"zijn 80, 8080, en 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Als u dit aanvaard zal XSP2 automatisch starten telkens wanneer de computer "
+"opstart."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Om juist te werken dient XSP2 zich te binden aan een IP-adres. De "
+"standaardwaarde ('0.0.0.0') bindt aan alle adressen op de server, maar een "
+"specifieke poort kan geselecteerd worden. Als u XSPs enkel lokaal wilt "
+"gebruiken, kiest u best '127.0.0.1' voor het adres. "
--- xsp-1.9.1.orig/debian/po/es.po
+++ xsp-1.9.1/debian/po/es.po
@@ -0,0 +1,142 @@
+# xsp translation to spanish
+# Copyright (C) 2007 Software in the Public Interest, SPI Inc.
+# This file is distributed under the same license as the xsp package.
+#
+# Changes:
+# - Initial translation
+#      Steve Lord Flaubert , 2007
+#
+#
+#  Traductores, si no conoce el formato PO, merece la pena leer la 
+#  documentaciÃ³n de gettext, especialmente las secciones dedicadas a este
+#  formato, por ejemplo ejecutando:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+# Equipo de traducciÃ³n al espaÃ±ol, por favor lean antes de traducir
+# los siguientes documentos:
+#
+# - El proyecto de traducciÃ³n de Debian al espaÃ±ol
+#   http://www.debian.org/intl/spanish/
+#   especialmente las notas y normas de traducciÃ³n en
+#   http://www.debian.org/intl/spanish/notas
+#
+# - La guÃ­a de traducciÃ³n de po's de debconf:
+#   /usr/share/doc/po-debconf/README-trans
+#   o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Si tiene dudas o consultas sobre esta traducciÃ³n consulte con el ltimo
+# traductor (campo Last-Translator) y ponga en copia a la lista de
+# traducciÃ³n de Debian al espaÃ±ol (<debian-l10n-spanish@lists.debian.org>)
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.2.1-1\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2007-03-11 18:03-0500\n"
+"Last-Translator: Steve Lord Flaubert <stonescenter@gmail.com>\n"
+"Language-Team: Debian Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Â¿Permitir a Â«mono-apache-serverÂ» reiniciar apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+#, fuzzy
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"La versiÃ³n debian de Â«mono-apache-serverÂ» contiene el script Â«mono-server-"
+"update.confÂ» que crea un fichero de configuraciÃ³n para apache cuando se "
+"inician aplicaciones ASP.NET , y Â«mono-server-updateÂ» puede reiniciar apache "
+"si hay un nuevo fichero de configuraciÃ³n en (Â«/etc/mono-server/mono-server-"
+"host.confÂ»). Si es correcto, apache se reiniciarÃ¡ cuando haya un nuevo "
+"fichero de configuraciÃ³n Â«mono-server-hosts.confÂ»."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "Â¿Iniciar en el arranque?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Si es correcto, XSP se iniciarÃ¡ automÃ¡ticamente cuando se encienda el "
+"ordenador."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Enlazar a la direcciÃ³n:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Para que funcione adecuadamente, XSP necesita ligarse a una direcciÃ³n IP. La "
+"predeterminada (Â«0.0.0.0Â») enlaza todas las direcciones del servidor, pero "
+"tambiÃ©n puede seleccionar un puerto en especÃ­fico. Para usar XSP localmente, "
+"ponga la direcciÃ³n Â«127.0.0.1Â»."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Enlazar al puerto:"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr ""
+"XSP estÃ¡ ligado a un puerto especÃ­fico en el servidor, Frecuentemente son "
+"los valores 80, 8080, Ã³ 8081."
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"Si es correcto, entonces XSP2 se iniciarÃ¡ automÃ¡ticamente cuando el "
+"ordenador se encienda."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Para que funcione correctamente, XSP2 necesita ligarse a una direcciÃ³n IP. "
+"La direcciÃ³n predeterminada (Â«0.0.0.0Â») enlaza todas las direcciones del "
+"servidor, pero puede seleccionar un puerto en especÃ­fico. Para usar XSP2 de "
+"manera local, use la direcciÃ³n Â«127.0.0.1Â»."
--- xsp-1.9.1.orig/debian/po/vi.po
+++ xsp-1.9.1/debian/po/vi.po
@@ -0,0 +1,100 @@
+# Vietnamese translation for XSP.
+# Copyright Â© 2008 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2005-2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.2.5-2.2\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-17 23:51+0100\n"
+"PO-Revision-Date: 2008-07-05 22:20+0930\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: LocFactoryEditor 1.7b3\n"
+
+#: ../mono-apache-server.templates:1001
+#. Type: boolean
+#. Description
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Cho phÃ©p mono-apache-server khá»Ÿi cháº¡y láº¡i Apache khÃ´ng?"
+
+#: ../mono-apache-server.templates:1001
+#. Type: boolean
+#. Description
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"PhiÃªn báº£n Debian cá»§a trÃ¬nh phá»¥c vá»¥ mono-apache-server bao gá»“m má»™t vÄƒn lá»‡nh nÃ¢ng cáº¥p mono-server-update mÃ  táº¡o má»™t táº­p tin cáº¥u hÃ¬nh cho apache Ä‘á»ƒ khá»Ÿi cháº¡y cÃ¡c á»©ng dá»¥ng ASP.NET, vÃ  mono-server-update cÅ©ng cÃ³ thá»ƒ khá»Ÿi cháº¡y láº¡i apache náº¿u cÃ³ má»™t táº­p tin cáº¥u hÃ¬nh má»›i (/etc/mono-server/mono-server-hosts.conf). CÃ³ thÃ¬ apache sáº½ Ä‘Æ°á»£c khá»Ÿi cháº¡y láº¡i khi cÃ³ má»™t táº­p tin cáº¥u hÃ¬nh mono-server-hosts má»›i."
+
+#: ../mono-xsp.templates:1001
+#: ../mono-xsp2.templates:1001
+#. Type: boolean
+#. Description
+msgid "Start on boot?"
+msgstr "Khá»Ÿi cháº¡y khi khá»Ÿi Ä‘á»™ng ?"
+
+#: ../mono-xsp.templates:1001
+#. Type: boolean
+#. Description
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr "Báº­t tÃ¹y chá»n nÃ y thÃ¬ XPS sáº½ tá»± Ä‘á»™ng khá»Ÿi cháº¡y khi mÃ¡y tÃ­nh Ä‘Æ°á»£c má»Ÿ."
+
+#: ../mono-xsp.templates:2001
+#: ../mono-xsp2.templates:2001
+#. Type: string
+#. Description
+msgid "Bind to address:"
+msgstr "ÄÃ³ng káº¿t tá»›i Ä‘á»‹a chá»‰:"
+
+#: ../mono-xsp.templates:2001
+#. Type: string
+#. Description
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr "Äá»ƒ cháº¡y Ä‘Ãºng, XSP cáº§n Ä‘Æ°á»£c Ä‘Ã³ng káº¿t tá»›i má»™t Ä‘á»‹a chá»‰ IP. Äá»‹a chá»‰ máº·c Ä‘á»‹nh (0.0.0.0) thÃ¬ Ä‘Ã³ng káº¿t tá»›i táº¥t cáº£ cÃ¡c Ä‘á»‹a chá»‰ cá»§a mÃ¡y phá»¥c vá»¥, nhÆ°ng cÅ©ng cÃ³ thá»ƒ chá»n má»™t cá»•ng cá»¥ thá»ƒ. Äá»ƒ sá»­ dá»¥ng XSP chá»‰ má»™t cÃ¡ch cá»¥c bá»™, hÃ£y dÃ¹ng Ä‘á»‹a chá»‰ Â« 127.0.0.0 Â»."
+
+#: ../mono-xsp.templates:3001
+#: ../mono-xsp2.templates:3001
+#. Type: string
+#. Description
+msgid "Bind to port:"
+msgstr "ÄÃ³ng káº¿t tá»›i cá»•ng:"
+
+#: ../mono-xsp.templates:3001
+#: ../mono-xsp2.templates:3001
+#. Type: string
+#. Description
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr "XSP Ä‘Æ°á»£c Ä‘Ã³ng káº¿t tá»›i má»™t cá»•ng cá»¥ thá»ƒ trÃªn mÃ¡y phá»¥c vá»¥. CÃ¡c giÃ¡ trá»‹ thÆ°á»ng dÃ¹ng lÃ  80, 8080 hay 8081."
+
+#: ../mono-xsp2.templates:1001
+#. Type: boolean
+#. Description
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr "Báº­t tÃ¹y chá»n nÃ y thÃ¬ XSP2 sáº½ tá»± Ä‘á»™ng khá»Ÿi cháº¡y khi mÃ¡y tÃ­nh Ä‘Æ°á»£c má»Ÿ."
+
+#: ../mono-xsp2.templates:2001
+#. Type: string
+#. Description
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr "Äá»ƒ cháº¡y Ä‘Ãºng, XSP2 cáº§n Ä‘Æ°á»£c Ä‘Ã³ng káº¿t tá»›i má»™t Ä‘á»‹a chá»‰ IP. Äá»‹a chá»‰ máº·c Ä‘á»‹nh (0.0.0.0) thÃ¬ Ä‘Ã³ng káº¿t tá»›i táº¥t cáº£ cÃ¡c Ä‘á»‹a chá»‰ cá»§a mÃ¡y phá»¥c vá»¥, nhÆ°ng cÅ©ng cÃ³ thá»ƒ chá»n má»™t cá»•ng cá»¥ thá»ƒ. Äá»ƒ sá»­ dá»¥ng XSP2 chá»‰ má»™t cÃ¡ch cá»¥c bá»™, hÃ£y dÃ¹ng Ä‘á»‹a chá»‰ Â« 127.0.0.0 Â»."
--- xsp-1.9.1.orig/debian/po/si.po
+++ xsp-1.9.1/debian/po/si.po
@@ -0,0 +1,101 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Jan KraljiÄ <jan.kraljic@patware.si>, 2008.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.2.5-2.2\n"
+"Report-Msgid-Bugs-To: xsp@packages.debian.org\n"
+"POT-Creation-Date: 2008-02-18 00:21+0100\n"
+"PO-Revision-Date: 2008-07-07 22:20+0930\n"
+"Last-Translator: Jan KraljiÄ <jan.kraljic@patware.si>\n"
+"Language-Team: Slovene <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Ali naj mono-apache-server resetira Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:1001
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update can restart apache if there's a new "
+"configuration file (/etc/mono-server/mono-server-hosts.conf). If this is "
+"true, then apache will be restarted when there is a new mono-server-hosts."
+"conf file."
+msgstr ""
+"Debian-ova verzija mono-apache-server vsebuje mono-server-update skripto, ki ustvari konfiguracijsko datoteko za apache za zagon ASP.NET aplikacij, in mono-server-update, ki lahko resetira apache v primeru nove oziroma spremenjene konfiguracijske datoteke (/etc/mono-server/mono-server-hosts.conf). V tem primeru je nato apache resetiran, ko so novosti v konfiguracijski datoteki"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001 ../mono-xsp2.templates:1001
+msgid "Start on boot?"
+msgstr "ZaÅ¾enem XSP om zagonu"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:1001
+msgid ""
+"If this is true, then XSP will automatically start when the computer is "
+"turned on."
+msgstr ""
+"V kolikor je odgovor pritrdilen se bo XSP avtomatiÄno zagnal ob zagonu raÄunalnika"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001 ../mono-xsp2.templates:2001
+msgid "Bind to address:"
+msgstr "Povezan na naslov"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:2001
+msgid ""
+"To function properly, XSP needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Da bi deloval pravilno mora biti XSP povezan na IP naslov. Privzeta vrednost  (\"0.0.0.0\") se povezuje na vse naslove streÅ¾nika vendar na sprecifiÄna vrata, ki so izbrana. Za povezovanje XSP samo lokalno uporabite \"127.0.0.1\" za naslov."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid "Bind to port:"
+msgstr "Povezan na vrata"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:3001 ../mono-xsp2.templates:3001
+msgid ""
+"XSP is bound to a specific port on the server. Common values are 80, 8080, "
+"or 8081."
+msgstr "XSP je povezan na specifiÄna vrata na streÅ¾niku. NajbogostejÅ¡a vrata so 80, 8080 ali 8081"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:1001
+msgid ""
+"If this is true, then XSP2 will automatically start when the computer is "
+"turned on."
+msgstr ""
+"V kolikor je odgovor pritrdilen se bo XSP avtomatiÄno zagnal ob zagonu raÄunalnika"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:2001
+msgid ""
+"To function properly, XSP2 needs to be bound to an IP address. The default "
+"(\"0.0.0.0\") binds to all addresses of the server, but a specific port can "
+"be selected. To use XSP2 only locally, use \"127.0.0.1\" for the address."
+msgstr ""
+"Da bi deloval pravilno mora biti XSP povezan na IP naslov. Privzeta vrednost  (\"0.0.0.0\") se povezuje na vse naslove streÅ¾nika vendar na sprecifiÄna vrata, ki so izbrana. Za povezovanje XSP samo lokalno uporabite \"127.0.0.1\" za naslov."
+
--- xsp-1.9.1.orig/debian/mono-fastcgi-server.install
+++ xsp-1.9.1/debian/mono-fastcgi-server.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/mono/1.0/fastcgi-mono-server.exe
+debian/tmp/usr/lib/mono/gac/fastcgi-mono-server
+debian/tmp/usr/bin/fastcgi-mono-server
--- xsp-1.9.1.orig/debian/asp.net-examples.hostxsp
+++ xsp-1.9.1/debian/asp.net-examples.hostxsp
@@ -0,0 +1,5 @@
+# This is the configuration file
+# for the aspnet-examples virtualhost
+path = /usr/share/asp.net-demos
+alias = /samples
+libs = /usr/lib/mono/1.0
--- xsp-1.9.1.orig/debian/mono-apache-server2.postinst
+++ xsp-1.9.1/debian/mono-apache-server2.postinst
@@ -0,0 +1,44 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+modmono_default="/etc/default/mono-apache-server2"
+
+restart_apache_on() {
+    sed s/start_apache=false/start_apache=true/g $modmono_default > $tempfile
+    cp $tempfile $modmono_default
+}
+
+restart_apache_off() {
+    sed s/start_apache=true/start_apache=false/g $modmono_default > $tempfile
+    cp $tempfile $modmono_default
+}
+
+daemon_turn_off() {
+    if [ -x /etc/init.d/mono-server2 ]; then
+	update-rc.d -f mono-server2 remove > /dev/null
+    fi
+}
+
+case "$1" in
+    configure)
+	tempfile=$(/bin/tempfile)
+	
+	db_get monoserver2/monoserver2_restartapache || true
+	daemon_turn_off
+	if [ "$RET" = "true" ]; then
+	    restart_apache_on
+	else
+	    restart_apache_off
+	fi
+
+	mono-server2-update
+	rm $tempfile
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/mono-xsp2.install
+++ xsp-1.9.1/debian/mono-xsp2.install
@@ -0,0 +1,11 @@
+debian/tmp/usr/bin/asp-state2
+debian/tmp/usr/bin/dbsessmgr2
+debian/tmp/usr/bin/xsp2
+debian/tmp/usr/lib/xsp/2.0/asp-state2.exe
+debian/tmp/usr/lib/xsp/2.0/asp-state2.exe.config
+debian/tmp/usr/lib/xsp/2.0/dbsessmgr2.exe
+debian/tmp/usr/lib/xsp/2.0/dbsessmgr2.exe.config
+debian/tmp/usr/lib/mono/2.0/xsp2.exe
+debian/tmp/usr/lib/mono/gac/xsp2
+debian/tmp/usr/sbin/mono-xsp2-update
+debian/tmp/usr/sbin/mono-xsp2-admin
--- xsp-1.9.1.orig/debian/postrm-monoxsp2
+++ xsp-1.9.1/debian/postrm-monoxsp2
@@ -0,0 +1,8 @@
+if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
+    if [ -x /usr/sbin/mono-xsp2-update ]; then
+	/usr/sbin/mono-xsp2-update || true
+    fi
+    if [ -x /usr/sbin/mono-server2-update ]; then
+	/usr/sbin/mono-server2-update || true
+    fi
+fi
--- xsp-1.9.1.orig/debian/mono-apache-server.README.Debian
+++ xsp-1.9.1/debian/mono-apache-server.README.Debian
@@ -0,0 +1,54 @@
+mono-apache-server for Debian
+--------------------------
+
+mod-mono-server is a backend server that allows you to run ASP.NET web
+applications in conjunction with Apache (1.3 or 2.0) and the mod_mono Apache
+module. In Debian, mod-mono-server is provided in the package
+mono-apache-server.
+
+mod-mono-server creates a socket in /tmp, and mod_mono communicates with
+mod-mono-server through that socket. Apache will pass the HTTP request via
+mod_mono to mod-mono-server, and mod-mono-server will pass the result back
+to Apache via mod_mono.
+
+So you need this package to run mod_mono, and vice versa.
+
+When mod_mono is installed, it will create a link to
+/etc/mono-server/mono-server-hosts.conf. This file contains the configuration
+for mod_mono. Among other things, it makes sure that aspx pages are handled
+by mono_mono, and it defines all your ASP.NET web applications and the mappings
+between URIs and the file system.
+
+However, you should NOT EDIT THIS FILE by hand. Instead, you can manage the
+mono-server-hosts.conf file with the administration scripts provided by
+mod-mono-server. The administration scripts work on a directory structure in
+/etc/mono-server -- this is what it looks like:
+
+/etc/mono-server                <- The root of the configuration structure
+/etc/mono-server/conf.d         <- VirtualHosts Config Directories
+/etc/mono-server/conf.d/monodoc <- MonoDoc Config Files
+
+To create an ASP.NET virtual host, you create a new directory under conf.d,
+such as the monodoc example above. Then, you place configuration files for
+that virtual host in the directory. Every file is marked by a number, an
+underscore, and the alias name for that ASP.NET application. For example:
+
+/etc/mono-server/conf.d/monodoc/10_monodochttp
+
+You then need to run mono-server-update, which will read the directory
+structure and rebuild the mono-server-hosts.conf file. mod-mono-server will
+automatically detect the changes in the file, and adjust its configuration
+accordingly. The mono-server-update script will also create a
+debian.webapp file, which is needed for the ASP.NET applications.
+
+Packages that wish to install ASP.NET web applications can just follow the
+above procedure. If mod-mono-server is running, the application will be
+automatically activated.
+
+You don't need to start mod-mono-server. If it's not running when a request
+comes in, mod_mono will start it (unless you have disabled mod_mono). Note
+that mono-server-update can start Apache.
+
+Happy Hacking!
+
+ -- Pablo Fischer <pablo@pablo.com.mx>, Wed Mar  2 11:08:17 2005
--- xsp-1.9.1.orig/debian/mono-apache-server2.templates
+++ xsp-1.9.1/debian/mono-apache-server2.templates
@@ -0,0 +1,9 @@
+Template: monoserver2/monoserver2_restartapache
+Type: boolean
+Default: true
+_Description: Let mono-apache-server2 restart Apache?
+ The debian version of mono-apache-server2 includes a
+ mono-server2-update script that creates a configuration file for
+ apache to start the ASP.NET applications, and mono-server2-update can
+ restart apache if there's a new configuration file
+ (/etc/mono-server2/mono-server2-hosts.conf). If this is true, then apache will be restarted when there is a new mono-server-hosts.conf file.
--- xsp-1.9.1.orig/debian/mono-xsp2-base.install
+++ xsp-1.9.1/debian/mono-xsp2-base.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/mono/2.0/Mono.WebServer2.dll
+debian/tmp/usr/lib/mono/gac/Mono.WebServer2
+debian/tmp/usr/lib/pkgconfig/xsp-2.pc
--- xsp-1.9.1.orig/debian/asp.net-examples.menu
+++ xsp-1.9.1/debian/asp.net-examples.menu
@@ -0,0 +1,2 @@
+?package(asp.net-examples):needs=text section=Apps/Programming \
+  title="ASP.NET demo pages" command="/usr/bin/asp.net-examples-server"
--- xsp-1.9.1.orig/debian/mono-xsp.init
+++ xsp-1.9.1/debian/mono-xsp.init
@@ -0,0 +1,97 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          mono-xsp
+# Required-Start:    
+# Required-Stop: 
+# Should-Start:      
+# Should-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Mono XSP
+# Description:       Debian init script for Mono XSP.
+### END INIT INFO
+#
+# Written by Pablo Fischer <pablo@pablo.com.mx>
+#            Dylan R. E. Moonfire <debian@mfgames.com>
+# Modified for Debian GNU/Linux
+#
+# Version:	@(#)mono-xsp pablo@pablo.com.mx
+#
+
+# Variables
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/xsp
+NAME=mono-xsp
+DESC="XSP WebServer"
+DEFAULT=/etc/default/$NAME
+CFGDIR=/etc/xsp
+VIRTUALFILE=$CFGDIR/debian.webapp
+MONO_SHARED_DIR=/var/run/$NAME
+
+# Use LSB
+. /lib/lsb/init-functions
+
+# If we don't have the basics, don't bother
+test -x $DAEMON || exit 0
+test -f $DEFAULT && . $DEFAULT	
+
+if [ ! -e $MONO_SHARED_DIR ]; then
+	mkdir $MONO_SHARED_DIR
+	chown $user:$group $MONO_SHARED_DIR
+fi
+
+should_start() {
+    if [ ! -e $VIRTUALFILE -o `cat $VIRTUALFILE | wc -l` = "2" ]; then
+	log_action_msg "You have an incomplete $VIRTUALFILE"
+	log_action_msg "To fix it, you need to install at least one package for xsp (like asp.net-examples)"	
+	return 1
+    fi 
+    
+    if [ -f /var/run/$NAME.pid ]; then
+	# Are we really running xsp?
+	xsp_pid=`cat /var/run/$NAME.pid`
+	xsp_ps=`ps -p $xsp_pid | wc -l`
+	if [ "$xsp_ps" != "1" ]; then
+	    log_action_msg "Sorry, there is already a xsp running, stop it first"
+	    return 1		
+	fi
+    fi
+    
+    return 0
+	
+}
+
+case "$1" in
+    start)
+	if should_start ; then
+	    log_daemon_msg "Starting $DESC" "$NAME"
+	    export MONO_SHARED_DIR
+	    start-stop-daemon --start --background --make-pidfile \
+		--quiet --pidfile /var/run/$NAME.pid \
+		--user $user --group $group --chuid $user \
+		--exec $DAEMON -- \
+		--port $port --address $address --appconfigdir \
+		$CFGDIR --nonstop
+	    log_end_msg $?
+	fi
+	;;
+    stop)
+        log_daemon_msg "Stopping $DESC" "$NAME"
+        for i in $(ps aux | grep -v grep | grep 'xsp.exe' | cut -c 10-15)
+        do
+                kill $i > /dev/null 2>&1
+        done
+	log_end_msg $?
+	;;
+    restart|force-reload)
+	$0 stop
+	$0 start
+	;;
+    *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- xsp-1.9.1.orig/debian/TODO
+++ xsp-1.9.1/debian/TODO
@@ -0,0 +1,14 @@
+TODO for xsp
+------------
+
+* Look for beta testers.
+* Add a way for regular users to activate XSP applications without having
+  to gain root access. Of course, users' web apps must be completely isolated
+  in every way.
+* Check the daemons of both packages and write a function to check if the
+  daemon is already running (a new function, the last was fucked).
+* Review the asp.net-examples package, the postinst and prerm, when I do:
+  dpkg-reconfigure asp.net-examples it removes ALL the lines of the
+  virtual.conf file, and is strange cause I'm just using echo >> (to add at
+  the end of a file)
+* Add more items to this list :)
--- xsp-1.9.1.orig/debian/mono-apache-server.default
+++ xsp-1.9.1/debian/mono-apache-server.default
@@ -0,0 +1,4 @@
+# Defaults for mono-apache-server
+
+# Should mono-apache-server start apache?
+start_apache=false
--- xsp-1.9.1.orig/debian/mono-xsp2.dirs
+++ xsp-1.9.1/debian/mono-xsp2.dirs
@@ -0,0 +1,4 @@
+usr/bin
+etc/xsp2
+etc/xsp2/conf.d
+var/run/mono-xsp2
--- xsp-1.9.1.orig/debian/README.Debian
+++ xsp-1.9.1/debian/README.Debian
@@ -0,0 +1,27 @@
+xsp and mod-mono-server for Debian
+-----------------------------------
+
+This is the Mono XSP Web Application server for Debian. It is divided into
+three packages.
+
+The mono-xsp package contains a standalone web server to run ASP.NET web
+applications. It should run on port 8080 or 8081. The package scripts
+automatically detect which port should be used.
+
+The mono-apache-server package contains the mod-mono-server.exe executable.
+It is used as a back-end by the mod_mono module for Apache (libapache-mod-mono
+for Apache 1.3, or libapache2-mod-mono for Apache 2.0). It is packaged
+separately so that you can run ASP.NET web applications without having to
+install Apache. If that is what you want, use mono-xsp.
+
+The asp.net-examples package includes some demos of ASP.NET applications. They
+can be used with either the standalone mono-xsp package, or the mod_mono Apache
+module.
+
+ -- Fabian Fagerholm <fabbe@paniq.net>, Thu,  5 Aug 2004 13:29:12 +0300
+
+There is now a fourth package, mono-fastcgi-server, which contains the 
+fastcgi-mono-server.exe executable. This is used as a back-end for use by any
+fastcgi server of your choice, such as lighttpd.
+
+ --Jo Shields <directhex@apebox.org>, Thu,  3 Jul 2008 09:25:00 +0100
--- xsp-1.9.1.orig/debian/mono-xsp.postrm
+++ xsp-1.9.1/debian/mono-xsp.postrm
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "purge" ]; then
+	rm -f /etc/xsp/debian.webapp
+	#update-rc.d
+	update-rc.d -f mono-xsp remove > /dev/null 2>&1
+fi
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/mono-fastcgi-server.dirs
+++ xsp-1.9.1/debian/mono-fastcgi-server.dirs
@@ -0,0 +1 @@
+usr/bin/
--- xsp-1.9.1.orig/debian/mono-apache-server.templates
+++ xsp-1.9.1/debian/mono-apache-server.templates
@@ -0,0 +1,9 @@
+Template: monoserver/monoserver_restartapache
+Type: boolean
+Default: true
+_Description: Let mono-apache-server restart Apache?
+ The debian version of mono-apache-server includes a
+ mono-server-update script that creates a configuration file for
+ apache to start the ASP.NET applications, and mono-server-update can
+ restart apache if there's a new configuration file
+ (/etc/mono-server/mono-server-hosts.conf). If this is true, then apache will be restarted when there is a new mono-server-hosts.conf file.
--- xsp-1.9.1.orig/debian/mono-fastcgi-server.docs
+++ xsp-1.9.1/debian/mono-fastcgi-server.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS
--- xsp-1.9.1.orig/debian/mono-xsp.default
+++ xsp-1.9.1/debian/mono-xsp.default
@@ -0,0 +1,13 @@
+# Defaults for mono-xsp, official version
+# sourced by /etc/init.d/mono-xsp
+
+# User and group by default
+user=www-data
+group=www-data
+
+# Default port
+port=8080
+address=0.0.0.0
+
+# Directory for config files
+config_files=/etc/xsp
--- xsp-1.9.1.orig/debian/postinst-monoxsp2
+++ xsp-1.9.1/debian/postinst-monoxsp2
@@ -0,0 +1,8 @@
+if [ "$1" = "configure" ]; then
+    if [ -x /usr/sbin/mono-xsp2-update ]; then
+	/usr/sbin/mono-xsp2-update || true
+    fi
+    if [ -x /usr/sbin/mono-server2-update ]; then
+	/usr/sbin/mono-server2-update || true
+    fi
+fi
--- xsp-1.9.1.orig/debian/web.config
+++ xsp-1.9.1/debian/web.config
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+    <configSections>
+	    <sectionGroup name="mono.aspnet">
+		<section name="acceptEncoding" type="Mono.Http.AcceptEncodingSectionHandler, Mono.Http"/>
+	    </sectionGroup>
+    </configSections>
+
+    <system.web>
+        <customErrors mode="Off"/>
+	<webServices>
+		<soapExtensionTypes>
+			<add type="DumpExtension, extensions" priority="0" group="0" />
+			<add type="EncryptExtension, extensions" priority="1" group="0" />
+		</soapExtensionTypes>
+	</webServices>
+	<authentication mode= "Forms">
+	</authentication>
+    	<!--httpModules>
+            <add name="AcceptEncodingModule" type="Mono.Http.AcceptEncodingModule, Mono.Http"/>
+	</httpModules-->
+    </system.web>
+
+    <mono.aspnet>
+        <acceptEncoding>
+	    <!-- Change disabled to 'no' to enable gzip content encoding -->
+	    <add encoding="gzip" type="Mono.Http.GZipWriteFilter, Mono.Http" disabled="no" />
+	</acceptEncoding>
+    </mono.aspnet>
+
+    <appSettings>
+	<add key="MonoServerDefaultIndexFiles"
+	     value="index.aspx, Default.aspx, default.aspx, index.html, index.htm" />
+	<add key="DBProviderAssembly"
+	     value="Mono.Data.PostgreSqlClient"/>
+	<add key="DBConnectionType"
+	     value="Mono.Data.PostgreSqlClient.PgSqlConnection"/>
+	<add key="DBConnectionString"
+	     value="hostaddr=127.0.0.1;user=monotest;password=monotest;dbname=monotest"/>
+    </appSettings>
+</configuration>
+
--- xsp-1.9.1.orig/debian/mono-apache-server2.docs
+++ xsp-1.9.1/debian/mono-apache-server2.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS
--- xsp-1.9.1.orig/debian/mono-xsp.dirs
+++ xsp-1.9.1/debian/mono-xsp.dirs
@@ -0,0 +1,4 @@
+usr/bin
+etc/xsp
+etc/xsp/conf.d
+var/run/mono-xsp
--- xsp-1.9.1.orig/debian/compat
+++ xsp-1.9.1/debian/compat
@@ -0,0 +1 @@
+5
--- xsp-1.9.1.orig/debian/mono-apache-server2.install
+++ xsp-1.9.1/debian/mono-apache-server2.install
@@ -0,0 +1,5 @@
+debian/tmp/usr/lib/mono/2.0/mod-mono-server2.exe
+debian/tmp/usr/lib/mono/gac/mod-mono-server2
+debian/tmp/usr/bin/mod-mono-server2
+debian/tmp/usr/sbin/mono-server2-admin
+debian/tmp/usr/sbin/mono-server2-update
--- xsp-1.9.1.orig/debian/mono-fastcgi-server2.README.Debian
+++ xsp-1.9.1/debian/mono-fastcgi-server2.README.Debian
@@ -0,0 +1,25 @@
+mono-fastcgi-server2 for Debian
+--------------------------
+
+mod-fastcgi-server2 is a backend server that allows you to run ASP.NET web
+applications in conjunction with the FastCGI server of your choice, such as
+Lighttpd. In Debian, fastcgi-mono-server2 is provided in the package
+mono-fastcgi-server2.
+
+fastcgi-mono-server2 creates a socket in /tmp, and FastCGI communicates with
+fastcgi-mono-server2 through that socket, in CGI format, using FastCGI records.
+
+So you need this package to use ASP.NET via FastCGI.
+
+In most cases, configuration of ASP.NET sites is handled via your HTTP server's
+configuration, rather than via fastcgi-mono-server2 itself. Therefore, no
+configuration files or examples have been included. Please see this link for
+general information on interaction between FastCGI and Mono:
+
+http://www.mono-project.com/FastCGI
+
+Please see this one for examples on configuration for Lighttpd:
+
+http://www.mono-project.com/FastCGI_Lighttpd
+
+ -- Jo Shields <directhex@apebox.org>, Thu Jul  3 10:05:17 2008
--- xsp-1.9.1.orig/debian/asp.net-examples.dirs
+++ xsp-1.9.1/debian/asp.net-examples.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/asp.net-demos/1.1
--- xsp-1.9.1.orig/debian/mono-server-admin.conf
+++ xsp-1.9.1/debian/mono-server-admin.conf
@@ -0,0 +1,208 @@
+#!/usr/bin/perl
+# mono-server hosts file creator
+#
+# With this script the user can create a host file in one step, 
+# these hosts file are installed in /etc/mono-server/conf.d/package and 
+# then used in a 'big' host file (/etc/mono-server/mono-server*-hosts.conf) 
+# that will be used by mono-server
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-server-admin - mono-server hosts file creator, hosts file is part of the debianized mod_mono package
+    
+=head1 SYNOPSIS
+    
+mono-server-admin.conf [action] [args]
+
+=head2 OPTIONS
+
+  Actions:
+    
+    add        Use 'add' if you want to create an application and want mono-server scripts to manage it
+    del        If you want to remove an application
+
+  Args:
+
+    --path     The path where you have your aspx files, MUST EXISTS!, required only with add action
+    --app      The name of your application
+    --libs     If you have dlls outside your path, you must use this!
+    --port     Needed if you are running multiple virtual hosts in different ports in Apache 
+    --vhost    If you want to add asp.net support to a virtualhost you must use this. Example: foobar.com
+
+=head1 DESCRIPTION
+
+ mono-server-admin.conf is a perl tool to adminstrate your ASP.NET webapps that will be executed with 
+ mod_mono.
+
+ When you try to add an application, admin.conf will verify that your path exists, if it is, it will 
+ add a directory inside /etc/xsp/conf.d with the name of your app, and also as a file with the 
+ filename format: 10_appname. This file will have the information (path, app).
+
+ So, when mono-xsp-update.conf is executed it will read those dirs and create a debian.webapp in
+ /etc/xsp that the xsp daemon will read, also with a mono-server-hosts.conf that will have your 
+ directory settings with apache directives. Apache will read mono-server-hosts.conf!
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut 
+
+use strict;
+
+my (%OPT);
+
+#Initializes vars
+$OPT{'port'} = "80";
+$OPT{'vhost'} = "*";
+
+my $confd_directory = "/etc/mono-server/conf.d";
+
+#Read the opts
+foreach my $opt (@ARGV) {
+    if($opt =~ /^add/) {
+	$OPT{'action'} = "add";
+    }
+    
+    elsif($opt =~ /^del/) {
+	$OPT{'action'} = "del";
+    }	
+
+    elsif($opt =~ /--path/) {
+	$OPT{'path'} = $opt;
+    }    
+
+    elsif($opt =~ /--app/) {
+	$OPT{'app'} = $opt;
+    }   
+
+    elsif($opt =~ /--libs/) {
+	$OPT{'libs'} = $opt;
+    }
+
+    elsif($opt =~ /--port/) {
+	$OPT{'port'} = $opt;
+    }
+
+    elsif($opt =~ /--vhost/) {
+	$OPT{'vhost'} = $opt;
+    }
+}
+
+#clean strange chars, like ':', commas, etc.. I don't like those chars
+sub clean_opts() {
+    foreach my $key (keys %OPT) {	
+	next unless $key ne "action";
+	my $value = $OPT{$key};
+	$OPT{$key} = (split("=", $OPT{$key}))[1];
+	if($key ne "path" && $key ne "libs") {
+	    $OPT{$key} =~ s|/*||;
+	}
+	$OPT{$key} =~ s{/$}{}; 
+	$OPT{$key} =~ s|:*||;
+    }
+}
+
+#We have the path, app, name and the action?
+sub verify_neededopts() {
+    if($OPT{'action'} ne "add" && $OPT{'action'} ne "del") {
+	&help;
+	exit;
+    }
+
+    if(!$OPT{'path'} && $OPT{'action'} eq "add") {
+	print "I need the path of your asp.net application\n";
+	exit;
+    }
+
+    if(!$OPT{'app'}) {
+	print "You should declare the application name!\n";
+	exit;
+    }
+}
+
+#Add the Host file and directory    
+sub add_host() {
+    if( ! -d $OPT{'path'} ) {
+	print "$OPT{'path'} does not exists!\n";
+	exit;
+    }
+    #But what if the conf.d package directory already exists?
+    if ( -d "$confd_directory/$OPT{'app'}") {
+	print "Sorry but $confd_directory/$OPT{'app'} already exist, you might change your application name\n";
+	exit;
+    }
+    
+    #Ok, create the conf.d package directory
+    system("mkdir $confd_directory/$OPT{'app'}");
+    #And create the file
+    system("touch $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+    
+    open(PACKAGEFILE, "> $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+    print PACKAGEFILE "This is the configuration file \n";
+    print PACKAGEFILE "for the $OPT{'app'} virtualhost\n";
+    print PACKAGEFILE "path = $OPT{'path'}\n";
+    print PACKAGEFILE "alias = /$OPT{'app'}\n";
+    if($OPT{'libs'}) {
+	print PACKAGEFILE "libs = $OPT{'libs'}\n";
+    }
+    if($OPT{'vhost'}) {
+	print PACKAGEFILE "vhost = $OPT{'vhost'}\n";
+    } else {
+	print PACKAGEFILE "vhost = localhost\n";
+    }
+    if($OPT{'port'}) {
+	print PACKAGEFILE "port = $OPT{'port'}\n";
+    } else {
+	print PACKAGEFILE "port = 80\n";
+    }
+    close(PACKAGEFILE);
+    
+    system("/usr/sbin/mono-server-update.conf");
+    print "done!\n";
+}
+
+#Remove the host directory
+sub del_host() {
+    
+    system("rm -Rf $confd_directory/$OPT{'app'}");
+    system("/usr/sbin/mono-server-update.conf");
+    
+    print "done!\n";
+}
+    
+sub help() {
+    print "This script let the user to create a application host file in one step \n";
+    print "for mono-server (/etc/mono-server/conf.d/application\n\n";
+    print "Use:\n";
+    print " mono-server-admin.conf [action] --path=/real/path --app=/applicationame\n\n";
+    print "Where:\n";
+    print " action:\n";
+    print " add                   Creates an application\n";
+    print " del                   Delete an application (the directory /etc/mono-server/conf.d/application\n";
+    print " --path=/real/path     A real and true path where you have your ASP.NET applicatio running\n";
+    print " --app=/application    The name of the application\n";
+    print " --libs=/libs          If you have your libs out of path\n";
+    print " --vhost=vhost         The VirtualHost you have in your apache config, Default: localhost\n";
+    print " --port=port           The port of your virtualhost. Default: 80\n";
+}
+
+&clean_opts;
+&verify_neededopts;
+
+if($OPT{'action'} eq "add") {
+    &add_host;
+}
+elsif($OPT{'action'} eq "del") {
+    &del_host;
+}
+
+    
+
+
+
--- xsp-1.9.1.orig/debian/index.aspx
+++ xsp-1.9.1/debian/index.aspx
@@ -0,0 +1,33 @@
+<%@ language="C#" %>
+<%@ Import namespace="System.IO" %>
+<html>
+<head>
+<title>Welcome to Mono XSP!</title>
+</head>
+<body>
+<h1>Welcome to Mono XSP!</h1>
+<a href="http://www.mono-project.com"><img src="/samples/mono.png" alt="http://www.mono-project.com"></a>
+<p>Here are some ASP.NET examples:</p>
+<%
+DirectoryInfo dir = new DirectoryInfo (Path.GetDirectoryName (Request.PhysicalPath));
+FileInfo[] files = dir.GetFiles ();
+StringBuilder sb = new StringBuilder ();
+Hashtable styles = new Hashtable ();
+styles [".aspx"] = "background: #ffffff";
+styles [".ashx"] = "background: #00cccc";
+styles [".asmx"] = "background: #eeee00";
+for (int i=0; i < files.Length; i++) {
+	string fileName = Path.GetFileName(files[i].FullName);
+	string extension = Path.GetExtension (files[i].FullName);
+	if (styles.Contains (extension)) {
+		sb.AppendFormat ("<li><a style=\"{1}\" href=\"/samples/{0}\">{0}</a></li>\n", fileName, styles [extension]);
+	}
+}
+FileList.Text = sb.ToString ();
+%>
+<ul>
+<asp:Label id="FileList" runat="server" />
+</ul>
+<hr />
+<small>Generated: <%= DateTime.Now %></small>
+</html>
--- xsp-1.9.1.orig/debian/mono-xsp.postinst
+++ xsp-1.9.1/debian/mono-xsp.postinst
@@ -0,0 +1,98 @@
+#!/bin/bash
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+xsp_default="/etc/default/mono-xsp"
+NAME=mono-xsp
+DESC="XSP WebServer"
+CFGDIR=/etc/xsp
+VIRTUALFILE=$CFGDIR/debian.webapp
+
+update_port() {
+    db_get xsp/xsp_port || true
+    R=$RET
+    echo "Using Mono XSP port: $R"
+    sed "s/port=.*/port=$R/g" $xsp_default > $tempfile
+    cp $tempfile $xsp_default
+}
+
+update_bind() {
+    db_get xsp/xsp_bind || true
+    R=$RET
+    echo "Binding Mono XSP address: $R"
+    sed "s/address=.*/address=$R/g" $xsp_default > $tempfile
+    cp $tempfile $xsp_default
+}
+
+should_start() {
+    if [ -e $xsp_default ]; then
+	. $xsp_default
+        if [ "$start_boot" != "true" ]; then
+	    return 1
+        fi
+    fi
+
+    if [ ! -e $VIRTUALFILE -o `cat $VIRTUALFILE | wc -l` = "2" ]; then
+	echo "mono-xsp: Not started, you need asp.net-examples/monodoc-http or an ASP.NET application"
+	return 1
+    fi 
+    
+    if [ -f /var/run/$NAME.pid ]; then
+	# Are we really running xsp?
+	xsp_pid=`cat /var/run/$NAME.pid`
+	xsp_ps=`ps -p $xsp_pid | wc -l`
+	if [ "$xsp_ps" != "2" ]; then
+	    return 0
+	else
+	    return 1
+	fi
+    else
+	return 1
+    fi
+    
+    return 1
+
+}
+
+case "$1" in
+    configure)
+	tempfile=$(/bin/tempfile)
+	
+	# Configure autostart, but don't prevent the init script
+	# from starting it manually.
+	autostart="true"
+	db_get xsp/xsp_autostart || true
+	if [ "$RET" = "true" ]; then	    
+	    if [ -x "/etc/init.d/mono-xsp" ]; then
+		update-rc.d mono-xsp defaults > /dev/null 2>&1 || true
+	    fi
+	else
+	    update-rc.d -f mono-xsp remove > /dev/null 2>&1  || true
+	fi
+
+	# Configure the port and address
+	update_port
+	update_bind
+
+	# chmod the working directories
+	chown -R www-data:www-data /var/run/mono-xsp
+	mono-xsp-update
+	if [ "$RET" = "true" ]; then
+	    if should_start -a $autostart = "true" ; then
+		if which invoke-rc.d >/dev/null 2>&1; then
+		    invoke-rc.d mono-xsp start
+		else
+		    /etc/init.d/mono-xsp start
+		fi
+	    fi
+	fi
+	    
+	rm $tempfile
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/asp.net2-examples.hostxsp2
+++ xsp-1.9.1/debian/asp.net2-examples.hostxsp2
@@ -0,0 +1,5 @@
+# This is the configuration file
+# for the aspnet-examples virtualhost
+path = /usr/share/asp.net2-demos
+alias = /samples
+libs = /usr/lib/mono/2.0
--- xsp-1.9.1.orig/debian/copyright
+++ xsp-1.9.1/debian/copyright
@@ -0,0 +1,58 @@
+This package was debianized by Pablo Fischer pablo@pablo.com.mx on
+Wed,  7 Jan 2004 12:49:46 -0600.
+
+It was downloaded from:
+http://www.mono-project.com/
+
+Author(s): 
+Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+Copyright:
+Copyright (c) 2002-2007 Novell, Inc. and the individuals listed
+on the ChangeLog entries and source files.
+
+src/Mono.WebServer/*.cs
+Copyright (c) Copyright 2002-2007 Novell, Inc
+
+src/Mono.WebServer/MonoWorkerRequest.cs
+Copyright (c) 2002 Daniel Lopez Ridruejo.
+(C) Copyright 2004 Novell, Inc. (http://www.novell.com)
+
+src/Mono.WebServer.Apache/*
+(C) Copyright 2004-2007 Novell, Inc. (http://www.novell.com)
+
+src/Mono.WebServer.Apache/Request.cs
+src/Mono.WebServer.Apache/WorkerRequest.cs
+Copyright (c) 2002 Daniel Lopez Ridruejo.
+(C) Copyright 2004,2005 Novell, Inc. (http://www.novell.com)
+
+src/Mono.WebServer.FastCgi/*
+(C) Copyright 2007 Brian Nickel
+
+src/Mono.WebServer.FastCgi/main.cs
+(C) 2002,2003 Ximian, Inc (http://www.ximian.com)
+(C) Copyright 2004 Novell, Inc. (http://www.novell.com)
+(C) Copyright 2007 Brian Nickel
+
+License:
+
+MIT/X11
+-------
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--- xsp-1.9.1.orig/debian/mono-xsp2.postrm
+++ xsp-1.9.1/debian/mono-xsp2.postrm
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "purge" ]; then
+	rm -f /etc/xsp2/debian.webapp
+	# purge init.d script
+	update-rc.d -f mono-xsp2 remove > /dev/null 2>&1
+fi
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/control
+++ xsp-1.9.1/debian/control
@@ -0,0 +1,133 @@
+Source: xsp
+Section: web
+Priority: optional
+Maintainer: Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>
+Uploaders: Dylan R. E. Moonfire <debian@mfgames.com>, Mirco Bauer <meebey@debian.org>, Jo Shields <directhex@apebox.org>
+Build-Depends: debhelper (>= 5.0.0), po-debconf, dpatch, autotools-dev
+Build-Depends-Indep: cli-common-dev (>= 0.5.4~bpo40+1),
+ mono-gmcs,
+ mono-mcs,
+ mono-gac,
+ libmono-dev,
+ libmono-system-web1.0-cil,
+ libmono-system-web2.0-cil,
+ libmono-security1.0-cil,
+ libmono-security2.0-cil,
+ libmono1.0-cil,
+ libmono2.0-cil,
+ libmono-sqlite1.0-cil,
+ libmono-winforms1.0-cil,
+ libmono-oracle1.0-cil,
+ libmono-microsoft7.0-cil,
+ libmono-system-messaging1.0-cil,
+ libmono-system-ldap1.0-cil,
+ libmono-cscompmgd7.0-cil
+Standards-Version: 3.8.0
+Homepage: http://www.mono-project.com/ASP.NET
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-mono/xsp/trunk/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-mono/xsp/trunk/
+
+Package: mono-xsp-base
+Architecture: all
+Depends: ${misc:Depends}, ${cli:Depends}, mono-mcs, libmono-system-web1.0-cil (>= ${mono-abi-comp-version})
+Conflicts: mono-utils (<= 1.1.9.2-1)
+Description: base libraries for XSP 1.1
+ This is the core libraries needed to install the XSP application,
+ either through the standalone XSP version (mono-xsp) or the Apache module
+ (mono-apache-server).
+
+Package: mono-xsp2-base
+Architecture: all
+Depends: ${misc:Depends}, ${cli:Depends}, mono-gmcs, libmono-system-web2.0-cil (>= ${mono-abi-comp-version})
+Description: base libraries for XSP 2.0
+ This is the core libraries needed to install the XSP2 application,
+ either through the standalone XSP version (mono-xsp2) or the Apache module
+ (mono-apache-server2).
+
+Package: mono-xsp
+Architecture: all
+Depends: ${misc:Depends}, ${cli:Depends}, net-tools, mono-xsp-base (= ${source:Version}), procps
+Description: simple web server to run ASP.NET applications
+ XSP is a simple web server written in C# that can be used to run your 
+ ASP.NET 1.1 applications. 
+ .
+ This is the standalone ASP.NET web server. If you want to run ASP.NET
+ applications with Apache, look at mono-apache-server.
+
+Package: mono-xsp2
+Architecture: all
+Depends: ${misc:Depends}, ${cli:Depends}, net-tools, mono-xsp2-base (= ${source:Version}), procps
+Description: simple web server to run ASP.NET applications
+ XSP is a simple web server written in C# that can be used to run your 
+ ASP.NET 1.1 and 2.0 applications. 
+ .
+ This is the standalone ASP.NET web server. If you want to run ASP.NET
+ applications with Apache, look at mono-apache-server2.
+
+Package: asp.net-examples
+Architecture: all
+Depends: ${misc:Depends}, ${cli:Depends}, ${cli:XspServer}
+Description: demo pages for ASP.NET 1.1 infrastructure
+ Sample set of .aspx pages to test the XSP server or the mod_mono Apache
+ module. This does not include the ASP.NET 2.0 examples.
+
+Package: asp.net2-examples
+Architecture: all
+Depends: ${misc:Depends}, ${cli:Depends}, ${cli:XspServer2}
+Description: demo pages for ASP.NET 1.1 and 2.0 infrastructure
+ Sample set of .aspx pages to test the XSP server or the mod_mono Apache
+ module. This is for the xsp2 and includes the 2.0 modules.
+
+Package: mono-apache-server
+Architecture: all
+Conflicts: mono-server
+Replaces: mono-server
+Depends: ${misc:Depends}, ${cli:Depends}, net-tools, mono-xsp-base (= ${source:Version}), perl-modules
+Description: ASP.NET backend for mod_mono Apache module
+ mono-apache-server contains the backend for mod_mono. It lets you run ASP.NET
+ web applications via Apache. mod_mono will call mono-apache-server to parse
+ and compile the aspx code.
+ .
+ This package requires you to install libapache-mod-mono for Apache 1.3 or
+ libapache2-mod-mono for Apache 2.0.
+
+Package: mono-apache-server2
+Architecture: all
+Conflicts: mono-server
+Replaces: mono-server
+Depends: ${misc:Depends}, ${cli:Depends}, net-tools, mono-xsp2-base (= ${source:Version}), perl-modules
+Description: ASP.NET backend for mod_mono2 Apache module
+ mono-apache-server contains the backend for mod_mono. It lets you run ASP.NET
+ web applications via Apache. mod_mono will call mono-apache-server to parse
+ and compile the aspx code.
+ .
+ This package requires you to install libapache-mod-mono for Apache 1.3 or
+ libapache2-mod-mono for Apache 2.0.
+
+Package: mono-fastcgi-server
+Architecture: all
+Conflicts: mono-server
+Replaces: mono-server
+Depends: ${misc:Depends}, ${cli:Depends}, net-tools, mono-xsp-base (= ${source:Version}), perl-modules
+Description: ASP.NET backend for FastCGI webservers
+ mono-fastcgi-server contains the backend for FastCGI. It lets you run 
+ ASP.NET web applications via HTTP servers such as Lighttpd or Apache. 
+ The FastCGI webserver shouldbe configured to run fastcgi-mono-server to
+ parse and compile the aspx code.
+ .
+ This package requires you to install any FastCGI webserver, such as
+ Lighttpd or Apache (see libapache2-mod-fcgid).
+
+Package: mono-fastcgi-server2
+Architecture: all
+Conflicts: mono-server
+Replaces: mono-server
+Depends: ${misc:Depends}, ${cli:Depends}, net-tools, mono-xsp2-base (= ${source:Version}), perl-modules
+Description: ASP.NET backend for FastCGI webservers
+ mono-fastcgi-server contains the backend for FastCGI. It lets you run
+ ASP.NET web applications via HTTP servers such as Lighttpd or Apache.
+ The FastCGI webserver should be configured to run fastcgi-mono-server to
+ parse and compile the aspx code.
+ .
+ This package requires you to install any FastCGI webserver, such as
+ Lighttpd or Apache (see libapache2-mod-fcgid).
--- xsp-1.9.1.orig/debian/mono-xsp2.init
+++ xsp-1.9.1/debian/mono-xsp2.init
@@ -0,0 +1,97 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          mono-xsp2
+# Required-Start:    
+# Required-Stop: 
+# Should-Start:      
+# Should-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Mono XSP2
+# Description:       Debian init script for Mono XSP2.
+### END INIT INFO
+#
+# Written by Pablo Fischer <pablo@pablo.com.mx>
+#            Dylan R. E. Moonfire <debian@mfgames.com>
+# Modified for Debian GNU/Linux
+#
+# Version:	@(#)mono-xsp2 pablo@pablo.com.mx
+#
+
+# Variables
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/xsp2
+NAME=mono-xsp2
+DESC="XSP 2 WebServer"
+DEFAULT=/etc/default/$NAME
+CFGDIR=/etc/xsp2
+VIRTUALFILE=$CFGDIR/debian.webapp
+MONO_SHARED_DIR=/var/run/$NAME
+
+# Use LSB
+. /lib/lsb/init-functions
+
+# If we don't have the basics, don't bother
+test -x $DAEMON || exit 0
+test -f $DEFAULT && . $DEFAULT	
+
+if [ ! -e $MONO_SHARED_DIR ]; then
+	mkdir $MONO_SHARED_DIR   
+	chown $user:$group $MONO_SHARED_DIR
+fi
+                
+should_start() {
+    if [ ! -e $VIRTUALFILE -o `cat $VIRTUALFILE | wc -l` = "2" ]; then
+	log_action_msg "You have an incomplete $VIRTUALFILE"
+	log_action_msg "To fix it, you need to install at least one package for xsp2 (like asp.net-examples)"	
+	return 1
+    fi 
+    
+    if [ -f /var/run/$NAME.pid ]; then
+	# Are we really running xsp2?
+	xsp2_pid=`cat /var/run/$NAME.pid`
+	xsp2_ps=`ps -p $xsp2_pid | wc -l`
+	if [ "$xsp2_ps" != "1" ]; then
+	    log_action_msg "Sorry, there is already a xsp2 running, stop it first"
+	    return 1		
+	fi
+    fi
+    
+    return 0
+	
+}
+
+case "$1" in
+    start)
+	if should_start ; then
+	    log_daemon_msg "Starting $DESC" "$NAME"
+	    export MONO_SHARED_DIR
+	    start-stop-daemon --start --background --make-pidfile \
+		--quiet --pidfile /var/run/$NAME.pid \
+		--user $user --group $group --chuid $user \
+		--exec $DAEMON -- \
+		--port $port --address $address --appconfigdir \
+		$CFGDIR --nonstop
+	    log_end_msg $?
+	fi
+	;;
+    stop)
+	log_daemon_msg "Stopping $DESC" "$NAME"
+        for i in $(ps aux | grep -v grep | grep 'xsp2.exe' | cut -c 10-15)
+        do
+                kill $i > /dev/null 2>&1
+        done
+	log_end_msg $?
+	;;
+    restart|force-reload)
+	$0 stop
+	$0 start
+	;;
+    *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- xsp-1.9.1.orig/debian/changelog
+++ xsp-1.9.1/debian/changelog
@@ -0,0 +1,702 @@
+xsp (1.9.1-2~bpo40+1) etch-backports; urgency=low
+
+  * Rebuilt on Debian/Etch.
+  * debian/patches/00list:
+    + Disabled patch fix_mono_nunit
+    + Enabled patch disable_building_unittests
+  * debian/control:
+    + Removed libnunit2.4-cil from build-dependencies.
+    + Lowered cli-common-dev build-depdendency from >= 0.5.4 to
+      >= 0.5.4~bpo40+1.
+  * debian/patches/99_autoreconf.dpatch:
+    + autoreconfed source
+
+ -- Mirco Bauer <meebey@debian.org>  Thu, 24 Jul 2008 17:59:12 +0200
+
+xsp (1.9.1-2) unstable; urgency=low
+
+  [ Jo Shields ]
+  * debian/control
+    + Enable building of fastcgi packages
+
+  [ Mirco Bauer ]
+  * debian/control:
+    + Enhanced package descriptions.
+  * debian/rules:
+    + Bumped MONO_ABI_COMP_VERSION to 1.9.
+  * debian/copyright:
+    + Added copyright holders of src/Mono.WebServer/*.cs,
+      src/Mono.WebServer.Apache/* and src/Mono.WebServer.FastCgi/*.
+
+ -- Mirco Bauer <meebey@debian.org>  Fri, 11 Jul 2008 13:33:24 +0200
+
+xsp (1.9.1-1) unstable; urgency=low
+
+  [ Jo Shields ]
+  * New upstream release (Closes: #472581)
+  * debian/rules
+    - Enable patch-stamp building, for great dpatch justice
+    - Remove broken rename in debian/rules, which was causing a 404
+      in asp.net2-examples when index2.aspx was called
+  * debian/*fastcgi*
+    - Required files to generate mono-fastcgi-server(2) packages. These
+      are disabled for now, to bypass delays in the NEW queue
+  * debian/patches/00list
+    - Dropped fix_dbpage1_typo.dpatch (no longer relevant as test uses 
+      SQLite)
+    - New patch: fix_mono_nunit.dpatch. Changes reference in 
+      Makefile.am/in to use "nunit" not "mono-nunit" to invoke 
+      pkg-config
+  * debian/control
+    - Add Jo Shields to Uploaders:
+    - New build dependencies: libmono-sqlite1.0-cil, 
+      libmono-winforms1.0-cil, libmono-oracle1.0-cil, 
+      libmono-microsoft7.0-cil, libmono-system-messaging1.0-cil,
+      libmono-system-ldap1.0-cil, libmono-cscompmgd7.0-cil,
+      libnunit2.4-cil
+  * Include changes from previous NMU (Closes: #466584, #466925 #467478).
+    Thanks to Christian Perrier for those.
+  * Debconf translations:
+    - Updated Portugese (Closes: #488168)
+    - Updated Swedish (Closes: #487554)
+    - Updated Galacian (Closes: #480985)
+    - Updated Vietnamese (Closes: #489394)
+    - Updated Czech (Closes: #489438)
+    - Added Russian (Closes: #479149)
+    - Added Finnish (Closes: #476319)
+    - Added Basque (Closes: #489584)
+    - Added Slovenian
+
+  [ Mirco Bauer ]
+  * debian/rules:
+    + Fixed target dependencies.
+
+ -- Jo Shields <directhex@apebox.org>  Thu, 03 Jul 2008 23:49:11 +0200
+
+xsp (1.2.5-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add missing build dependencies that make the package FTBFS
+  * Debconf translations:
+    - French. Closes: #466584
+    - German. Closes: #466925
+    - Dutch. Closes: #467478
+
+ -- Christian Perrier <bubulle@debian.org>  Thu, 10 Apr 2008 22:14:51 +0200
+
+xsp (1.2.5-2) unstable; urgency=medium
+
+  * The "get sexy and ready for lenny" release
+  * New upstream release
+  * debian/mono-server(2)-update:
+    + Use shell wrapper scripts (/usr/bin/mod-mono-server(2)) instead of
+      assemblies (/usr/lib/mono/{1,2}.0/mod-mono-server(2).exe), as that
+      required BINFMT.
+  * debian/control:
+    + Added libmono-system-web{1,2}.0-cil and libmono-security{1,2}.0-cil to
+      build dependencies, fixing FTBFS. Thus urgency set to medium.
+      (Closes: #458709)
+    + Added Homepage, Vcs-Browser and Vcs-Svn fields.
+    + Added ${misc:Depends} for automatic debconf dependecies.
+    + Updated cli-common-dev build-dependency to 0.5.4 as we use dh_clistrip
+      from it now.
+  * debian/mono-xsp(2).init:
+    + Create /var/run/mono-xsp automatically if it doesn't exist.
+  * debian/mono-apache-server(2).postinst:
+    + Removed, db_purge for debconf is automatically handled.
+  * debian/mono-xsp(2).postrm:
+    + Remove /etc/xsp2/debian.webapp when being purged.
+      (Closes: #454378, Closes: #454709)
+  * debian/mono-apache-server2.templates
+    debian/mono-apache-server2.config:
+    + Added missing debconf integration for mono-apache-server2.
+  * debian/*.preinst
+    debian/*.postinst
+    debian/*.prerm
+    debian/*.postrm:
+    + Fixed various error handling or rather hiding, and overkill usage of
+      "rm -Rf ..."
+  * debian/watch:
+    + Converted to version 3.
+  * debian/rules:
+    + Make use of dh_clifixperms and dh_clistrip.
+  * debian/mono-xsp.install:
+    + Added dbsessmgr.
+  * debian/po/templates.pot:
+    + Minor update, fixed the script name.
+
+ -- Mirco Bauer <meebey@debian.org>  Sun, 17 Feb 2008 23:46:34 +0100
+
+xsp (1.2.5-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire
+    + Acknowledged and merged in NMU changes by Andreas Barth (Closes:
+      #431585, #431587)
+    + debian/rules: Changed "clean" rule to remove lintian warning.
+
+ -- Dylan R. E. Moonfire <debian@mfgames.com>  Mon, 26 Nov 2007 10:50:17 -0600
+
+xsp (1.2.4-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add dependency on perl-modules from mono-apache-server. Closes: #431585
+
+ -- Andreas Barth <aba@not.so.argh.org>  Tue, 31 Jul 2007 20:26:58 +0000
+
+xsp (1.2.4-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire
+    + debian/control
+      - Changed ${Source-Version} to ${source:Version}
+      - Added dpatch to build-deps
+    + test/1.1/webcontrols/dbpage1.aspx
+      - Converted NMU fix in upstream source to a dpatch
+    + debian/rules
+      - Running dh_makecillibs for the Mono.WebServer DLL's
+      - Added dpatch targets
+    + Acknowledged and merged in NMU changes by Luk Claes and Martin
+      Zobel-Helas (Closes: #425025, #416893, #417006,#416292, #421996,
+      #415203, #423067, #416636)
+  * Mirco 'meebey' Bauer
+    + mono-server(2)-update:
+      - Add "default" alias to all Mono* directives.
+        (this makes ASP.NET 1.1 and 2.0 actually work)
+    + debian/watch:
+      - Updated
+
+ -- Dylan R. E. Moonfire <debian@mfgames.com>  Wed, 20 Jun 2007 17:41:14 -0500
+
+xsp (1.2.1-2.2) unstable; urgency=high
+
+  * Non-maintainer upload during BSP.
+  * Fix unconditional use of debconf in postrm (Closes: #416893, #417006).
+  * Fix typo in dbpage1.aspx (Closes: #416292).
+  * Fix typo in mono-xsp2.preinst (Closes: #421996).
+  * Add Spanish debconf translation (Closes: #415203).
+  * Add Dutch debconf translation (Closes: #423067).
+
+ -- Luk Claes <luk@debian.org>  Fri, 18 May 2007 16:45:28 +0200
+
+xsp (1.2.1-2.1) unstable; urgency=low
+
+  * Non-maintainer upload during BSP.
+  * conditional include of /usr/share/debconf/confmodule (Closes: #416636)
+
+ -- Martin Zobel-Helas <zobel@ftbfs.de>  Thu, 17 May 2007 13:25:21 +0200
+
+xsp (1.2.1-2) unstable; urgency=low
+
+  * Dylan R. E. Moonfire
+    + debian/po: Added translations for Portuguese, German, and Galician
+      (Closes: #413227, #413556, #406839).
+    + Remove bashism from mono-xsp and mono-xsp2 init files (Closes:
+      #407249)
+    + Updated Apache syntax for mod-mono (Closes: #409658)
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Tue, 06 Mar 2007 21:35:16 -0600
+
+xsp (1.2.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Mirco 'meebey' Bauer
+    + debian/control:
+      - Removed dependency that makes mono-xsp(2)-base incompatible with newer
+        Mono versions (according to upstream it stays compatible now).
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Thu, 23 Nov 2006 11:47:07 -0600
+
+xsp (1.1.18-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire
+    + Added French translation (Closes: #393674)
+    + Added Czech translation (Closes: #389175)
+  * Mirco 'meebey' Bauer
+    + debian/control:
+      - Updated mono-classlib-{1,2}.0 dependencies to
+        libmono-system-web{1,2}.0-cil. (Closes: #394662)
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Wed, 18 Oct 2006 08:00:43 -0500
+
+xsp (1.1.17.1-2) unstable; urgency=low
+
+  * Mirco 'meebey' Bauer
+    + Fixed debconf templates.
+      (Closes: #389005, thanks to Jean-Luc Coulon for the patch)
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Sat, 23 Sep 2006 11:50:49 +0200
+
+xsp (1.1.17.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire
+    + Updated templates to resolve lintian errors.
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Thu, 21 Sep 2006 16:44:56 -0500
+
+xsp (1.1.17-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire
+    + Changed the init scripts to include the INIT SCRIPT INFO.
+    + Changed the postinit and prerm scripts to use invoke-rc.d. (Closes:
+      #367752, #367720)
+    + Updated the Czech translation. (Closes: #370313)
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Thu, 13 Jul 2006 19:46:06 -0500
+
+xsp (1.1.15-1) unstable; urgency=low
+
+  * New upstream release
+  * Mirco 'meebey' Bauer
+    + Added MONO_ABI_(INCOMP|COMP)_VERSION variable to debian/rules, because
+      the compatible versions is not always equal to the XSP version.
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Wed, 17 May 2006 20:32:00 +0200
+	
+xsp (1.1.13-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire <debian@mfgames.com>
+    + debian/control
+      - Added a stricter requirement to mono-classlib-1.0 and
+        2.0. (Closes: #303755, #332726)
+      - Fixed a bug with "mono-mono".
+    + debian/rules
+      - Adding perl to figure out version for requirements.
+  * Added Portuguese translation. (Closes: #336701)
+  * Added Swedish translation. (Closes: #351219)
+  * Added French translation. (Closes: #352090)
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Wed, 25 Jan 2006 13:54:22 -0600
+
+xsp (1.1.10-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire <debian@mfgames.com>
+    + debian/rules: Changed binary-arch to binary-indep (per meebey)
+    + debian/control: Removed the other uploaders.
+    + debian/control: Removed mono from depends.
+    + Moved dh_installxsp into this package. (Closes #340072)
+    + Corrected the dependencies for asp.net and asp.net2 examples to use
+      dh_installxsp.
+    + Remove debian/MAINTAINERS as per meebey.
+    + Fixed the paths generated by the mono-server*-update and also
+      updated the documentation in the README.Debian to properly identify
+      the script name.
+    + debian/control: Added ${Source-Version} to four packages.
+    + Added "Conflicts:" to support upgrading from older versions.
+    + Package cleanups and fixing problems with the build process.
+    + Corrected the server directive for mono-server2-update.conf (Thanks
+      Matt Petteys). Also fixed the mono-server-update.conf because it broke
+      also.
+    + Added partial translations. These are partial because the new package
+      (as of 1.0.9) added additional questions that have not been translated.
+      - Added a partial French translation from Jean-Luc Coulon (f5ibh)
+        <jean-luc.coulon@wanadoo.fr>. There was a secondary French
+        translation from Steve <dlist@bluewin.ch> but it was slightly
+        older, so the newest one was taken. (Closes: #318882, #300349)
+      - Added a partial Czech translation from Miroslav Kure
+        <kurem@upcase.inf.upol.cz>. (Closes: #314769)
+      - Added a partial Vietnamese translation from Clytie Siddal
+        <clytie@riverland.net.au>. (Closes: #324272)
+      - Added a partial Swedish translation from Daniel Nylander
+        <yeager@lidkoping.net>. (Closes: #330768)
+    + Added "debconf | debconf-2.0" to the control files. (Closes: #332159)
+    + Removed all the lintian warnings.
+    + Added a Build-Depends on mono-gmcs to make sure it compiles
+      properly (thanks to tjfontaine).
+    + Working on getting the interaction between this and mod-mono working
+      properly with dependencies.
+    + Updated all of the paths with the new layout differences from 1.0.5
+      and 1.0.9. Upstream significantly changed the layout of both the
+      source package and the installation locations.
+  * Mirco 'meebey' Bauer
+     + debian/control:
+       - Changed Build-Depends to Build-Depends-Indep
+       - Bumed debhelper build-dep to >= 5.0.0
+       - Added procps to mono-xsp and mono-xsp2 Depends, the init scripts
+         are using "ps".
+     + debian/compat:
+       - Changed to 5
+     + debian/rules:
+       - Cosmetic cleanup
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Wed, 04 Jan 2006 09:54:43 -0600
+
+xsp (1.0.5-2) unstable; urgency=low
+
+  * Dave Beckett
+    + Create patches/math-min.patch to disambiguate call to
+      Math.Min (closes: #327321)
+    + Note that the above patch is pre-applied in the diff until a
+      patch system is added to the build system.
+    + debian/rules: dh_clideps not dh_netdeps
+    + debian/rules: clean all built files - exes, dlls, mdb files
+    + debian/control: use cli:Depends, add versioned depends on cli-common
+    + debain/control: update to standards version 3.6.2.1
+    + debian/patches/xsp-apache2.diff: unused so deleted
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Wed, 21 Sep 2005 20:48:27 +0100
+
+xsp (1.0.5-1) unstable; urgency=low
+
+  * NEW upstream release
+  * Pablo Fischer
+    + Readme.Debian is ok, the package in Debian pool is outdated (closes: #296031)
+    + mono-xsp.init will read the default file to verify that the daemon can be 
+      started (closes: #276994)
+    + XSP was having problems with virtual domains, these last releases have been patched 
+      by upstream (closes: #274594)
+    + index.aspx prints ok. The version located in Debian pool was outdated (closes: #293944)
+    + xsp should create his own chroot (SHARED_DIR) (closes: #259163)
+    + update-mono-server.conf is a symlink of mono-server-update.conf, 
+      but the package name will be the same (closes: #263954)
+    + updated web.config (Thanks Tomasz Rybak!).        
+    + use po-debconf for po template files. Thanks to Martin Quinson (closes: #264922)
+    + netstat port checking should not resolve reverse names (closes: #267859)   
+    + added watch file (closes: #268877)
+    + Fixed multiple virtualhost support for mono-server-{update,admin}.conf. 
+      Now the user can have multiple virtulhosts running with mod_mono, the fault was
+      using the vhosts as * and not as localhost (a realname)
+  * Fabian Fagerholm <fabbe@paniq.net> (closes: #268668)
+    + README.Debian: rewrote this, incorporating all the currently relevant info.
+    + asp.net-examples.README.Debian: improved wording.
+    + mono-apache-server.README.Debian: rewrote this, incorporating relevant
+      info.
+    + asp.net-examples.dirs: cleaned up.
+    + debian/TODO: cleaned up.
+    + debian/control:
+      - Improved wording of package descriptions.
+      - Updated dependencies to reflect existence of libapache2-mod-mono.
+    + debian/copyright: updated location of Mono web site.
+    + Updated index.aspx to reflect new Mono web site, plus cleanup.
+    + Removed some old maintainer scripts that are no longer in use.
+    + Lots of one-line cleanups.        
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Tue, 09 Dec 2004 09:58:12 -0600
+
+xsp (1.0-3) unstable; urgency=low
+
+  * Now mono-xsp daemon 'chuid' the process to www-data system user
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Sun, 4 Jul 2004 14:31:40 -0600
+
+xsp (1.0-2) unstable; urgency=low
+
+  * Fixed a dependency problem with the mono-mcs version
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Sun, 4 Jul 2004 14:22:45 -0600
+        
+xsp (1.0-1) unstable; urgency=low
+
+  * NEW Release
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Sat, 3 Jul 2004 14:12:54 -0600
+
+xsp (0.15-1) unstable; urgency=low
+
+  * installing index.aspx from an older version, the new one has broken
+    references (eb)
+  * patched index.aspx, links.  
+  * Renamed mono-server to mono-apache-server.  
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Wed, 16 Jun 2004 14:02:21 -0600         
+
+xsp (0.14-7) unstable; urgency=low
+
+  * Rewrited README.Debian files        
+  * Added more docs to packages 
+  * dlls of asp.net-examples should be in a bin/ directory, inside asp
+  * Added manpages of {package}-update.conf
+  * Added debconf dependency to mono-xsp and mono-server
+  * Fixed a bug in init scripts and removed obsolote stuff      
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Mon, 14 Jun 2004 21:41:43 -0600
+
+xsp (0.14-6) unstable; urgency=low
+
+  * Compiled with mono-utils to prevent dependency problems
+  * Fixed a bug in scripts of mono-xsp, we are not using reader.conf anymore
+  * Fixed some bugs reading an old .conf file   
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Mon, 14 Jun 2004 19:19:32 -0600
+
+xsp (0.14-5) unstable; urgency=low
+
+  * Fixed dependency problem, should use dependency less strict (all beta2)
+
+ -- Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>  Mon, 14 Jun 2004 17:34:16 -0600
+
+xsp (0.14-4) unstable; urgency=low
+
+  * A BIG bug in the mono-server-update.conf script, I'm using perl not C!
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Mon, 14 Jun 2004 10:03:43 -0600 
+
+xsp (0.14-3) unstable; urgency=low
+
+  * Added some missing tools
+  * Also, fixed the manpages that should be in mono-xsp package         
+  * Fixed a bug in mono-server-update.conf line 55, when we don't have 
+    hosts in mono-server we shouldn't concatenate an empty var ($libs)  
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Mon, 14 Jun 2004 12:30:12 -0600 
+
+xsp (0.14-2) unstable; urgency=low
+
+  * Asp.net dlls should not be linked in /usr/share/asp.net-demos..
+  * Added support for webapps files
+  * Man pagaes of admin.conf scripts
+  * Removed reader.conf of mono-xsp
+  * The init script of mono-xsp now uses a webapps dir to setup the
+    xsp daemon  
+  * An update script now writes a debian.webapp file and the 
+    mono-server-hosts.conf (just in mono-server).       
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Sat, 12 Jun 2004 13:31:12 -0600         
+
+xsp (0.14-1) unstable; urgency=low
+
+  * New Release
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Sat, 12 Jun 2004 13:21:32 -0600 
+
+xsp (0.12-5) unstable; urgency=low
+
+  * Added a new feature, the libs that will replace MonoPath.
+  * mono-server should depends of libapache, 0.9 version, that supports the MonoPath
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Tue, 25 May 2004 10:44:12 -0600 
+
+xsp (0.12-4) unstable; urgency=low
+
+  * Symlinks for the .dlls that asp.net-examples needs. asp.net-examples 
+    was not using monoconventions totally
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Mon, 24 May 2004 21:10:32 -0600
+
+xsp (0.12-3) unstable; urgency=low
+
+  * Previous users and versions were having problems running the past init.d
+    that should not be executed with this version
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Mon, 24 May 2004 15:13:12 -0600 
+
+xsp (0.12-2) unstable; urgency=low
+
+  * Fixed the update script of mono-server, we should not create MonoApplication 
+    unless we have more than one directory in /etc/mono-server/conf.d and be valid
+  * Fixed a bug int he admin scripts, syntax error :-(
+  * Also added the two actions to the admin scripts: add and remove     
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Fri, 20 May 2004 15:07:42 -0600 
+
+xsp (0.12-1) unstable; urgency=low
+
+  * NEW Release!
+  * This new release use the new mod-mono-server, that for now it will not be
+    a daemon, it will be just a parser/wrapper for the mod_mono apache module
+  * Some fixed in dh_installxsp, thanks David Schmitt!  
+  * Added a admin script for both mono-server and xsp package   
+  * rules file should check for dh_installxsp script inside debian/ directory
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Fri, 20 May 2004 23:21:13 -0600 
+
+xsp (0.9-15) unstable; urgency=low
+
+  * I noted that the daemon was not starting when the user boots the computer, 
+    there reason is that in postinst (and postrm) there's no update-rc.d to 
+    add the daemons to the init levels.
+  * Also, the 'debian' way tells that I can these daemon can only be added in 
+    postinst and removed in postrm (purge), so if the user only do a apt-get 
+    remove package the package will be started again and again, so to fix this
+    issue is to add a test -x $DAEMON to the init, before anything :-)  
+  * Fixed a bug in the update scripts: Sometimes the user doesn't reads the 
+    README of the package, so sometimes the user will add their hosts to the 
+    main configuration file (like /etc/xsp/mono-xsp-hosts.conf) with no dirs 
+    in conf.d, so, to prevent 'two' wrong configurations we should 'clean up' 
+    the main configuration file and THEN start with a new one.  
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Mon, 19 Apr 2004 18:22:12 -0600 
+
+xsp (0.9-14) unstable; urgency=low
+
+  * Fixed a bug when users try to declare their paths with spaces before 
+    or after the '=' char.
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Sun, 18 Apr 2004 12:49:21 -0600
+
+xsp (0.9-13) unstable; urgency=low
+
+  * Added a dep to mono-xsp and mono-server, the mono-mcs, to compile the source
+    of the asxp's files for firsttime
+  * Also, added a brief explanation to the README files, telling the user 
+    why /etc/mono-server or /etc/xsp directories are created created also if 
+    they don't have thesepackages.
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Sun, 18 Apr 2004 10:43:11 -0600 
+        
+xsp (0.9-12) unstable; urgency=low
+
+  * Added a dep to mono-server, libapache-mod-mono, to get a cleaner installation :-)
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Sat, 17 Apr 2004 15:30:12 -0600 
+
+xsp (0.9-11) unstable; urgency=low
+
+  * Fixed a bug in the reader scripts, we should read the file only if it 
+    exists.
+  * Also, the same bug in the update scripts, just copy the file (tmp) if it exists..
+
+ -- Pablo Fischer <pablo@palbo.com.mx>  Sat, 17 Apr 2004 15:01:23 -0600 
+
+xsp (0.9-10) unstable; urgency=low
+
+  * The reader scripts were not printing (duh)
+  * Force the cp of the tmp host file configuration
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Fri, 16 Apr 2004 23:19:40 -0600
+
+xsp (0.9-9) unstable; urgency=low
+
+  * Removed the old sh scripts, now we use the power of perl (I preffer it)
+  * Also edited the asp.net-examples.postinst, we should check if the update script exists
+  * Now, the reader and update script are just used by root (usr/sbin)  
+  * Removed the asp.net-examples.install, we install the host file with dh_installxsp 
+  * In the asp.net-examples.postinst and postrm scripts we check if the 'scripts' of xsp or 
+    mono-server are really installed    
+  * Removed the two ln -s (rules), we are replacing those lines with .links files
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Fri, 16 Apr 2004 20:29:00 -0600
+
+xsp (0.9-8) unstable; urgency=low
+
+  * We implement dh_installxsp to install the host files
+  * In the postrm and postinst scripts (of asp.net-examples) we just update 
+    the 'big' file.     
+ 
+ -- Pablo Fischer <pablo@pablo.com.mx>  Sun, 11 Apr 2004 13:02:05 -0600
+
+xsp (0.9-7) unstable; urgency=low
+
+  * The configuration host file (of asp.net) is installed with asp.net-examples.install
+    so in the postinst and postrm we just update        
+  * The installation and removal scripts of asp.net-examples just 
+    update the configuration host file and run their update script.     
+  * The update scripts (mono-xsp-update, mono-server-update) can restart 
+    the daemon or not (by default yes, to prevent: --norestart) and check 
+    the md5sum of the orig global host file with the new one    
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Sat, 10 Apr 2004 15:16:10 -0600
+
+xsp (0.9-6) unstable; urgency=low
+
+  * postinst, preinst, postrm, prerm 
+   + These files are now divided in pre and post scripts
+  * init files
+   + Changed the exit 0 statement. Now we use return values
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Fri, 9 Apr 2004 15:16:10 -0600
+
+xsp (0.9-5) unstable; urgency=low
+
+  * rules:
+    + The .config shell script should be in /usr/share/dotnet/bin, and 
+      with chmod +x 
+    + We should have a symlink of those files (.conf ones) in /usr/bin  
+  * mono-server-reader.conf   
+    + Added a new rule: Check if the config file exists, if not, print a message and exit
+  * asp.net-examples.prerm
+    + Fixed an issue of an if, I should use "$var" not $var, "$var" is for 
+      matched and unmatched cases (=, !=).
+  * mono-xsp.init: 
+    + Added a new rule: Verify if the xsp daemon is already running, if it
+      is running, print an error an exit, so we keep a good pid control system
+      in /var/run   
+    + Removed some stupid debug messages in spanish
+    + Fixed the should_restart, it was always returning true
+  * mono-server.init:   
+    + Removed some stupid debug messages in spanish    
+    + Fixed the should_restart, it was always returning true  
+    + If libapache is not installed, we should print a message AND exit..
+  * asp.net-examples.postinst:      
+    + Added a rm -Rf to remove the temp file after each sed
+  * mono-server.postinst and mono-xsp.postinst
+    + Added a rm -Rf to remove the temp file after each sed     
+    + Commented the start process of mono-server, we don't need it,
+      we should start mono-server from mod-mono.
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Tue, 16 Mar 2004 12:31:57 -0600
+
+xsp (0.9-4) unstable; urgency=low
+
+  * Pablo Fischer:
+    + For the asp.net-examples package, I'm using a pure debconf file, 
+    with a case switch. 
+    + For asp.net.net-examples pre|postinst I Added two functions: restart_xsp 
+    and restart_monoserver.
+    + For the init files I dded two new functions: should_stop, and should_restart,
+    the first will verify if mono-server is running, if it isn't there's no 
+    need to stop it, so it prints a message and exit, the second just checks if 
+    it's running, if it's running it returns a value.
+    + Also, added the prerm script for mono-xsp and mono-server.
+    + And the files to manage the VirtualHost as exim does with a conf.d file
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Wed, 28 Feb 2004 22:16:13 -0600
+
+xsp (0.9-3) unstable; urgency=low
+
+  * NOT RELEASED YET
+  * Pablo Fischer:
+    + Replaced every exec to the old VirtualHost app, cause the new name is 
+    mono-vhostmanager
+    + Added two more rules to the mono-xsp and mono-server init files, we want to
+    know if the virtualfile already exists and if there are hosts
+    + Fixed the Depends of the package, we moved the mono-vhostmanager depend from
+    asp.net-examples to mono-xsp and mono-server.
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Wed, 28 Feb 2004 22:16:13 -0600
+ 
+xsp (0.9-2) unstable; urgency=low
+
+  * Pablo Fischer:
+   + Removed the old way of VirtualHost administration
+   + Implemented nethostmanager to manage the VirtualHosts (asp.net-examples 
+      in this case)
+   + Also, updated the init scripts for xsp and mono-server daemons, we NEED
+      to use the nethostmanager to maintain a cleaner and easy to administrate
+      VirtualHost file (until Gonzalo release the app that will do this with web.config)
+   + Now, we use the cli-wrapper instead of ugly sh file scripts
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Wed, 25 Feb 2004 18:15:23 -0600
+
+xsp (0.9-1) unstable; urgency=low
+
+  * New upstream release
+  * using new policy and the new cli-wrapper
+
+ -- Eduard Bloch <blade@debian.org>  Mon,  9 Feb 2004 22:49:47 +0100
+
+xsp (0.8-2) unstable; urgency=low
+
+  * set alternative dependency on cli-virtual-machine
+
+ -- Eduard Bloch <blade@debian.org>  Sun, 25 Jan 2004 18:17:54 +0100
+
+xsp (0.8-1) unstable; urgency=low
+
+  * New upstream release
+  * made libapache-mod-mono only a suggestion, XSP itself runs without it
+  * converted debian/rules to debhelper
+  * added copyright info
+
+ -- Eduard Bloch <blade@debian.org>  Thu, 22 Jan 2004 23:10:37 +0100
+
+xsp (0.9) unstable; urgency=low
+
+  * NOT RELEASED YET
+
+ -- Pablo Fischer <pablo@pablo.com.mx>  Wed, 28 Jan 2004 21:18:52 -0600
--- xsp-1.9.1.orig/debian/asp.net2-examples.install
+++ xsp-1.9.1/debian/asp.net2-examples.install
@@ -0,0 +1 @@
+debian/tmp/usr/share/asp.net2-demos
--- xsp-1.9.1.orig/debian/mono-fastcgi-server2.dirs
+++ xsp-1.9.1/debian/mono-fastcgi-server2.dirs
@@ -0,0 +1 @@
+usr/bin/
--- xsp-1.9.1.orig/debian/mono-xsp2.manpages
+++ xsp-1.9.1/debian/mono-xsp2.manpages
@@ -0,0 +1,5 @@
+debian/tmp/usr/share/man/man1/xsp2.1
+debian/tmp/usr/share/man/man1/dbsessmgr2.1
+debian/tmp/usr/share/man/man1/asp-state2.1
+debian/mono-xsp2-update.8
+debian/mono-xsp2-admin.8
--- xsp-1.9.1.orig/debian/mono-xsp-update.conf
+++ xsp-1.9.1/debian/mono-xsp-update.conf
@@ -0,0 +1,225 @@
+#!/usr/bin/perl -w
+# Automatic mono-server file generator
+#
+# With this script the user can update the host files 
+# that are installed in /etc/mono-server/conf.d/package and create a 
+# 'big' host file (/etc/mono-server/mono-server*-hosts.conf) that will be used
+# by mono-server to setup the virtual hosts needed by 
+# the user.
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-xsp-update.conf - creates .webapp needed by xsp
+
+=head1 SYNOPSIS
+
+mono-xsp-update.conf
+
+=head1 DESCRIPTION
+
+ mono-xsp-update.conf is a perl tool to update/create a .webapp in /etc/xsp
+
+ This file is needed by xsp cause it has all each ASP.NET application with a path and alias, needed 
+ by xsp to setup these applications.
+
+ The .webapp is created with other host configuration files that are in /etc/xsp/conf.d
+
+ For more information read the README.Debian of this package (/usr/share/doc/mono-xsp/README.Debian).
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut
+
+use strict; 
+use Digest::MD5;
+
+#Main vars..
+my ($monoxsp_dir, $monoxsp_confd, $monoxsp_hostfile, $monoxsp_webapp,
+    $daemon, $daemon_pid, $default_file,
+    $applications, $libs);
+
+#Setup main vars
+$monoxsp_dir = "/etc/xsp";
+$monoxsp_confd = "$monoxsp_dir/conf.d";
+$monoxsp_webapp = "$monoxsp_dir/debian.webapp";
+$daemon = "/etc/init.d/mono-xsp";
+$daemon_pid = "/var/run/mono-xsp.pid";
+$applications = "";
+$default_file = "/etc/default/mono-xsp";
+
+my $restart = "yes";
+my $first_file = "yes";
+my ($orig_md5, $new_md5);
+
+#Check write access to $monoxsp_hostfile
+if( ( -e "$monoxsp_webapp" && ! -w "$monoxsp_webapp" ) || ! -w "$monoxsp_dir" ) {
+    print "mono-xsp-update.conf requires write access to $monoxsp_webapp or 
+be executed by root\n" ; 
+    exit 1 ;
+}
+
+#Read the default file
+&read_default_file;
+#Orig md5
+$orig_md5 = &get_md5;
+#Read directory..
+&read_dir;
+#The tail
+&write_tempdefault_end;
+#Prepare the application string
+$applications =~ s/,$//;
+#Final md5
+$new_md5 = &get_md5;
+#Equal?
+if(("$new_md5" ne "$orig_md5") && ($restart eq "yes")) {
+    if(( -f $daemon ) && ( -f $daemon_pid )) {
+	system("$daemon restart");
+    }
+}
+
+
+sub get_md5 {
+    if( -e $monoxsp_webapp ) {
+	open(WEBAPP, $monoxsp_webapp);
+	binmode(WEBAPP);
+	return Digest::MD5->new->addfile(*WEBAPP)->hexdigest;
+	
+    }
+    else {
+	return "";
+    }
+}
+
+sub read_default_file {
+    
+    if(-e $default_file) {
+	open(DEFAULT_FILE, "$default_file");
+	while(my $line = <DEFAULT_FILE>) {
+	    if($line =~ /start_boot/i) {
+		if($line =~ /true/i) {
+		    $restart = "yes";
+		}
+		else {
+		    $restart = "no";
+		}
+	    }
+	}
+	close(DEFAULT_FILE);
+    }
+}
+
+
+sub read_dir {
+    opendir(DIR, $monoxsp_confd);
+    my @host_dirs = sort (grep { -d "$monoxsp_confd/$_" } readdir(DIR));
+    closedir(DIR);
+
+    system("rm -Rf $monoxsp_webapp");
+    system("touch $monoxsp_webapp");
+
+    #How many dirs?
+    if($#host_dirs ne "0") {
+	#The head
+	&write_tempdefault_start;
+	foreach my $dir (@host_dirs) {
+	    if(($dir ne "..") && ($dir ne ".")) {
+		#Ok, in the dir.. we have more files, so read them
+		opendir(DIR, "$monoxsp_confd/$dir");
+		my @host_files = sort (readdir(DIR));
+		closedir(DIR);
+		#Is it empty?		
+		if($#host_files ne "0") {
+		    #So, read it..
+		    foreach my $hostfile (@host_files) {
+			#Just remember.. we don't like directories inside directories!
+			if(($hostfile ne "..") && ($hostfile ne ".")) {
+			    $hostfile = "$monoxsp_confd/$dir/$hostfile";
+			    write_tempxsphostfile($hostfile);
+			}
+		    }
+		}
+	    }
+	}
+    }
+}
+
+sub write_tempdefault_start {
+
+    open(TEMPWEBAPP, ">> $monoxsp_webapp");
+    print TEMPWEBAPP "<apps>\n";
+    close(TEMPWEBAPP);
+    
+}
+
+
+sub write_tempdefault_end {
+
+    open(TEMPWEBAPP, ">> $monoxsp_webapp");
+    print TEMPWEBAPP "</apps>\n";
+    close(TEMPWEBAPP);
+
+}  
+
+sub write_tempxsphostfile {
+    my $hostfile = shift;
+
+    #Write the content to a temp file..
+    open(TEMPWEBAPP, ">> $monoxsp_webapp");
+    #And open the hostfile..
+    open(HOSTFILE, "$hostfile");
+    #Read it..
+    my @content_hostfile = <HOSTFILE>;
+    #Close it..
+    close(HOSTFILE);
+    #Write the header to the monoxsp_hostfile
+    
+    my ($path, $alias, $name);
+
+    foreach my $line (@content_hostfile) {	
+	if($line =~ /path/i) {
+	    #Ok, the directory exists?
+	    my $dir = (split /\=/, $line)[1];
+	    #Remove blank spaces
+	    $dir =~ tr/\ //d;
+	    #remove that \n
+	    $dir =~ s/\n//;
+ 	    if ( ! -d "$dir" ) {
+		$dir = "";
+		last;
+ 	    }
+	    else {
+		$path = $dir;
+	    }
+	}
+
+	if($line =~ /alias/i) {
+	    $alias = (split /\=/, $line)[1];
+	    #Blank Spaces
+	    $alias =~ tr/\ //d;
+	    #New lines..
+	    $alias =~ s/\n//;
+	    #The name
+	    $name = $alias;
+	    $name =~ s|/*||;
+	}	
+    }	
+    
+    if($path) {
+	$applications = "$applications$alias:$path,";
+	$libs = "$libs:";
+
+	print TEMPWEBAPP "  <web-application>\n";
+	print TEMPWEBAPP "    <name>$name</name>\n";
+	print TEMPWEBAPP "    <vpath>$alias</vpath>\n";       
+	print TEMPWEBAPP "    <path>$path</path>\n";
+	print TEMPWEBAPP "  </web-application>\n";
+    }
+    close(TEMPWEBAPP);
+}  
--- xsp-1.9.1.orig/debian/mono-xsp2-reader.conf
+++ xsp-1.9.1/debian/mono-xsp2-reader.conf
@@ -0,0 +1,109 @@
+#!/usr/bin/perl -w
+# Automatic XSP2 file generator
+#
+# With this script the user (or daemon) can check if the 'big' XPS host 
+# file is ok and in the right sintax, if there is an error it will exit
+# and print the reason in the format: *SORRY*: message.
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+use strict;
+
+#Main vars..
+my ($xsp2_dir, $xsp2_confd, $xsp2_hostfile);
+
+#Setup main vars
+$xsp2_dir = "/etc/xsp2";
+$xsp2_confd = "$xsp2_dir/conf.d";
+$xsp2_hostfile = "$xsp2_dir/mono-xsp2-hosts.conf";
+
+
+#Check if the user have write access to $xsp2_hostfile
+if( ( -e "$xsp2_hostfile" && ! -w "$xsp2_hostfile" ) || ! -w "$xsp2_dir" ) {
+    print "mono-host-reader requires to be executed as root\n" ; 
+    exit 1 ;
+}
+
+if( ! -f "$xsp2_hostfile" ) {
+    print "Sorry\, but you don't have $xsp2_hostfile\n";
+    exit 0;
+}
+
+
+my $opened_section = 0;
+my $applications = "";
+
+my ($path, $alias);
+#1 -> true
+#0 -> false
+#Ok, open the file for read mode
+open(HOSTFILE, $xsp2_hostfile);
+#.. read it!
+#Line counter
+my $counter = 0;
+while(my $line = <HOSTFILE>) {
+    $counter++;
+    if($line =~ /begin/i) {
+	if($opened_section eq "1") {
+	    print "Sorry\, but you are opening a section before closing the last one (line $counter)\n";
+	    last;
+	}
+	else {
+	    $opened_section = "1";
+	}
+    }
+
+    if($line =~ /end/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you are closing an unopened section (line $counter)\n";
+	}
+	else {
+	    $opened_section = "0";
+	    $applications = "$applications$alias:$path,";
+	}
+    }	
+    
+    if($line =~ /path/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you have a path in a unopened section (line $counter)\n";
+	    last;
+	}
+	else {
+	    #Ok, the directory exists?
+	    my $dir = (split /\=/, $line)[1];
+	    #Remove blank spaces
+	    $dir =~ tr/\ //d;
+	    #remove that \n
+	    $dir =~ s/\n//;
+ 	    if ( ! -d "$dir" ) {
+ 		print "Sorry\, but you have a path that doesn't exists in your system! (line $counter)\n";
+		last;
+ 	    }
+	    else {
+		$path = $dir;
+	    }
+	}
+    }
+
+    if($line =~ /alias/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you have an alias in a unopened section (line $counter)\n";
+	    last;
+	}
+	else {	    
+	    $alias = (split /\=/, $line)[1];
+	    #Blank Spaces
+	    $alias =~ tr/\ //d;
+	    #New lines..
+	    $alias =~ s/\n//;
+	    
+	}
+    }	
+}
+	
+close(HOSTFILE);
+$applications =~ s/,$//;
+print $applications;
--- xsp-1.9.1.orig/debian/mono-apache-server2.dirs
+++ xsp-1.9.1/debian/mono-apache-server2.dirs
@@ -0,0 +1,3 @@
+usr/bin/
+etc/mono-server2
+etc/mono-server2/conf.d
--- xsp-1.9.1.orig/debian/mono-xsp.install
+++ xsp-1.9.1/debian/mono-xsp.install
@@ -0,0 +1,11 @@
+debian/tmp/usr/bin/asp-state
+debian/tmp/usr/bin/dbsessmgr
+debian/tmp/usr/bin/xsp
+debian/tmp/usr/lib/xsp/1.0/asp-state.exe
+debian/tmp/usr/lib/xsp/1.0/asp-state.exe.config
+debian/tmp/usr/lib/xsp/1.0/dbsessmgr.exe
+debian/tmp/usr/lib/xsp/1.0/dbsessmgr.exe.config
+debian/tmp/usr/lib/mono/1.0/xsp.exe
+debian/tmp/usr/lib/mono/gac/xsp
+debian/tmp/usr/sbin/mono-xsp-update
+debian/tmp/usr/sbin/mono-xsp-admin
--- xsp-1.9.1.orig/debian/mono-server2-update.conf
+++ xsp-1.9.1/debian/mono-server2-update.conf
@@ -0,0 +1,364 @@
+#!/usr/bin/perl -w
+# Automatic mono-server2 file generator
+#
+# With this script the user can update the host files 
+# that are installed in /etc/mono-server2/conf.d/package and create a 
+# 'big' host file (/etc/mono-server2/mono-server2*-hosts.conf) that will be used
+# by mono-server2 to setup the virtual hosts needed by 
+# the user.
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-server2-update - creates .webapp and .host file for mod_mono and mono-server2
+
+=head1 SYNOPSIS
+
+mono-server2-update
+
+=head1 DESCRIPTION
+
+ mono-server2-update is a perl tool to update/create a .webapp and a .host file in 
+ /etc/mono-server2.
+
+ These two files are needed by mod_mono (apache), they setup the alias, directory permissions, 
+ and ASP.NET applications.
+
+ Both files are created with other host configuration files that are in /etc/mono-server2/conf.d
+
+ For more information read the README.Debian of this package (/usr/share/doc/mono-server2/README.Debian).
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut
+
+use strict; 
+use Digest::MD5;
+
+#Main vars..
+my ($monoserver2_dir, $monoserver2_confd, $monoserver2_hostfile, $monoserver2_webapp,
+    $daemon, $daemon_pid, $default_file,
+    $applications, $libs, $daemon2, $daemon2_pid);
+
+#Setup main vars
+$monoserver2_dir = "/etc/mono-server2";
+$monoserver2_confd = "$monoserver2_dir/conf.d";
+$monoserver2_webapp = "$monoserver2_dir/debian.webapp";
+$monoserver2_hostfile = "$monoserver2_dir/mono-server2-hosts.conf";
+$daemon = "/etc/init.d/apache";
+$daemon_pid = "/var/run/apache.pid";
+$daemon2 = "/etc/init.d/apache2";
+$daemon2_pid = "/var/run/apache2.pid";
+$applications = "";
+$default_file = "/etc/default/mono-apache-server2";
+$libs = "";
+
+my $restart = "yes";
+my $first_file = "yes";
+my ($orig_md5, $new_md5);
+
+#Check write access to $monoserver2_hostfile
+if( ( -e "$monoserver2_hostfile" && ! -w "$monoserver2_hostfile" ) || ! -w "$monoserver2_dir" ) {
+    print "mono-xsp-update requires write access to $monoserver2_hostfile or 
+be executed by root\n" ; 
+    exit 1 ;
+}
+
+#Read the default file
+&read_default_file;
+#Orig md5
+$orig_md5 = &get_md5;
+#Read directory..
+&read_dir;
+if(-f "$monoserver2_hostfile.tmp") {
+    #Prepare the application string
+    $applications =~ s/,$//;
+    #and the libs..
+    $libs = "/usr/lib/mono/2.0:/usr/lib:$libs"; 
+    $libs =~ s/:$//;
+    #sed the $monoserver2_hostfile to replace the Applications
+#    &replace_applications;
+    #Replace the MONOPATH
+    &replace_monopath;
+    &write_tempdefault_end;
+    #cp the temp file to the original one..    
+    system("cp -f $monoserver2_hostfile.tmp $monoserver2_hostfile");    
+    #rm the temp
+    system("rm -Rf $monoserver2_hostfile.tmp");
+    #Final md5
+    $new_md5 = &get_md5;
+    #Equal?
+    if(("$new_md5" ne "$orig_md5") && ($restart eq "yes")) {
+	if(( -f $daemon ) && ( -f $daemon_pid )) {
+	    system("$daemon reload");
+	    system("$daemon restart");
+	}
+	if(( -f $daemon2 ) && ( -f $daemon2_pid )) {
+	    system("$daemon2 reload");
+	    system("$daemon2 restart");
+	}
+    }
+}
+
+sub get_md5 {
+    if( -e $monoserver2_hostfile ) {
+	open(HOSTFILE, $monoserver2_hostfile);
+	binmode(HOSTFILE);
+	return Digest::MD5->new->addfile(*HOSTFILE)->hexdigest;
+	
+    }
+    else {
+	return "";
+    }
+}
+
+sub read_default_file {
+    
+    if(-e $default_file) {
+	open(DEFAULT_FILE, "$default_file");
+	while(my $line = <DEFAULT_FILE>) {
+	    if($line =~ /start_apache/i) {
+		if($line =~ /true/i) {
+		    $restart = "yes";
+		}
+		else {
+		    $restart = "no";
+		}
+	    }
+	}
+	close(DEFAULT_FILE);
+    }
+}
+
+
+sub read_dir {
+    opendir(DIR, $monoserver2_confd);
+    my @host_dirs = sort (grep { -d "$monoserver2_confd/$_" } readdir(DIR));
+    closedir(DIR);
+
+    #to verify that the cfg file is new.. we should create a new one
+    system("rm -Rf $monoserver2_hostfile");
+    system("touch $monoserver2_hostfile");
+    #also to the debian.webapp
+    system("rm -Rf $monoserver2_webapp");
+    system("touch $monoserver2_webapp");
+
+    #How many dirs?
+    if($#host_dirs ne "0") {
+	#Write default content
+	&write_tempdefault_start;
+	foreach my $dir (@host_dirs) {
+	    if(($dir ne "..") && ($dir ne ".")) {
+		#Ok, in the dir.. we have more files, so read them
+		opendir(DIR, "$monoserver2_confd/$dir");
+		my @host_files = sort (readdir(DIR));
+		closedir(DIR);
+		#Is it empty?		
+		if($#host_files ne "0") {
+		    #So, read it..
+		    foreach my $hostfile (@host_files) {
+			#Just remember.. we don't like directories inside directories!
+			if(($hostfile ne "..") && ($hostfile ne ".")) {
+			    $hostfile = "$monoserver2_confd/$dir/$hostfile";
+			    write_tempxsphostfile($hostfile);
+			}
+		    }
+		}
+	    }
+	}
+    }
+}
+
+sub replace_applications {
+    local $/;
+
+    open(TEMPHOST, "$monoserver2_hostfile.tmp");
+    my $content = <TEMPHOST>;
+    close(TEMPHOST);
+
+    if($applications) {
+	$content =~ s/MonoApplications .*/MonoApplications $applications/gi;
+    }
+    else {
+	$content =~ s/MonoApplications//gi;
+    }
+    
+    open(TEMPHOST, "> $monoserver2_hostfile.tmp");
+    print TEMPHOST $content;
+    close(TEMPHOST);
+}
+
+   
+sub replace_monopath {
+    local $/;
+
+    open(TEMPHOST, "$monoserver2_hostfile.tmp");
+    my $content = <TEMPHOST>;
+    close(TEMPHOST);
+
+    if($libs) {
+	$content =~ s/MonoPath .*/MonoPath default $libs/gi;
+    }
+    else {
+	$content =~ s/MonoPath default//gi;
+    }
+    
+    open(TEMPHOST, "> $monoserver2_hostfile.tmp");
+    print TEMPHOST $content;
+    close(TEMPHOST);
+}
+
+sub write_tempdefault_start {
+    open(TEMPHOST, ">> $monoserver2_hostfile.tmp");
+
+    print TEMPHOST "# Default configuration, don't edit it!\n";
+    print TEMPHOST "<IfModule mod_mono.c>\n";
+    print TEMPHOST "  MonoUnixSocket default /tmp/.mod_mono_server2\n";    
+    print TEMPHOST "  MonoServerPath default /usr/bin/mod-mono-server2\n";
+    print TEMPHOST "  AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx\n";
+    print TEMPHOST "  MonoApplicationsConfigDir default /etc/mono-server2\n";
+    print TEMPHOST "  MonoPath default \n";
+
+    close(TEMPHOST);
+
+    open(TEMPWEBAPP, ">> $monoserver2_webapp");
+    print TEMPWEBAPP "<apps>\n";
+    close(TEMPWEBAPP);
+    
+}
+
+sub write_tempdefault_end {
+    open(TEMPHOST, ">> $monoserver2_hostfile.tmp");
+    print TEMPHOST "</IfModule>\n";
+    close(TEMPHOST);
+
+    #Now the debian.webapp
+    open(TEMPWEBAPP, ">> $monoserver2_webapp");
+    print TEMPWEBAPP "</apps>\n";
+    close(TEMPWEBAPP);
+
+}   
+
+
+sub write_tempxsphostfile {
+    my $hostfile = shift;
+
+    #Write the content to a temp file..
+    open(TEMPHOST, ">> $monoserver2_hostfile.tmp");
+    open(TEMPWEBAPP, ">> $monoserver2_webapp");
+
+    #And open the hostfile..
+    open(HOSTFILE, "$hostfile");
+    #Read it..
+    my @content_hostfile = <HOSTFILE>;
+    #Close it..
+    close(HOSTFILE);
+    #Write the header to the monoserver2_hostfile
+    
+    my ($path, $alias, $vhost, $port, $name);
+
+    $vhost = "localhost";
+    $port = "80";
+    foreach my $line (@content_hostfile) {	
+	if($line =~ /path/i) {
+	    #Ok, the directory exists?
+	    my $dir = (split /\=/, $line)[1];
+	    #Remove blank spaces
+	    $dir =~ tr/\ //d;
+	    #remove that \n
+	    $dir =~ s/\n//;
+ 	    if ( ! -d "$dir" ) {
+		$dir = "";
+		last;
+ 	    }
+	    else {
+		$path = $dir;
+	    }
+	}
+
+	if($line =~ /alias/i) {
+	    $alias = (split /\=/, $line)[1];
+	    #Blank Spaces
+	    $alias =~ tr/\ //d;
+	    #New lines..
+	    $alias =~ s/\n//;
+	    #The name
+	    $name = $alias;
+	    $name =~ s|/*||;
+	}
+
+	if($line =~ /lib/i) {
+	    $libs = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $libs =~ tr/\ //d;
+	    #New lines..
+	    $libs =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $libs =~ s/:$//;
+        }    
+
+	if($line =~ /vhost/i) {
+	    $vhost = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $vhost =~ tr/\ //d;
+	    #New lines..
+	    $vhost =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $vhost =~ s/:$//;
+        }   
+
+	if($line =~ /port/i) {
+	    $port = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $port =~ tr/\ //d;
+	    #New lines..
+	    $port =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $port =~ s/:$//;
+        }  
+
+	if($line =~ /name/i) {
+	    $name = (split /\=/, $line)[1];
+	    #Blank spaces
+	    $name =~ tr/\ //d;
+	    #New lines..
+	    $name =~ s/\n//;
+	    #And remove the last and first ':'..
+	    $name =~ s/:$//;
+        }  
+	
+    }	
+    
+    if($path) {
+	$applications = "$applications$alias:$path,";
+	$libs = "$libs:";
+
+	print TEMPWEBAPP "  <web-application>\n";
+	print TEMPWEBAPP "    <name>$name</name>\n";
+	print TEMPWEBAPP "    <vpath>$alias</vpath>\n";       
+	print TEMPWEBAPP "    <path>$path</path>\n";
+	print TEMPWEBAPP "    <vhost>$vhost</vhost>\n";
+	print TEMPWEBAPP "    <port>$port</port>\n";
+	print TEMPWEBAPP "  </web-application>\n";
+
+	print TEMPHOST "# start $hostfile\n";
+	print TEMPHOST "     Alias $alias \"$path\"\n";
+	print TEMPHOST "     AddMonoApplications default \"$alias:$path\"\n";
+	print TEMPHOST "       <Directory $path>\n";
+	print TEMPHOST "         SetHandler mono\n";
+	print TEMPHOST "           <IfModule mod_dir.c>\n";
+	print TEMPHOST "              DirectoryIndex index.aspx\n";
+	print TEMPHOST "           </IfModule>\n";
+	print TEMPHOST "       </Directory>\n";
+	print TEMPHOST "# end $hostfile\n";
+	
+    }
+    close(TEMPHOST);
+    close(TEMPWEBAPP);
+}  
--- xsp-1.9.1.orig/debian/mono-xsp.README.Debian
+++ xsp-1.9.1/debian/mono-xsp.README.Debian
@@ -0,0 +1,45 @@
+xsp for Debian
+--------------
+
+The mono-xsp package contains a standalone WebServer to run ASP.NET, developed
+by the Mono hackers, it should run in port 8080 or 8081, the scripts detects which port
+to use.
+
+For example, if you have a mail proxy (or http proxy) using 8080 it should run in 8081.
+
+To change the port, you need to kill your http/mail proxy or move them to other port, and then
+reconfigure xsp as root:
+
+# dpkg-reconfigure mono-xsp
+
+The way that xsp manage the /alias (virtual hosts) is like exim does. We have a directory in 
+/etc called xsp, inside it we have a conf.d directory, were we have directories for each 
+'virtualhost'.
+
+For example, we have monodoc-http, so we have:
+
+/etc/xsp 		<- Mono XSP Config Dir
+/etc/xsp/conf.d 	<- Mono XSP VirtualHosts Config Directories
+/etc/xsp/conf.d/monodoc <- MonoDoc Config Files for XSP
+
+Every file is marked by a number, an underscore and the alias name, for example:
+
+/etc/xsp/conf.d/monodoc/10_monodochttp
+
+If you want to install a new virtualhost to XSP, you just need to apt-get it, and if 
+XSP is running it should be started normally, if it's the first virtualhost and you configured
+mono-xsp to be started automatically it will start xsp by default.
+
+If you configured mono-xsp to NOT be started automatically, you should start mono-xsp manually:
+
+/etc/init.d/mono-xsp start
+
+Also, if you are installing YOUR OWN VirtualHost, you should use mono-xsp-admin.conf (and also the manpage)
+
+NOTE: In some cases you can find that /etc/mono-server|/etc/xsp exists with other virtualhosts and you  
+don't have mono-server|mono-xsp installed, don't get in panic, some virtualhosts installs host configuration 
+files in both server (xsp and mono-server).
+
+Happy Hacking
+
+ -- Pablo Fischer <pablo@pablo.com.mx>, Mon, 15 Mar 2004 18:52:30 -0600
--- xsp-1.9.1.orig/debian/mono-xsp2.templates
+++ xsp-1.9.1/debian/mono-xsp2.templates
@@ -0,0 +1,22 @@
+Template: xsp2/xsp2_autostart
+Type: boolean
+Default: true
+_Description: Start on boot?
+ If this is true, then XSP2 will automatically start when the computer
+ is turned on.
+
+Template: xsp2/xsp2_bind
+Type: string
+Default: 0.0.0.0
+_Description: Bind to address:
+ To function properly, XSP2 needs to be bound to an IP address. The
+ default ("0.0.0.0") binds to all addresses of the server, but a
+ specific port can be selected. To use XSP2 only locally, use
+ "127.0.0.1" for the address.
+
+Template: xsp2/xsp2_port
+Type: string
+Default: 8082
+_Description: Bind to port:
+ XSP is bound to a specific port on the server. Common values are 80,
+ 8080, or 8081.
--- xsp-1.9.1.orig/debian/mono-xsp-base.manpages
+++ xsp-1.9.1/debian/mono-xsp-base.manpages
@@ -0,0 +1 @@
+debian/dh_installxsp.1
--- xsp-1.9.1.orig/debian/mono-fastcgi-server.README.Debian
+++ xsp-1.9.1/debian/mono-fastcgi-server.README.Debian
@@ -0,0 +1,25 @@
+mono-fastcgi-server for Debian
+--------------------------
+
+mod-fastcgi-server is a backend server that allows you to run ASP.NET web
+applications in conjunction with the FastCGI server of your choice, such as
+Lighttpd. In Debian, fastcgi-mono-server is provided in the package
+mono-fastcgi-server.
+
+fastcgi-mono-server creates a socket in /tmp, and FastCGI communicates with
+fastcgi-mono-server through that socket, in CGI format, using FastCGI records.
+
+So you need this package to use ASP.NET via FastCGI.
+
+In most cases, configuration of ASP.NET sites is handled via your HTTP server's
+configuration, rather than via fastcgi-mono-server itself. Therefore, no
+configuration files or examples have been included. Please see this link for
+general information on interaction between FastCGI and Mono:
+
+http://www.mono-project.com/FastCGI
+
+Please see this one for examples on configuration for Lighttpd:
+
+http://www.mono-project.com/FastCGI_Lighttpd
+
+ -- Jo Shields <directhex@apebox.org>, Thu Jul  3 10:05:17 2008
--- xsp-1.9.1.orig/debian/mono-xsp2.default
+++ xsp-1.9.1/debian/mono-xsp2.default
@@ -0,0 +1,16 @@
+# Defaults for mono-xsp2, official version
+# sourced by /etc/init.d/mono-xsp2
+
+# Should we start it?
+start_boot=true
+
+# User and group by default
+user=www-data
+group=www-data
+
+# Default port
+port=8081
+address=0.0.0.0
+
+# Directory for config files
+config_files=/etc/xsp2
--- xsp-1.9.1.orig/debian/postrm-monoxsp
+++ xsp-1.9.1/debian/postrm-monoxsp
@@ -0,0 +1,9 @@
+if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
+    if [ -x /usr/sbin/mono-xsp-update ]; then
+	/usr/sbin/mono-xsp-update || true
+    fi
+    if [ -x /usr/sbin/mono-server-update ]; then
+	/usr/sbin/mono-server-update || true
+    fi
+fi
+
--- xsp-1.9.1.orig/debian/asp.net2-examples.dirs
+++ xsp-1.9.1/debian/asp.net2-examples.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/asp.net2-demos
--- xsp-1.9.1.orig/debian/mono-xsp2.config
+++ xsp-1.9.1/debian/mono-xsp2.config
@@ -0,0 +1,72 @@
+#!/bin/bash -e
+
+# Initialization
+. /usr/share/debconf/confmodule
+db_version 2.0
+db_capb backup
+db_title XSP2 WebServer
+
+# Autostart
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium xsp2/xsp2_autostart || true
+	    if db_go; then
+		db_get xsp2/xsp2_autostart || true
+		if [ "$RET" = "true" ]; then
+		    STATE=2
+		else
+		    db_set  xsp2/xsp2_autostart false || true
+		    STATE=2
+		fi
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
+
+# Bind
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium xsp2/xsp2_bind || true
+	    if db_go; then
+		db_get xsp2/xsp2_bind || true
+		STATE=2
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
+
+# Port
+STATE=1
+while [ "$STATE"  != 0 -a "$STATE" != 2 ]; do
+    case "$STATE" in
+	1) 
+	    db_input medium xsp2/xsp2_port || true
+	    if db_go; then
+		db_get xsp2/xsp2_port || true
+		STATE=2
+	    else
+		STATE=0
+	    fi
+	    ;;
+	esac
+done
+
+if [ "$STATE" = 0 ]; then
+    exit 1
+fi
--- xsp-1.9.1.orig/debian/mono-apache-server.dirs
+++ xsp-1.9.1/debian/mono-apache-server.dirs
@@ -0,0 +1,3 @@
+usr/bin
+etc/mono-server
+etc/mono-server/conf.d
--- xsp-1.9.1.orig/debian/mono-xsp-reader.conf
+++ xsp-1.9.1/debian/mono-xsp-reader.conf
@@ -0,0 +1,109 @@
+#!/usr/bin/perl -w
+# Automatic XSP file generator
+#
+# With this script the user (or daemon) can check if the 'big' XPS host 
+# file is ok and in the right sintax, if there is an error it will exit
+# and print the reason in the format: *SORRY*: message.
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+use strict;
+
+#Main vars..
+my ($xsp_dir, $xsp_confd, $xsp_hostfile);
+
+#Setup main vars
+$xsp_dir = "/etc/xsp";
+$xsp_confd = "$xsp_dir/conf.d";
+$xsp_hostfile = "$xsp_dir/mono-xsp-hosts.conf";
+
+
+#Check if the user have write access to $xsp_hostfile
+if( ( -e "$xsp_hostfile" && ! -w "$xsp_hostfile" ) || ! -w "$xsp_dir" ) {
+    print "mono-host-reader requires to be executed as root\n" ; 
+    exit 1 ;
+}
+
+if( ! -f "$xsp_hostfile" ) {
+    print "Sorry\, but you don't have $xsp_hostfile\n";
+    exit 0;
+}
+
+
+my $opened_section = 0;
+my $applications = "";
+
+my ($path, $alias);
+#1 -> true
+#0 -> false
+#Ok, open the file for read mode
+open(HOSTFILE, $xsp_hostfile);
+#.. read it!
+#Line counter
+my $counter = 0;
+while(my $line = <HOSTFILE>) {
+    $counter++;
+    if($line =~ /begin/i) {
+	if($opened_section eq "1") {
+	    print "Sorry\, but you are opening a section before closing the last one (line $counter)\n";
+	    last;
+	}
+	else {
+	    $opened_section = "1";
+	}
+    }
+
+    if($line =~ /end/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you are closing an unopened section (line $counter)\n";
+	}
+	else {
+	    $opened_section = "0";
+	    $applications = "$applications$alias:$path,";
+	}
+    }	
+    
+    if($line =~ /path/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you have a path in a unopened section (line $counter)\n";
+	    last;
+	}
+	else {
+	    #Ok, the directory exists?
+	    my $dir = (split /\=/, $line)[1];
+	    #Remove blank spaces
+	    $dir =~ tr/\ //d;
+	    #remove that \n
+	    $dir =~ s/\n//;
+ 	    if ( ! -d "$dir" ) {
+ 		print "Sorry\, but you have a path that doesn't exists in your system! (line $counter)\n";
+		last;
+ 	    }
+	    else {
+		$path = $dir;
+	    }
+	}
+    }
+
+    if($line =~ /alias/i) {
+	if($opened_section eq "0") {
+	    print "Sorry\, but you have an alias in a unopened section (line $counter)\n";
+	    last;
+	}
+	else {	    
+	    $alias = (split /\=/, $line)[1];
+	    #Blank Spaces
+	    $alias =~ tr/\ //d;
+	    #New lines..
+	    $alias =~ s/\n//;
+	    
+	}
+    }	
+}
+	
+close(HOSTFILE);
+$applications =~ s/,$//;
+print $applications;
--- xsp-1.9.1.orig/debian/mono-apache-server2.manpages
+++ xsp-1.9.1/debian/mono-apache-server2.manpages
@@ -0,0 +1,4 @@
+debian/mono-server2-admin.8
+debian/mono-server2-update.8
+debian/update-mono-server2.8
+debian/tmp/usr/share/man/man1/mod-mono-server2.1
--- xsp-1.9.1.orig/debian/mono-apache-server2.README.Debian
+++ xsp-1.9.1/debian/mono-apache-server2.README.Debian
@@ -0,0 +1,54 @@
+mono-apache-server2 for Debian
+--------------------------
+
+mod-mono-server2 is a backend server2 that allows you to run ASP.NET web
+applications in conjunction with Apache (1.3 or 2.0) and the mod_mono Apache
+module. In Debian, mod-mono-server2 is provided in the package
+mono-apache-server2.
+
+mod-mono-server2 creates a socket in /tmp, and mod_mono communicates with
+mod-mono-server2 through that socket. Apache will pass the HTTP request via
+mod_mono to mod-mono-server2, and mod-mono-server2 will pass the result back
+to Apache via mod_mono.
+
+So you need this package to run mod_mono, and vice versa.
+
+When mod_mono is installed, it will create a link to
+/etc/mono-server2/mono-server2-hosts.conf. This file contains the configuration
+for mod_mono. Among other things, it makes sure that aspx pages are handled
+by mono_mono, and it defines all your ASP.NET web applications and the mappings
+between URIs and the file system.
+
+However, you should NOT EDIT THIS FILE by hand. Instead, you can manage the
+mono-server2-hosts.conf file with the administration scripts provided by
+mod-mono-server2. The administration scripts work on a directory structure in
+/etc/mono-server2 -- this is what it looks like:
+
+/etc/mono-server2                <- The root of the configuration structure
+/etc/mono-server2/conf.d         <- VirtualHosts Config Directories
+/etc/mono-server2/conf.d/monodoc <- MonoDoc Config Files
+
+To create an ASP.NET virtual host, you create a new directory under conf.d,
+such as the monodoc example above. Then, you place configuration files for
+that virtual host in the directory. Every file is marked by a number, an
+underscore, and the alias name for that ASP.NET application. For example:
+
+/etc/mono-server2/conf.d/monodoc/10_monodochttp
+
+You then need to run mono-server2-update, which will read the directory
+structure and rebuild the mono-server2-hosts.conf file. mod-mono-server2 will
+automatically detect the changes in the file, and adjust its configuration
+accordingly. The mono-server2-update script will also create a
+debian.webapp file, which is needed for the ASP.NET applications.
+
+Packages that wish to install ASP.NET web applications can just follow the
+above procedure. If mod-mono-server2 is running, the application will be
+automatically activated.
+
+You don't need to start mod-mono-server2. If it's not running when a request
+comes in, mod_mono will start it (unless you have disabled mod_mono). Note
+that mono-server2-update can start Apache.
+
+Happy Hacking!
+
+ -- Pablo Fischer <pablo@pablo.com.mx>, Wed Mar  2 11:08:17 2005
--- xsp-1.9.1.orig/debian/mono-apache-server.manpages
+++ xsp-1.9.1/debian/mono-apache-server.manpages
@@ -0,0 +1,4 @@
+debian/mono-server-admin.8
+debian/mono-server-update.8
+debian/update-mono-server.8
+man/mod-mono-server.1
--- xsp-1.9.1.orig/debian/dh_installxsp
+++ xsp-1.9.1/debian/dh_installxsp
@@ -0,0 +1,145 @@
+#!/usr/bin/perl -w
+
+=head1 NAME
+
+dh_installxsp - install host files into /etc/xsp/conf.d and 
+/etc/mono-server/conf.d
+
+=cut
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+=head1 SYNOPSIS
+
+B<dh_installxsp> [S<B<debhelper options>>] [B<--name=>I<name>] [B<-V >I<version(s)>]
+
+=head1 DESCRIPTION
+
+dh_installxsp is a debhelper program that will install host
+configuration files in /etc/xsp/conf.d and /etc/mono-server/conf.d
+(for XSP) or /etc/xsp2/conf.d and /etc/mono-server2/conf.d (for XSP
+2). So, if xsp (or xsp 2) is install or will be installed, when xsp
+starts it automatically starts the daemon with the host file.
+
+The files debian/package.hostxsp are installed for XSP while
+debian/package.hostxsp2 are used for XSP 2.
+
+In the debian/rules file, dh_installxsp needs to be called before
+dh_installdeb to make sure the files are properly marked as conffiles
+to avoid the lintian warnings. Otherwise, the files created in /etc/
+need to be marked as conffiles.
+
+=head1 OPTIONS
+
+=over 4
+
+=item B<--name=>I<name>
+
+Look for files named debian/package.hostxsp and install them as
+/etc/xsp/conf.d/package/hostfile.
+
+=item B<-V >I<version(s)>
+
+Installs the files for XSP (B<-V 1>), XSP 2.0 (B<-V 2>), or both (B<-V
+1,2>). If this version is not specified (or just B<-V> is given), this
+only installed files for XSP, not XSP 2.
+
+=back
+
+=cut
+
+# Initialize debhelper
+init();
+
+# Figure out what versions we want to install
+my ($install_xsp_1, $install_xsp_2) = (0, 0);
+$install_xsp_1 = 1 if ($dh{V_FLAG_SET} && $dh{V_FLAG} =~ /1/);
+$install_xsp_2 = 1 if ($dh{V_FLAG_SET} && $dh{V_FLAG} =~ /2/);
+$install_xsp_1 = 1 if !$install_xsp_1 && !$install_xsp_2;
+$install_xsp_1 = 1 unless $dh{V_FLAG_SET};
+
+my $depname="cli:XspServer";
+
+# Go through the packages in this module and see if we need to install
+# each one. This also uses the above variables (install_xsp_*) in each
+# pass.
+foreach my $package (@{$dh{DOPACKAGES}})
+{
+    # Configure for both XSP and/or XSP 2
+    process_xsp($package, "") if $install_xsp_1;
+    process_xsp($package, "2") if $install_xsp_2;
+}
+
+# This handles the installation of the actual files. This assumes that
+# $version has "" or "2" (or "3" at some point) and that determines
+# the path being installed into.
+sub process_xsp
+{
+    my ($package, $version) = @_;
+    my $tmp = tmpdir($package);
+    my $hostfile = pkgfile($package, "hostxsp$version");
+
+    # Check to see if we have a host file in the debian/ directory for
+    # this package.
+    if ($hostfile)
+    {
+	# Make sure we have the dependancies
+	my $depname = "cli:XspServer$version";
+	
+	# Delete it for idempotency
+	delsubstvar($package, $depname);
+	addsubstvar($package, $depname,
+		    "mono-xsp$version | mono-apache-server$version");
+
+	# Check for the installation directory
+	for my $d1 (("xsp$version", "mono-server$version"))
+	{
+	    # Create the top-level directory
+	    if(! -d "$tmp/etc/$d1/conf.d")
+	    {
+		doit("install", "-d", "$tmp/etc/$d1/conf.d");
+	    }
+
+	    # Check for the configuration directory for this package
+	    if(! -d "$tmp/etc/$d1/conf.d/" . pkgfilename($package))
+	    {
+		doit("install", "-d",
+		     "$tmp/etc/$d1/conf.d/" . pkgfilename($package));
+	    }
+	    
+	    # Install this into the conf.d/packagename/10_packagename
+	    doit("install",
+		 "-m", 644,
+		 $hostfile,
+		 "$tmp/etc/$d1/conf.d/" . pkgfilename($package)
+		 . "/10_" . pkgfilename($package));
+	}
+
+	# Install the autoscripts for this version
+	if ($hostfile ne '')
+	{
+	    if (!$dh{NOSCRIPTS})
+	    {
+		autoscript($package, "postinst", "postinst-monoxsp$version",
+			   "s/#PACKAGE#/$package/");
+		autoscript($package, "postrm", "postrm-monoxsp$version",
+			   "s/#PACKAGE#/$package/");
+	    }
+	}
+    }	
+}
+
+=head1 SEE ALSO
+
+L<debhelper(7)>
+
+This program is a part of mono-utils.
+
+=head1 AUTHOR
+
+Originally written by Pablo Fischer <pablo@pablo.com.mx>. Modified by
+Dylan R. E. Moonfire <debian@mfgames.com> to handle XSP and XSP 2
+installation.
+
+=cut
--- xsp-1.9.1.orig/debian/mono-fastcgi-server2.manpages
+++ xsp-1.9.1/debian/mono-fastcgi-server2.manpages
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man1/fastcgi-mono-server2.1
--- xsp-1.9.1.orig/debian/mono-xsp.preinst
+++ xsp-1.9.1/debian/mono-xsp.preinst
@@ -0,0 +1,21 @@
+#!/bin/sh
+set -e
+
+NAME=mono-xsp
+DESC="XSP WebServer"
+
+case "$1" in
+    upgrade|install)
+	if [ -f /etc/init.d/mono-xsp ]; then
+	    if which invoke-rc.d >/dev/null 2>&1; then
+		invoke-rc.d mono-xsp stop
+	    else
+		/etc/init.d/mono-xsp stop
+	    fi
+	fi
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- xsp-1.9.1.orig/debian/mono-xsp.docs
+++ xsp-1.9.1/debian/mono-xsp.docs
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS
--- xsp-1.9.1.orig/debian/mono-xsp.manpages
+++ xsp-1.9.1/debian/mono-xsp.manpages
@@ -0,0 +1,6 @@
+debian/mono-xsp-update.8
+debian/mono-xsp-admin.8
+debian/update-mono-xsp.8
+man/xsp.1
+man/dbsessmgr.1
+man/asp-state.1
--- xsp-1.9.1.orig/debian/mono-apache-server2.default
+++ xsp-1.9.1/debian/mono-apache-server2.default
@@ -0,0 +1,4 @@
+# Defaults for mono-apache-server2
+
+# Should mono-apache-server2 start apache?
+start_apache=false
--- xsp-1.9.1.orig/debian/rules
+++ xsp-1.9.1/debian/rules
@@ -0,0 +1,162 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+export MONO_SHARED_DIR=$(CURDIR)
+
+MONO_ABI_COMP_VERSION = 1.9
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+# Perl code to figure out the current version and the next "potential" version
+DPKG_VERSION ?= $(shell head -n 1 debian/changelog  | cut -f 2 -d '(' | cut -f 1 -d ')')
+PKG_VERSION ?= $(shell echo $(DPKG_VERSION) | cut -f 1 -d '-' | cut -f 1-3 -d '.')
+NEXT_PKG_VERSION ?= $(shell echo $(PKG_VERSION) | perl -e '$$_=<>;/\.(\d+)$$/;$$a=$$1+1;s/\.(\d+)$$/.$$a/;print;')
+
+include /usr/share/dpatch/dpatch.make
+
+configure: configure-stamp templates.pot
+configure-stamp: patch-stamp
+	dh_testdir
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+	  --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+	touch configure-stamp
+
+build: patch-stamp build-stamp
+build-stamp: configure-stamp
+	dh_testdir
+	# Add here commands to compile the package.
+	$(MAKE)
+	#/usr/bin/docbook-to-man debian/xsp.sgml > xsp.1
+	pod2man --section=8 \
+		$(CURDIR)/debian/mono-server-admin.conf \
+		> $(CURDIR)/debian/mono-server-admin.8
+	pod2man --section=8 $(CURDIR)/debian/mono-server-update.conf \
+		> $(CURDIR)/debian/mono-server-update.8
+	pod2man --section=8 \
+		$(CURDIR)/debian/mono-server2-admin.conf \
+		> $(CURDIR)/debian/mono-server2-admin.8
+	pod2man --section=8 $(CURDIR)/debian/mono-server2-update.conf \
+		> $(CURDIR)/debian/mono-server2-update.8
+	pod2man --section=8 $(CURDIR)/debian/mono-xsp-admin.conf \
+		> $(CURDIR)/debian/mono-xsp-admin.8
+	pod2man --section=8 $(CURDIR)/debian/mono-xsp-update.conf \
+		> $(CURDIR)/debian/mono-xsp-update.8
+	pod2man --section=8 $(CURDIR)/debian/mono-xsp2-admin.conf \
+		> $(CURDIR)/debian/mono-xsp2-admin.8
+	pod2man --section=8 $(CURDIR)/debian/mono-xsp2-update.conf \
+		> $(CURDIR)/debian/mono-xsp2-update.8
+
+	cp $(CURDIR)/debian/mono-server-update.8 \
+		$(CURDIR)/debian/update-mono-server.8
+	cp $(CURDIR)/debian/mono-server2-update.8 \
+		$(CURDIR)/debian/update-mono-server2.8
+	cp $(CURDIR)/debian/mono-xsp-update.8 \
+		$(CURDIR)/debian/update-mono-xsp.8
+	cp $(CURDIR)/debian/mono-xsp2-update.8 \
+		$(CURDIR)/debian/update-mono-xsp.8
+
+	touch build-stamp
+
+templates.pot: $(wildcard debian/*.templates)
+	debconf-updatepo
+
+clean: clean-patched unpatch
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f config.log
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -rf server
+	# moved below the clean so the configured-stuff cleans properly
+	rm -rf $$MONO_SHARED_DIR/.wapi
+	rm -f $(CURDIR)/debian/*.8 $(CURDIR)/debian/*.1
+	debconf-updatepo
+	rm -f build-stamp configure-stamp config.status
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+#	Fix permissions
+	find debian/tmp -name "*.config" -or -name "*.gif" \
+		| xargs chmod a-x
+
+#	Move things into Debian-specific places
+	cp -r debian/tmp/usr/lib/xsp/test \
+		debian/tmp/usr/share/asp.net2-demos
+	mv debian/tmp/usr/lib/xsp/test \
+		debian/tmp/usr/share/asp.net-demos
+	rm -rf debian/tmp/usr/share/asp.net-demos/2.0
+
+	# Make version two variants on the manpages
+	cat debian/tmp/usr/share/man/man1/xsp.1 \
+		| sed 's/xsp/xsp2/g' \
+		> debian/tmp/usr/share/man/man1/xsp2.1
+	cat debian/tmp/usr/share/man/man1/dbsessmgr.1 \
+		| sed 's/dbsessmgr/dbsessmgr2/g' \
+		> debian/tmp/usr/share/man/man1/dbsessmgr2.1
+	cat debian/tmp/usr/share/man/man1/asp-state.1 \
+		| sed 's/asp-state/asp-state2/g' \
+		> debian/tmp/usr/share/man/man1/asp-state2.1
+	cat debian/tmp/usr/share/man/man1/mod-mono-server.1 \
+		| sed 's/mono-server/mono-server2/g' \
+		> debian/tmp/usr/share/man/man1/mod-mono-server2.1
+	cat debian/tmp/usr/share/man/man1/fastcgi-mono-server.1 \
+		| sed 's/mono-server/mono-server2/g' \
+		> debian/tmp/usr/share/man/man1/fastcgi-mono-server2.1
+
+#	Make dh_installxsp man pages
+	cd debian && \
+	  for x in dh_installxsp; \
+	    do chmod +x $$x; pod2man $$x > $$x.1 ; done
+
+#	Debian control files
+	mkdir -p debian/tmp/usr/sbin
+	for f in mono-xsp-update mono-xsp-admin \
+		 mono-xsp2-update mono-xsp2-admin \
+		 mono-server-admin mono-server-update \
+	         mono-server2-admin mono-server2-update; \
+	do \
+		install -m 755 debian/$$f.conf \
+			debian/tmp/usr/sbin/$$f; \
+	done
+
+binary: binary-arch binary-indep
+
+binary-arch:
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -i ChangeLog
+	dh_installdocs -i
+	dh_installexamples -i
+	dh_installdirs -i
+	dh_install -i
+	dh_installdebconf -i
+	# auto-start we handle ourself using debconf
+	dh_installinit -i --noscripts
+	# We are using our local version along with our local copies of the
+	# file to make sure asp.net gets the proper version.
+	DH_AUTOSCRIPTDIR=$(CURDIR)/debian/ debian/dh_installxsp -i -V 1,2
+	dh_installman -i
+	dh_link -i
+	dh_strip -i
+	dh_clistrip -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_clifixperms -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_makeclilibs -i -V
+	dh_clideps -i -d
+	dh_gencontrol -i -- -Vmono-abi-comp-version=$(MONO_ABI_COMP_VERSION)
+	dh_md5sums -i
+	dh_builddeb -i
+
+.PHONY: build clean binary-arch binary-indep binary install patch unpatch
--- xsp-1.9.1.orig/debian/mono-xsp.templates
+++ xsp-1.9.1/debian/mono-xsp.templates
@@ -0,0 +1,22 @@
+Template: xsp/xsp_autostart
+Type: boolean
+Default: true
+_Description: Start on boot?
+ If this is true, then XSP will automatically start when the computer
+ is turned on.
+
+Template: xsp/xsp_bind
+Type: string
+Default: 0.0.0.0
+_Description: Bind to address:
+ To function properly, XSP needs to be bound to an IP address. The
+ default ("0.0.0.0") binds to all addresses of the server, but a
+ specific port can be selected. To use XSP only locally, use
+ "127.0.0.1" for the address.
+
+Template: xsp/xsp_port
+Type: string
+Default: 8081
+_Description: Bind to port:
+ XSP is bound to a specific port on the server. Common values are 80,
+ 8080, or 8081.
--- xsp-1.9.1.orig/debian/mono-fastcgi-server2.install
+++ xsp-1.9.1/debian/mono-fastcgi-server2.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/mono/2.0/fastcgi-mono-server2.exe
+debian/tmp/usr/lib/mono/gac/fastcgi-mono-server2
+debian/tmp/usr/bin/fastcgi-mono-server2
--- xsp-1.9.1.orig/debian/mono-xsp-admin.conf
+++ xsp-1.9.1/debian/mono-xsp-admin.conf
@@ -0,0 +1,173 @@
+#!/usr/bin/perl
+# mono-xsp hosts file creator
+#
+# With this script the user can create a host file in one step, 
+# these hosts file are installed in /etc/xsp/conf.d/package and 
+# then used in a 'big' host file (/etc/xsp/mono-server*-hosts.conf) 
+# that will be used by XSP
+#
+# Under GPL, please read: 
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Written by: Pablo Fischer
+
+=head1 NAME
+
+mono-xsp-admin.conf - mono-xsp hosts file creator
+    
+=head1 SYNOPSIS
+    
+mono-xsp-admin.conf [action] [args]
+
+=head2 OPTIONS
+
+  Actions:
+    
+    add        Use 'add' if you want to create an application and want mono-xsp scripts to manage it
+    del        If you want to remove an application
+
+  Args:
+
+    --path     The path where you have your aspx files, MUST EXISTS!, required only with add action
+    --app      The name of your application
+
+=head1 DESCRIPTION
+
+ mono-xsp-admin.conf is a perl tool to adminstrate your ASP.NET webapps that will be executed with 
+ xsp.
+
+ When you try to add an application, admin.conf will verify that your path exists, if it is, it will 
+ add a directory inside /etc/xsp/conf.d with the name of your app, and also as a file with the 
+ filename format: 10_appname. This file will have the information (path, app).
+
+ So, when mono-xsp-update.conf is executed it will read those dirs and create a debian.webapp in
+ /etc/xsp that the xsp daemon will read.
+
+=head1 AUTHOR
+
+ Pablo Fischer <pablo@pablo.com.mx>
+
+=cut 
+
+use strict;
+
+my (%OPT);
+
+my $confd_directory = "/etc/xsp/conf.d";
+
+#Read the opts
+foreach my $opt (@ARGV) {
+    if($opt =~ /^add/) {
+	$OPT{'action'} = "add";
+    }
+    
+    elsif($opt =~ /^del/) {
+	$OPT{'action'} = "del";
+    }	
+
+    elsif($opt =~ /--path/) {
+	$OPT{'path'} = $opt;
+    }    
+
+    elsif($opt =~ /--app/) {
+	$OPT{'app'} = $opt;
+    }   
+}
+
+
+#clean strange chars, like ':', commas, etc.. I don't like those chars
+sub clean_opts() {
+    foreach my $key (keys %OPT) {	
+	next unless $key ne "action";
+	my $value = $OPT{$key};
+	$OPT{$key} = (split("=", $OPT{$key}))[1];
+	if($key ne "path") {
+	    $OPT{$key} =~ s|/*||;
+	}
+	$OPT{$key} =~ s{/$}{}; 
+			$OPT{$key} =~ s|:*||;
+		    }
+    }
+
+#We have the path, app, name and the action?
+    sub verify_neededopts() {
+	if($OPT{'action'} ne "add" && $OPT{'action'} ne "del") {
+	    &help;
+	    exit;
+	}
+
+	if(!$OPT{'path'}) {
+	    print "I need the path of your asp.net application\n";
+	    exit;
+	}
+
+	if(!$OPT{'app'}) {
+	    print "You should declare the application name!\n";
+	    exit;
+	}
+    }
+
+#Add the Host file and directory    
+    sub add_host() {
+	if( ! -d $OPT{'path'} ) {
+	    print "$OPT{'path'} does not exists!\n";
+	    exit;
+	}
+	#But what if the conf.d package directory already exists?
+	if ( -d "$confd_directory/$OPT{'app'}") {
+	    print "Sorry but $confd_directory/$OPT{'app'} already exist, you might change your application name\n";
+	    exit;
+	}
+	
+	#Ok, create the conf.d package directory
+	system("mkdir $confd_directory/$OPT{'app'}");
+	#And create the file
+	system("touch $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+	
+	open(PACKAGEFILE, "> $confd_directory/$OPT{'app'}/10_$OPT{'app'}");
+	print PACKAGEFILE "This is the configuration file \n";
+	print PACKAGEFILE "for the $OPT{'app'} virtualhost\n";
+	print PACKAGEFILE "path = $OPT{'path'}\n";
+	print PACKAGEFILE "alias = /$OPT{'app'}\n";
+	close(PACKAGEFILE);
+	
+	system("/usr/sbin/mono-xsp-update.conf");
+	print "done!\n";
+    }
+
+#Remove the host directory
+    sub del_host() {
+	
+	system("rm -Rf $confd_directory/$OPT{'app'}");
+	system("/usr/sbin/mono-xsp-update.conf");
+	
+	print "done!\n";
+    }
+    
+    sub help() {
+	print "This script let the user to create a application host file in one step \n";
+	print "for XSP (/etc/xsp/conf.d/application\n\n";
+	print "Use:\n";
+	print " mono-xsp-admin.conf [action] --path=/real/path --app=/applicationame\n\n";
+	print "Where:\n";
+	print " action:\n";
+	print " add                   Creates an application\n";
+	print " del                   Delete an application (the directory /etc/mono-server/conf.d/application\n";
+	print " --path=/real/path     A real and true path where you have your ASP.NET applicatio running\n";
+	print " --app=/application    The name of the application\n";
+    }
+
+    &clean_opts;
+    &verify_neededopts;
+
+    if($OPT{'action'} eq"add") {
+	&add_host;
+    }
+    elsif($OPT{'action'} eq "del") {
+	&del_host;
+    }
+
+    
+
+
+
--- xsp-1.9.1.orig/debian/mono-fastcgi-server.manpages
+++ xsp-1.9.1/debian/mono-fastcgi-server.manpages
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man1/fastcgi-mono-server.1
