wok view openerp-server/receipt @ rev 15781

linux: remove kmod dep
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 13 00:02:35 2014 +0100 (2014-01-13)
parents 79f3a70dc4b8
children 0d8a1a3edc72
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 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://openerp.com/"
11 WGET_URL="$WEB_SITE/download/stable/source/$TARBALL"
13 DEPENDS="python postgresql libxml2-python libxslt psycopg2 python-reportlab \
14 python-pyparsing graphviz libgcrypt python-pil python-lxml matplotlib \
15 python-pyxml python-pychart python-pydot egenix-mx-base"
16 BUILD_DEPENDS="libxml2-python psycopg2 libxml2 libxslt-python python-reportlab \
17 python-pychart python-pydot python-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 python setup.py install --root=$DESTDIR
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr $fs/var/run/openerp $fs/var/log/openerp
30 chmod 777 $fs/var/run/openerp $fs/var/log/openerp
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/lib $fs/usr
33 cp -a $stuff/* $fs
34 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-server
35 }
37 # Pre and post install commands for Tazpkg.
38 post_install()
39 {
40 #chroot $1/ adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp
41 [ -z "$1" ] && /etc/init.d/$PACKAGE start
42 cat <<EOF
43 ----
44 To start $PACKAGE server you can run :
46 /etc/init.d/$PACKAGE start
48 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
49 ----
50 EOF
51 }