[Pkg-mono-svn-commits] rev 2147 - in xsp: tags tags/1.1.10-1 tags/1.1.10-1/debian tags/1.1.10-1/debian/po trunk/debian trunk/debian/po

D. Moonfire dmoonfire-guest at costa.debian.org
Mon Jan 9 21:41:13 UTC 2006


Author: dmoonfire-guest
Date: 2006-01-09 21:40:39 +0000 (Mon, 09 Jan 2006)
New Revision: 2147

Added:
   xsp/tags/1.1.10-1/
   xsp/tags/1.1.10-1/debian/
   xsp/tags/1.1.10-1/debian/README.Debian
   xsp/tags/1.1.10-1/debian/TODO
   xsp/tags/1.1.10-1/debian/asp.net-examples.README.Debian
   xsp/tags/1.1.10-1/debian/asp.net-examples.dirs
   xsp/tags/1.1.10-1/debian/asp.net-examples.hostxsp
   xsp/tags/1.1.10-1/debian/asp.net-examples.install
   xsp/tags/1.1.10-1/debian/asp.net-examples.menu
   xsp/tags/1.1.10-1/debian/asp.net2-examples.README.Debian
   xsp/tags/1.1.10-1/debian/asp.net2-examples.dirs
   xsp/tags/1.1.10-1/debian/asp.net2-examples.hostxsp2
   xsp/tags/1.1.10-1/debian/asp.net2-examples.install
   xsp/tags/1.1.10-1/debian/changelog
   xsp/tags/1.1.10-1/debian/compat
   xsp/tags/1.1.10-1/debian/control
   xsp/tags/1.1.10-1/debian/copyright
   xsp/tags/1.1.10-1/debian/dh_installxsp
   xsp/tags/1.1.10-1/debian/dirs
   xsp/tags/1.1.10-1/debian/index.aspx
   xsp/tags/1.1.10-1/debian/mono-apache-server.README.Debian
   xsp/tags/1.1.10-1/debian/mono-apache-server.config
   xsp/tags/1.1.10-1/debian/mono-apache-server.default
   xsp/tags/1.1.10-1/debian/mono-apache-server.dirs
   xsp/tags/1.1.10-1/debian/mono-apache-server.docs
   xsp/tags/1.1.10-1/debian/mono-apache-server.install
   xsp/tags/1.1.10-1/debian/mono-apache-server.manpages
   xsp/tags/1.1.10-1/debian/mono-apache-server.postinst
   xsp/tags/1.1.10-1/debian/mono-apache-server.postrm
   xsp/tags/1.1.10-1/debian/mono-apache-server.templates
   xsp/tags/1.1.10-1/debian/mono-apache-server2.README.Debian
   xsp/tags/1.1.10-1/debian/mono-apache-server2.default
   xsp/tags/1.1.10-1/debian/mono-apache-server2.dirs
   xsp/tags/1.1.10-1/debian/mono-apache-server2.docs
   xsp/tags/1.1.10-1/debian/mono-apache-server2.install
   xsp/tags/1.1.10-1/debian/mono-apache-server2.manpages
   xsp/tags/1.1.10-1/debian/mono-apache-server2.postinst
   xsp/tags/1.1.10-1/debian/mono-apache-server2.postrm
   xsp/tags/1.1.10-1/debian/mono-server-admin.conf
   xsp/tags/1.1.10-1/debian/mono-server-reader.conf
   xsp/tags/1.1.10-1/debian/mono-server-update.conf
   xsp/tags/1.1.10-1/debian/mono-server2-admin.conf
   xsp/tags/1.1.10-1/debian/mono-server2-update.conf
   xsp/tags/1.1.10-1/debian/mono-xsp-admin.conf
   xsp/tags/1.1.10-1/debian/mono-xsp-base.install
   xsp/tags/1.1.10-1/debian/mono-xsp-base.manpages
   xsp/tags/1.1.10-1/debian/mono-xsp-reader.conf
   xsp/tags/1.1.10-1/debian/mono-xsp-update.conf
   xsp/tags/1.1.10-1/debian/mono-xsp.README.Debian
   xsp/tags/1.1.10-1/debian/mono-xsp.config
   xsp/tags/1.1.10-1/debian/mono-xsp.default
   xsp/tags/1.1.10-1/debian/mono-xsp.dirs
   xsp/tags/1.1.10-1/debian/mono-xsp.docs
   xsp/tags/1.1.10-1/debian/mono-xsp.init
   xsp/tags/1.1.10-1/debian/mono-xsp.install
   xsp/tags/1.1.10-1/debian/mono-xsp.manpages
   xsp/tags/1.1.10-1/debian/mono-xsp.postinst
   xsp/tags/1.1.10-1/debian/mono-xsp.postrm
   xsp/tags/1.1.10-1/debian/mono-xsp.preinst
   xsp/tags/1.1.10-1/debian/mono-xsp.prerm
   xsp/tags/1.1.10-1/debian/mono-xsp.templates
   xsp/tags/1.1.10-1/debian/mono-xsp2-admin.conf
   xsp/tags/1.1.10-1/debian/mono-xsp2-base.install
   xsp/tags/1.1.10-1/debian/mono-xsp2-reader.conf
   xsp/tags/1.1.10-1/debian/mono-xsp2-update.conf
   xsp/tags/1.1.10-1/debian/mono-xsp2.config
   xsp/tags/1.1.10-1/debian/mono-xsp2.default
   xsp/tags/1.1.10-1/debian/mono-xsp2.dirs
   xsp/tags/1.1.10-1/debian/mono-xsp2.init
   xsp/tags/1.1.10-1/debian/mono-xsp2.install
   xsp/tags/1.1.10-1/debian/mono-xsp2.manpages
   xsp/tags/1.1.10-1/debian/mono-xsp2.postinst
   xsp/tags/1.1.10-1/debian/mono-xsp2.postrm
   xsp/tags/1.1.10-1/debian/mono-xsp2.preinst
   xsp/tags/1.1.10-1/debian/mono-xsp2.prerm
   xsp/tags/1.1.10-1/debian/mono-xsp2.templates
   xsp/tags/1.1.10-1/debian/patches/
   xsp/tags/1.1.10-1/debian/po/
   xsp/tags/1.1.10-1/debian/po/POTFILES.in
   xsp/tags/1.1.10-1/debian/po/cs.po
   xsp/tags/1.1.10-1/debian/po/fr.po
   xsp/tags/1.1.10-1/debian/po/sv.po
   xsp/tags/1.1.10-1/debian/po/templates.pot
   xsp/tags/1.1.10-1/debian/po/vi.po
   xsp/tags/1.1.10-1/debian/postinst-monoxsp
   xsp/tags/1.1.10-1/debian/postinst-monoxsp2
   xsp/tags/1.1.10-1/debian/postrm-monoxsp
   xsp/tags/1.1.10-1/debian/postrm-monoxsp2
   xsp/tags/1.1.10-1/debian/rules
   xsp/tags/1.1.10-1/debian/web.config
   xsp/trunk/debian/asp.net-examples.install
   xsp/trunk/debian/asp.net2-examples.README.Debian
   xsp/trunk/debian/asp.net2-examples.dirs
   xsp/trunk/debian/asp.net2-examples.hostxsp2
   xsp/trunk/debian/asp.net2-examples.install
   xsp/trunk/debian/compat
   xsp/trunk/debian/dh_installxsp
   xsp/trunk/debian/mono-apache-server.install
   xsp/trunk/debian/mono-apache-server2.README.Debian
   xsp/trunk/debian/mono-apache-server2.default
   xsp/trunk/debian/mono-apache-server2.dirs
   xsp/trunk/debian/mono-apache-server2.docs
   xsp/trunk/debian/mono-apache-server2.install
   xsp/trunk/debian/mono-apache-server2.manpages
   xsp/trunk/debian/mono-apache-server2.postinst
   xsp/trunk/debian/mono-apache-server2.postrm
   xsp/trunk/debian/mono-server2-admin.conf
   xsp/trunk/debian/mono-server2-update.conf
   xsp/trunk/debian/mono-xsp-base.install
   xsp/trunk/debian/mono-xsp-base.manpages
   xsp/trunk/debian/mono-xsp.install
   xsp/trunk/debian/mono-xsp2-admin.conf
   xsp/trunk/debian/mono-xsp2-base.install
   xsp/trunk/debian/mono-xsp2-reader.conf
   xsp/trunk/debian/mono-xsp2-update.conf
   xsp/trunk/debian/mono-xsp2.config
   xsp/trunk/debian/mono-xsp2.default
   xsp/trunk/debian/mono-xsp2.dirs
   xsp/trunk/debian/mono-xsp2.init
   xsp/trunk/debian/mono-xsp2.install
   xsp/trunk/debian/mono-xsp2.manpages
   xsp/trunk/debian/mono-xsp2.postinst
   xsp/trunk/debian/mono-xsp2.postrm
   xsp/trunk/debian/mono-xsp2.preinst
   xsp/trunk/debian/mono-xsp2.prerm
   xsp/trunk/debian/mono-xsp2.templates
   xsp/trunk/debian/patches/
   xsp/trunk/debian/po/cs.po
   xsp/trunk/debian/po/fr.po
   xsp/trunk/debian/po/sv.po
   xsp/trunk/debian/po/vi.po
   xsp/trunk/debian/postinst-monoxsp
   xsp/trunk/debian/postinst-monoxsp2
   xsp/trunk/debian/postrm-monoxsp
   xsp/trunk/debian/postrm-monoxsp2
Removed:
   xsp/trunk/debian/MAINTAINERS
   xsp/trunk/debian/asp.net-examples_postinst.old
   xsp/trunk/debian/asp.net-examples_postrm.old
   xsp/trunk/debian/mono-apache-server.files
   xsp/trunk/debian/mono-apache-server.links
   xsp/trunk/debian/mono-server-reader.old
   xsp/trunk/debian/mono-server-update.old
   xsp/trunk/debian/mono-server_init.old
   xsp/trunk/debian/mono-server_preinst.old
   xsp/trunk/debian/mono-server_prerm.old
   xsp/trunk/debian/mono-xsp-reader.old
   xsp/trunk/debian/mono-xsp-update.old
   xsp/trunk/debian/mono-xsp.files
   xsp/trunk/debian/mono-xsp.links
   xsp/trunk/debian/patches/
Modified:
   xsp/trunk/debian/asp.net-examples.dirs
   xsp/trunk/debian/asp.net-examples.hostxsp
   xsp/trunk/debian/changelog
   xsp/trunk/debian/control
   xsp/trunk/debian/copyright
   xsp/trunk/debian/dirs
   xsp/trunk/debian/mono-apache-server.README.Debian
   xsp/trunk/debian/mono-apache-server.config
   xsp/trunk/debian/mono-apache-server.default
   xsp/trunk/debian/mono-apache-server.dirs
   xsp/trunk/debian/mono-apache-server.docs
   xsp/trunk/debian/mono-apache-server.manpages
   xsp/trunk/debian/mono-apache-server.postinst
   xsp/trunk/debian/mono-apache-server.postrm
   xsp/trunk/debian/mono-server-admin.conf
   xsp/trunk/debian/mono-server-update.conf
   xsp/trunk/debian/mono-xsp.config
   xsp/trunk/debian/mono-xsp.default
   xsp/trunk/debian/mono-xsp.dirs
   xsp/trunk/debian/mono-xsp.docs
   xsp/trunk/debian/mono-xsp.init
   xsp/trunk/debian/mono-xsp.manpages
   xsp/trunk/debian/mono-xsp.postinst
   xsp/trunk/debian/mono-xsp.templates
   xsp/trunk/debian/po/POTFILES.in
   xsp/trunk/debian/po/templates.pot
   xsp/trunk/debian/rules
Log:
Added the 1.1.10-1 version into the repository.


Added: xsp/tags/1.1.10-1/debian/README.Debian
===================================================================
--- xsp/tags/1.1.10-1/debian/README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,21 @@
+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 at paniq.net>, Thu,  5 Aug 2004 13:29:12 +0300

Added: xsp/tags/1.1.10-1/debian/TODO
===================================================================
--- xsp/tags/1.1.10-1/debian/TODO	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/TODO	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,15 @@
+
+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 :)

Added: xsp/tags/1.1.10-1/debian/asp.net-examples.README.Debian
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net-examples.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net-examples.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at paniq.net>, Fri,  6 Aug 2004 12:00:12 +0300

Added: xsp/tags/1.1.10-1/debian/asp.net-examples.dirs
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net-examples.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net-examples.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/asp.net-demos/1.1

Added: xsp/tags/1.1.10-1/debian/asp.net-examples.hostxsp
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net-examples.hostxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net-examples.hostxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/asp.net-examples.install
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net-examples.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net-examples.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+debian/tmp/usr/share/asp.net-demos

Added: xsp/tags/1.1.10-1/debian/asp.net-examples.menu
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net-examples.menu	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net-examples.menu	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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"

Added: xsp/tags/1.1.10-1/debian/asp.net2-examples.README.Debian
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net2-examples.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net2-examples.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at mfgames.com>, Thu, 21 Jul 2005 11:49:29 -0500

Added: xsp/tags/1.1.10-1/debian/asp.net2-examples.dirs
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net2-examples.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net2-examples.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/asp.net2-demos

Added: xsp/tags/1.1.10-1/debian/asp.net2-examples.hostxsp2
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net2-examples.hostxsp2	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net2-examples.hostxsp2	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/asp.net2-examples.install
===================================================================
--- xsp/tags/1.1.10-1/debian/asp.net2-examples.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/asp.net2-examples.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+debian/tmp/usr/share/asp.net2-demos

