Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=bouleetbiltesting.git;a=commitdiff;h=ae4a17fbee79f3e4cd408d7f1a96c67f45ad0bdf
commit ae4a17fbee79f3e4cd408d7f1a96c67f45ad0bdf Author: bouleetbil <bouleet...@frogdev.info> Date: Mon Oct 12 12:19:50 2009 +0200 xsp-2.4.2-1-i686 *new package diff --git a/source/network-extra/xsp/FrugalBuild b/source/network-extra/xsp/FrugalBuild new file mode 100644 index 0000000..cfc8529 --- /dev/null +++ b/source/network-extra/xsp/FrugalBuild @@ -0,0 +1,29 @@ +# Compiling Time: 0.14 SBU +# Maintainer: bouleetbil <bouleet...@frogdev.info> + +pkgname=xsp +pkgver=2.4.2 +pkgrel=1 +pkgdesc="XSP is a small web server that can host ASP.NET pages" +url="http://www.go-mono.com/" +depends=('sqlite3' 'mono') +groups=('network-extra') +archs=('i686') +Finclude mono +up2date="Flasttar http://ftp.novell.com/pub/mono/sources-stable/" +source=(http://www.go-mono.com/sources/$pkgname/$pkgname-$pkgver.tar.bz2 \ + rc.xsp xsp.sysconfig) +sha1sums=('92ca7fe25bd6e454e241a35efcb1dfb729898c86' \ + 'a2009fcdd7edab2e82fe07967af4469e33a799e7' \ + '15553435ef80ab111ff5ffb84c39375f9a3fb229') + +build() { + Fmonoexport + Fbuild + Fmkdir etc/sysconfig + Ffile xsp.sysconfig /etc/sysconfig/xsp + Frcd2 xsp + Fmonocleanup +} + +# optimization OK diff --git a/source/network-extra/xsp/rc.xsp b/source/network-extra/xsp/rc.xsp new file mode 100644 index 0000000..3aa4bc6 --- /dev/null +++ b/source/network-extra/xsp/rc.xsp @@ -0,0 +1,42 @@ +#!/bin/bash + +# (c) 2009 bouleetbil <bouleet...@frogdev.info> +# rc.xsp for Frugalware +# distributed under GPL License + +# chkconfig: 2345 99 01 +# description: small web server that can host ASP.NET pages + +source /lib/initscripts/functions +TEXTDOMAIN=xsp +TEXTDOMAINDIR=/lib/initscripts/messages + +actions=(restart start stop status) +daemon=$"Small web server ASP.NET" +pid="pidof /usr/bin/mono /usr/lib/mono/2.0/xsp 2> /dev/null" + +[ -e /etc/sysconfig/xsp ] && . /etc/sysconfig/xsp + +rc_start() +{ + start_msg + if [[ "$(eval ${pid})" == "" ]]; then + xsp2 --port ${MonoServerPort} --nonstop &> /dev/null & + ok $? + else + ok 999 + fi +} + +rc_stop() +{ + stop_msg + if [ "$(eval ${pid})" != "" ]; then + kill $(eval ${pid}) + ok $? + else + ok 999 + fi +} + +rc_exec $1 diff --git a/source/network-extra/xsp/xsp.sysconfig b/source/network-extra/xsp/xsp.sysconfig new file mode 100644 index 0000000..ab07514 --- /dev/null +++ b/source/network-extra/xsp/xsp.sysconfig @@ -0,0 +1,4 @@ +# Configuration for xsp + +MonoServerPort=8080 + _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git