wok-next view openerp-server/receipt @ rev 21022

Combine rox-filer
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 03 04:01:01 2018 +0200 (2018-11-03)
parents 019246ad2f42
children d457c4e37c1b
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openerp-server"
4 VERSION="5.0.1-0"
5 CATEGORY="office"
6 SHORT_DESC="Open source ERP server files"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://openerp.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/download/stable/source/$TARBALL"
14 BUILD_DEPENDS="libxml2-python python-psycopg2 libxml2 libxslt-python \
15 python-reportlab python-pychart python-pydot python-dev"
17 compile_rules() {
18 python -B setup.py install --root=$install
19 }
21 genpkg_rules() {
22 mkdir -p $fs/usr $fs/var/log/openerp
23 chmod 777 $fs/var/log/openerp
24 cp -a $install/usr/bin $fs/usr
25 cp -a $install/usr/lib $fs/usr
26 cp -a $stuff/* $fs
27 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-server
28 DEPENDS="python postgresql libxml2-python libxslt python-psycopg2 \
29 python-reportlab python-pyparsing graphviz libgcrypt python-pil \
30 python-lxml matplotlib python-pyxml python-pychart python-pydot \
31 python-egenix-mx-base"
32 }
34 post_install() {
35 #chroot "$1/" adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp
36 [ "$1" ] || /etc/init.d/$PACKAGE start
38 [ -n "$quiet" ] ||cat <<EOF
40 .-------------------------------------------------------.
41 | To start openerp server you can run: |
42 | |
43 | /etc/init.d/openerp-server start |
44 | |
45 | or add openerp-server to RUN_DAEMONS in /etc/rcS.conf |
46 '-------------------------------------------------------'
47 EOF
48 }