Added: xsp/tags/1.1.10-1/debian/changelog
===================================================================
--- xsp/tags/1.1.10-1/debian/changelog	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/changelog	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,409 @@
+xsp (1.1.10-1) unstable; urgency=low
+
+  * New upstream release
+  * Dylan R. E. Moonfire <debian at mfgames.com>
+    - debian/control: Removed the other uploaders.
+    - debian/control: Removed the mono from depends.
+    - debian/rules: Added dh_makeclilibs
+    - 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.
+
+ -- Dylan R. E. Moonfire <debian at mfgames.com>  Wed, 04 Jan 2006 09:54:43 -0600
+
+xsp (1.1.9.2-0pre6) unstable; urgency=low
+
+  * New upstream release.
+  * Dylan R. E. Moonfire <debian at mfgames.com>
+    - 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 at wanadoo.fr>. There was a secondary French
+        translation from Steve <dlist at 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 at upcase.inf.upol.cz>. (Closes: #314769)
+      - Added a partial Vietnamese translation from Clytie Siddal
+        <clytie at riverland.net.au>. (Closes: #324272)
+      - Added a partial Swedish translation from Daniel Nylander
+        <yeager at 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.
+
+ -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Sun, 16 Oct 2005 12:54:15 -0500
+
+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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at pablo.com.mx>  Sat, 12 Jun 2004 13:31:12 -0600         
+
+xsp (0.14-1) unstable; urgency=low
+
+  * New Release
+
+ -- Pablo Fischer <pablo at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at debian.org>  Thu, 22 Jan 2004 23:10:37 +0100
+
+xsp (0.9) unstable; urgency=low
+
+  * NOT RELEASED YET
+
+ -- Pablo Fischer <pablo at pablo.com.mx>  Wed, 28 Jan 2004 21:18:52 -0600

Added: xsp/tags/1.1.10-1/debian/compat
===================================================================
--- xsp/tags/1.1.10-1/debian/compat	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/compat	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+4

Added: xsp/tags/1.1.10-1/debian/control
===================================================================
--- xsp/tags/1.1.10-1/debian/control	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/control	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,84 @@
+Source: xsp
+Section: web
+Priority: optional
+Maintainer: Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>
+Uploaders: Dylan R. E. Moonfire <debian at mfgames.com>
+Standards-Version: 3.6.2.1
+Build-Depends: debhelper (>= 4.1.16), autotools-dev, mono-gmcs, mono-mcs, mono-gac, libmono-dev, cli-common (>= 0.2.0)
+
+Package: mono-xsp-base
+Architecture: all
+Depends: ${cli:Depends}
+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 version (XSP) or the Apache module
+ (mono-apache-server).
+
+Package: mono-xsp2-base
+Architecture: all
+Depends: ${cli:Depends}
+Description: base libraries for XSP 2.0
+ This is the core libraries needed to install the XSP2 application,
+ either through the standalone version (XSP2) or the Apache module
+ (mono-apache-server2).
+
+Package: mono-xsp
+Architecture: all
+Depends: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp-base (= ${Source-Version})
+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: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp2-base (= ${Source-Version})
+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-server.
+
+Package: asp.net-examples
+Architecture: all
+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: ${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: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp-base (= ${Source-Version})
+Description: 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-mono-mono for Apache 1.3 or
+ libapache2-mod-mono for Apache 2.0.
+
+Package: mono-apache-server2
+Architecture: all
+Conflicts: mono-server, mono-apache-server
+Replaces: mono-server
+Depends: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp2-base (= ${Source-Version})
+Description: 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-mono-mono for Apache 1.3 or
+ libapache2-mod-mono for Apache 2.0.

Added: xsp/tags/1.1.10-1/debian/copyright
===================================================================
--- xsp/tags/1.1.10-1/debian/copyright	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/copyright	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,32 @@
+This package was debianized by Pablo Fischer pablo at pablo.com.mx on
+Wed,  7 Jan 2004 12:49:46 -0600.
+
+It was downloaded from http://www.mono-project.com/.
+
+Upstream authors: 
+
+Gonzalo Paniagua Javier <gonzalo at ximian.com>
+
+Copyright:
+
+Copyright (c) 2002, 2003, 2004 Novell, Inc. and the individuals listed
+on the ChangeLog entries.
+
+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.

Added: xsp/tags/1.1.10-1/debian/dh_installxsp
===================================================================
--- xsp/tags/1.1.10-1/debian/dh_installxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/dh_installxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at pablo.com.mx>. Modified by
+Dylan R. E. Moonfire <debian at mfgames.com> to handle XSP and XSP 2
+installation.
+
+=cut


Property changes on: xsp/tags/1.1.10-1/debian/dh_installxsp
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/dirs
===================================================================
--- xsp/tags/1.1.10-1/debian/dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+usr/bin
+usr/sbin
+usr/share/man/man8
+usr/share/man/man1

Added: xsp/tags/1.1.10-1/debian/index.aspx
===================================================================
--- xsp/tags/1.1.10-1/debian/index.aspx	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/index.aspx	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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>

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.README.Debian
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at pablo.com.mx>, Wed Mar  2 11:08:17 2005

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.config
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.config	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.config	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,35 @@
+#!/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
+
+	    
+
+
+


Property changes on: xsp/tags/1.1.10-1/debian/mono-apache-server.config
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.default
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,7 @@
+# Defaults for mono-server
+
+# Should mono-server start apache?
+start_apache=false
+
+
+

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.dirs
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+usr/bin
+etc/mono-server
+etc/mono-server/conf.d

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.docs
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.docs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.docs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.install
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/xsp/1.0/mod-mono-server.exe
+debian/tmp/usr/bin/mod-mono-server
+debian/tmp/usr/sbin/mono-server-admin
+debian/tmp/usr/sbin/mono-server-update

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.manpages
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+debian/mono-server-admin.8
+debian/mono-server-update.8
+debian/update-mono-server.8
+man/mod-mono-server.1

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.postinst
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,60 @@
+#! /bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+tempfile=`/bin/tempfile`
+modmono_default="/etc/default/mono-apache-server"
+
+restart_apache_on() {
+    sed s/start_apache=false/start_apache=true/g $modmono_default > $tempfile
+    cp -f $tempfile $modmono_default
+    rm -Rf $tempfile   
+}
+
+restart_apache_off() {
+    sed s/start_apache=true/start_apache=false/g $modmono_default > $tempfile
+    cp -f $tempfile $modmono_default
+    rm -Rf $tempfile   
+}
+
+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)
+	db_get monoserver/monoserver_restartapache || true
+	daemon_turn_off
+	if [ "$RET" = "true" ]; then
+	    restart_apache_on
+	else
+	    restart_apache_off
+	fi
+
+	mono-server-update
+	
+	;;
+    
+    *)
+	echo "postinst failed \`$1'" >&2
+	exit 0
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
+	    
+	    
+
+		
+
+    
+


Property changes on: xsp/tags/1.1.10-1/debian/mono-apache-server.postinst
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.postrm
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.postrm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.postrm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,15 @@
+#!/bin/bash -e
+
+monoserverconfd="/etc/mono-server/conf.d/"
+
+case "$1" in
+    purge)
+	rm -Rf "$monoserverconfd/*"
+	. /usr/share/debconf/confmodule
+        db_purge
+	;;
+    esac
+
+#DEBHELPER#
+
+exit 0


Property changes on: xsp/tags/1.1.10-1/debian/mono-apache-server.postrm
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-apache-server.templates
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server.templates	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server.templates	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,10 @@
+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.conf script that creates a configuration file for
+ apache to start the ASP.NET applications, and mono-server-update.conf can
+ restart apache if there's a new configuration file
+ (/etc/mono-server/mono-server-hosts.conf). Would you like to restart
+ apache if there's a new mono-server-hosts.conf file?

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.README.Debian
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at pablo.com.mx>, Wed Mar  2 11:08:17 2005

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.default
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+# Defaults for mono-server
+
+# Should mono-server2 start apache?
+start_apache=false

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.dirs
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+usr/bin/
+etc/mono-server2
+etc/mono-server2/conf.d

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.docs
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.docs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.docs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.install
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/xsp/2.0/mod-mono-server2.exe
+debian/tmp/usr/bin/mod-mono-server2
+debian/tmp/usr/sbin/mono-server2-admin
+debian/tmp/usr/sbin/mono-server2-update

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.manpages
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.postinst
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,51 @@
+#! /bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+tempfile=`/bin/tempfile`
+modmono_default="/etc/default/mono-apache-server2"
+
+restart_apache_on() {
+    sed s/start_apache=false/start_apache=true/g $modmono_default > $tempfile
+    cp -f $tempfile $modmono_default
+    rm -Rf $tempfile   
+}
+
+restart_apache_off() {
+    sed s/start_apache=true/start_apache=false/g $modmono_default > $tempfile
+    cp -f $tempfile $modmono_default
+    rm -Rf $tempfile   
+}
+
+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)
+	db_get monoserver2/monoserver2_restartapache || true
+	daemon_turn_off
+	if [ "$RET" = "true" ]; then
+	    restart_apache_on
+	else
+	    restart_apache_off
+	fi
+
+	mono-server2-update
+	
+	;;
+    
+    *)
+	echo "postinst failed \`$1'" >&2
+	exit 0
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: xsp/tags/1.1.10-1/debian/mono-apache-server2.postrm
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-apache-server2.postrm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-apache-server2.postrm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+monoserver2confd="/etc/mono-server2/conf.d/"
+
+case "$1" in
+    purge)
+	rm -Rf "$monoserver2confd/*"
+	. /usr/share/debconf/confmodule
+        db_purge
+	;;
+    esac
+
+#DEBHELPER#
+
+exit 0

Added: xsp/tags/1.1.10-1/debian/mono-server-admin.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-server-admin.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-server-admin.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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;
+}
+
+    
+
+
+


Property changes on: xsp/tags/1.1.10-1/debian/mono-server-admin.conf
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-server-reader.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-server-reader.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-server-reader.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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;


Property changes on: xsp/tags/1.1.10-1/debian/mono-server-reader.conf
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-server-update.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-server-update.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-server-update.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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 $libs/gi;
+    }
+    else {
+	$content =~ s/MonoPath//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 /tmp/.mod_mono_server\n";    
+    print TEMPHOST "  MonoServerPath /usr/lib/xsp/1.0/mod-mono-server.exe\n";
+    print TEMPHOST "  AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx\n";
+    print TEMPHOST "  MonoApplicationsConfigDir /etc/mono-server\n";
+    print TEMPHOST "  MonoPath \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);
+}  


Property changes on: xsp/tags/1.1.10-1/debian/mono-server-update.conf
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-server2-admin.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-server2-admin.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-server2-admin.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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;
+}

Added: xsp/tags/1.1.10-1/debian/mono-server2-update.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-server2-update.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-server2-update.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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 $libs/gi;
+    }
+    else {
+	$content =~ s/MonoPath//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 /tmp/.mod_mono_server2\n";    
+    print TEMPHOST "  MonoServerPath /usr/lib/xsp/2.0/mod-mono-server2.exe\n";
+    print TEMPHOST "  AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx\n";
+    print TEMPHOST "  MonoApplicationsConfigDir /etc/mono-server2\n";
+    print TEMPHOST "  MonoPath \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);
+}  

Added: xsp/tags/1.1.10-1/debian/mono-xsp-admin.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp-admin.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp-admin.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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;
+    }
+
+    
+
+
+

Added: xsp/tags/1.1.10-1/debian/mono-xsp-base.install
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp-base.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp-base.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,7 @@
+debian/tmp/usr/lib/xsp/1.0/Mono.WebServer.dll
+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

Added: xsp/tags/1.1.10-1/debian/mono-xsp-base.manpages
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp-base.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp-base.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+debian/dh_installxsp.1

Added: xsp/tags/1.1.10-1/debian/mono-xsp-reader.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp-reader.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp-reader.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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;


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp-reader.conf
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp-update.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp-update.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp-update.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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);
+}  


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp-update.conf
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp.README.Debian
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at pablo.com.mx>, Mon, 15 Mar 2004 18:52:30 -0600

Added: xsp/tags/1.1.10-1/debian/mono-xsp.config
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.config	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.config	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp.config
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp.default
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/mono-xsp.dirs
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+usr/bin
+etc/xsp
+etc/xsp/conf.d
+var/run/mono-xsp

Added: xsp/tags/1.1.10-1/debian/mono-xsp.docs
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.docs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.docs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS

Added: xsp/tags/1.1.10-1/debian/mono-xsp.init
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.init	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.init	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,78 @@
+#! /bin/sh
+#
+# mono-xsp Start the XSP WebServer, that works just for ASP.NET scripts.
+#
+#		Written by Pablo Fischer <pablo at pablo.com.mx>.
+#		Modified for Debian GNU/Linux
+#
+# Version:	@(#)mono-xsp pablo at pablo.com.mx
+#
+
+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
+
+test -x $DAEMON || exit 0
+test -f $DEFAULT && . $DEFAULT	
+
+should_start() {
+    if [ ! -e $VIRTUALFILE -o `cat $VIRTUALFILE | wc -l` = "2" ]; then
+	echo "You have an incomplete $VIRTUALFILE"
+	echo "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
+	    echo "Sorry, there is already a xsp running, stop it first"
+	    return 1		
+	fi
+    fi
+    
+    return 0
+	
+}
+
+case "$1" in
+    start)
+	if should_start ; then
+	    echo -n "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
+	    echo "."
+	fi
+	;;
+    stop)
+        echo -n "Stopping $DESC: $NAME"
+        for i in $(ps aux | grep -v grep | grep 'xsp.exe' | cut -c 10-15)
+        do
+                kill $i >& /dev/null
+                echo -n " $i"
+        done
+        echo "."
+	;;
+    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


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp.init
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp.install
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,9 @@
+debian/tmp/usr/bin/asp-state
+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/xsp/1.0/xsp.exe
+debian/tmp/usr/sbin/mono-xsp-update
+debian/tmp/usr/sbin/mono-xsp-admin

Added: xsp/tags/1.1.10-1/debian/mono-xsp.manpages
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/mono-xsp.postinst
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,111 @@
+#! /bin/bash
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+tempfile=`/bin/tempfile`
+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 -f $tempfile $xsp_default
+    rm -Rf $tempfile    
+}
+
+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 -f $tempfile $xsp_default
+    rm -Rf $tempfile    
+}
+
+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)
+	# 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
+		echo "Starting $DESC: $NAME "
+		/etc/init.d/mono-xsp start > /dev/null 2>&1 || true
+	    fi
+	fi
+
+	rm -Rf $tempfile
+	;;
+    
+    *)
+	echo "postinst failed \`$1'" >&2
+	exit 0
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
+	    
+	    
+
+		
+
+    
+


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp.postinst
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp.postrm
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.postrm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.postrm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+xspconfd="/etc/xsp/conf.d/"
+
+case "$1" in
+    purge)
+	rm -Rf "$xspconfd/*"
+	#Purge debconf
+	. /usr/share/debconf/confmodule
+        db_purge
+	#update-rc.d
+	update-rc.d -f mono-xsp remove > /dev/null 2>&1
+	
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp.postrm
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp.preinst
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.preinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.preinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,32 @@
+#!/bin/sh -e
+
+NAME=mono-xsp
+DESC="XSP WebServer"
+
+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
+   upgrade|install)
+	if should_stop ; then
+	    echo -n "Stopping $DESC: $NAME "
+	    /etc/init.d/mono-xsp stop > /dev/null 2>&1 || true
+	fi
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp.preinst
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp.prerm
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.prerm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.prerm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,36 @@
+#!/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
+	    echo "Stopping $DESC: $NAME "
+	    /etc/init.d/mono-xsp stop > /dev/null 2>&1 || true
+	fi
+	    ;;
+    esac
+
+#DEBHELPER#
+
+exit 0
+


Property changes on: xsp/tags/1.1.10-1/debian/mono-xsp.prerm
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/mono-xsp.templates
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp.templates	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp.templates	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,20 @@
+Template: xsp/xsp_autostart
+Type: boolean
+Default: true
+_Description: Autostart XSP?
+ Would you like to autostart the XSP process when you start your
+ computer?
+
+Template: xsp/xsp_bind
+Type: string
+Default: 0.0.0.0
+_Description: Bind to which address?
+ What address would you like XSP to bind to? To bind to all of them,
+ enter 0.0.0.0.
+
+Template: xsp/xsp_port
+Type: string
+Default: 8081
+_Description: Bind to which port?
+ What port would you like the XSP process to bind to on start? Common
+ values are 80, 8080, or 8081.

Added: xsp/tags/1.1.10-1/debian/mono-xsp2-admin.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2-admin.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2-admin.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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;
+    }
+
+    
+
+
+

Added: xsp/tags/1.1.10-1/debian/mono-xsp2-base.install
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2-base.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2-base.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/xsp/2.0/Mono.WebServer2.dll
+debian/tmp/usr/lib/pkgconfig/xsp-2.pc

