wok-6.x view openerp-web/receipt @ rev 18077
Rebuild Python packages to remove "*.pyc" files from package.lists (part 1).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 22 17:34:18 2015 +0300 (2015-05-22) |
parents | 23c3aed67cd9 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="openerp-web"
4 VERSION="5.0.14"
5 CATEGORY="office"
6 SHORT_DESC="Open source ERP web client."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://openerp.com/"
11 WGET_URL="$WEB_SITE/download/stable/source/$TARBALL"
12 CONFIG_FILES="/etc/openerp/openerp-web.conf"
13 # http://doc.openerp.com/install/linux/web/index.html
15 DEPENDS="matplotlib setuptools python-turbogears python-pil python \
16 python-pyxml python-pyparsing python-babel python-mako python-markupsafe"
17 BUILD_DEPENDS="setuptools python-dev python python-pyxml python-turbogears"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 python setup.py install --root=$DESTDIR
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr $fs/etc/openerp $fs/usr/share/applications
29 cp -a stuff/etc $fs/
30 cp -a $install/usr/config/openerp-web.cfg $fs/etc/openerp/openerp-web.conf
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/lib $fs/usr
33 }
35 # Pre and post install commands for Tazpkg.
36 post_install()
37 {
38 #sed -i "s/^RUN_DAEMONS=\"/RUN_DAEMONS=\"openerp-web /" $1/etc/rcS.conf
39 [ -z "$1" ] && /etc/init.d/openerp-web start
40 cat <<EOF
41 ----
42 To start $PACKAGE server you can run :
44 /etc/init.d/openerp-web start
46 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
47 ----
48 EOF
49 }