wok view openerp-web/receipt @ 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
children 28c34e01f8c6
line source
1 # SliTaz package receipt.
3 PACKAGE="openerp-web"
4 VERSION="5.0.1-0"
5 CATEGORY="office"
6 SHORT_DESC="Open source ERP web client."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://openerp.com/"
10 WGET_URL="$WEB_SITE/download/stable/source/$TARBALL"
11 DEPENDS="matplotlib setuptools python-turbogears pil python pyxml pyparsing"
12 BUILD_DEPENDS="setuptools python-dev python pyxml python-turbogears"
13 CONFIG_FILES="/etc/openerp/openerp-web.conf"
14 # http://doc.openerp.com/install/linux/web/index.html
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 python setup.py install --root=$PWD/_pkg
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr $fs/etc/openerp $fs/usr/share/applications
27 cp -a stuff/etc $fs/
28 cp -a $_pkg/usr/config/default.cfg $fs/etc/openerp/openerp-web.conf
29 cp -a $_pkg/usr/bin $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
31 }
33 # Pre and post install commands for Tazpkg.
34 post_install()
35 {
36 #sed -i "s/^RUN_DAEMONS=\"/RUN_DAEMONS=\"openerp-web /" $1/etc/rcS.conf
37 [ -z "$1" ] && /etc/init.d/openerp-web start
38 cat <<EOF
39 ----
40 To start $PACKAGE server you can run :
42 /etc/init.d/openerp-web start
44 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
45 ----
46 EOF
47 }