wok view openerp-server/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents 505d1daeed6c
children
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="https://nightly.odoo.com/old/openerp-${VERSION%.*}/$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 # What is the latest version available today?
20 current_version()
21 {
22 local a=$(wget -O - https://nightly.odoo.com/old/ 2>/dev/null | \
23 sed '/openerp-/!d;s|.*="||;s|/".*||' | sort -Vr | sed q)
24 local b=$(wget -O - https://nightly.odoo.com/old/$a/ 2>/dev/null | \
25 sed '/href="[0-9]/!d;s|.*="||;s|/".*||' | sort -Vr | sed q)
26 wget -O - https://nightly.odoo.com/old/$a/$b/ 2>/dev/null | \
27 sed '/openerp-client/d;/tar/!d;s|.*erp-||;s|.tar.*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 python setup.py install --root=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr $fs/var/log/openerp
40 chmod 777 $fs/var/log/openerp
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $stuff/* $fs
44 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-server
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 #chroot "$1/" adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp
51 [ "$1" ] || /etc/init.d/$PACKAGE start
52 cat <<EOF
53 ----
54 To start $PACKAGE server you can run :
56 /etc/init.d/$PACKAGE start
58 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
59 ----
60 EOF
61 }