From nobody Thu Jan 9 09:33:22 2025 X-Original-To: dev-commits-ports-all@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 4YTKN32QW7z5kS8H; Thu, 09 Jan 2025 09:33:23 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YTKN31DZZz4bNx; Thu, 9 Jan 2025 09:33:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736415203; 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=gS1xrZAj6B17HeznKZkqtPqYXb4BuzANjuM4jBhqW9s=; b=lsuPX9VbZmJMyLqT1dJlc1jbELWWo0BxaErcXy98oa11sVgc7wx/ux2H1csnnCxpC+25k+ 4YKjkV+NY8ZSxDDoBqY8tmqWSRHji9agUTs33YP39SDVRfzSCt3tFdLcaf53LJwXc2hmcG +8ZhnVzfbarogR124kqOGK/7hWHiYkQKDNPabMwQ8L3TP0YCjii2rHnBLV1OKYjdVQFwVS fzzYs3Nw7BO128a8lVPbeoJJ2xRfSjrcEwhBWOWb52dpdPRk0mYPRXLTPC+psCEk/mp9Fj ZKtI6PvSluRfSzjLCmppestYhc4fA+B+eZQwy68dMQfrxddmV8xOus+BUMZLrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736415203; 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=gS1xrZAj6B17HeznKZkqtPqYXb4BuzANjuM4jBhqW9s=; b=maMAp/uYTwRYMxmpuwlmiAtP7e7J8KRUApkxJlTnk14xuwGZubyQJka7f7AR5DxmZlKcGN XpQEe4bpK4qOcMKgt+IebjSYu87Ug/hHoL43JwWdIKu3OY4033Q485lq6HqrUl9910SzlJ FuvDfP4rArLWI+AlnPZNQITGwR1gUz75+MjaQGDnjSEg47A0hVX5sShIBXQBcfiGPhdtBu wJLvPheVB5qDGJ9NmXtCi5SoeL1gXZGstBxcmEThdvPkt9GvbUvR1UT2PwarmKS5JWv1pu XtO6dr2dobk/McFk9Abi2yKSBe4I0Gck387i299KFBkzrvw0X9dUUykhKNTWyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736415203; a=rsa-sha256; cv=none; b=V1MIQTAPOSG+tMXpt74fwT65baP+oX3T7V4MJzWUzUp6TIltQKlNDWSyhYnUQ/pS2Je4vz Rmlu4yeW8YK1LU1ETUuzDMtHlVv5jRb2MbyiosI00BEzByNEVkb+7Bc1PQzVJ7xHxjdk0g MSruTEodLYk+dIsA8pRREvfnDkzV0yA9+6LPbyjtzuqdHBMA1ZF07nzPY69jKJh+fg2JZD b9uRurMzaPkpIeMlz7Wg+YDQ2UzH1GiwPfNetuIR50vT1NAPGfBKUqTJ8vvr510Kzv6WmR Xp4UH2N9cBzJ5rOgKajnVroXARZGQb5h+Ck0wedwB0EJQno3cbuA2CW0sVRusg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YTKN30nwWz5S7; Thu, 09 Jan 2025 09:33:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5099XNBu045519; Thu, 9 Jan 2025 09:33:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5099XMbU045516; Thu, 9 Jan 2025 09:33:22 GMT (envelope-from git) Date: Thu, 9 Jan 2025 09:33:22 GMT Message-Id: <202501090933.5099XMbU045516@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: bc10872b3cd9 - main - finance/odoo17: New port: Suite of web based open source business apps List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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: bc10872b3cd9547412619c862902b7e2391ba8aa Auto-Submitted: auto-generated The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc10872b3cd9547412619c862902b7e2391ba8aa commit bc10872b3cd9547412619c862902b7e2391ba8aa Author: Jose Alonso Cardenas Marquez AuthorDate: 2025-01-09 09:29:07 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2025-01-09 09:29:07 +0000 finance/odoo17: New port: Suite of web based open source business apps Odoo is a suite of web based open source business apps. The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, etc Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps. --- finance/Makefile | 1 + finance/odoo17/Makefile | 109 + finance/odoo17/distinfo | 3 + finance/odoo17/files/odoo.conf | 7 + finance/odoo17/files/odoo.in | 115 + finance/odoo17/files/pkg-message.in | 44 + finance/odoo17/pkg-descr | 9 + finance/odoo17/pkg-plist | 48353 ++++++++++++++++++++++++++++++++++ 8 files changed, 48641 insertions(+) diff --git a/finance/Makefile b/finance/Makefile index bd149c60167d..faffc818a4f7 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -55,6 +55,7 @@ SUBDIR += odoo14 SUBDIR += odoo15 SUBDIR += odoo16 + SUBDIR += odoo17 SUBDIR += ord SUBDIR += p5-Business-CreditCard SUBDIR += p5-Business-MaxMind-CreditCardFraudDetection diff --git a/finance/odoo17/Makefile b/finance/odoo17/Makefile new file mode 100644 index 000000000000..ed06839d1289 --- /dev/null +++ b/finance/odoo17/Makefile @@ -0,0 +1,109 @@ +PORTNAME= odoo +PORTVERSION= 17.0.20250108 +CATEGORIES= finance www +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 17 + +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= a2657d18e61fa22619702b35a56376991d18cf80 + +LIB_DEPENDS= libxslt.so:textproc/libxslt \ + libevent.so:devel/libevent \ + libsasl2.so:security/cyrus-sasl2 +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}GeoIP2>0:net/py-GeoIP2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0:textproc/py-xlsxwriter@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ebaysdk>=2.1.3:finance/py-ebaysdk@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}feedparser>=0:textproc/py-feedparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}gevent>=0:devel/py-gevent@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}greenlet>=0:devel/py-greenlet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}html2text>=0:textproc/py-html2text@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}libsass>0:www/py-libsass@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml-html-clean>=0:devel/py-lxml-html-clean@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mako>=0:textproc/py-mako@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markupsafe>=0:textproc/py-markupsafe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}num2words>=0:devel/py-num2words@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ofxparse>=0.20:finance/py-ofxparse@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}passlib>0:security/py-passlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>=7.0.0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}polib>=0:devel/py-polib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydot>=0:graphics/py-pydot@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pypdf2>0:print/py-pypdf2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyserial>=0:comms/py-pyserial@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-dateutil>=0:devel/py-python-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-ldap>=0:net/py-python-ldap@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyusb>=0:devel/py-pyusb@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}qrcode>=0:textproc/py-qrcode@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}reportlab>0:print/py-reportlab@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rjsmin>0:archivers/py-rjsmin@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}secure-cookie>0:www/py-secure-cookie@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}vatnumber>=0:finance/py-vatnumber@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}vobject>=0:deskutils/py-vobject@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug@${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}zeep>=0:net/py-zeep@${PY_FLAVOR} + +USES= cpe gnome ldap python pgsql shebangfix +USE_GNOME= libxml2 +USE_PYTHON= cryptography distutils + +SHEBANG_LANG= python +SHEBANG_FILES= ${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= odoo14 odoo15 odoo16 odoo + +ETCDIR= ${PREFIX}/etc/odoo + +.include + +.if ${PYTHON_REL} < 31000 +IGNORE= odoo requires Python 3.10+ +.endif + +post-patch: + @${REINPLACE_CMD} -i "" -e 's|(index !== |(index == |g' \ + ${WRKSRC}/odoo/addons/web/static/src/core/network/download.js + +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/odoo17/distinfo b/finance/odoo17/distinfo new file mode 100644 index 000000000000..a461c2c67a2b --- /dev/null +++ b/finance/odoo17/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1736413286 +SHA256 (odoo-odoo-17.0.20250108-a2657d18e61fa22619702b35a56376991d18cf80_GH0.tar.gz) = b532c3f79b41cd8456418fac6653c90e29adeadb5fd58105a3fe02c27e7d28cd +SIZE (odoo-odoo-17.0.20250108-a2657d18e61fa22619702b35a56376991d18cf80_GH0.tar.gz) = 165678428 diff --git a/finance/odoo17/files/odoo.conf b/finance/odoo17/files/odoo.conf new file mode 100644 index 000000000000..3f460b703cc5 --- /dev/null +++ b/finance/odoo17/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.11/site-packages/odoo/addons/ diff --git a/finance/odoo17/files/odoo.in b/finance/odoo17/files/odoo.in new file mode 100644 index 000000000000..1c1f3285e9f9 --- /dev/null +++ b/finance/odoo17/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/odoo17/files/pkg-message.in b/finance/odoo17/files/pkg-message.in new file mode 100644 index 000000000000..c090ea7a6e15 --- /dev/null +++ b/finance/odoo17/files/pkg-message.in @@ -0,0 +1,44 @@ +[ +{ type: install + message: <