wok-6.x annotate openerp-server/receipt @ rev 3412
Ren: reportlab -> python-reportlab & update receipts of packages that depends on it
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Fri Jun 12 22:13:01 2009 +0000 (2009-06-12) |
parents | 33393d6644ce |
children | 28c34e01f8c6 |
rev | line source |
---|---|
pankso@3365 | 1 # SliTaz package receipt. |
pankso@3365 | 2 |
pankso@3365 | 3 PACKAGE="openerp-server" |
pankso@3365 | 4 VERSION="5.0.1-0" |
pankso@3365 | 5 CATEGORY="office" |
pankso@3365 | 6 SHORT_DESC="Open source ERP server files." |
pankso@3365 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@3365 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@3365 | 9 WEB_SITE="http://openerp.com/" |
pankso@3365 | 10 WGET_URL="$WEB_SITE/download/stable/source/$TARBALL" |
claudinei@3412 | 11 DEPENDS="python postgresql libxml2-python libxslt psycopg2 python-reportlab \ |
pankso@3365 | 12 pyparsing graphviz libgcrypt pil python-lxml matplotlib pyxml pychart \ |
pankso@3365 | 13 pydot egenix-mx-base" |
claudinei@3412 | 14 BUILD_DEPENDS="libxml2-python psycopg2 libxml2 libxslt python-reportlab \ |
claudinei@3412 | 15 pychart pydot python-dev" |
pankso@3365 | 16 |
pankso@3365 | 17 # Rules to configure and make the package. |
pankso@3365 | 18 compile_rules() |
pankso@3365 | 19 { |
pankso@3365 | 20 cd $src |
pankso@3365 | 21 python setup.py install --root=$PWD/_pkg |
pankso@3365 | 22 } |
pankso@3365 | 23 |
pankso@3365 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3365 | 25 genpkg_rules() |
pankso@3365 | 26 { |
pankso@3365 | 27 mkdir -p $fs/usr $fs/var/run/openerp $fs/var/log/openerp |
pankso@3365 | 28 chmod 777 $fs/var/run/openerp $fs/var/log/openerp |
pankso@3365 | 29 cp -a $_pkg/usr/bin $fs/usr |
pankso@3365 | 30 cp -a $_pkg/usr/lib $fs/usr |
pankso@3365 | 31 cp -a stuff/* $fs |
pankso@3365 | 32 sed -i 's|cd .*_pkg|cd |' $fs/usr/bin/openerp-server |
pankso@3365 | 33 } |
pankso@3365 | 34 |
pankso@3365 | 35 # Pre and post install commands for Tazpkg. |
pankso@3365 | 36 post_install() |
pankso@3365 | 37 { |
pankso@3365 | 38 #chroot $1/ adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp |
pankso@3365 | 39 [ -z "$1" ] && /etc/init.d/$PACKAGE start |
pankso@3365 | 40 cat <<EOF |
pankso@3365 | 41 ---- |
pankso@3365 | 42 To start $PACKAGE server you can run : |
pankso@3365 | 43 |
pankso@3365 | 44 /etc/init.d/$PACKAGE start |
pankso@3365 | 45 |
pankso@3365 | 46 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pankso@3365 | 47 ---- |
pankso@3365 | 48 EOF |
pankso@3365 | 49 } |