SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "openerp-server"

# 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 python-reportlab \
python-pyparsing graphviz libgcrypt python-pil python-lxml matplotlib \
python-pyxml python-pychart python-pydot egenix-mx-base libxslt-python"
BUILD_DEPENDS="libxml2-python psycopg2 libxml2 libxslt-python python-reportlab \
python-pychart python-pydot python-dev"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    python setup.py install --root=$DESTDIR
}

# 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/etc $fs
    cp -a $stuff/openerp-server $fs/usr/bin
}

# 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 <<EOF
----
To start $PACKAGE server you can run :

    /etc/init.d/$PACKAGE start

Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
----
EOF
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)