wok-6.x annotate openerp-web/receipt @ rev 23591
python-pysol-cards: added build dependency
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 08 10:35:39 2020 +0100 (2020-04-08) |
parents | 9e01bc6321ea |
children | 505d1daeed6c |
rev | line source |
---|---|
pankso@3380 | 1 # SliTaz package receipt. |
pankso@3380 | 2 |
pankso@3380 | 3 PACKAGE="openerp-web" |
pascal@6658 | 4 VERSION="5.0.14" |
pankso@3380 | 5 CATEGORY="office" |
pankso@3380 | 6 SHORT_DESC="Open source ERP web client." |
pankso@3380 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15601 | 8 LICENSE="MPL" |
pankso@3380 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@3380 | 10 WEB_SITE="http://openerp.com/" |
pankso@3380 | 11 WGET_URL="$WEB_SITE/download/stable/source/$TARBALL" |
pascal@15601 | 12 CONFIG_FILES="/etc/openerp/openerp-web.conf" |
pascal@15601 | 13 # http://doc.openerp.com/install/linux/web/index.html |
pascal@15601 | 14 |
pascal@21580 | 15 DEPENDS="matplotlib python-turbogears python-pil python \ |
pascal@9667 | 16 python-pyxml python-pyparsing python-babel python-mako python-markupsafe" |
pascal@21580 | 17 BUILD_DEPENDS="python-setuptools python-dev python python-pyxml python-turbogears" |
pankso@3380 | 18 |
pankso@3380 | 19 # Rules to configure and make the package. |
pankso@3380 | 20 compile_rules() |
pankso@3380 | 21 { |
pascal@15601 | 22 python setup.py install --root=$DESTDIR |
pankso@3380 | 23 } |
pankso@3380 | 24 |
pankso@3380 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3380 | 26 genpkg_rules() |
pankso@3380 | 27 { |
pankso@3380 | 28 mkdir -p $fs/usr $fs/etc/openerp $fs/usr/share/applications |
pankso@3380 | 29 cp -a stuff/etc $fs/ |
pascal@15601 | 30 cp -a $install/usr/config/openerp-web.cfg $fs/etc/openerp/openerp-web.conf |
pascal@15601 | 31 cp -a $install/usr/bin $fs/usr |
pascal@15601 | 32 cp -a $install/usr/lib $fs/usr |
pankso@3380 | 33 } |
pankso@3380 | 34 |
pankso@3380 | 35 # Pre and post install commands for Tazpkg. |
pankso@3380 | 36 post_install() |
pankso@3380 | 37 { |
pascal@18730 | 38 #sed -i "s/^RUN_DAEMONS=\"/RUN_DAEMONS=\"openerp-web /" "$1/etc/rcS.conf" |
pankso@3380 | 39 [ -z "$1" ] && /etc/init.d/openerp-web start |
pankso@3380 | 40 cat <<EOF |
pankso@3380 | 41 ---- |
pankso@3380 | 42 To start $PACKAGE server you can run : |
pankso@3380 | 43 |
pankso@3380 | 44 /etc/init.d/openerp-web start |
pankso@3380 | 45 |
pankso@3380 | 46 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pankso@3380 | 47 ---- |
pankso@3380 | 48 EOF |
pankso@3380 | 49 } |