import odoo:
Odoo is an all-in-one management software that offers a range of business applications that form a complete suite of enterprise management applications targeting companies of all sizes. Odoo is an all-in-one business software including CRM, website/e-commerce, billing, accounting, manufacturing, warehouse - and project management, and inventory. ok ajacoutot@
This commit is contained in:
parent
35990e02d1
commit
57e49f2a20
58
www/odoo/Makefile
Normal file
58
www/odoo/Makefile
Normal file
@ -0,0 +1,58 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2019/06/15 12:17:52 robert Exp $
|
||||
|
||||
COMMENT= all-in-one management software
|
||||
|
||||
MV= 12.0
|
||||
SV= 20190517
|
||||
V= ${MV}.${SV}
|
||||
|
||||
DISTNAME= odoo_${V}
|
||||
|
||||
PKGNAME= ${DISTNAME:S/_/-/}
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
||||
|
||||
HOMEPAGE= https://www.odoo.com
|
||||
|
||||
MASTER_SITES= https://nightly.odoocdn.com/${MV}/nightly/src/
|
||||
|
||||
MODULES= lang/python
|
||||
MODPY_VERSION ?= ${MODPY_DEFAULT_VERSION_3}
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
|
||||
WRKDIST= ${WRKDIR}/odoo-${MV}.post${SV}
|
||||
|
||||
RUN_DEPENDS= converters/py-html2text${MODPY_FLAVOR} \
|
||||
converters/py-num2words${MODPY_FLAVOR} \
|
||||
databases/postgresql,-main \
|
||||
databases/py-psycopg2${MODPY_FLAVOR} \
|
||||
devel/py-babel${MODPY_FLAVOR} \
|
||||
devel/py-dateutil${MODPY_FLAVOR} \
|
||||
devel/py-decorator${MODPY_FLAVOR} \
|
||||
devel/py-gevent${MODPY_FLAVOR} \
|
||||
graphics/py-Pillow${MODPY_FLAVOR} \
|
||||
lang/node \
|
||||
print/py-reportlab${MODPY_FLAVOR} \
|
||||
security/py-passlib${MODPY_FLAVOR} \
|
||||
sysutils/py-psutil${MODPY_FLAVOR} \
|
||||
textproc/py-PyPDF2${MODPY_FLAVOR} \
|
||||
textproc/py-docutils${MODPY_FLAVOR} \
|
||||
textproc/py-lxml${MODPY_FLAVOR} \
|
||||
textproc/py-phonenumbers${MODPY_FLAVOR} \
|
||||
textproc/py-vobject${MODPY_FLAVOR} \
|
||||
textproc/py-yaml${MODPY_FLAVOR} \
|
||||
textproc/wkhtmltopdf \
|
||||
www/py-jinja2${MODPY_FLAVOR} \
|
||||
www/py-requests${MODPY_FLAVOR} \
|
||||
www/py-requests-futures${MODPY_FLAVOR} \
|
||||
www/py-requests-toolbelt${MODPY_FLAVOR} \
|
||||
www/py-werkzeug${MODPY_FLAVOR} \
|
||||
www/sassc
|
||||
|
||||
# LGPL
|
||||
PERMIT_PACKAGE_ = Yes
|
||||
|
||||
PKG_ARCH= *
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/odoo/distinfo
Normal file
2
www/odoo/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (odoo_12.0.20190517.tar.gz) = pOa7IdpzS8QesG8IJ9/ZUyP/GIW75H43rMdwMfJzaIY=
|
||||
SIZE (odoo_12.0.20190517.tar.gz) = 90514798
|
33
www/odoo/patches/patch-odoo_service_server_py
Normal file
33
www/odoo/patches/patch-odoo_service_server_py
Normal file
@ -0,0 +1,33 @@
|
||||
$OpenBSD: patch-odoo_service_server_py,v 1.1.1.1 2019/06/15 12:17:52 robert Exp $
|
||||
|
||||
Set the socket timeout to a more sane value for slower connections.
|
||||
|
||||
Index: odoo/service/server.py
|
||||
--- odoo/service/server.py.orig
|
||||
+++ odoo/service/server.py
|
||||
@@ -70,14 +70,14 @@ def memory_info(process):
|
||||
# psutil < 2.0 does not have memory_info, >= 3.0 does not have get_memory_info
|
||||
pmem = (getattr(process, 'memory_info', None) or process.get_memory_info)()
|
||||
# MacOSX allocates very large vms to all processes so we only monitor the rss usage.
|
||||
- if platform.system() == 'Darwin':
|
||||
+ if platform.system() == 'OpenBSD':
|
||||
return pmem.rss
|
||||
return pmem.vms
|
||||
|
||||
|
||||
def set_limit_memory_hard():
|
||||
if os.name == 'posix':
|
||||
- rlimit = resource.RLIMIT_RSS if platform.system() == 'Darwin' else resource.RLIMIT_AS
|
||||
+ rlimit = resource.RLIMIT_RSS if platform.system() == 'OpenBSD' else resource.RLIMIT_AS
|
||||
soft, hard = resource.getrlimit(rlimit)
|
||||
resource.setrlimit(rlimit, (config['limit_memory_hard'], hard))
|
||||
|
||||
@@ -949,7 +949,7 @@ class WorkerHTTP(Worker):
|
||||
""" HTTP Request workers """
|
||||
def process_request(self, client, addr):
|
||||
client.setblocking(1)
|
||||
- client.settimeout(2)
|
||||
+ client.settimeout(5)
|
||||
client.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
||||
# Prevent fd inherientence close_on_exec
|
||||
flags = fcntl.fcntl(client, fcntl.F_GETFD) | fcntl.FD_CLOEXEC
|
5
www/odoo/pkg/DESCR
Normal file
5
www/odoo/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
Odoo is an all-in-one management software that offers a range of business
|
||||
applications that form a complete suite of enterprise management applications
|
||||
targeting companies of all sizes. Odoo is an all-in-one business software
|
||||
including CRM, website/e-commerce, billing, accounting, manufacturing,
|
||||
warehouse - and project management, and inventory.
|
26308
www/odoo/pkg/PLIST
Normal file
26308
www/odoo/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
16
www/odoo/pkg/odoo.rc
Executable file
16
www/odoo/pkg/odoo.rc
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: odoo.rc,v 1.1.1.1 2019/06/15 12:17:58 robert Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/odoo"
|
||||
daemon_flags="-c ${SYSCONFDIR}/odoo/odoo.conf"
|
||||
daemon_user="_odoo"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
|
||||
|
||||
rc_bg=YES
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user