Added: xsp/tags/1.1.10-1/debian/mono-xsp2-reader.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2-reader.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2-reader.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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;

Added: xsp/tags/1.1.10-1/debian/mono-xsp2-update.conf
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2-update.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2-update.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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);
+}  

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.config
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.config	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.config	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.default
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.dirs
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+usr/bin
+etc/xsp2
+etc/xsp2/conf.d
+var/run/mono-xsp2

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.init
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.init	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.init	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,78 @@
+#! /bin/sh
+#
+# mono-xsp2 Start the XSP2 WebServer, that works just for ASP.NET scripts.
+#
+#		Written by Pablo Fischer <pablo at pablo.com.mx>.
+#		Modified for Debian GNU/Linux
+#
+# Version:	@(#)mono-xsp2 pablo at pablo.com.mx
+#
+
+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
+
+test -x $DAEMON || exit 0
+test -f $DEFAULT && . $DEFAULT	
+
+should_start() {
+    if [ ! -e $VIRTUALFILE -o `cat $VIRTUALFILE | wc -l` = "2" ]; then
+	echo "You have an incomplete $VIRTUALFILE"
+	echo "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
+	    echo "Sorry, there is already a xsp2 running, stop it first"
+	    return 1		
+	fi
+    fi
+    
+    return 0
+	
+}
+
+case "$1" in
+    start)
+	if should_start ; then
+	    echo -n "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
+	    echo "."
+	fi
+	;;
+    stop)
+        echo -n "Stopping $DESC: $NAME"
+        for i in $(ps aux | grep -v grep | grep 'xsp2.exe' | cut -c 10-15)
+        do
+                kill $i >& /dev/null
+                echo -n " $i"
+        done
+        echo "."
+	;;
+    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

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.install
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,10 @@
+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/xsp/2.0/xsp2.exe
+debian/tmp/usr/sbin/mono-xsp2-update
+debian/tmp/usr/sbin/mono-xsp2-admin

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.manpages
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.postinst
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,111 @@
+#! /bin/bash
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+tempfile=`/bin/tempfile`
+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
+    rm -Rf $tempfile    
+}
+
+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
+    rm -Rf $tempfile    
+}
+
+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)
+	# 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
+		echo "Starting $DESC: $NAME "
+		/etc/init.d/mono-xsp2 start > /dev/null 2>&1 || true
+	    fi
+	fi
+
+	rm -Rf $tempfile
+	;;
+    
+    *)
+	echo "postinst failed \`$1'" >&2
+	exit 0
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
+	    
+	    
+
+		
+
+    
+

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.postrm
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.postrm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.postrm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,19 @@
+#!/bin/bash -e
+
+xsp2confd="/etc/xsp2/conf.d/"
+
+case "$1" in
+    purge)
+	rm -Rf "$xsp2confd/*"
+	#Purge debconf
+	. /usr/share/debconf/confmodule
+        db_purge
+	#update-rc.d
+	update-rc.d -f mono-xsp2 remove > /dev/null 2>&1
+	
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.preinst
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.preinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.preinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,32 @@
+#!/bin/sh -e
+
+NAME=mono-xsp2
+DESC="XSP WebServer"
+
+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
+   upgrade|install)
+	if should_stop ; then
+	    echo -n "Stopping $DESC: $NAME "
+	    /etc/init.d/mono-xsp2 stop > /dev/null 2>&1 || true
+	fi
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.prerm
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.prerm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.prerm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,36 @@
+#!/bin/sh -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
+	    echo "Stopping $DESC: $NAME "
+	    /etc/init.d/mono-xsp2 stop > /dev/null 2>&1 || true
+	fi
+	    ;;
+    esac
+
+#DEBHELPER#
+
+exit 0
+

Added: xsp/tags/1.1.10-1/debian/mono-xsp2.templates
===================================================================
--- xsp/tags/1.1.10-1/debian/mono-xsp2.templates	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/mono-xsp2.templates	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,20 @@
+Template: xsp2/xsp2_autostart
+Type: boolean
+Default: true
+_Description: Autostart XSP 2?
+ Would you like to autostart the XSP2 process when you start your
+ computer?
+
+Template: xsp2/xsp2_bind
+Type: string
+Default: 0.0.0.0
+_Description: Bind to which address?
+ What address would you like XSP 2 to bind to? To bind to all of them,
+ enter 0.0.0.0.
+
+Template: xsp2/xsp2_port
+Type: string
+Default: 8081
+_Description: Bind to which port?
+ What port would you like the XSP 2 process to bind to on start? Common
+ values are 80, 8080, or 8081.

Added: xsp/tags/1.1.10-1/debian/po/POTFILES.in
===================================================================
--- xsp/tags/1.1.10-1/debian/po/POTFILES.in	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/po/POTFILES.in	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+[type: gettext/rfc822deb] mono-apache-server.templates
+[type: gettext/rfc822deb] mono-xsp.templates
+[type: gettext/rfc822deb] mono-xsp2.templates

Added: xsp/tags/1.1.10-1/debian/po/cs.po
===================================================================
--- xsp/tags/1.1.10-1/debian/po/cs.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/po/cs.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,122 @@
+#
+#    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: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-06-18 08:01+0200\n"
+"Last-Translator: Miroslav Kure <kurem at debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech at 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:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Má mono-apache-server restartovat Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"mono-apache-server v Debianu obsahuje skript mono-server-update.conf, který "
+"slouží pro vytváření konfiguračního souboru pro Apache, aby mohl Apache "
+"spouštět aplikace v ASP.NET. Skript mono-server-update.conf 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:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Automatické spuštění XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+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?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Automatické spuštění XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr "Chcete XSP spouštět automaticky při startu počítače?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/tags/1.1.10-1/debian/po/fr.po
===================================================================
--- xsp/tags/1.1.10-1/debian/po/fr.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/po/fr.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,120 @@
+# 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: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-07-14 15:06+0200\n"
+"Last-Translator: Jean-Luc Coulon (f5ibh) <jean-luc.coulon@«anadoo.fr>\n"
+"Language-Team: French <debian-l10n-french at lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Faut-il laisser mono-apache-server redémarrer Apache ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"La version Debian de mono-apache-server comporte le script mono-server-"
+"update.conf 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:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Faut-il démarrer XSP automatiquement ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP process when you start your computer?"
+msgstr ""
+"Veuillez choisir si le processus XSP doit être lancé au démarrage du système."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Faut-il démarrer XSP automatiquement ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr ""
+"Veuillez choisir si le processus XSP doit être lancé au démarrage du système."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/tags/1.1.10-1/debian/po/sv.po
===================================================================
--- xsp/tags/1.1.10-1/debian/po/sv.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/po/sv.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,119 @@
+# 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.
+# , fuzzy
+# 
+# 
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.0.5-2\n"
+"Report-Msgid-Bugs-To: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-09-29 19:17-0700\n"
+"Last-Translator: Daniel Nylander <po at danielnylander.se>\n"
+"Language-Team: Swedish <sv at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Låta mono-apache-servern starta om Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"Debian-versionen av mono-apache-servern inkluderar en mono-server-update."
+"conf skript som skapar en konfigurationsfil för apache för att starta ASP."
+"NET-applikationer. 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:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Automatiskt starta XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP process when you start your computer?"
+msgstr "Vill du automatiskt starta XSP-processen när du startar din dator?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Automatiskt starta XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr "Vill du automatiskt starta XSP-processen när du startar din dator?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/tags/1.1.10-1/debian/po/templates.pot
===================================================================
--- xsp/tags/1.1.10-1/debian/po/templates.pot	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/po/templates.pot	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,104 @@
+# 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 at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at 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:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+msgid "Autostart XSP?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+msgid ""
+"Would you like to autostart the XSP process when you start your computer?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+msgid "Autostart XSP 2?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/tags/1.1.10-1/debian/po/vi.po
===================================================================
--- xsp/tags/1.1.10-1/debian/po/vi.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/po/vi.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,115 @@
+# Vietnamese translation for XSP.
+# Copyright © 2005 Free Software Foundation, Inc.
+# Clytie Siddall <clytie at riverland.net.au>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.0.5-1\n"
+"Report-Msgid-Bugs-To: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-08-21 21:03+0930\n"
+"Last-Translator: Clytie Siddall <clytie at riverland.net.au>\n"
+"Language-Team: Vietnamese <gnomevi-list at lists.sourceforge.net>\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.2.2\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Cho phép trình mono-apache-server khởi chạy lại Apache không?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"Phiên bản Debian của mono-apache-server (trình phục vụ Apache nguồn đơn) bao "
+"gồm một tập lệnh cấu hình « mono-server-update.conf » để Apache khởi chạy "
+"những ứng dụng loại ASP.NET, và tập lệnh này cũng có thể khởi chạy lại "
+"Apache nếu có tập tin cấu hình mới nào. Bạn có muốn khởi chạy lại Apache nếu "
+"có một tập tin cấu hình « mono-server-hosts.conf  » không?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Tự động khởi chạy XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP process when you start your computer?"
+msgstr ""
+"Bạn có muốn tự động khởi chạy tiến trình XSP khi khởi động máy này không?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Tự động khởi chạy XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr ""
+"Bạn có muốn tự động khởi chạy tiến trình XSP khi khởi động máy này không?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/tags/1.1.10-1/debian/postinst-monoxsp
===================================================================
--- xsp/tags/1.1.10-1/debian/postinst-monoxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/postinst-monoxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/postinst-monoxsp2
===================================================================
--- xsp/tags/1.1.10-1/debian/postinst-monoxsp2	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/postinst-monoxsp2	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/postrm-monoxsp
===================================================================
--- xsp/tags/1.1.10-1/debian/postrm-monoxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/postrm-monoxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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
+

