From nobody Tue Mar 26 05:17:06 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V3dMl3MD3z5G4wg; Tue, 26 Mar 2024 05:17:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V3dMl2XKtz4sqn; Tue, 26 Mar 2024 05:17:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711430227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fJGX98CusXM4Ic/RL9xAKMOfthzNJCjToFTQJn9Gd2Q=; b=hJjMklxtVoDvyKaUn9Wzf9WsG14aLRSLZZa2TIueNVlb+wTPqV0YtBjuKZLPBGDzdQ7fcw +leoYYhjHmFN/CQqbyuSBsBcTwYR8m8BVicfTEWHwP0uuaeBiniCvu3c4bKmfw9A2M6QX9 rEhxFk/3gFn64vabUK3CBQs9QKQd9jkewB0BpF0hSw7oqg9dnbK4SHAEYHJEq+XlIu6yM6 ee+ktr/2B2ehxu8KNAqFkj/EJzgYPvS5PMl/cbl+iS3cUYMNob9X887d0aMw6E9b9bzZXT LuZ4bMWff+IRPtunfpsHexj412m+w2Vibe7dYA1ahN7sRW9wSU/Xz3Y/7MAdDg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711430227; a=rsa-sha256; cv=none; b=dBQlOQey9sVRxpTsyG283DwC97aQW7aHS+G7xFE5EC4+sC6hM/xIVEn2MjrZ2mXmkH/JAU uJN9qLZTDPlBeXb7wH6lFi/Wwz4HgYMCAHUzdx9hSUjQt0kWvPs0ClCwbvon2/2p5SW8Yi uDwjR4XmdKHQ2BdoLVBcSFkD8jJYBN0jCqtSfj2NZCx/myMHJsZWLAoU2YngyZR0/Lb6Ho VenzIc+8iOqeujAJCbaSfL6r16g0HF/bC5+5t/mUcChgfCk6ZXojMgDCezH9GH3WEdW5UG XsVhH7k36dNC/WAlVWVdJQq6R2jC0BdRLgReCdwrLnGAOj6HJlW/qtx9YyaWPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711430227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fJGX98CusXM4Ic/RL9xAKMOfthzNJCjToFTQJn9Gd2Q=; b=tjVunIJ54yC3YJqyrKsHrWAjo/XFwShZteWM/sVHbF07bJ7tTy42gDUlVIC/ucWbgcq8OE 1R9GS0MWYxguFFM1dS8FfkTE3OOvOIN5odf3mcWTlHx4O5AO6PN6zAI2v15pDSxwTfQsxQ PyJv9x1AOERTgrn4TKim1z8QzCxHY1WIFjPgN8nUXIij19R03V62cROInteKZ06CExvxrT Vx9Jf4pgqgG6WHYOFivDCYFPxJiV86xZtVRUQoq8KJOge5VCrm7dYZsL4qpi+/2SYkHVT7 OZuu1z35OvRb9fFq5XkPZ2km0QbZSi2xwmKP3D5Zbjas1On0frT5JFLEHIdoUg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V3dMl20gwznMs; Tue, 26 Mar 2024 05:17:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42Q5H7Vg036257; Tue, 26 Mar 2024 05:17:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42Q5H6x1036253; Tue, 26 Mar 2024 05:17:06 GMT (envelope-from git) Date: Tue, 26 Mar 2024 05:17:06 GMT Message-Id: <202403260517.42Q5H6x1036253@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 3e7bab233d65 - main - finance/odoo16: Repocopy from finance/odoo List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3e7bab233d65936e3a69e372db63887035210781 Auto-Submitted: auto-generated The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=3e7bab233d65936e3a69e372db63887035210781 commit 3e7bab233d65936e3a69e372db63887035210781 Author: Jose Alonso Cardenas Marquez AuthorDate: 2024-03-26 05:14:25 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2024-03-26 05:15:16 +0000 finance/odoo16: Repocopy from finance/odoo --- finance/Makefile | 1 + finance/odoo16/Makefile | 107 + finance/odoo16/distinfo | 3 + finance/odoo16/files/odoo.conf | 7 + finance/odoo16/files/odoo.in | 115 + finance/odoo16/files/patch-odoo_release.py | 11 + finance/odoo16/files/pkg-message.in | 44 + finance/odoo16/pkg-descr | 9 + finance/odoo16/pkg-plist | 42540 +++++++++++++++++++++++++++ 9 files changed, 42837 insertions(+) diff --git a/finance/Makefile b/finance/Makefile index 29393196ea1b..bdeab08cb526 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -53,6 +53,7 @@ SUBDIR += odoo SUBDIR += odoo14 SUBDIR += odoo15 + SUBDIR += odoo16 SUBDIR += p5-Business-CreditCard SUBDIR += p5-Business-MaxMind-CreditCardFraudDetection SUBDIR += p5-Business-OCV diff --git a/finance/odoo16/Makefile b/finance/odoo16/Makefile new file mode 100644 index 000000000000..41890d139240 --- /dev/null +++ b/finance/odoo16/Makefile @@ -0,0 +1,107 @@ +PORTNAME= odoo +PORTVERSION= 16.0.20240222 +PORTREVISION= 1 +CATEGORIES= finance www +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 16 + +MAINTAINER= acm@FreeBSD.org +COMMENT= Suite of web based open source business apps +WWW= https://www.odoo.com + +LICENSE= LGPL3 + +USE_GITHUB= yes +GH_TAGNAME= ecb1f0268adde613bbcb0aa122c0c53847a600a9 + +LIB_DEPENDS= libxml2.so:textproc/libxml2 \ + libxslt.so:textproc/libxslt \ + libevent.so:devel/libevent \ + libsasl2.so:security/cyrus-sasl2 +RUN_DEPENDS= wkhtmltopdf>0:converters/wkhtmltopdf \ + ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyserial>=0:comms/py-pyserial@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}vobject>=0:deskutils/py-vobject@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}gevent>=0:devel/py-gevent@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}greenlet>=0:devel/py-greenlet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mako>=0:textproc/py-mako@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}num2words>=0:devel/py-num2words@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}polib>=0:devel/py-polib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyusb>=0:devel/py-pyusb@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}vatnumber>=0:finance/py-vatnumber@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>=7.0.0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydot>=0:graphics/py-pydot@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-ldap>=0:net/py-python-ldap@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}zeep>=0:net/py-zeep@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}feedparser>=0:textproc/py-feedparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}html2text>=0:textproc/py-html2text@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markupsafe>=0:textproc/py-markupsafe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}qrcode>=0:textproc/py-qrcode@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xlrd>=0:textproc/py-xlrd@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xlwt>=0:textproc/py-xlwt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0:textproc/py-xlsxwriter@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pypdf2>0:print/py-pypdf2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}reportlab>0:print/py-reportlab@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}passlib>0:security/py-passlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}libsass>0:www/py-libsass@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests-file>0:www/py-requests-file@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}werkzeug2>0:www/py-werkzeug2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0:textproc/py-xlsxwriter@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xlrd>=1.2.0:textproc/py-xlrd@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xlwt>=1.3.0:textproc/py-xlwt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ofxparse>=0.20:finance/py-ofxparse@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ebaysdk>=2.1.3:finance/py-ebaysdk@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rjsmin>0:archivers/py-rjsmin@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cryptography-legacy>0:security/py-cryptography-legacy@${PY_FLAVOR} + +USES= cpe ldap python pgsql shebangfix +USE_PYTHON= distutils + +SHEBANG_LANG= python +SHEBANG_FILES= ${WRKSRC}/${PORTNAME}/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo \ + ${WRKSRC}/${PORTNAME}/addons/web/static/lib/select2/release.sh \ + ${WRKSRC}/${PORTNAME}/addons/web/tooling/*.sh \ + ${WRKSRC}/${PORTNAME}/addons/web/tooling/hooks/pre-commit \ + ${WRKSRC}/${PORTNAME}/addons/mail/static/scripts/odoo-mailgate.py \ + ${WRKSRC}/${PORTNAME}-bin + +USERS= odoo +GROUPS= ${USERS} + +USE_RC_SUBR= ${PORTNAME} +SUB_FILES= pkg-message + +CONFLICTS= odoo odoo14 odoo15 + +ETCDIR= ${PREFIX}/etc/odoo + +post-patch: + @${REINPLACE_CMD} -i "" -e 's|(index !== |(index == |g' \ + ${WRKSRC}/odoo/addons/web/static/src/legacy/js/libs/content-disposition.js \ + ${WRKSRC}/odoo/addons/web/static/src/core/network/download.js + @${RM} ${WRKSRC}/odoo/release.py.orig + +post-extract: + @cd ${WRKSRC}/addons/ && ${MV} * ${WRKSRC}/odoo/addons/ + +pre-install: + @${MKDIR} ${STAGEDIR}${ETCDIR} + +post-install: + @${INSTALL_SCRIPT} ${FILESDIR}/odoo.conf ${STAGEDIR}${ETCDIR}/odoo.conf.sample + +.include diff --git a/finance/odoo16/distinfo b/finance/odoo16/distinfo new file mode 100644 index 000000000000..fada4fa153e2 --- /dev/null +++ b/finance/odoo16/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708628850 +SHA256 (odoo-odoo-16.0.20240222-ecb1f0268adde613bbcb0aa122c0c53847a600a9_GH0.tar.gz) = 271ec3129c8e280acf2619d995cccbdb9ece023f1ec341b9289aa943e4e64ab0 +SIZE (odoo-odoo-16.0.20240222-ecb1f0268adde613bbcb0aa122c0c53847a600a9_GH0.tar.gz) = 158008620 diff --git a/finance/odoo16/files/odoo.conf b/finance/odoo16/files/odoo.conf new file mode 100644 index 000000000000..f46a48d2a096 --- /dev/null +++ b/finance/odoo16/files/odoo.conf @@ -0,0 +1,7 @@ +[options] +#admin_passwd = secretpassword +db_host = localhost +db_port = 5432 +db_user = odoouser +db_password = odoopwd +;addons_path = /usr/local/lib/python3.9/site-packages/odoo/addons/ diff --git a/finance/odoo16/files/odoo.in b/finance/odoo16/files/odoo.in new file mode 100644 index 000000000000..1c1f3285e9f9 --- /dev/null +++ b/finance/odoo16/files/odoo.in @@ -0,0 +1,115 @@ +#!/bin/sh + +# PROVIDE: odoo +# REQUIRE: NETWORKING +# KEYWORD: shutdown +# +# Configuration settings for odoo in /etc/rc.conf: +# +# odoo_enable: run odoo server (default=NO) +# odoo_database: define odoo database name (default=odoodb) +# odoo_datadir: directory where odoo store data (default=/var/lib/odoo) +# odoo_flags: additional flags for odoo server (default=--without-demo=all) +# + +. /etc/rc.subr + +name=odoo +rcvar=odoo_enable + +load_rc_config ${name} + +: ${odoo_enable:=NO} +: ${odoo_database:="odoodb"} +: ${odoo_datadir:="/var/lib/${name}"} +: ${odoo_flags="--without-demo=all"} + +odoo_user="odoo" +pidfile=/var/run/odoo.pid +extra_commands="initdb" + +su_cmd="/usr/bin/su" +chown_cmd="/usr/sbin/chown" +mkdir_cmd="/bin/mkdir" + +start_cmd="odoo_start" +stop_cmd="odoo_stop" +status_cmd="odoo_status" +restart_cmd="odoo_restart" +initdb_cmd="odoo_initdb" +start_precmd="odoo_start_precmd" + +command=/usr/local/bin/odoo +command_args="--database=${odoo_database} --data-dir=${odoo_datadir} --logfile=/var/log/${name}.log --config=%%LOCALBASE%%/etc/odoo/odoo.conf ${odoo_flags}" + +odoo_start_precmd() { + odoo_datadir_check + touch ${pidfile} + touch /var/log/${name}.log + ${chown_cmd} -R ${odoo_user}:${odoo_user} ${pidfile} + ${chown_cmd} -R ${odoo_user}:${odoo_user} /var/log/${name}.log +} + +odoo_start() +{ + daemon -p ${pidfile} -u ${odoo_user} \ + ${command} ${command_args} + echo "Starting ${name}" +} + +odoo_datadir_check() +{ + if [ ! -d "${odoo_datadir}" ]; then + ${mkdir_cmd} -p ${odoo_datadir} + ${chown_cmd} -R ${odoo_user}:${odoo_user} ${odoo_datadir} + echo "${name} data directory created" + fi +} + +odoo_initdb() +{ + echo " " + echo "#################################################################" + echo "# #" + echo "# Don't use initdb if you are updating from previous version of #" + echo "# Odoo. Cancel if this is your case (Ctrl + C) #" + echo "# #" + echo "#################################################################" + echo " " + sleep 10 + odoo_start_precmd + daemon -p ${pidfile} -u ${odoo_user} \ + ${command} ${command_args} -i all + echo "Initializing database and starting ${name} server" +} + +odoo_restart() +{ + echo "Performing restart ${name}" + odoo_stop + sleep 5 + odoo_start +} + +odoo_status() +{ + # If running, show pid + if [ -f ${pidfile} ] + then + echo "${name} is running as pid" `cat ${pidfile}` + else + echo "${name} is not running" + fi +} + +odoo_stop() +{ + if [ -f ${pidfile} ] + then + kill `cat ${pidfile}` + rm ${pidfile} + echo "Stopping ${name}" + fi +} + +run_rc_command "$1" diff --git a/finance/odoo16/files/patch-odoo_release.py b/finance/odoo16/files/patch-odoo_release.py new file mode 100644 index 000000000000..b9fb51c34918 --- /dev/null +++ b/finance/odoo16/files/patch-odoo_release.py @@ -0,0 +1,11 @@ +--- odoo/release.py.orig 2024-02-22 22:03:20 UTC ++++ odoo/release.py +@@ -12,7 +12,7 @@ RELEASE_LEVELS_DISPLAY = {ALPHA: ALPHA, + # properly comparable using normal operators, for example: + # (6,1,0,'beta',0) < (6,1,0,'candidate',1) < (6,1,0,'candidate',2) + # (6,1,0,'candidate',2) < (6,1,0,'final',0) < (6,1,2,'final',0) +-version_info = ('saas~16', 4, 0, FINAL, 0, '') ++version_info = ('16', 4, 0, FINAL, 0, '') + version = '.'.join(str(s) for s in version_info[:2]) + RELEASE_LEVELS_DISPLAY[version_info[3]] + str(version_info[4] or '') + version_info[5] + series = serie = major_version = '.'.join(str(s) for s in version_info[:2]) + diff --git a/finance/odoo16/files/pkg-message.in b/finance/odoo16/files/pkg-message.in new file mode 100644 index 000000000000..c6b84571e81b --- /dev/null +++ b/finance/odoo16/files/pkg-message.in @@ -0,0 +1,44 @@ +[ +{ type: install + message: <