[Pkg-mono-svn-commits] revision 123
Eduard Bloch
blade@quantz.debian.org
Fri, 23 Jan 2004 01:49:46 +0100
Repository changes in pkg-mono:
By: blade
Date: Fri, 23 Jan 2004 01:49:46 +0100
Modified:
A xsp/trunk/debian/asp.net-examples-server
A xsp/trunk/debian/asp.net-examples.dirs
A xsp/trunk/debian/asp.net-examples.menu
U xsp/trunk/debian/control
U xsp/trunk/debian/rules
A xsp/trunk/debian/web.config
Log:
Package update, fixes, asp.net examples package.
TODO: write init script AND default file to emulate default Apache paths
(/var/www, /usr/share/doc mapping!!), see --help
Added: xsp/trunk/debian/asp.net-examples-server
===================================================================
--- xsp/trunk/debian/asp.net-examples-server 2004-01-22 22:53:30 UTC (rev 122)
+++ xsp/trunk/debian/asp.net-examples-server 2004-01-23 00:49:46 UTC (rev 123)
@@ -0,0 +1,18 @@
+#!/bin/bash
+export LANG=C
+# FIXME: write alternative for mod_mono
+while test -z "$port" ; do
+ port=$RANDOM
+ if netstat -a -n | grep -q :$port ; then
+ unset port
+ fi
+done
+
+clear
+echo -e "\n\nThe XSP demo web server is starting now. To view the pages, your\n"
+echo -e "web browser will open http://localhost:$port/ now.\n\n"
+
+(sleep 5 ; sensible-browser http://localhost:$port/ ) &
+
+export MONO_PATH=/usr/share/asp.net-demos/aspx/dll:$MONO_PATH
+exec cli /usr/bin/xsp.exe --root /usr/share/asp.net-demos/asp --port $port
Added: xsp/trunk/debian/asp.net-examples.dirs
===================================================================
--- xsp/trunk/debian/asp.net-examples.dirs 2004-01-22 22:53:30 UTC (rev 122)
+++ xsp/trunk/debian/asp.net-examples.dirs 2004-01-23 00:49:46 UTC (rev 123)
@@ -0,0 +1,3 @@
+usr/bin
+usr/share/asp.net-demos/asp
+usr/share/asp.net-demos/dll
Added: xsp/trunk/debian/asp.net-examples.menu
===================================================================
--- xsp/trunk/debian/asp.net-examples.menu 2004-01-22 22:53:30 UTC (rev 122)
+++ xsp/trunk/debian/asp.net-examples.menu 2004-01-23 00:49:46 UTC (rev 123)
@@ -0,0 +1,2 @@
+?package(asp.net-examples-server):needs=text section=Apps/Programming \
+ title="ASP.NET demo pages" command="/usr/bin/asp.net-examples-server"
Modified: xsp/trunk/debian/control
===================================================================
--- xsp/trunk/debian/control 2004-01-22 22:53:30 UTC (rev 122)
+++ xsp/trunk/debian/control 2004-01-23 00:49:46 UTC (rev 123)
@@ -2,13 +2,22 @@
Section: web
Priority: optional
Maintainer: Debian Mono group <pkg-mono-group@lists.alioth.debian.org>
-Build-Depends: debhelper (>= 4.0.0), mono-mcs | c-sharp-compiler
+Build-Depends: debhelper (>= 3), mono-mcs | c-sharp-compiler
Standards-Version: 3.6.0
Package: mono-xsp
Architecture: all
Depends: ${shlibs:Depends}, mono-jit (>= 0.28)
-Suggests: libapache-mod-mono (>= 0.5)
-Description: A 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.
+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.
+ .
+ The package also includes the mod-mono-server applications that works
+ as backend for mod_mono_unix.
+
+Package: asp.net-examples
+Architecture: all
+Depends: ${shlibs:Depends}, mono-xsp (= ${Source-Version}) | libapache-mod-mono
+Description: demo pages for ASP.NET infrastructure
+ Sample set of .aspx pages to test the XSP server or the mod_mono Apache
+ module.
Modified: xsp/trunk/debian/rules
===================================================================
--- xsp/trunk/debian/rules 2004-01-22 22:53:30 UTC (rev 122)
+++ xsp/trunk/debian/rules 2004-01-23 00:49:46 UTC (rev 123)
@@ -2,8 +2,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export DH_COMPAT=3
-
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
@@ -52,9 +52,9 @@
dh_clean -k
dh_installdirs
- # Add here commands to install the package into debian/xsp.
- cd server && $(MAKE) install DESTDIR=$(CURDIR)/debian/xsp
- # only the server, the asp tool install is broken
+ cd server && $(MAKE) install DESTDIR=$(CURDIR)/debian/mono-xsp
+ /bin/echo -e "#!/bin/sh\nexec /usr/bin/cli /usr/bin/xsp.exe" ' "$$@"' > $(CURDIR)/debian/mono-xsp/usr/bin/xsp
+ # only the server, the asp tool install is broken
#$(MAKE) install DESTDIR=$(CURDIR)/debian/xsp
binary-arch: build install
@@ -66,8 +66,15 @@
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
+ dh_installdirs
+ 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 debian/web.config $(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/dll
+ chmod -x $(CURDIR)/debian/asp.net-examples/usr/share/asp.net-demos/*/*
+ install -m755 debian/asp.net-examples-server $(CURDIR)/debian/asp.net-examples/usr/bin
+ #cd test && cp *.dll $(CURDIR)/debian/asp.net-examples/usr/lib
# dh_install
-# dh_installmenu
+ dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
@@ -77,7 +84,6 @@
# dh_installcron
# dh_installinfo
dh_installman doc/xsp.1
- dh_installman
dh_link
dh_strip
dh_compress
Added: xsp/trunk/debian/web.config
===================================================================
--- xsp/trunk/debian/web.config 2004-01-22 22:53:30 UTC (rev 122)
+++ xsp/trunk/debian/web.config 2004-01-23 00:49:46 UTC (rev 123)
@@ -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>
+