You are not logged in.

#1 2004-02-14 02:43:25

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

xsp, gtk-sharp, libgda, and monodoc

Hi,

using one of the mono-packages from incoming the packages listed in the
subject can be build. All this requires the latest pacman(>2.7.3)

monodoc:
ist a browser for the mono(C#) class library. It build on to of gtk-sharp.
Useful for developer.

# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=monodoc
pkgver=0.10
pkgrel=1
pkgdesc="The mono documentation"
depends=('gtk-sharp' 'mono')
source=(http://www.go-mono.com/archive/$pkgname-$pkgver.tar.gz)
url="http://www.go-mono.com"

build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
}

libgda:
is a library which provides acces to several databases. It's an data
abstraction layer. I compiled support for sqlite, mysql, postgresql, libxml
and LDAP. Therefore, it does depend on them.

# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=libgda
pkgver=1.1.0
pkgrel=1
pkgdesc="data abstraction layer to manage stored datas in db's from non-Gnome applications"
depends=('glib2' 'libxslt' 'mysql' 'postgresql' 'sqlite' 'popt' 'openldap')
url="http://www.gnome-db.org"
source=(ftp://ftp.gnome-db.org/pub/gnome-db/sources/v$pkgver/$pkgname-$pkgver.tar.gz)

build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr --sysconfdir=/etc --disable-gtk-doc
    make || return 1
    make DESTDIR=$startdir/pkg install
}

gtk-sharp:
Is an C# Wrapper for gtk2. It depends on libgda and mono and gtk2.

# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=gtk-sharp
pkgver=0.15
pkgrel=1
pkgdesc="The C#-bindings for the gtk2"
depends=('mono' 'gtkhtml' 'librsvg' 'libgda')
source=(http://cesnet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
url="gtk-sharp.sourceforge.net"

build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
}

mod_mono:
is an apache2 module which connects apache to xsp. This package provides a
mono.conf file. To make it work you will have to include it in your
httpd.conf:

Include /etc/httpd/conf/mono.conf

when you wanna use it make sure you run mono AND apache. The mono
daemon is provided by xsp.

# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=mod_mono
pkgver=0.7
pkgrel=1
pkgdesc="The mono module to make mono running on top of apache"
depends=('glib2' 'apache' 'xsp')
source=(http://www.go-mono.com/archive/$pkgname-$pkgver.tar.gz)
url="http://www.go-mono.com"

build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install

    # lets copy the neccessary httpd.conf tweaks in a file which can
    # be easily included in httpd.conf
    mkdir -p $startdir/pkg/etc/httpd/conf
    cat > $startdir/pkg/etc/httpd/conf/mono.conf << 'MOD_MONO_CONF_FILE'
# Mono Configuration for Apache
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
LoadModule mono_module lib/apache/mod_mono.so
MonoUnixSocket /tmp/mod_mono_server
Alias /mono "/home/httpd/html/xsp"
MOD_MONO_CONF_FILE
}

xsp:
Is a simple Web-Server which provides ASP.NET support. You can use it
standalone or on top of apache2. I added a daemon for mod_mono_server,
which is the interconnection between mod_mono and apache2. The
mod_mono_server executable is also provided by this package, not mod_mono itself which might be assumed.

# Contributor: Tobias Kieslich <tobias@justdreams.de>

pkgname=xsp
pkgver=0.9
pkgrel=1
pkgdesc="A simple weberver based on mono - provides ASP support"
depends=('mono')
source=(http://www.go-mono.com/archive/$pkgname-$pkgver.tar.gz mono)
url="http://www.go-mono.com"

build() {
    cd $startdir/src/$pkgname-$pkgver
    #./configure --help
    ./configure --prefix=/usr --sysconfdir=/etc
    make || return 1
    make DESTDIR=$startdir/pkg install
    
    # install a deamon
    install -D -m755 ../mono $startdir/pkg/etc/rc.d/mono
    
    # also install the testset of aspx files and change the owhnership to apache ones
    mkdir -p $startdir/pkg/home/httpd/html
    cp -R $startdir/src/$pkgname-$pkgver/test $startdir/pkg/home/httpd/html/$pkgname
    cd $startdir/pkg/home/httpd/html
    chown -R nobody.nobody $pkgname
}

the daemon

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID mono /usr/bin/mod_mono_server`
case "$1" in
  start)
        stat_busy "Starting Mod_Mono_Server Daemon"
    if [ -z "$PID" ]; then 
             mono /usr/bin/mod-mono-server.exe --nonstop --root /home/httpd/html/xsp --applications /mono:. > /dev/null &
             sleep 1
             chmod 777 /tmp/mod_mono_server
    fi
    if [ ! -z "$PID" -o $? -gt 0 ]; then
      stat_fail
    else
      add_daemon mono
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Mod_Mono_Server Daemon"
    [ ! -z "$PID" ]  && kill $PID &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
            rm -f /tmp/mod_mono_server
      rm_daemon mono
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac

First of all this is modelled to work on archlinux' out of the box apache
configuration. Any modified configuration will result in altered config
files and you also have to change the setting in the daemon.

How to use it?
install the packages, now you will have to include the above mentioned line
to your httpd.conf
then run /etc/rc.d/mono start and /etc/rc.d/httpd start
navigate your browser to http://localhost/mono

Have fun, bye
neri

Offline

#2 2004-10-27 19:54:38

Cobra
Member
Registered: 2004-07-30
Posts: 109

Re: xsp, gtk-sharp, libgda, and monodoc

I get an error compiling the package

error CS0006: Cannot find assembly `NUnit.Framework.dll'
Log: 

Compilation failed: 1 error(s), 0 warnings
make[4]: *** [NUnitAsp.dll] Error 1
make[4]: Leaving directory `/var/abs/local/xsp/src/xsp-0.9/tools/nunitasp/source/NUnitAsp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/abs/local/xsp/src/xsp-0.9/tools/nunitasp/source'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/abs/local/xsp/src/xsp-0.9/tools/nunitasp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/xsp/src/xsp-0.9/tools'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.  Aborting...

Offline

#3 2004-10-27 21:06:15

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: xsp, gtk-sharp, libgda, and monodoc

Cobra wrote:

I get an error compiling the package

error CS0006: Cannot find assembly `NUnit.Framework.dll'

Things have changed a lot in the meantime, since mono is still under heavy
development. First of all, all mono stuff shall be hosted in /opt/mono now.
Additionally, I have some updated PKGBUILDs laying on my mainbox and
wanted them to put them into extra. I will try to do so within the next two
weeks I hope.
Also, I saw another xsp in TUR but didn't tested it so far. Maybe you have
more luck with that, since it might be newer (currently version is 1.0.2 iirc)

-neri

Offline

#4 2004-10-28 15:08:18

Cobra
Member
Registered: 2004-07-30
Posts: 109

Re: xsp, gtk-sharp, libgda, and monodoc

I tried that version, and it gives an error about remapping and another error about not finding the mono_server.exe...

I'll just wait untill you put them online then big_smile
please hurry! tongue

Offline

Board footer

Powered by FluxBB