wok-current annotate openerp-server/receipt @ rev 25125
updated apache-mod-wsgi (4.6.5 -> 4.9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 28 16:29:10 2022 +0100 (2022-06-28) |
parents | 505d1daeed6c |
children |
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" |
pascal@15590 | 8 LICENSE="GPL3" |
pankso@3365 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@3365 | 10 WEB_SITE="http://openerp.com/" |
pascal@25026 | 11 WGET_URL="https://nightly.odoo.com/old/openerp-${VERSION%.*}/$TARBALL" |
slaxemulator@10663 | 12 |
claudinei@3412 | 13 DEPENDS="python postgresql libxml2-python libxslt psycopg2 python-reportlab \ |
claudinei@3418 | 14 python-pyparsing graphviz libgcrypt python-pil python-lxml matplotlib \ |
claudinei@3419 | 15 python-pyxml python-pychart python-pydot egenix-mx-base" |
slaxemulator@10663 | 16 BUILD_DEPENDS="libxml2-python psycopg2 libxml2 libxslt-python python-reportlab \ |
claudinei@3419 | 17 python-pychart python-pydot python-dev" |
pankso@3365 | 18 |
pascal@25043 | 19 # What is the latest version available today? |
pascal@25043 | 20 current_version() |
pascal@25043 | 21 { |
pascal@25043 | 22 local a=$(wget -O - https://nightly.odoo.com/old/ 2>/dev/null | \ |
pascal@25043 | 23 sed '/openerp-/!d;s|.*="||;s|/".*||' | sort -Vr | sed q) |
pascal@25043 | 24 local b=$(wget -O - https://nightly.odoo.com/old/$a/ 2>/dev/null | \ |
pascal@25043 | 25 sed '/href="[0-9]/!d;s|.*="||;s|/".*||' | sort -Vr | sed q) |
pascal@25043 | 26 wget -O - https://nightly.odoo.com/old/$a/$b/ 2>/dev/null | \ |
pascal@25043 | 27 sed '/openerp-client/d;/tar/!d;s|.*erp-||;s|.tar.*||;q' |
pascal@25043 | 28 } |
pascal@25043 | 29 |
pankso@3365 | 30 # Rules to configure and make the package. |
pankso@3365 | 31 compile_rules() |
pankso@3365 | 32 { |
slaxemulator@10663 | 33 python setup.py install --root=$DESTDIR |
pankso@3365 | 34 } |
pankso@3365 | 35 |
pankso@3365 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3365 | 37 genpkg_rules() |
pankso@3365 | 38 { |
pascal@16681 | 39 mkdir -p $fs/usr $fs/var/log/openerp |
pascal@16681 | 40 chmod 777 $fs/var/log/openerp |
pascal@15590 | 41 cp -a $install/usr/bin $fs/usr |
pascal@15590 | 42 cp -a $install/usr/lib $fs/usr |
slaxemulator@10663 | 43 cp -a $stuff/* $fs |
pascal@15590 | 44 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-server |
pankso@3365 | 45 } |
pankso@3365 | 46 |
pankso@3365 | 47 # Pre and post install commands for Tazpkg. |
pankso@3365 | 48 post_install() |
pankso@3365 | 49 { |
pascal@18730 | 50 #chroot "$1/" adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp |
pascal@18730 | 51 [ "$1" ] || /etc/init.d/$PACKAGE start |
pankso@3365 | 52 cat <<EOF |
pankso@3365 | 53 ---- |
pankso@3365 | 54 To start $PACKAGE server you can run : |
pankso@3365 | 55 |
pankso@3365 | 56 /etc/init.d/$PACKAGE start |
pankso@3365 | 57 |
pankso@3365 | 58 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pankso@3365 | 59 ---- |
pankso@3365 | 60 EOF |
pankso@3365 | 61 } |