# HG changeset patch # User Christophe Lincoln # Date 1244755467 -7200 # Node ID 33393d6644ce614c46eed8c5f1315210e3992ad6 # Parent 39784a334c7cce4f11f9318691675a49e1399396 Add OpenERP server diff -r 39784a334c7c -r 33393d6644ce openerp-server/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openerp-server/receipt Thu Jun 11 23:24:27 2009 +0200 @@ -0,0 +1,49 @@ +# SliTaz package receipt. + +PACKAGE="openerp-server" +VERSION="5.0.1-0" +CATEGORY="office" +SHORT_DESC="Open source ERP server files." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://openerp.com/" +WGET_URL="$WEB_SITE/download/stable/source/$TARBALL" +DEPENDS="python postgresql libxml2-python libxslt psycopg2 reportlab \ +pyparsing graphviz libgcrypt pil python-lxml matplotlib pyxml pychart \ +pydot egenix-mx-base" +BUILD_DEPENDS="libxml2-python psycopg2 libxml2 libxslt reportlab pychart \ +pydot python-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + python setup.py install --root=$PWD/_pkg +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr $fs/var/run/openerp $fs/var/log/openerp + chmod 777 $fs/var/run/openerp $fs/var/log/openerp + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + cp -a stuff/* $fs + sed -i 's|cd .*_pkg|cd |' $fs/usr/bin/openerp-server +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + #chroot $1/ adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp + [ -z "$1" ] && /etc/init.d/$PACKAGE start + cat < $LOGFILE + fi ;; + stop) + if [ ! -f "$PIDFILE" ]; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + rm -f $PIDFILE + status + sleep 2 ;; + restart) + if ! active_pidfile $PIDFILE python ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + rm -f $PIDFILE 2> /dev/null + sleep 2 + $DAEMON $OPTIONS & + status + sleep 2 ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 ;; +esac + +exit 0 diff -r 39784a334c7c -r 33393d6644ce openerp-server/stuff/etc/openerp/openerp-server.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openerp-server/stuff/etc/openerp/openerp-server.cfg Thu Jun 11 23:24:27 2009 +0200 @@ -0,0 +1,18 @@ +[options] +without_demo = False +upgrade = False +verbose = False +xmlrpc = True +stop_after_init = False +root_path = /usr/lib/python2.5/site-packages/openerp-server +addons_path = /usr/lib/python2.5/site-packages/openerp-server/addons +soap = False +translate_modules = ['all'] +netrpc = True +demo = {} +interface = +db_user = postgres +db_password = False +db_host = False +db_port = False +reportgz = False