wok rev 3380

Add: OpenERP Web client
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jun 12 02:26:28 2009 +0200 (2009-06-12)
parents 67863a5bedd0
children c4bb1a3a1735
files openerp-web/receipt openerp-web/stuff/etc/init.d/openerp-web openerp-web/stuff/openerp-web.desktop openerp-web/stuff/openerp-web.png
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/openerp-web/receipt	Fri Jun 12 02:26:28 2009 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="openerp-web"
     1.7 +VERSION="5.0.1-0"
     1.8 +CATEGORY="office"
     1.9 +SHORT_DESC="Open source ERP web client."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://openerp.com/"
    1.13 +WGET_URL="$WEB_SITE/download/stable/source/$TARBALL"
    1.14 +DEPENDS="matplotlib setuptools python-turbogears pil python pyxml pyparsing"
    1.15 +BUILD_DEPENDS="setuptools python-dev python pyxml python-turbogears"
    1.16 +CONFIG_FILES="/etc/openerp/openerp-web.conf"
    1.17 +# http://doc.openerp.com/install/linux/web/index.html
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src
    1.23 +	python setup.py install --root=$PWD/_pkg
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr $fs/etc/openerp $fs/usr/share/applications
    1.30 +	cp -a stuff/etc $fs/
    1.31 +	cp -a $_pkg/usr/config/default.cfg $fs/etc/openerp/openerp-web.conf
    1.32 +	cp -a $_pkg/usr/bin $fs/usr
    1.33 +	cp -a $_pkg/usr/lib $fs/usr
    1.34 +}
    1.35 +
    1.36 +# Pre and post install commands for Tazpkg.
    1.37 +post_install()
    1.38 +{
    1.39 +	#sed -i "s/^RUN_DAEMONS=\"/RUN_DAEMONS=\"openerp-web /" $1/etc/rcS.conf 
    1.40 +	[ -z "$1" ] && /etc/init.d/openerp-web start
    1.41 +	cat <<EOF
    1.42 +----
    1.43 +To start $PACKAGE server you can run :
    1.44 +
    1.45 +    /etc/init.d/openerp-web start
    1.46 +
    1.47 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
    1.48 +----
    1.49 +EOF
    1.50 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/openerp-web/stuff/etc/init.d/openerp-web	Fri Jun 12 02:26:28 2009 +0200
     2.3 @@ -0,0 +1,55 @@
     2.4 +#!/bin/sh
     2.5 +# /etc/init.d/openerp-web : Start, stop and restart openerp-web server on SliTaz, at 
     2.6 +# boot time or with the command line.
     2.7 +#
     2.8 +# To start openerp-web server at boot time, just put etiny in the $RUN_DAEMONS
     2.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
    2.10 +#
    2.11 +. /etc/init.d/rc.functions
    2.12 +. /etc/daemons.conf
    2.13 +
    2.14 +NAME=openerp-web
    2.15 +DESC="openerp-web server"
    2.16 +DAEMON=/usr/bin/start-openerp-web
    2.17 +OPTIONS=$OPENERP_WEB_OPTIONS
    2.18 +PIDFILE=/var/run/openerp-web.pid
    2.19 +[ -n "$OPTIONS" ] || OPTIONS="-c /etc/openerp/openerp-web.conf"
    2.20 +
    2.21 +case "$1" in
    2.22 +	start)
    2.23 +		if [ -f $PIDFILE ] ; then
    2.24 +			echo "$NAME already running."
    2.25 +			exit 1
    2.26 +		fi
    2.27 +		echo -n "Starting $DESC: $NAME... "
    2.28 +		$DAEMON $OPTIONS &
    2.29 +		status
    2.30 +		sleep 2 ;;
    2.31 +	stop)
    2.32 +		if [ ! -f $PIDFILE ] ; then
    2.33 +			echo "$NAME is not running."
    2.34 +			exit 1
    2.35 +		fi
    2.36 +		echo -n "Stopping $DESC: $NAME... "
    2.37 +		kill `cat $PIDFILE`
    2.38 +		status
    2.39 +		sleep 2 ;;
    2.40 +	restart)
    2.41 +		if [ ! -f $PIDFILE ] ; then
    2.42 +			echo "$NAME is not running."
    2.43 +			exit 1
    2.44 +		fi
    2.45 +		echo -n "Restarting $DESC: $NAME... "
    2.46 +		kill `cat $PIDFILE`
    2.47 +		sleep 2
    2.48 +		$DAEMON $OPTIONS &
    2.49 +		status
    2.50 +		sleep 2 ;;
    2.51 +	*)
    2.52 +		echo ""
    2.53 +		echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    2.54 +		echo ""
    2.55 +		exit 1 ;;
    2.56 +esac
    2.57 +
    2.58 +exit 0
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/openerp-web/stuff/openerp-web.desktop	Fri Jun 12 02:26:28 2009 +0200
     3.3 @@ -0,0 +1,7 @@
     3.4 +[Desktop Entry]
     3.5 +Encoding=UTF-8
     3.6 +Name=OpenERP Web Client
     3.7 +Icon=openerp-web
     3.8 +Exec=firefox http://localhost:8080/
     3.9 +Type=Application
    3.10 +Categories=Office;
     4.1 Binary file openerp-web/stuff/openerp-web.png has changed