Added: xsp/tags/1.1.10-1/debian/postrm-monoxsp2
===================================================================
--- xsp/tags/1.1.10-1/debian/postrm-monoxsp2	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/postrm-monoxsp2	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/tags/1.1.10-1/debian/rules
===================================================================
--- xsp/tags/1.1.10-1/debian/rules	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/rules	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,173 @@
+#!/usr/bin/make -f
+
+#export DH_COMPAT=4
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+export MONO_SHARED_DIR=$(CURDIR)
+
+configure: configure-stamp templates.pot
+
+configure-stamp:
+	dh_testdir
+	mkdir -p $$MONO_SHARED_DIR	
+	./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: 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:
+	dh_testdir
+	dh_testroot
+	# Add here commands to clean up after the build process.
+	rm -f config.log
+	# Clean up compiled files
+	-$(MAKE) clean
+	-$(MAKE) distclean
+	rm -rf server
+
+	# Moved below the clean so the configured-stuff cleans properly
+	rm -f build-stamp configure-stamp config.status
+	#use updated config.{sub|guess} files
+#	-test -r /usr/share/misc/config.sub && \
+#	cp -f /usr/share/misc/config.sub config/config.sub
+#	-test -r /usr/share/misc/config.guess && \
+#	cp -f /usr/share/misc/config.guess config/config.guess
+	rm -rf $$MONO_SHARED_DIR/.wapi
+	dh_clean 
+	rm -f $(CURDIR)/debian/*.8
+	rm -f $(CURDIR)/debian/*.1
+	rm -rf $(CURDIR)/debian/tmp/
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+#	Fix permissions
+	find debian/ -type f -name "*.dll" -or -name "*.mdb" -or -name "*.cs" \
+		| xargs chmod -x
+	find debian/ -type f -name "*.exe" | xargs chmod +x
+	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
+	mv debian/tmp/usr/share/asp.net2-demos/index2.aspx \
+		debian/tmp/usr/share/asp.net2-demos/index.aspx
+
+	# 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
+
+#	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-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_installdirs
+	dh_install
+#	dh_installmenu
+	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+	dh_installinit --noscripts
+#	dh_installcron
+#	dh_installinfo
+
+#	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 -V 1,2
+
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+#	dh_makeclilibs
+	dh_clideps -d
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-arch
+.PHONY: build clean binary-arch binary install 


Property changes on: xsp/tags/1.1.10-1/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: xsp/tags/1.1.10-1/debian/web.config
===================================================================
--- xsp/tags/1.1.10-1/debian/web.config	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/tags/1.1.10-1/debian/web.config	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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>
+

Deleted: xsp/trunk/debian/MAINTAINERS
===================================================================
--- xsp/trunk/debian/MAINTAINERS	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/MAINTAINERS	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,10 +0,0 @@
-The Debian Mono Group maintains the MONO packages in Debian.
-In this group there are prefered maintainers for certain packages.
-
-Current maintainers of the mono-xsp, mono-server and asp.net-examples are:
-
-Pablo Fischer <pablo at pablo.com.mx>
-
-If you want to know who we are:
-
-http://pkg-mono.alioth.debian.org

Modified: xsp/trunk/debian/asp.net-examples.dirs
===================================================================
--- xsp/trunk/debian/asp.net-examples.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net-examples.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,4 +1,2 @@
 usr/bin
-usr/share/asp.net-demos/asp 
-usr/share/asp.net-demos/asp/bin
-usr/share/dotnet/lib
+usr/share/asp.net-demos/1.1

Modified: xsp/trunk/debian/asp.net-examples.hostxsp
===================================================================
--- xsp/trunk/debian/asp.net-examples.hostxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net-examples.hostxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,5 +1,5 @@
 # This is the configuration file
 # for the aspnet-examples virtualhost
-path = /usr/share/asp.net-demos/asp
+path = /usr/share/asp.net-demos
 alias = /samples
-libs = /usr/share/dotnet/lib
+libs = /usr/lib/mono/1.0

Added: xsp/trunk/debian/asp.net-examples.install
===================================================================
--- xsp/trunk/debian/asp.net-examples.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net-examples.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+debian/tmp/usr/share/asp.net-demos

Deleted: xsp/trunk/debian/asp.net-examples_postinst.old
===================================================================
--- xsp/trunk/debian/asp.net-examples_postinst.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net-examples_postinst.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,16 +0,0 @@
-#!/bin/sh -e
-
-case "$1" in
-    configure)
-	if [ -x /usr/sbin/mono-xsp-update.conf ]; then
-	    mono-xsp-update.conf || true
-	fi
-	if [ -x /usr/sbin/mono-server-update.conf ]; then
-	    mono-server-update.conf || true
-	fi
-	;;
-
-esac
-
-#DEBHELPER#
-exit 0

Deleted: xsp/trunk/debian/asp.net-examples_postrm.old
===================================================================
--- xsp/trunk/debian/asp.net-examples_postrm.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net-examples_postrm.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,16 +0,0 @@
-#!/bin/sh -e
-
-case "$1" in
-    purge|remove)
-	if [ -x /usr/sbin/mono-xsp-update.conf ]; then
-	    mono-xsp-update.conf || true
-	fi
-	if [ -x /usr/sbin/mono-server-update.conf ]; then
-	    mono-server-update.conf || true
-	fi
-	;;
-    
-esac
-
-#DEBHELPER#
-exit 0

Added: xsp/trunk/debian/asp.net2-examples.README.Debian
===================================================================
--- xsp/trunk/debian/asp.net2-examples.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net2-examples.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at mfgames.com>, Thu, 21 Jul 2005 11:49:29 -0500

Added: xsp/trunk/debian/asp.net2-examples.dirs
===================================================================
--- xsp/trunk/debian/asp.net2-examples.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net2-examples.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/asp.net2-demos

Added: xsp/trunk/debian/asp.net2-examples.hostxsp2
===================================================================
--- xsp/trunk/debian/asp.net2-examples.hostxsp2	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net2-examples.hostxsp2	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/trunk/debian/asp.net2-examples.install
===================================================================
--- xsp/trunk/debian/asp.net2-examples.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/asp.net2-examples.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+debian/tmp/usr/share/asp.net2-demos

Modified: xsp/trunk/debian/changelog
===================================================================
--- xsp/trunk/debian/changelog	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/changelog	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,18 +1,53 @@
-xsp (1.0.5-2) unstable; urgency=low
+xsp (1.1.10-1) 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
+  * New upstream release
+  * Dylan R. E. Moonfire <debian at mfgames.com>
+    - debian/control: Removed the other uploaders.
+    - debian/control: Removed the mono from depends.
+    - debian/rules: Added dh_makeclilibs
+    - 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.
 
- -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Wed, 21 Sep 2005 20:48:27 +0100
+ -- Dylan R. E. Moonfire <debian at mfgames.com>  Wed, 04 Jan 2006 09:54:43 -0600
 
+xsp (1.1.9.2-0pre6) unstable; urgency=low
+
+  * New upstream release.
+  * Dylan R. E. Moonfire <debian at mfgames.com>
+    - 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 at wanadoo.fr>. There was a secondary French
+        translation from Steve <dlist at 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 at upcase.inf.upol.cz>. (Closes: #314769)
+      - Added a partial Vietnamese translation from Clytie Siddal
+        <clytie at riverland.net.au>. (Closes: #324272)
+      - Added a partial Swedish translation from Daniel Nylander
+        <yeager at 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.
+
+ -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Sun, 16 Oct 2005 12:54:15 -0500
+
 xsp (1.0.5-1) unstable; urgency=low
 
   * NEW upstream release
@@ -26,7 +61,7 @@
     + 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!).	
+    + 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)
@@ -46,7 +81,7 @@
     + 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.	
+    + Lots of one-line cleanups.        
 
  -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Tue, 09 Dec 2004 09:58:12 -0600
 
@@ -61,7 +96,7 @@
   * Fixed a dependency problem with the mono-mcs version
 
  -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Sun, 4 Jul 2004 14:22:45 -0600
-	
+        
 xsp (1.0-1) unstable; urgency=low
 
   * NEW Release
@@ -72,19 +107,19 @@
 
   * 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. 	
+  * patched index.aspx, links.  
+  * Renamed mono-server to mono-apache-server.  
 
- -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Wed, 16 Jun 2004 14:02:21 -0600  	
+ -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Wed, 16 Jun 2004 14:02:21 -0600         
 
 xsp (0.14-7) unstable; urgency=low
 
-  * Rewrited README.Debian files	
+  * 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	
+  * Fixed a bug in init scripts and removed obsolote stuff      
 
  -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Mon, 14 Jun 2004 21:41:43 -0600
 
@@ -92,7 +127,7 @@
 
   * 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	
+  * Fixed some bugs reading an old .conf file   
 
  -- Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>  Mon, 14 Jun 2004 19:19:32 -0600
 
@@ -106,16 +141,16 @@
 
   * A BIG bug in the mono-server-update.conf script, I'm using perl not C!
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Mon, 14 Jun 2004 10:03:43 -0600	
+ -- Pablo Fischer <pablo at 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  	
+  * 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)	
+    hosts in mono-server we shouldn't concatenate an empty var ($libs)  
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Mon, 14 Jun 2004 12:30:12 -0600	
+ -- Pablo Fischer <pablo at pablo.com.mx>  Mon, 14 Jun 2004 12:30:12 -0600 
 
 xsp (0.14-2) unstable; urgency=low
 
@@ -124,24 +159,24 @@
   * 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	
+    xsp daemon  
   * An update script now writes a debian.webapp file and the 
-    mono-server-hosts.conf (just in mono-server).	
+    mono-server-hosts.conf (just in mono-server).       
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Sat, 12 Jun 2004 13:31:12 -0600	 	
+ -- Pablo Fischer <pablo at pablo.com.mx>  Sat, 12 Jun 2004 13:31:12 -0600         
 
 xsp (0.14-1) unstable; urgency=low
 
   * New Release
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Sat, 12 Jun 2004 13:21:32 -0600	
+ -- Pablo Fischer <pablo at 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 at pablo.com.mx>  Tue, 25 May 2004 10:44:12 -0600	
+ -- Pablo Fischer <pablo at pablo.com.mx>  Tue, 25 May 2004 10:44:12 -0600 
 
 xsp (0.12-4) unstable; urgency=low
 
@@ -155,27 +190,27 @@
   * Previous users and versions were having problems running the past init.d
     that should not be executed with this version
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Mon, 24 May 2004 15:13:12 -0600	
+ -- Pablo Fischer <pablo at 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	
+  * Also added the two actions to the admin scripts: add and remove     
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Fri, 20 May 2004 15:07:42 -0600	
+ -- Pablo Fischer <pablo at 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	
+  * 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 at pablo.com.mx>  Fri, 20 May 2004 23:21:13 -0600	
+ -- Pablo Fischer <pablo at pablo.com.mx>  Fri, 20 May 2004 23:21:13 -0600 
 
 xsp (0.9-15) unstable; urgency=low
 
@@ -185,21 +220,21 @@
   * 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 :-)	
+    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.	
+    the main configuration file and THEN start with a new one.  
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Mon, 19 Abr 2004 18:22:12 -0600	
+ -- Pablo Fischer <pablo at 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 at pablo.com.mx>  Sun, 18 Abr 2004 12:49:21 -0600
+ -- Pablo Fischer <pablo at pablo.com.mx>  Sun, 18 Apr 2004 12:49:21 -0600
 
 xsp (0.9-13) unstable; urgency=low
 
@@ -209,13 +244,13 @@
     why /etc/mono-server or /etc/xsp directories are created created also if 
     they don't have thesepackages.
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Sun, 18 Abr 2004 10:43:11 -0600	
- 	
+ -- Pablo Fischer <pablo at 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 at pablo.com.mx>  Sat, 17 Abr 2004 15:30:12 -0600	
+ -- Pablo Fischer <pablo at pablo.com.mx>  Sat, 17 Apr 2004 15:30:12 -0600 
 
 xsp (0.9-11) unstable; urgency=low
 
@@ -223,44 +258,44 @@
     exists.
   * Also, the same bug in the update scripts, just copy the file (tmp) if it exists..
 
- -- Pablo Fischer <pablo at palbo.com.mx>  Sat, 17 Abr 2004 15:01:23 -0600	
+ -- Pablo Fischer <pablo at 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 at pablo.com.mx>  Fri, 16 Abr 2004 23:19:40 -0600
+ -- Pablo Fischer <pablo at 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)	
+  * 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	
+    mono-server are really installed    
   * Removed the two ln -s (rules), we are replacing those lines with .links files
 
- -- Pablo Fischer <pablo at pablo.com.mx>  Fri, 16 Abr 2004 20:29:00 -0600
+ -- Pablo Fischer <pablo at 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.	
+    the 'big' file.     
  
  -- Pablo Fischer <pablo at 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	
+    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. 	
+    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	
+    the md5sum of the orig global host file with the new one    
 
  -- Pablo Fischer <pablo at pablo.com.mx>  Sat, 10 Apr 2004 15:16:10 -0600
 
@@ -278,7 +313,7 @@
   * 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	
+    + 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

Added: xsp/trunk/debian/compat
===================================================================
--- xsp/trunk/debian/compat	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/compat	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+4

Modified: xsp/trunk/debian/control
===================================================================
--- xsp/trunk/debian/control	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/control	2006-01-09 21:40:39 UTC (rev 2147)
@@ -2,32 +2,66 @@
 Section: web
 Priority: optional
 Maintainer: Debian Mono Group <pkg-mono-group at lists.alioth.debian.org>
-Uploaders: Eduard Bloch <blade at debian.org>, Pablo Fischer <pablo at pablo.com.mx>, Michael Schiansky <ms at debian.org>, Dave Beckett <dajobe at debian.org>
+Uploaders: Dylan R. E. Moonfire <debian at mfgames.com>
 Standards-Version: 3.6.2.1
-Build-Depends: debhelper (>= 4.1.16), autotools-dev, mono-mcs | c-sharp-compiler, libmono-dev, mono-utils (>> 1.0), cli-common (>= 0.2.0)
+Build-Depends: debhelper (>= 4.1.16), autotools-dev, mono-gmcs, mono-mcs, mono-gac, libmono-dev, cli-common (>= 0.2.0)
 
+Package: mono-xsp-base
+Architecture: all
+Depends: ${cli:Depends}
+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 version (XSP) or the Apache module
+ (mono-apache-server).
+
+Package: mono-xsp2-base
+Architecture: all
+Depends: ${cli:Depends}
+Description: base libraries for XSP 2.0
+ This is the core libraries needed to install the XSP2 application,
+ either through the standalone version (XSP2) or the Apache module
+ (mono-apache-server2).
+
 Package: mono-xsp
 Architecture: all
-Depends: ${shlibs:Depends}, ${cli:Depends}, mono-mcs (>> 1.0), debconf (>= 1.2.0), net-tools
+Depends: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp-base (= ${Source-Version})
 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 applications. 
+ 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: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp2-base (= ${Source-Version})
+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-server.
+
 Package: asp.net-examples
 Architecture: all
-Depends: ${shlibs:Depends}, mono-xsp | libapache-mod-mono (>> 1.0) | libapache2-mod-mono (>> 1.0)
-Description: demo pages for ASP.NET infrastructure
+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.
+ module. This does not include the ASP.NET 2.0 examples.
 
+Package: asp.net2-examples
+Architecture: all
+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: ${shlibs:Depends}, ${cli:Depends}, libapache-mod-mono (>> 1.0) | libapache2-mod-mono (>> 1.0), mono-mcs (>> 1.0), debconf (>= 1.2.0)
+Depends: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp-base (= ${Source-Version})
 Description: 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
@@ -35,3 +69,16 @@
  .
  This package requires you to install libapache-mono-mono for Apache 1.3 or
  libapache2-mod-mono for Apache 2.0.
+
+Package: mono-apache-server2
+Architecture: all
+Conflicts: mono-server, mono-apache-server
+Replaces: mono-server
+Depends: ${cli:Depends}, mono-mcs (>> 1.0), mono-gmcs, debconf (>= 1.2.0) | debconf-2.0, net-tools, mono-xsp2-base (= ${Source-Version})
+Description: 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-mono-mono for Apache 1.3 or
+ libapache2-mod-mono for Apache 2.0.

Modified: xsp/trunk/debian/copyright
===================================================================
--- xsp/trunk/debian/copyright	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/copyright	2006-01-09 21:40:39 UTC (rev 2147)
@@ -9,7 +9,24 @@
 
 Copyright:
 
-Copyright (c) 2001-2004 Novell
+Copyright (c) 2002, 2003, 2004 Novell, Inc. and the individuals listed
+on the ChangeLog entries.
 
-Distributed on the terms of the GNU General Public License which can
-be found in the file /usr/share/common-licenses/GPL on Debian systems.
+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.

Added: xsp/trunk/debian/dh_installxsp
===================================================================
--- xsp/trunk/debian/dh_installxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/dh_installxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at pablo.com.mx>. Modified by
+Dylan R. E. Moonfire <debian at mfgames.com> to handle XSP and XSP 2
+installation.
+
+=cut


Property changes on: xsp/trunk/debian/dh_installxsp
___________________________________________________________________
Name: svn:executable
   + *

Modified: xsp/trunk/debian/dirs
===================================================================
--- xsp/trunk/debian/dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,2 +1,4 @@
 usr/bin
+usr/sbin
+usr/share/man/man8
 usr/share/man/man1

Modified: xsp/trunk/debian/mono-apache-server.README.Debian
===================================================================
--- xsp/trunk/debian/mono-apache-server.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -35,10 +35,10 @@
 
 /etc/mono-server/conf.d/monodoc/10_monodochttp
 
-You then need to run mono-server-update.conf, which will read the directory
+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.conf script will also create a
+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
@@ -47,7 +47,7 @@
 
 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.conf can start Apache.
+that mono-server-update can start Apache.
 
 Happy Hacking!
 

Modified: xsp/trunk/debian/mono-apache-server.config
===================================================================
--- xsp/trunk/debian/mono-apache-server.config	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.config	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
 
 . /usr/share/debconf/confmodule
 db_version 2.0

Modified: xsp/trunk/debian/mono-apache-server.default
===================================================================
--- xsp/trunk/debian/mono-apache-server.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,7 +1,7 @@
 # Defaults for mono-server
 
 # Should mono-server start apache?
-start_apache=true
+start_apache=false
 
 
 

Modified: xsp/trunk/debian/mono-apache-server.dirs
===================================================================
--- xsp/trunk/debian/mono-apache-server.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,5 +1,3 @@
 usr/bin
 etc/mono-server
 etc/mono-server/conf.d
-usr/share/dotnet/bin
-usr/share/dotnet/monoserver

Modified: xsp/trunk/debian/mono-apache-server.docs
===================================================================
--- xsp/trunk/debian/mono-apache-server.docs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.docs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,4 +1,3 @@
-debian/MAINTAINERS
 NEWS
 README
 AUTHORS

Deleted: xsp/trunk/debian/mono-apache-server.files
===================================================================
--- xsp/trunk/debian/mono-apache-server.files	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.files	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1 +0,0 @@
-usr/lib/mono/1.0/mod-mono-server.exe

Added: xsp/trunk/debian/mono-apache-server.install
===================================================================
--- xsp/trunk/debian/mono-apache-server.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/xsp/1.0/mod-mono-server.exe
+debian/tmp/usr/bin/mod-mono-server
+debian/tmp/usr/sbin/mono-server-admin
+debian/tmp/usr/sbin/mono-server-update

Deleted: xsp/trunk/debian/mono-apache-server.links
===================================================================
--- xsp/trunk/debian/mono-apache-server.links	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.links	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,3 +0,0 @@
-/usr/share/dotnet/monoserver/mono-server-update.conf	/usr/sbin/mono-server-update.conf
-/usr/share/dotnet/monoserver/mono-server-admin.conf	/usr/sbin/mono-server-admin.conf
-/usr/share/dotnet/monoserver/mono-server-update.conf	/usr/sbin/update-mono-server.conf

Modified: xsp/trunk/debian/mono-apache-server.manpages
===================================================================
--- xsp/trunk/debian/mono-apache-server.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,4 +1,4 @@
-debian/mono-server-admin.conf.8
-debian/mono-server-update.conf.8
-debian/update-mono-server.conf.8
-doc/mod-mono-server.1
+debian/mono-server-admin.8
+debian/mono-server-update.8
+debian/update-mono-server.8
+man/mod-mono-server.1

Modified: xsp/trunk/debian/mono-apache-server.postinst
===================================================================
--- xsp/trunk/debian/mono-apache-server.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -36,7 +36,7 @@
 	    restart_apache_off
 	fi
 
-	mono-server-update.conf
+	mono-server-update
 	
 	;;
     

Modified: xsp/trunk/debian/mono-apache-server.postrm
===================================================================
--- xsp/trunk/debian/mono-apache-server.postrm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server.postrm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
 
 monoserverconfd="/etc/mono-server/conf.d/"
 

Added: xsp/trunk/debian/mono-apache-server2.README.Debian
===================================================================
--- xsp/trunk/debian/mono-apache-server2.README.Debian	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.README.Debian	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at pablo.com.mx>, Wed Mar  2 11:08:17 2005

Added: xsp/trunk/debian/mono-apache-server2.default
===================================================================
--- xsp/trunk/debian/mono-apache-server2.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+# Defaults for mono-server
+
+# Should mono-server2 start apache?
+start_apache=false

Added: xsp/trunk/debian/mono-apache-server2.dirs
===================================================================
--- xsp/trunk/debian/mono-apache-server2.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+usr/bin/
+etc/mono-server2
+etc/mono-server2/conf.d

Added: xsp/trunk/debian/mono-apache-server2.docs
===================================================================
--- xsp/trunk/debian/mono-apache-server2.docs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.docs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,3 @@
+NEWS
+README
+AUTHORS

Added: xsp/trunk/debian/mono-apache-server2.install
===================================================================
--- xsp/trunk/debian/mono-apache-server2.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+debian/tmp/usr/lib/xsp/2.0/mod-mono-server2.exe
+debian/tmp/usr/bin/mod-mono-server2
+debian/tmp/usr/sbin/mono-server2-admin
+debian/tmp/usr/sbin/mono-server2-update

Added: xsp/trunk/debian/mono-apache-server2.manpages
===================================================================
--- xsp/trunk/debian/mono-apache-server2.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/trunk/debian/mono-apache-server2.postinst
===================================================================
--- xsp/trunk/debian/mono-apache-server2.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,51 @@
+#! /bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+tempfile=`/bin/tempfile`
+modmono_default="/etc/default/mono-apache-server2"
+
+restart_apache_on() {
+    sed s/start_apache=false/start_apache=true/g $modmono_default > $tempfile
+    cp -f $tempfile $modmono_default
+    rm -Rf $tempfile   
+}
+
+restart_apache_off() {
+    sed s/start_apache=true/start_apache=false/g $modmono_default > $tempfile
+    cp -f $tempfile $modmono_default
+    rm -Rf $tempfile   
+}
+
+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)
+	db_get monoserver2/monoserver2_restartapache || true
+	daemon_turn_off
+	if [ "$RET" = "true" ]; then
+	    restart_apache_on
+	else
+	    restart_apache_off
+	fi
+
+	mono-server2-update
+	
+	;;
+    
+    *)
+	echo "postinst failed \`$1'" >&2
+	exit 0
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: xsp/trunk/debian/mono-apache-server2.postrm
===================================================================
--- xsp/trunk/debian/mono-apache-server2.postrm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-apache-server2.postrm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+monoserver2confd="/etc/mono-server2/conf.d/"
+
+case "$1" in
+    purge)
+	rm -Rf "$monoserver2confd/*"
+	. /usr/share/debconf/confmodule
+        db_purge
+	;;
+    esac
+
+#DEBHELPER#
+
+exit 0

Modified: xsp/trunk/debian/mono-server-admin.conf
===================================================================
--- xsp/trunk/debian/mono-server-admin.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server-admin.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -13,7 +13,7 @@
 
 =head1 NAME
 
-mono-server-admin.conf - mono-server hosts file creator, hosts file is part of the debianized mod_mono package
+mono-server-admin - mono-server hosts file creator, hosts file is part of the debianized mod_mono package
     
 =head1 SYNOPSIS
     

Deleted: xsp/trunk/debian/mono-server-reader.old
===================================================================
--- xsp/trunk/debian/mono-server-reader.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server-reader.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,127 +0,0 @@
-#!/bin/sh
-
-MONOSERVER_confdir="/etc/mono-server"
-MONOSERVER_conffile=$MONOSERVER_confdir/mono-server-hosts.conf
-MONOSERVER_validate=no
-
-usage() {
-    cat <<EOF
-$0 - Read the XSP Host Configuration
-  Options:
-     --help              - Show this message
-     --output file       - Read other host configuration file instead of ${MONOSERVER_conffile}
-EOF
-}
-
-
-#Read the commandline
-TEMP=$(getopt -n mono-xsp-reader.conf \
-    -l output:,help -- \
-    : "$@")
-
-
-eval set -- ${TEMP}
-while test "$1" != "--"; do
-    case $1 in
-	--help)
-	    usage
-	    exit 0
-	    ;;
-	--output)
-	    shift
-	    MONOSERVER_conffile="$1"
-	    ;;
-    esac
-    shift
-done
-shift
-
-opened_file=''
-opened_flag=0
-counter=0
-first_line='yes'
-
-
-section_alias=''
-section_path=''
-
-full_cmdline=''
-
-if [ ! -f $MONOSERVER_conffile ]; then
-    echo "Sorry, but you don't have $MONOSERVER_conffile, install a package, like asp.net-examples"
-    exit 1
-else 
-    if [ ! -e $MONOSERVER_conffile ]; then
-	echo "Sorry, but you don't have a $MONOSERVER_conffile, install a package, like asp.net-examples"
-	exit 1
-    fi
-fi
-
-for line in `cat $MONOSERVER_conffile | tr ' ' '~'`; do
-    line=`echo $line | tr '~' ' '`
-    if [[ $line = *begin* ]]; then
-	if [[ $opened_flag = "1" && $first_line = 'no' ]]; then
-	    echo "Sorry, you have a bad $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-	    exit 1
-	fi
-	opened_file=`echo $line | awk '{print $3}'`
-	opened_flag=1
-	first_line='no'
-    fi
-    
-    if [[ $line = *end* ]]; then
-	closed_file=`echo $line | awk '{print $3}'`
-	if [[ $section_alias = '' || $section_path = '' ]]; then
-	    echo "Sorry, No path/alias found in $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-	    exit 1
-	fi
-
-	if [ $closed_file != $opened_file ]; then
-	    echo "Sorry, unopened section in $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-	    exit 1
-	else
-	    opened_flag="0"
-	    full_cmdline="$full_cmdline$section_alias:$section_path,"
-	    section_alias=''
-	    section_path=''
-	fi
-
-	# Or maybe.. we don't have an open section
-	if [ $opened_flag = "1" ]; then
-	    echo "Sorry, unopened section in $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-	    exit 1    
-	fi
-    fi	    
-
-    if [[ $line = *path* ]]; then
-	if [ $opened_flag = "1" ]; then
-	    if [ -z $section_path ]; then
-		section_path=`echo $line | awk '{print $3}'`	
-	    else
-		echo "Sorry, you have two paths in one section in $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-		exit 1
-	    fi
-	else
-	    echo "Sorry, unopened section in $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-	    exit 0
-	fi
-    fi
-
-    if [[ $line = *alias* ]]; then
-	if [ $opened_flag = "1" ]; then
-	    if [ -z $section_alias ]; then
-		section_alias=`echo $line | awk '{print $3}'`
-	    else
-		echo "Sorry, you have two alias in one section in $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-		exit 1
-	    fi
-	else
-	    echo "Sorry, unopened section in $MONOSERVER_conffile, please re-run mono-server-update.conf to fix it"
-	    exit 1
-	fi
-    fi
-
-	
-done
-
-echo $full_cmdline | sed 's/,$//'

Modified: xsp/trunk/debian/mono-server-update.conf
===================================================================
--- xsp/trunk/debian/mono-server-update.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server-update.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -14,15 +14,15 @@
 
 =head1 NAME
 
-mono-server-update.conf - creates .webapp and .host file for mod_mono and mono-server
+mono-server-update - creates .webapp and .host file for mod_mono and mono-server
 
 =head1 SYNOPSIS
 
-mono-server-update.conf
+mono-server-update
 
 =head1 DESCRIPTION
 
- mono-server-update.conf is a perl tool to update/create a .webapp and a .host file in 
+ 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, 
@@ -65,7 +65,7 @@
 
 #Check write access to $monoserver_hostfile
 if( ( -e "$monoserver_hostfile" && ! -w "$monoserver_hostfile" ) || ! -w "$monoserver_dir" ) {
-    print "mono-xsp-update.conf requires write access to $monoserver_hostfile or 
+    print "mono-xsp-update requires write access to $monoserver_hostfile or 
 be executed by root\n" ; 
     exit 1 ;
 }
@@ -80,7 +80,7 @@
     #Prepare the application string
     $applications =~ s/,$//;
     #and the libs..
-    $libs = "/usr/share/dotnet/lib:/usr/lib:$libs"; 
+    $libs = "/usr/lib/mono/1.0:/usr/lib:$libs"; 
     $libs =~ s/:$//;
     #sed the $monoserver_hostfile to replace the Applications
 #    &replace_applications;
@@ -220,7 +220,7 @@
     print TEMPHOST "# Default configuration, don't edit it!\n";
     print TEMPHOST "<IfModule mod_mono.c>\n";
     print TEMPHOST "  MonoUnixSocket /tmp/.mod_mono_server\n";    
-    print TEMPHOST "  MonoServerPath /usr/share/dotnet/bin/mod-mono-server.exe\n";
+    print TEMPHOST "  MonoServerPath /usr/lib/xsp/1.0/mod-mono-server.exe\n";
     print TEMPHOST "  AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx\n";
     print TEMPHOST "  MonoApplicationsConfigDir /etc/mono-server\n";
     print TEMPHOST "  MonoPath \n";
@@ -349,6 +349,7 @@
 
 	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";

Deleted: xsp/trunk/debian/mono-server-update.old
===================================================================
--- xsp/trunk/debian/mono-server-update.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server-update.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,181 +0,0 @@
-#!/bin/sh
-
-MONOSERVER_confdir="/etc/mono-server"
-MONOSERVER_conffile=$MONOSERVER_confdir/mono-server-hosts.conf
-MONOSERVER_comments=no
-MONOSERVER_restart=yes
-
-usage() {
-    cat <<EOF
-$0 - Generate the Mono Server Host Configuration
-  Options:
-     --help              - Show this message
-     --output file       - write the output to other file instead of ${MONOSERVER_conffile}
-     --confdir directory - read the configuration files in a directory instead of ${MONOSERVER_confdir}
-     --norestart         - Do not restart the daemon (by default, it will)
-EOF
-}
-
-#Read the commandline
-TEMP=$(getopt -n mono-server-update.conf \
-    -l output:,confdir:,norestart,help -- \
-    : "$@")
-
-
-eval set -- ${TEMP}
-while test "$1" != "--"; do
-    case $1 in
-	--help)
-	    usage
-	    exit 0
-	    ;;
-	--norestart)
-#	    shift
-	    MONOSERVER_restart="no"
-	    ;;
-	--output)
-	    shift
-	    MONOSERVER_conffile="$1"
-	    ;;
-	--confdir)
-	    shift
-	    MONOSERVER_confdir="$1"
-	    ;;
-	esac
-    shift
-done
-shift
-
-# No non-options arguments 
-if [ "$#" -ne 0 ]; then
-	echo "No non option arguments ($@) allowed" >&2
-	usage >&2
-	exit 1
-fi
-	    
-
-MONOSERVER_confd=$MONOSERVER_confdir/conf.d
-
-if [ ! -d ${MONOSERVER_confd} ]; then
-    printf "$0: Error, no ${MONOSERVER_confd} directory, exiting..\n" 1>&2 
-    exit 1 
-fi
-
-if [ ! -d `dirname $MONOSERVER_conffile ` ]; then
-    printf "$0: Error, missing `dirname $MONOSERVER_conffile` directory, exiting.\n" 1>&2 
-    exit 1
-fi
-
-if [ -e "$MONOSERVER_conffile" ]; then
-    md5_orig=`md5sum $MONOSERVER_conffile | awk '{print $1}'`
-else
-    md5_orig="0"
-fi
-
-
-# based on exim4-update.conf
-errormessage () {
-	# pretty-print messages of arbitrary length (no trailing newline)
-	echo "$*" | fold -s -w ${COLUMNS:-80} >&2;
-}
-
-restart_firsttime() {    
-    confd="${MONOSERVER_confd}"
-    almost_empty="`ls -lA $confd | wc -l`"
-    if [ "$almost_empty" = "2" ] ; then
-	echo "Starting Mono Server: mono-server"
-	/etc/init.d/mono-server start > /dev/null 2>&1 || true		
-    fi    
-}
-
-restart_monoserver() {
-    #Ok, include the default file
-    . "/etc/default/mono-server"
-    #MonoServer is running?
-    if [ -f /var/run/mono-server ]; then
-        # Are we really running xsp?
-	monoserver_pid=`cat /var/run/mono-server`
-	monoserver_ps=`ps -p $monoserver_pid | wc -l`
- 	# Are there any process running by that pid?
-	if [ "$xsp_ps" != "1" ]; then
-	    if [ "$start_boot" = "true" ]; then
-		echo "Restarting Mono Server: mono-server"
-		/etc/init.d/mono-server restart > /dev/null 2>&1 || true
-	    fi
-	else
-	    restart_firsttime
-	fi
-    else
-	if [ "$start_boot" = "true" ]; then
-	    restart_firsttime 
-	fi
-    fi
-}
-
-
-# stolen from /etc/X11/Xsession
-run_parts () {
-  # until run-parts --noexec is implemented
-  if [ -z "$1" ]; then
-      errormessage "run_parts() called without an argument."
-  fi
-  if [ ! -d "$1" ]; then
-      errormessage "run_parts() called, but \"$1\" does not exist or is" \
-	  "not a directory."
-  fi
-  for F in $(ls $1); do
-      if expr "$F" : '[[:alnum:]_-]\+$' > /dev/null 2>&1; then
-	  if [ -f "$1/$F" ]; then
-	      echo "$1/$F"
-	  fi
-      fi
-  done
-}
-
-
-# based on exim4-update.conf
-cat_parts() {
-    if [ -z "$1" ]; then
-	errormessage "$0: internal cat_parts called without an argument"
-    fi
-    if [ ! -d "$1" ]; then
-	errormessage "$0: internal cat_parts called, but $1 does not exist or is not a directory."
-    fi
-    for file in `run_parts $1`; do
-	echo "#####################################################"
-	echo "### begin $file"
-	echo "#####################################################"
-	cat $file 
-	echo "#####################################################"
-	echo "### end $file" 
-	echo "#####################################################"
-	echo ""	
-    done
-}
-
-
-gentmpconf() {
-	touch ${MONOSERVER_conffile}.tmp
-	chmod 640 ${MONOSERVER_conffile}.tmp
-	[ -e ${MONOSERVER_conffile} ] && chmod 640 ${MONOSERVER_conffile}
-}
-
-#Ok, we start here..
-gentmpconf
-for vhosts in `ls ${MONOSERVER_confd}`; do
-    cat_parts ${MONOSERVER_confd}/$vhosts
-done > ${MONOSERVER_conffile}.tmp
-
-mv -f ${MONOSERVER_conffile}.tmp ${MONOSERVER_conffile}
-chmod 644 ${MONOSERVER_conffile}
-
-#re-check the md5
-md5_new=`md5sum $MONOSERVER_conffile | awk '{print $1}'`
-
-#The orig and new.. are the same?
-if [ "$md5_new" != "$md5_orig" ]; then
-    #So, restart the server.. but.. should we?
-    if [ "${MONOSERVER_restart}" = "yes" ]; then
-	restart_monoserver
-    fi
-fi

Added: xsp/trunk/debian/mono-server2-admin.conf
===================================================================
--- xsp/trunk/debian/mono-server2-admin.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server2-admin.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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;
+}

Added: xsp/trunk/debian/mono-server2-update.conf
===================================================================
--- xsp/trunk/debian/mono-server2-update.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server2-update.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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 $libs/gi;
+    }
+    else {
+	$content =~ s/MonoPath//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 /tmp/.mod_mono_server2\n";    
+    print TEMPHOST "  MonoServerPath /usr/lib/xsp/2.0/mod-mono-server2.exe\n";
+    print TEMPHOST "  AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx\n";
+    print TEMPHOST "  MonoApplicationsConfigDir /etc/mono-server2\n";
+    print TEMPHOST "  MonoPath \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);
+}  

Deleted: xsp/trunk/debian/mono-server_init.old
===================================================================
--- xsp/trunk/debian/mono-server_init.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server_init.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,145 +0,0 @@
-#! /bin/sh
-#
-# mono-server	Start the mono-server, the mod-mono-server one
-#
-#		Written by Pablo Fischer <pablo at pablo.com.mx>
-#		Modified for Debian GNU/Linux
-#
-# Version:	@(#)mono-server pablo at pablo.com.mx
-#
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/bin/mod-mono-server
-NAME=mono-server
-DESC="Mono Server, mod-mono-server"
-DEFAULT=/etc/default/$NAME
-CFGDIR=/etc/$NAME
-VIRTUALFILE=$CFGDIR/mono-server-hosts.conf
-
-test -x $DAEMON || exit 0
-
-virtual_dirs=`mono-server-reader.conf --norestart`
-
-prepare_socket() {
-    . $DEFAULT
-    if [ ! -d /tmp/.mono-server ]; then
-        mkdir /tmp/.mono-server
-    fi
-
-    if [ -e $socket_file ]; then
-	rm -Rf $socket_file
-    fi
-}
-
-fix_privileges() {
-    . $DEFAULT
-    chown $user.$group $socket_file
-}
-
-should_start() {
-    if [ -e $DEFAULT ]; then
-        . $DEFAULT
-        if [ "$start_boot" != "true" ]; then
-            echo "$NAME not started as requested"
-            return 1
-        fi
-    fi
-
-    if [ ! -f /usr/lib/apache/1.3/500mod_mono.info ]; then
-	echo "There's no need to start me if you don't have libapache-mod-mono, sorry!"
-	return 1
-    fi
-	
-    if [ ! -x $DAEMON ]; then
-        echo "$NAME is not executable, not starting"
-        return 1
-    fi
-
-    if [ ! -e $VIRTUALFILE ]; then
-	echo "You dont have $VIRTUALFILE "
-	echo "To have it, you need to install at least one package for xsp (like asp.net-examples)"	
-	return 1
-    fi
-
-    if [[ -z $virtual_dirs ]]; then
-        echo "Sorry, I found an empty /etc/mono-server/mono-server-hosts.conf"
-        return 1
-    fi
-    
-    if [[ $virtual_dirs = *Sorry* ]]; then
-        echo "Sorry, I found a missconfiguration in /etc/mono-server/mono-server-hosts.conf, fix it, or dpkg-reconfigure mono-server/virtua\lhosts packages"
-        return 1
-    fi
-                                                                                                                              
-    prepare_socket
-    return 0
-}
-
-
-should_stop() {
-    if [ -f /var/run/$NAME ]; then
-	# Are we really running monoserver?
-	monoserver_pid=`cat /var/run/$NAME`
-	monoserver_ps=`ps -p $monoserver_pid | wc -l`
-	# Are there any process running by that pid?
-	if [ "$monoserver_ps" = "2" ]; then
-	    return 0
-	else
-	    return 1
-	fi
-    else
-	return 0
-    fi  
-}
-
-case "$1" in
-  start)
-	if should_start ; then
-	    . $DEFAULT
-	    echo -n "Starting $DESC: $NAME"
-	    start-stop-daemon --start --background --make-pidfile \
-		--quiet --pidfile /var/run/$NAME \
-		--exec $DAEMON -- --applications $virtual_dirs --filename $socket_file --nonstop	
-	    echo "."
-	    sleep 2
-	    fix_privileges
-	fi	    
-	;;
-  stop)
-	if should_stop ; then
-	    echo -n "Stopping $DESC: $NAME "
-	    start-stop-daemon --stop --quiet --pidfile /var/run/$NAME
-	    echo "."
-	fi
-	;;
-  restart|force-reload)
-	#
-	#	If the "reload" option is implemented, move the "force-reload"
-	#	option to the "reload" entry above. If not, "force-reload" is
-	#	just the same as "restart".
-	#
-	if should_stop ; then
-	    echo "Restarting $DESC: $NAME"
-	    start-stop-daemon --stop --quiet --pidfile /var/run/$NAME
-	    sleep 1
-	fi
-	
-	if should_start ; then
-	    . $DEFAULT	
-	    start-stop-daemon --start --background --make-pidfile \
-		--quiet --pidfile /var/run/$NAME \
-		--exec $DAEMON -- --applications $virtual_dirs --filename $socket_file --nonstop	
-	    echo "."
-	    sleep 2
-	    fix_privileges
-	fi
-	;;
-  *)
-	N=/etc/init.d/$NAME
-	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $N {start|stop|restart|force-reload}" >&2
-	exit 1
-	;;
-esac
-
-exit 0

Deleted: xsp/trunk/debian/mono-server_preinst.old
===================================================================
--- xsp/trunk/debian/mono-server_preinst.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server_preinst.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,31 +0,0 @@
-#!/bin/sh -e
-
-NAME=mono-server
-DESC="Mono Server, mod-mono-server"
-
-#0 : false
-#1 : true
-should_stop() {
-    if [ -f /var/run/$NAME ]; then
-	# Are we really running monoserver?
-	monoserver_pid=`cat /var/run/$NAME`
-	monoserver_ps=`ps -p $monoserver_pid | wc -l`
-	# Are there any process running by that pid?
-	if [ "$monoserver_ps" = "2" ]; then
-	    return 0
-	else
-	    return 1
-	fi
-    fi  
-    return 0
-}
-
-case "$1" in
-   upgrade|install)
-	if should_stop ; then
-	    echo -n "Stopping $DESC: $NAME "
-	    /etc/init.d/mono-server stop > /dev/null 2>&1 || true
-	fi
-	;;
-esac
-exit 0

Deleted: xsp/trunk/debian/mono-server_prerm.old
===================================================================
--- xsp/trunk/debian/mono-server_prerm.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-server_prerm.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,13 +0,0 @@
-#!/bin/sh -e
-
-remove_module() {
-
-}
-
-case "$1" in
-    remove)
-	remove_module
-	;;
-esac
-exit 0
-

Added: xsp/trunk/debian/mono-xsp-base.install
===================================================================
--- xsp/trunk/debian/mono-xsp-base.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp-base.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,7 @@
+debian/tmp/usr/lib/xsp/1.0/Mono.WebServer.dll
+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

Added: xsp/trunk/debian/mono-xsp-base.manpages
===================================================================
--- xsp/trunk/debian/mono-xsp-base.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp-base.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1 @@
+debian/dh_installxsp.1

Deleted: xsp/trunk/debian/mono-xsp-reader.old
===================================================================
--- xsp/trunk/debian/mono-xsp-reader.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp-reader.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,128 +0,0 @@
-#!/bin/sh
-
-MONOXSP_confdir="/etc/xsp"
-MONOXSP_conffile=$MONOXSP_confdir/mono-xsp-hosts.conf
-MONOXSP_validate=no
-
-usage() {
-    cat <<EOF
-$0 - Read the XSP Host Configuration
-  Options:
-     --help              - Show this message
-     --output file       - Read other host configuration file instead of ${MONOXSP_conffile}
-EOF
-}
-
-
-#Read the commandline
-TEMP=$(getopt -n mono-xsp-reader.conf \
-    -l output:,help -- \
-    : "$@")
-
-
-eval set -- ${TEMP}
-while test "$1" != "--"; do
-    case $1 in
-	--help)
-	    usage
-	    exit 0
-	    ;;
-	--output)
-	    shift
-	    MONOXSP_conffile="$1"
-	    ;;
-    esac
-    shift
-done
-shift
-
-opened_file=''
-opened_flag=0
-counter=0
-first_line='yes'
-
-
-section_alias=''
-section_path=''
-
-full_cmdline=''
-
-if [ ! -f $MONOXSP_conffile ]; then
-    echo "Sorry, but you don't have $MONOXSP_conffile, install a package, like asp.net-examples"
-    exit 1
-else
-    if [ ! -e $MONOXSP_conffile ]; then
-        echo "Sorry, but you don't have a $MONOSERVER_conffile, install a package, like asp.net-examples"
-        exit 1
-    fi
-fi
-
-    
-for line in `cat $MONOXSP_conffile | tr ' ' '~'`; do
-    line=`echo $line | tr '~' ' '`
-    if [[ $line = *begin* ]]; then
-	if [[ $opened_flag = "1" && $first_line = 'no' ]]; then
-	    echo "Sorry, you have a bad $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-	    exit 1
-	fi
-	opened_file=`echo $line | awk '{print $3}'`
-	opened_flag=1
-	first_line='no'
-    fi
-    
-    if [[ $line = *end* ]]; then
-	closed_file=`echo $line | awk '{print $3}'`
-	if [[ $section_alias = '' || $section_path = '' ]]; then
-	    echo "Sorry, No path/alias found in $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-	    exit 1
-	fi
-
-	if [ $closed_file != $opened_file ]; then
-	    echo "Sorry, unopened section in $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-	    exit 1
-	else
-	    opened_flag="0"
-	    full_cmdline="$full_cmdline$section_alias:$section_path,"
-	    section_alias=''
-	    section_path=''
-	fi
-
-	# Or maybe.. we don't have an open section
-	if [ $opened_flag = "1" ]; then
-	    echo "Sorry, unopened section in $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-	    exit 1    
-	fi
-    fi	    
-
-    if [[ $line = *path* ]]; then
-	if [ $opened_flag = "1" ]; then
-	    if [ -z $section_path ]; then
-		section_path=`echo $line | awk '{print $3}'`	
-	    else
-		echo "Sorry, you have two paths in one section in $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-		exit 1
-	    fi
-	else
-	    echo "Sorry, unopened section in $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-	    exit 0
-	fi
-    fi
-
-    if [[ $line = *alias* ]]; then
-	if [ $opened_flag = "1" ]; then
-	    if [ -z $section_alias ]; then
-		section_alias=`echo $line | awk '{print $3}'`
-	    else
-		echo "Sorry, you have two alias in one section in $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-		exit 1
-	    fi
-	else
-	    echo "Sorry, unopened section in $MONOXSP_conffile, please re-run mono-xsp-update.conf to fix it"
-	    exit 1
-	fi
-    fi
-
-	
-done
-
-echo $full_cmdline | sed 's/,$//'

Deleted: xsp/trunk/debian/mono-xsp-update.old
===================================================================
--- xsp/trunk/debian/mono-xsp-update.old	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp-update.old	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,181 +0,0 @@
-#!/bin/sh
-
-MONOXSP_confdir="/etc/xsp"
-MONOXSP_conffile=$MONOXSP_confdir/mono-xsp-hosts.conf
-MONOXSP_comments=no
-MONOXSP_restart=yes
-
-
-usage() {
-    cat <<EOF
-$0 - Generate the XSP Host Configuration
-  Options:
-     --help              - Show this message
-     --output file       - write the output to other file instead of ${MONOXSP_conffile}
-     --confdir directory - read the configuration files in a directory instead of ${MONOXSP_confdir}
-     --norestart         - Do not restart the daemon (by default, it will)
-EOF
-}
-
-#Read the commandline
-TEMP=$(getopt -n mono-xsp-update.conf \
-    -l output:,confdir:,norestart,help -- \
-    : "$@")
-
-
-eval set -- ${TEMP}
-while test "$1" != "--"; do
-    case $1 in
-	--help)
-	    usage
-	    exit 0
-	    ;;
-	--norestart)
-#	    shift
-	    MONOXSP_restart="no"
-	    ;;
-	--output)
-	    shift
-	    MONOXSP_conffile="$1"
-	    ;;
-	--confdir)
-	    shift
-	    MONOXSP_confdir="$1"
-	    ;;
-	esac
-    shift
-done
-shift
-
-# No non-options arguments 
-if [ "$#" -ne 0 ]; then
-    echo "Si aja"
-	echo "No non option arguments ($@) allowed" >&2
-	usage >&2
-	exit 1
-fi
-	    
-
-MONOXSP_confd=$MONOXSP_confdir/conf.d
-
-if [ ! -d ${MONOXSP_confd} ]; then
-    printf "$0: Error, no ${MONOXSP_confd} directory, exiting..\n" 1>&2 
-    exit 1 
-fi
-
-if [ ! -d `dirname $MONOXSP_conffile ` ]; then
-    printf "$0: Error, missing `dirname $MONOXSP_conffile` directory, exiting.\n" 1>&2 
-    exit 1
-fi
-
-if [ -e "$MONOXSP_conffile" ]; then
-    md5_orig=`md5sum $MONOXSP_conffile | awk '{print $1}'`
-else
-    md5_orig="0"
-fi
-
-# based on exim4-update.conf
-errormessage () {
-	# pretty-print messages of arbitrary length (no trailing newline)
-	echo "$*" | fold -s -w ${COLUMNS:-80} >&2;
-}
-
-restart_firsttime() {    
-    confd="${MONOXSP_confd}"
-    almost_empty="`ls -lA $confd | wc -l`"
-    if [ "$almost_empty" = "2" ] ; then
-	echo "Starting XSP WebServer: mono-xsp"
-	/etc/init.d/mono-xsp start > /dev/null 2>&1 || true		
-    fi    
-}
-
-restart_xsp() {
-    #Ok, include the default file
-    . "/etc/default/mono-xsp"
-    #MonoServer is running?
-    if [ -f /var/run/mono-xsp ]; then
-        # Are we really running xsp?
-	xsp_pid=`cat /var/run/mono-xsp`
-	xsp_ps=`ps -p $xsp_pid | wc -l`
- 	# Are there any process running by that pid?
-	if [ "$xsp_ps" != "1" ]; then
-	    if [ "$start_boot" = "true" ]; then
-		echo "Restarting XSP WebServer: mono-xsp"
-		/etc/init.d/mono-xsp restart > /dev/null 2>&1 || true
-	    fi
-	else
-	    restart_firsttime
-	fi
-    else
-	if [ "$start_boot" = "true" ]; then
-	    restart_firsttime 
-	fi
-    fi
-}
-
-# stolen from /etc/X11/Xsession
-run_parts () {
-  # until run-parts --noexec is implemented
-  if [ -z "$1" ]; then
-      errormessage "run_parts() called without an argument."
-  fi
-  if [ ! -d "$1" ]; then
-      errormessage "run_parts() called, but \"$1\" does not exist or is" \
-	  "not a directory."
-  fi
-  for F in $(ls $1); do
-      if expr "$F" : '[[:alnum:]_-]\+$' > /dev/null 2>&1; then
-	  if [ -f "$1/$F" ]; then
-	      echo "$1/$F"
-	  fi
-      fi
-  done
-}
-
-
-# based on exim4-update.conf
-cat_parts() {
-    if [ -z "$1" ]; then
-	errormessage "$0: internal cat_parts called without an argument"
-    fi
-    if [ ! -d "$1" ]; then
-	errormessage "$0: internal cat_parts called, but $1 does not exist or is not a directory."
-    fi
-    for file in `run_parts $1`; do
-	echo "#####################################################"
-	echo "### begin $file"
-	echo "#####################################################"
-	cat $file 
-	echo "#####################################################"
-	echo "### end $file" 
-	echo "#####################################################"
-	echo ""	
-    done
-}
-
-
-gentmpconf() {
-	touch ${MONOXSP_conffile}.tmp
-	chmod 640 ${MONOXSP_conffile}.tmp
-	[ -e ${MONOXSP_conffile} ] && chmod 640 ${MONOXSP_conffile}
-}
-
-#Ok, we start here..
-gentmpconf
-for vhosts in `ls ${MONOXSP_confd}`; do
-    cat_parts ${MONOXSP_confd}/$vhosts
-done > ${MONOXSP_conffile}.tmp
-
-mv -f ${MONOXSP_conffile}.tmp ${MONOXSP_conffile}
-chmod 644 ${MONOXSP_conffile}
-
-#re-check the md5
-md5_new=`md5sum $MONOXSP_conffile | awk '{print $1}'`
-
-#The orig and new.. are the same?
-if [ "$md5_new" != "$md5_orig" ]; then
-    #So, restart the server.. but.. should we?
-    if [ "${MONOXSP_restart}" = "yes" ]; then
-	restart_xsp
-    fi
-fi

Modified: xsp/trunk/debian/mono-xsp.config
===================================================================
--- xsp/trunk/debian/mono-xsp.config	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.config	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,10 +1,12 @@
-#!/bin/sh -e
+#!/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
@@ -29,8 +31,42 @@
     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

Modified: xsp/trunk/debian/mono-xsp.default
===================================================================
--- xsp/trunk/debian/mono-xsp.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,15 +1,13 @@
 # Defaults for mono-xsp, official version
 # sourced by /etc/init.d/mono-xsp
 
-# Should we start it?
-start_boot=true
-
 # 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

Modified: xsp/trunk/debian/mono-xsp.dirs
===================================================================
--- xsp/trunk/debian/mono-xsp.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,6 +1,4 @@
 usr/bin
 etc/xsp
 etc/xsp/conf.d
-usr/share/dotnet/bin
-usr/share/dotnet/xsp
 var/run/mono-xsp

Modified: xsp/trunk/debian/mono-xsp.docs
===================================================================
--- xsp/trunk/debian/mono-xsp.docs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.docs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,4 +1,3 @@
-debian/MAINTAINERS
 NEWS
 README
 AUTHORS

Deleted: xsp/trunk/debian/mono-xsp.files
===================================================================
--- xsp/trunk/debian/mono-xsp.files	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.files	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1 +0,0 @@
-usr/lib/mono/1.0/xsp.exe

Modified: xsp/trunk/debian/mono-xsp.init
===================================================================
--- xsp/trunk/debian/mono-xsp.init	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.init	2006-01-09 21:40:39 UTC (rev 2147)
@@ -37,31 +37,10 @@
 	fi
     fi
     
-    if [ $start_boot != true ]; then
-       echo "Set start_boot=true in /etc/default/mono-xsp to enable mono-xsp."
-       return 1
-    fi
-    
     return 0
 	
 }
 
-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
-    else
-	return 0
-    fi
-}
-
 case "$1" in
     start)
 	if should_start ; then
@@ -71,41 +50,23 @@
 		--quiet --pidfile /var/run/$NAME.pid \
 		--user $user --group $group --chuid $user \
 		--exec $DAEMON -- \
-		--port $port --appconfigdir $CFGDIR --nonstop
+		--port $port --address $address --appconfigdir \
+		$CFGDIR --nonstop
 	    echo "."
 	fi
 	;;
     stop)
-	if should_stop ; then
-	    echo -n "Stopping $DESC: $NAME "
-	    start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
-	    echo "."
-	fi
+        echo -n "Stopping $DESC: $NAME"
+        for i in $(ps aux | grep -v grep | grep 'xsp.exe' | cut -c 10-15)
+        do
+                kill $i >& /dev/null
+                echo -n " $i"
+        done
+        echo "."
 	;;
     restart|force-reload)
-	#
-	#	If the "reload" option is implemented, move the "force-reload"
-	#	option to the "reload" entry above. If not, "force-reload" is
-	#	just the same as "restart".
-	#
-	
-	if should_stop ; then
-	    echo "Restarting $DESC: $NAME"	
-	    start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
-	    sleep 1
-	fi
-	
-	if should_start ; then
-	    . $DEFAULT	
-	    echo "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 --appconfigdir $CFGDIR --nonstop
-	    echo "."
-	fi
+	$0 stop
+	$0 start
 	;;
     *)
 	N=/etc/init.d/$NAME

Added: xsp/trunk/debian/mono-xsp.install
===================================================================
--- xsp/trunk/debian/mono-xsp.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,9 @@
+debian/tmp/usr/bin/asp-state
+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/xsp/1.0/xsp.exe
+debian/tmp/usr/sbin/mono-xsp-update
+debian/tmp/usr/sbin/mono-xsp-admin

Deleted: xsp/trunk/debian/mono-xsp.links
===================================================================
--- xsp/trunk/debian/mono-xsp.links	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.links	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,3 +0,0 @@
-/usr/share/dotnet/xsp/mono-xsp-update.conf	/usr/sbin/mono-xsp-update.conf
-/usr/share/dotnet/xsp/mono-xsp-admin.conf	/usr/sbin/mono-xsp-admin.conf
-/usr/share/dotnet/xsp/mono-xsp-update.conf	/usr/sbin/update-mono-xsp.conf

Modified: xsp/trunk/debian/mono-xsp.manpages
===================================================================
--- xsp/trunk/debian/mono-xsp.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,6 +1,6 @@
-debian/mono-xsp-admin.conf.8
-debian/mono-xsp-update.conf.8
-debian/update-mono-xsp.conf.8
-doc/xsp.1
-doc/dbsessmgr.1
-doc/asp-state.1
+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

Modified: xsp/trunk/debian/mono-xsp.postinst
===================================================================
--- xsp/trunk/debian/mono-xsp.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 
 set -e
 
@@ -12,31 +12,24 @@
 CFGDIR=/etc/xsp
 VIRTUALFILE=$CFGDIR/debian.webapp
 
-activate_xsp() {
-    sed s/start_boot=false/start_boot=true/g $xsp_default > $tempfile
+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 -f $tempfile $xsp_default
-    rm -Rf $tempfile
-
+    rm -Rf $tempfile    
 }
 
-deactivate_xsp() {
-    sed s/start_boot=true/start_boot=false/g $xsp_default > $tempfile
+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 -f $tempfile $xsp_default
-    rm -Rf $tempfile
+    rm -Rf $tempfile    
 }
 
-enable_8080() {
-    sed s/port=8081/port=8080/g $xsp_default > $tempfile
-    cp -f $tempfile $xsp_default
-    rm -Rf $tempfile
-}
-
-disable_8080() {
-    sed s/port=8080/port=8081/g $xsp_default > $tempfile
-    cp -f $tempfile $xsp_default
-    rm -Rf $tempfile
-}
-
 should_start() {
     if [ -e $xsp_default ]; then
 	. $xsp_default
@@ -69,33 +62,25 @@
 
 case "$1" in
     configure)
+	# 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	    
-	    activate_xsp
 	    if [ -x "/etc/init.d/mono-xsp" ]; then
 		update-rc.d mono-xsp defaults > /dev/null 2>&1 || true
 	    fi
 	else
-	    autostart="false"
 	    update-rc.d -f mono-xsp remove > /dev/null 2>&1  || true
-	    deactivate_xsp
 	fi
 
-	#Check the port 8080, is it available?
-	port_8080=`netstat -nta | grep 8080 | wc -l`
-	
-	if [ $port_8080 = "1" ]; then
-	    disable_8080
-	    echo "XSP is going to use the port 8081"
-	else
-	    enable_8080
-	    echo "XSP is going to use the port 8080 (default)"
-	fi
+	# Configure the port and address
+	update_port
+	update_bind
 
-	#chmod dir
+	# chmod the working directories
 	chown -R www-data.www-data /var/run/mono-xsp
-	mono-xsp-update.conf
+	mono-xsp-update
 	if [ "$RET" = "true" ]; then
 	    if should_start -a $autostart = "true" ; then
 		echo "Starting $DESC: $NAME "

Modified: xsp/trunk/debian/mono-xsp.templates
===================================================================
--- xsp/trunk/debian/mono-xsp.templates	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp.templates	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,5 +1,20 @@
 Template: xsp/xsp_autostart
 Type: boolean
 Default: true
-_Description: Autostart XSP
- Would you like to autostart the XSP process when you start your computer?.
+_Description: Autostart XSP?
+ Would you like to autostart the XSP process when you start your
+ computer?
+
+Template: xsp/xsp_bind
+Type: string
+Default: 0.0.0.0
+_Description: Bind to which address?
+ What address would you like XSP to bind to? To bind to all of them,
+ enter 0.0.0.0.
+
+Template: xsp/xsp_port
+Type: string
+Default: 8081
+_Description: Bind to which port?
+ What port would you like the XSP process to bind to on start? Common
+ values are 80, 8080, or 8081.

Added: xsp/trunk/debian/mono-xsp2-admin.conf
===================================================================
--- xsp/trunk/debian/mono-xsp2-admin.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2-admin.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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;
+    }
+
+    
+
+
+

Added: xsp/trunk/debian/mono-xsp2-base.install
===================================================================
--- xsp/trunk/debian/mono-xsp2-base.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2-base.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/xsp/2.0/Mono.WebServer2.dll
+debian/tmp/usr/lib/pkgconfig/xsp-2.pc

Added: xsp/trunk/debian/mono-xsp2-reader.conf
===================================================================
--- xsp/trunk/debian/mono-xsp2-reader.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2-reader.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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;

Added: xsp/trunk/debian/mono-xsp2-update.conf
===================================================================
--- xsp/trunk/debian/mono-xsp2-update.conf	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2-update.conf	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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 at 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);
+}  

Added: xsp/trunk/debian/mono-xsp2.config
===================================================================
--- xsp/trunk/debian/mono-xsp2.config	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.config	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/trunk/debian/mono-xsp2.default
===================================================================
--- xsp/trunk/debian/mono-xsp2.default	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.default	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/trunk/debian/mono-xsp2.dirs
===================================================================
--- xsp/trunk/debian/mono-xsp2.dirs	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.dirs	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,4 @@
+usr/bin
+etc/xsp2
+etc/xsp2/conf.d
+var/run/mono-xsp2

Added: xsp/trunk/debian/mono-xsp2.init
===================================================================
--- xsp/trunk/debian/mono-xsp2.init	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.init	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,78 @@
+#! /bin/sh
+#
+# mono-xsp2 Start the XSP2 WebServer, that works just for ASP.NET scripts.
+#
+#		Written by Pablo Fischer <pablo at pablo.com.mx>.
+#		Modified for Debian GNU/Linux
+#
+# Version:	@(#)mono-xsp2 pablo at pablo.com.mx
+#
+
+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
+
+test -x $DAEMON || exit 0
+test -f $DEFAULT && . $DEFAULT	
+
+should_start() {
+    if [ ! -e $VIRTUALFILE -o `cat $VIRTUALFILE | wc -l` = "2" ]; then
+	echo "You have an incomplete $VIRTUALFILE"
+	echo "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
+	    echo "Sorry, there is already a xsp2 running, stop it first"
+	    return 1		
+	fi
+    fi
+    
+    return 0
+	
+}
+
+case "$1" in
+    start)
+	if should_start ; then
+	    echo -n "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
+	    echo "."
+	fi
+	;;
+    stop)
+        echo -n "Stopping $DESC: $NAME"
+        for i in $(ps aux | grep -v grep | grep 'xsp2.exe' | cut -c 10-15)
+        do
+                kill $i >& /dev/null
+                echo -n " $i"
+        done
+        echo "."
+	;;
+    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

Added: xsp/trunk/debian/mono-xsp2.install
===================================================================
--- xsp/trunk/debian/mono-xsp2.install	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.install	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,10 @@
+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/xsp/2.0/xsp2.exe
+debian/tmp/usr/sbin/mono-xsp2-update
+debian/tmp/usr/sbin/mono-xsp2-admin

Added: xsp/trunk/debian/mono-xsp2.manpages
===================================================================
--- xsp/trunk/debian/mono-xsp2.manpages	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.manpages	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/trunk/debian/mono-xsp2.postinst
===================================================================
--- xsp/trunk/debian/mono-xsp2.postinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.postinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,111 @@
+#! /bin/bash
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+tempfile=`/bin/tempfile`
+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
+    rm -Rf $tempfile    
+}
+
+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
+    rm -Rf $tempfile    
+}
+
+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)
+	# 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
+		echo "Starting $DESC: $NAME "
+		/etc/init.d/mono-xsp2 start > /dev/null 2>&1 || true
+	    fi
+	fi
+
+	rm -Rf $tempfile
+	;;
+    
+    *)
+	echo "postinst failed \`$1'" >&2
+	exit 0
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
+	    
+	    
+
+		
+
+    
+

Added: xsp/trunk/debian/mono-xsp2.postrm
===================================================================
--- xsp/trunk/debian/mono-xsp2.postrm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.postrm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,19 @@
+#!/bin/bash -e
+
+xsp2confd="/etc/xsp2/conf.d/"
+
+case "$1" in
+    purge)
+	rm -Rf "$xsp2confd/*"
+	#Purge debconf
+	. /usr/share/debconf/confmodule
+        db_purge
+	#update-rc.d
+	update-rc.d -f mono-xsp2 remove > /dev/null 2>&1
+	
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: xsp/trunk/debian/mono-xsp2.preinst
===================================================================
--- xsp/trunk/debian/mono-xsp2.preinst	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.preinst	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,32 @@
+#!/bin/sh -e
+
+NAME=mono-xsp2
+DESC="XSP WebServer"
+
+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
+   upgrade|install)
+	if should_stop ; then
+	    echo -n "Stopping $DESC: $NAME "
+	    /etc/init.d/mono-xsp2 stop > /dev/null 2>&1 || true
+	fi
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: xsp/trunk/debian/mono-xsp2.prerm
===================================================================
--- xsp/trunk/debian/mono-xsp2.prerm	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.prerm	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,36 @@
+#!/bin/sh -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
+	    echo "Stopping $DESC: $NAME "
+	    /etc/init.d/mono-xsp2 stop > /dev/null 2>&1 || true
+	fi
+	    ;;
+    esac
+
+#DEBHELPER#
+
+exit 0
+

Added: xsp/trunk/debian/mono-xsp2.templates
===================================================================
--- xsp/trunk/debian/mono-xsp2.templates	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/mono-xsp2.templates	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,20 @@
+Template: xsp2/xsp2_autostart
+Type: boolean
+Default: true
+_Description: Autostart XSP 2?
+ Would you like to autostart the XSP2 process when you start your
+ computer?
+
+Template: xsp2/xsp2_bind
+Type: string
+Default: 0.0.0.0
+_Description: Bind to which address?
+ What address would you like XSP 2 to bind to? To bind to all of them,
+ enter 0.0.0.0.
+
+Template: xsp2/xsp2_port
+Type: string
+Default: 8081
+_Description: Bind to which port?
+ What port would you like the XSP 2 process to bind to on start? Common
+ values are 80, 8080, or 8081.

Modified: xsp/trunk/debian/po/POTFILES.in
===================================================================
--- xsp/trunk/debian/po/POTFILES.in	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/po/POTFILES.in	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,2 +1,3 @@
 [type: gettext/rfc822deb] mono-apache-server.templates
 [type: gettext/rfc822deb] mono-xsp.templates
+[type: gettext/rfc822deb] mono-xsp2.templates

Added: xsp/trunk/debian/po/cs.po
===================================================================
--- xsp/trunk/debian/po/cs.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/po/cs.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,122 @@
+#
+#    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: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-06-18 08:01+0200\n"
+"Last-Translator: Miroslav Kure <kurem at debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech at 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:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Má mono-apache-server restartovat Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"mono-apache-server v Debianu obsahuje skript mono-server-update.conf, který "
+"slouží pro vytváření konfiguračního souboru pro Apache, aby mohl Apache "
+"spouštět aplikace v ASP.NET. Skript mono-server-update.conf 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:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Automatické spuštění XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+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?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Automatické spuštění XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr "Chcete XSP spouštět automaticky při startu počítače?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/trunk/debian/po/fr.po
===================================================================
--- xsp/trunk/debian/po/fr.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/po/fr.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,120 @@
+# 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: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-07-14 15:06+0200\n"
+"Last-Translator: Jean-Luc Coulon (f5ibh) <jean-luc.coulon@«anadoo.fr>\n"
+"Language-Team: French <debian-l10n-french at lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Faut-il laisser mono-apache-server redémarrer Apache ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"La version Debian de mono-apache-server comporte le script mono-server-"
+"update.conf 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:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Faut-il démarrer XSP automatiquement ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP process when you start your computer?"
+msgstr ""
+"Veuillez choisir si le processus XSP doit être lancé au démarrage du système."
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Faut-il démarrer XSP automatiquement ?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr ""
+"Veuillez choisir si le processus XSP doit être lancé au démarrage du système."
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/trunk/debian/po/sv.po
===================================================================
--- xsp/trunk/debian/po/sv.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/po/sv.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,119 @@
+# 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.
+# , fuzzy
+# 
+# 
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.0.5-2\n"
+"Report-Msgid-Bugs-To: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-09-29 19:17-0700\n"
+"Last-Translator: Daniel Nylander <po at danielnylander.se>\n"
+"Language-Team: Swedish <sv at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Låta mono-apache-servern starta om Apache?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"Debian-versionen av mono-apache-servern inkluderar en mono-server-update."
+"conf skript som skapar en konfigurationsfil för apache för att starta ASP."
+"NET-applikationer. 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:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Automatiskt starta XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP process when you start your computer?"
+msgstr "Vill du automatiskt starta XSP-processen när du startar din dator?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Automatiskt starta XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr "Vill du automatiskt starta XSP-processen när du startar din dator?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Modified: xsp/trunk/debian/po/templates.pot
===================================================================
--- xsp/trunk/debian/po/templates.pot	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/po/templates.pot	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,22 +1,14 @@
+# 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 at ADDRESS>, YEAR.
 #
-#    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.
-#
 #, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2004-08-21 22:01-0500\n"
+"Report-Msgid-Bugs-To: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -44,12 +36,69 @@
 #. Type: boolean
 #. Description
 #: ../mono-xsp.templates:4
-msgid "Autostart XSP"
+msgid "Autostart XSP?"
 msgstr ""
 
 #. Type: boolean
 #. Description
 #: ../mono-xsp.templates:4
 msgid ""
-"Would you like to autostart the XSP process when you start your computer?."
+"Would you like to autostart the XSP process when you start your computer?"
 msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+msgid "Autostart XSP 2?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/trunk/debian/po/vi.po
===================================================================
--- xsp/trunk/debian/po/vi.po	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/po/vi.po	2006-01-09 21:40:39 UTC (rev 2147)
@@ -0,0 +1,115 @@
+# Vietnamese translation for XSP.
+# Copyright © 2005 Free Software Foundation, Inc.
+# Clytie Siddall <clytie at riverland.net.au>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xsp 1.0.5-1\n"
+"Report-Msgid-Bugs-To: pkg-mono-group at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2005-10-05 15:45-0500\n"
+"PO-Revision-Date: 2005-08-21 21:03+0930\n"
+"Last-Translator: Clytie Siddall <clytie at riverland.net.au>\n"
+"Language-Team: Vietnamese <gnomevi-list at lists.sourceforge.net>\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.2.2\n"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid "Let mono-apache-server restart Apache?"
+msgstr "Cho phép trình mono-apache-server khởi chạy lại Apache không?"
+
+#. Type: boolean
+#. Description
+#: ../mono-apache-server.templates:4
+msgid ""
+"The debian version of mono-apache-server includes a mono-server-update.conf "
+"script that creates a configuration file for apache to start the ASP.NET "
+"applications, and mono-server-update.conf can restart apache if there's a "
+"new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you "
+"like to restart apache if there's a new mono-server-hosts.conf file?"
+msgstr ""
+"Phiên bản Debian của mono-apache-server (trình phục vụ Apache nguồn đơn) bao "
+"gồm một tập lệnh cấu hình « mono-server-update.conf » để Apache khởi chạy "
+"những ứng dụng loại ASP.NET, và tập lệnh này cũng có thể khởi chạy lại "
+"Apache nếu có tập tin cấu hình mới nào. Bạn có muốn khởi chạy lại Apache nếu "
+"có một tập tin cấu hình « mono-server-hosts.conf  » không?"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid "Autostart XSP?"
+msgstr "Tự động khởi chạy XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP process when you start your computer?"
+msgstr ""
+"Bạn có muốn tự động khởi chạy tiến trình XSP khi khởi động máy này không?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11 ../mono-xsp2.templates:11
+msgid "Bind to which address?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:11
+msgid ""
+"What address would you like XSP to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18 ../mono-xsp2.templates:18
+msgid "Bind to which port?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp.templates:18
+msgid ""
+"What port would you like the XSP process to bind to on start? Common values "
+"are 80, 8080, or 8081."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid "Autostart XSP 2?"
+msgstr "Tự động khởi chạy XSP"
+
+#. Type: boolean
+#. Description
+#: ../mono-xsp2.templates:4
+#, fuzzy
+msgid ""
+"Would you like to autostart the XSP2 process when you start your computer?"
+msgstr ""
+"Bạn có muốn tự động khởi chạy tiến trình XSP khi khởi động máy này không?"
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:11
+msgid ""
+"What address would you like XSP 2 to bind to? To bind to all of them, enter "
+"0.0.0.0."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../mono-xsp2.templates:18
+msgid ""
+"What port would you like the XSP 2 process to bind to on start? Common "
+"values are 80, 8080, or 8081."
+msgstr ""

Added: xsp/trunk/debian/postinst-monoxsp
===================================================================
--- xsp/trunk/debian/postinst-monoxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/postinst-monoxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/trunk/debian/postinst-monoxsp2
===================================================================
--- xsp/trunk/debian/postinst-monoxsp2	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/postinst-monoxsp2	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Added: xsp/trunk/debian/postrm-monoxsp
===================================================================
--- xsp/trunk/debian/postrm-monoxsp	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/postrm-monoxsp	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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
+

Added: xsp/trunk/debian/postrm-monoxsp2
===================================================================
--- xsp/trunk/debian/postrm-monoxsp2	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/postrm-monoxsp2	2006-01-09 21:40:39 UTC (rev 2147)
@@ -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

Modified: xsp/trunk/debian/rules
===================================================================
--- xsp/trunk/debian/rules	2006-01-02 15:07:09 UTC (rev 2146)
+++ xsp/trunk/debian/rules	2006-01-09 21:40:39 UTC (rev 2147)
@@ -1,11 +1,11 @@
 #!/usr/bin/make -f
 
-export DH_COMPAT=4
+#export DH_COMPAT=4
 
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-export MONO_SHARED_DIR=$(CURDIR)/.wabi
+export MONO_SHARED_DIR=$(CURDIR)
 
 configure: configure-stamp templates.pot
 
@@ -22,13 +22,33 @@
 	# 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.conf.8
-	pod2man --section=8 $(CURDIR)/debian/mono-xsp-admin.conf > $(CURDIR)/debian/mono-xsp-admin.conf.8
-	pod2man --section=8 $(CURDIR)/debian/mono-server-update.conf > $(CURDIR)/debian/mono-server-update.conf.8
-	pod2man --section=8 $(CURDIR)/debian/mono-xsp-update.conf > $(CURDIR)/debian/mono-xsp-update.conf.8
+	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.conf.8 $(CURDIR)/debian/update-mono-server.conf.8
-	cp $(CURDIR)/debian/mono-xsp-update.conf.8 $(CURDIR)/debian/update-mono-xsp.conf.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
 
@@ -38,86 +58,87 @@
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp config.status config.log
 	# Add here commands to clean up after the build process.
+	rm -f config.log
+	# Clean up compiled files
+	-$(MAKE) clean
+	-$(MAKE) distclean
+	rm -rf server
 
-	rm -f \
-	server/mod-mono-server.exe server/mod-mono-server.exe.mdb \
-	server/xsp.exe server/xsp.exe.mdb \
-	test/ServiceClient.exe \
-	test/codebehind1.dll test/extensions.dll \
-	test/tabcontrol.dll test/tabcontrol2.dll \
-	test/typedesc.dll \
-	tools/asp_state/asp-state.exe tools/asp_state/asp-state.exe.mdb \
-	tools/dbsessmgr/dbsessmgr.exe tools/dbsessmgr/dbsessmgr.exe.mdb
-
-	-$(MAKE) clean
+	# Moved below the clean so the configured-stuff cleans properly
+	rm -f build-stamp configure-stamp config.status
 	#use updated config.{sub|guess} files
 #	-test -r /usr/share/misc/config.sub && \
 #	cp -f /usr/share/misc/config.sub config/config.sub
 #	-test -r /usr/share/misc/config.guess && \
 #	cp -f /usr/share/misc/config.guess config/config.guess
-	rm -rf $$MONO_SHARED_DIR
+	rm -rf $$MONO_SHARED_DIR/.wapi
 	dh_clean 
-	rm -rf $(CURDIR)/debian/*.8
+	rm -f $(CURDIR)/debian/*.8
+	rm -f $(CURDIR)/debian/*.1
+	rm -rf $(CURDIR)/debian/tmp/
 
 install: build
 	dh_testdir
 	dh_testroot
 	dh_clean -k 
 	dh_installdirs
-	cd server && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
-	dh_movefiles
-	#move again... (1.0.5 bug fix)
-	mv $(CURDIR)/debian/mono-xsp/usr/lib/mono/1.0/xsp.exe $(CURDIR)/debian/mono-xsp/usr/bin
-	mv $(CURDIR)/debian/mono-apache-server/usr/lib/mono/1.0/mod-mono-server.exe $(CURDIR)/debian/mono-apache-server/usr/bin
-	#We need some missing tools
-		#Some tools missing
-	for x in `find tools/ -name '*.exe'` ; \
-		do if [ ! -f $(CURDIR)/debian/mono-xsp/usr/share/dotnet/xsp/`basename  $${x%.exe}` ]; then \
-			cp  $${x} $(CURDIR)/debian/mono-xsp/usr/bin/ ; \
-		fi; done
-	# We should follow the MonoConventions
-	# First, for mono-xsp
-	for x in debian/mono-xsp/usr/bin/*.exe ; do ln -sf cli-wrapper $${x%.exe} ; done
-	mv debian/mono-xsp/usr/bin/*.exe debian/mono-xsp/usr/share/dotnet/bin
-	# Now, for mono-server
-	for x in debian/mono-apache-server/usr/bin/*.exe ; do ln -sf cli-wrapper $${x%.exe} ; done
-	mv debian/mono-apache-server/usr/bin/*.exe debian/mono-apache-server/usr/share/dotnet/bin	
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
 
+#	Fix permissions
+	find debian/ -type f -name "*.dll" -or -name "*.mdb" -or -name "*.cs" \
+		| xargs chmod -x
+	find debian/ -type f -name "*.exe" | xargs chmod +x
+	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
+	mv debian/tmp/usr/share/asp.net2-demos/index2.aspx \
+		debian/tmp/usr/share/asp.net2-demos/index.aspx
+
+	# 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
+
+#	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-arch: build install
 	dh_testdir
 	dh_testroot
-#	dh_movefiles 
 	dh_installchangelogs ChangeLog
 	dh_installdocs
 	dh_installexamples
 	dh_installdirs
-	dh_install 
-	cd test && cp ServiceClient.exe *.aspx *.ascx *.asmx *.ashx *.config *.asax *.xml *.png *.inc *.xsl *.cs $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp
-#	cp -f debian/index.aspx $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/
-	cd test && cp *.dll $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/bin
-	rm -Rf $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/monodoc.ashx
-
-	chmod -x $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/bin/*
-	chmod -x $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/*
-	chmod +x $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/bin
-
-
-	cp $(CURDIR)/debian/mono-xsp-update.conf debian/mono-xsp/usr/share/dotnet/xsp/
-	cp $(CURDIR)/debian/mono-xsp-admin.conf debian/mono-xsp/usr/share/dotnet/xsp/
-
-	cp $(CURDIR)/debian/mono-server-admin.conf $(CURDIR)/debian/mono-apache-server/usr/share/dotnet/monoserver/
-	cp $(CURDIR)/debian/mono-server-update.conf $(CURDIR)/debian/mono-apache-server/usr/share/dotnet/monoserver/
-
-	chmod +x $(CURDIR)/debian/mono-apache-server/usr/share/dotnet/monoserver/*.conf
-	chmod +x $(CURDIR)/debian/mono-xsp/usr/share/dotnet/xsp/*.conf	
-	#Patch for index.aspx	
-#	perl -pe 's,mono.png,/samples/mono.png,; \
-#	          s,href=\\"\{0\}\\">,href=\\"/samples/\{0\}\\">,' -i $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/asp/index.aspx
-
-
-#	dh_install
+	dh_install
 #	dh_installmenu
 	dh_installdebconf	
 #	dh_installlogrotate
@@ -127,8 +148,12 @@
 	dh_installinit --noscripts
 #	dh_installcron
 #	dh_installinfo
-	dh_installxsp
-	dh_installman	 
+
+#	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 -V 1,2
+
+	dh_installman
 	dh_link
 	dh_strip
 	dh_compress
@@ -138,6 +163,7 @@
 #	dh_makeshlibs
 	dh_installdeb
 	dh_shlibdeps
+#	dh_makeclilibs
 	dh_clideps -d
 	dh_gencontrol
 	dh_md5sums




More information about the Pkg-mono-svn-commits mailing list