wok-current view openerp-server/receipt @ rev 4873

thunar-archive-plugin: Fix libexecdir.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Feb 04 23:30:13 2010 +0100 (2010-02-04)
parents 017a09f73a4a
children 79f3a70dc4b8
line source
1 # SliTaz package receipt.
3 PACKAGE="openerp-server"
4 VERSION="5.0.1-0"
5 CATEGORY="office"
6 SHORT_DESC="Open source ERP server files."
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="python postgresql libxml2-python libxslt psycopg2 python-reportlab \
12 python-pyparsing graphviz libgcrypt python-pil python-lxml matplotlib \
13 python-pyxml python-pychart python-pydot egenix-mx-base"
14 BUILD_DEPENDS="libxml2-python psycopg2 libxml2 libxslt python-reportlab \
15 python-pychart python-pydot python-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 python setup.py install --root=$PWD/_pkg
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr $fs/var/run/openerp $fs/var/log/openerp
28 chmod 777 $fs/var/run/openerp $fs/var/log/openerp
29 cp -a $_pkg/usr/bin $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
31 cp -a stuff/* $fs
32 sed -i 's|cd .*_pkg|cd |' $fs/usr/bin/openerp-server
33 }
35 # Pre and post install commands for Tazpkg.
36 post_install()
37 {
38 #chroot $1/ adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp
39 [ -z "$1" ] && /etc/init.d/$PACKAGE start
40 cat <<EOF
41 ----
42 To start $PACKAGE server you can run :
44 /etc/init.d/$PACKAGE start
46 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
47 ----
48 EOF
49 }