wok-current view openerp-server/receipt @ rev 17068
Add tcpcrypt
| author | Pascal Bellard <pascal.bellard@slitaz.org> | 
|---|---|
| date | Fri Aug 22 16:10:45 2014 +0200 (2014-08-22) | 
| parents | 600aaedb561d | 
| children | 16df76e1fc6a | 
 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/log/openerp
    30 	chmod 777 $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 }