details: https://code.tryton.org/gentoo-overlay/commit/cd695ebc65b6
branch: default
user: Cédric Krier <[email protected]>
date: Sun May 03 16:59:00 2026 +0200
description:
app-office/trytond: versions bump
diffstat:
app-office/trytond/Manifest | 16 ++--
app-office/trytond/trytond-7.0.48.ebuild | 99 ------------------------------
app-office/trytond/trytond-7.0.49.ebuild | 99 ++++++++++++++++++++++++++++++
app-office/trytond/trytond-7.6.19.ebuild | 98 -----------------------------
app-office/trytond/trytond-7.6.20.ebuild | 98 +++++++++++++++++++++++++++++
app-office/trytond/trytond-7.8.7.ebuild | 98 -----------------------------
app-office/trytond/trytond-7.8.8.ebuild | 98 +++++++++++++++++++++++++++++
app-office/trytond/trytond-8.0.1.ebuild | 102 -------------------------------
app-office/trytond/trytond-8.0.2.ebuild | 102 +++++++++++++++++++++++++++++++
9 files changed, 405 insertions(+), 405 deletions(-)
diffs (850 lines):
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/Manifest
--- a/app-office/trytond/Manifest Sun May 03 09:49:08 2026 +0200
+++ b/app-office/trytond/Manifest Sun May 03 16:59:00 2026 +0200
@@ -2,12 +2,12 @@
AUX trytond-cron-init.d-2 899 BLAKE2B
2a52c2144df192c9be4296a37e5a89fb66e78fa1b21164b91bb0f067724972d89de9d3295bb12154eeb0d1999ee22ca287132e8f82f507c00292103f72474318
SHA512
ed11eeb680eecd0906866490a4250e9245abb6fa4954487a536467bebf718c3d811e31419e5f211109c3034b5660b1d3cf3397908f524d4c9c3a0e1351e106cd
AUX trytond-init.d-2 799 BLAKE2B
78dcf251feb3e9f04ba5014359c8da069cc54e14a626f6d9e03306008a30e4e412354c409ad7bb8beb47dfa65e1cc9eb12ab9459ea56f47e2994b25f113297c0
SHA512
1c6f1aa4fa8ad1da7e88e2ed5c53646802747c3ea1b4108ec51b400214eb7dd0a586548fa76d864be0087d24c1b9913343cba28339323e7a1a7fa370a8bce1c6
AUX trytond-worker-init.d 909 BLAKE2B
8f2a7afcef8c44270737581f36aade8195267b22fadb30c528549b32447cd982192c97c79d03f344e59451932e4c824b77ba6856e0b56e11c2503121b02f2181
SHA512
907d040f70fba324c35513e6795007bd3f55786b3541716f4c18920db39e88f3bc53451b63c50e56fe2c9366d2831aa602b83a58bb37dcc9b7780082304d279c
-DIST trytond-7.0.48.tar.gz 981830 BLAKE2B
28693590c233a177a8d8c00f70cf6fea8d995569be4925ae44ec2beb3de0a4eaa9158521c54e2e3015755dc2d14e21f19c08c80c45d006f9555cbcb234e695fa
SHA512
d13edc98f121513ea5d4e300db15315646bd229ecdad819e48cd905da9e2b8bb6953cfd78e6315f521277135f1632921f5f1d6ecefafb5375100e9307c730729
-DIST trytond-7.6.19.tar.gz 1055206 BLAKE2B
b9596ae16d26ee549507c7094c4d74051ae05d2314e799c9eef2e4e0c9b04e2e222e9ee54026e655853d4b9569055641cef8954e11cb623e76c63f6b7db120af
SHA512
875fa0d9f58a337770758d6bfefff50aa6d4258e35a9de5a9ab2a9a8d13de7dffc1de5118d96c2282328ac6b72e50cce96e9e461682af1b7c4071ae69325ba7e
-DIST trytond-7.8.7.tar.gz 1073587 BLAKE2B
1f7eb5c8dafddd7ff93fe6c55352d2d1fe64a0586c6c6c822fdb3db4cc1789bed8613ac46bc8c3cb6c6a3907c9f491c4c0a70fcc08b97cad5ae6d26f3581a7f3
SHA512
7a33e0efc831048205fe1354e71d9aa287e499c06c23814ce1a062fb1158039fbdc7666c1fca391e467892da563f52d198a867a92c5535c2b0dcf1cb621d0d43
-DIST trytond-8.0.1.tar.gz 956351 BLAKE2B
116335bcf12e2413558690078526a2f3f7bd78e46034903beb68460bdc744c6d6762163324ada067b138c4ac32c4659ad1f1f14128f08091f0a400dfff08c71a
SHA512
59a695fd90e97f75f82a9cccbb81363d431829e833c26cc7f4b275409aa2afb84cb8e3f66185e168cf44642a3c09972b9efec832fc8e6c6983d8002a927f0f36
-EBUILD trytond-7.0.48.ebuild 3258 BLAKE2B
242e6bdc2278680002d7b34646a325c3f69d5596a6dfca64842d5c79165a1b2e28936b024bd78d4560deebf6fc6ab2014efdfaa4fe636f7e17a2c0c917f5fa8f
SHA512
ddf8558b934b23790ab4bd876ebd5d68ffd7cafbb74fa976d379fc4be359102b05530d70e65458ba9927da2eebcdef36b87926a82d59ee5669fe89d0d22c3346
-EBUILD trytond-7.6.19.ebuild 3203 BLAKE2B
6e69a6b17214f9d947e3d3acb2ed869d41e26046a86a927cde7b490d3e8be3d06964bc0e2120a9e7e7050c48ef857945691214166596a75411845f911db819a3
SHA512
8195c035b7027c53745476ab3ba0333145ae08aa86fc6467b4ed99678a73f75468fa0fb9155e37db8e0145e805ed4a093eefd9a21d97163e3eee2f90ed6cae29
-EBUILD trytond-7.8.7.ebuild 3203 BLAKE2B
6e69a6b17214f9d947e3d3acb2ed869d41e26046a86a927cde7b490d3e8be3d06964bc0e2120a9e7e7050c48ef857945691214166596a75411845f911db819a3
SHA512
8195c035b7027c53745476ab3ba0333145ae08aa86fc6467b4ed99678a73f75468fa0fb9155e37db8e0145e805ed4a093eefd9a21d97163e3eee2f90ed6cae29
-EBUILD trytond-8.0.1.ebuild 3188 BLAKE2B
fa8dada4dd506eb84046630f595419fbb924b69897d5573d7bb6a5808df18f7cadaef82468cf0ffb5b8fc8727fe1ac29e0f6a1dc78d1676e4cd3c1a7993be987
SHA512
b3b8a0ad4bbad91faed44c2422aba5619b3b52578f540d88b6d9c7dc16ea6ffcc7dbb2bb6a17e0066ea0f72a37cbc8e8d2377ac2796ab736ec193d5feab7d829
+DIST trytond-7.0.49.tar.gz 981820 BLAKE2B
e6d4cab971cf3502cc6fe900d7be861510bcc27ae8d4a0220a1c82493e6198cffc5e590e48369cb07a0b55b2ae696c781d2e8315655291a1f8d898150c406492
SHA512
23529b956b4829b72be16f84348e3f741d4a344c35bdeaaa6368b21a493872339e05373854ade529e02158027eea836d2966a24f659427f93c43337c26f349ff
+DIST trytond-7.6.20.tar.gz 1055211 BLAKE2B
4fa37f58312eb18ed91fc1c30b4744312a5dabe2a0d9291a0a6571f6d7a0a340427a895bfdda80cecfdf31a35f84349eabc3228b95e4a5b04dcac2565b7fb23a
SHA512
f37dd9e7441607cff6d29b1ee86d483fbc5e9cc9c75a34f588999a8d89b0a4f9314c01a96906fa0c49e7c23cadf6ea41c4f2eb9c9f409cbb6a88031abcb39c72
+DIST trytond-7.8.8.tar.gz 1073623 BLAKE2B
c56d1f566aeb37acfcf4c01d326c684e8ce8bc29bae0c0a19865eeaa60e131a07f8fd05d0460561a4a5b834cf5833f2a1eac291e418afc2fa6d4993a7466d31a
SHA512
ea0cd867601f8ab9705fd673f51ef8d90981e55a7d409d4389bb7238b156a2b2cd4101462341f108531e0c101a8c95024bb177b5fe76b9d893927e020e96307e
+DIST trytond-8.0.2.tar.gz 956385 BLAKE2B
58e35e4d0369606dfded35d29518ff85d413690979f1c5247da4f6f8a60353035f88b58831d627cc632ed8ea7dcaf3766bf9cea67621ed4bd975cc9ee1d6587d
SHA512
05f35e9919cde82677763a6bdfd9042aced21dd820c7cc8854d849697f6272594c62d7d8919ba897fbaba71aebfbe1d1c63f0fe8702e16e820eab5021dccc504
+EBUILD trytond-7.0.49.ebuild 3258 BLAKE2B
242e6bdc2278680002d7b34646a325c3f69d5596a6dfca64842d5c79165a1b2e28936b024bd78d4560deebf6fc6ab2014efdfaa4fe636f7e17a2c0c917f5fa8f
SHA512
ddf8558b934b23790ab4bd876ebd5d68ffd7cafbb74fa976d379fc4be359102b05530d70e65458ba9927da2eebcdef36b87926a82d59ee5669fe89d0d22c3346
+EBUILD trytond-7.6.20.ebuild 3203 BLAKE2B
6e69a6b17214f9d947e3d3acb2ed869d41e26046a86a927cde7b490d3e8be3d06964bc0e2120a9e7e7050c48ef857945691214166596a75411845f911db819a3
SHA512
8195c035b7027c53745476ab3ba0333145ae08aa86fc6467b4ed99678a73f75468fa0fb9155e37db8e0145e805ed4a093eefd9a21d97163e3eee2f90ed6cae29
+EBUILD trytond-7.8.8.ebuild 3203 BLAKE2B
6e69a6b17214f9d947e3d3acb2ed869d41e26046a86a927cde7b490d3e8be3d06964bc0e2120a9e7e7050c48ef857945691214166596a75411845f911db819a3
SHA512
8195c035b7027c53745476ab3ba0333145ae08aa86fc6467b4ed99678a73f75468fa0fb9155e37db8e0145e805ed4a093eefd9a21d97163e3eee2f90ed6cae29
+EBUILD trytond-8.0.2.ebuild 3188 BLAKE2B
fa8dada4dd506eb84046630f595419fbb924b69897d5573d7bb6a5808df18f7cadaef82468cf0ffb5b8fc8727fe1ac29e0f6a1dc78d1676e4cd3c1a7993be987
SHA512
b3b8a0ad4bbad91faed44c2422aba5619b3b52578f540d88b6d9c7dc16ea6ffcc7dbb2bb6a17e0066ea0f72a37cbc8e8d2377ac2796ab736ec193d5feab7d829
MISC metadata.xml 890 BLAKE2B
0cdfba62159450bea5d52ac23b0ca1f65466653ef5ebe431df047cdfa15d3136dd4072c152f2bc8267b2e6f975f56f9113cd6df7c549e6d51373de18edfeed94
SHA512
8d86dbd5094f7bbb262d47a3d391ce71513418d85d6335660ad84498d304a09cfc71316b7e1a0e53df7e49d36bca1bbb1f53726d03beee8ef664e429962f1fb3
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-7.0.48.ebuild
--- a/app-office/trytond/trytond-7.0.48.ebuild Sun May 03 09:49:08 2026 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,99 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..12} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A three-tiers high-level general purpose business application
framework"
-HOMEPAGE="http://www.tryton.org/"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="graphviz +postgres sqlite levenshtein bcrypt argon2 html2text weasyprint
image barcode qrcode bash-completion email-validation test"
-
-RDEPEND="acct-group/trytond
- acct-user/trytond
- postgres? ( >=dev-python/psycopg-2.7.0:2[$PYTHON_USEDEP] )
- sqlite? ( dev-lang/python:*[sqlite] )
- dev-python/defusedxml[$PYTHON_USEDEP]
- >=dev-python/lxml-2.0[$PYTHON_USEDEP]
- >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
- dev-python/genshi[$PYTHON_USEDEP]
- dev-python/python-dateutil[$PYTHON_USEDEP]
- dev-python/polib[$PYTHON_USEDEP]
- >=dev-python/python-sql-1.3[$PYTHON_USEDEP]
- >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
- >=dev-python/passlib-1.7.0[$PYTHON_USEDEP]
- $(python_gen_cond_dep 'dev-python/pytz[${PYTHON_USEDEP}]'
python3_{8..9})
- $(python_gen_cond_dep 'dev-python/backports-entry-points-selectable'
python3_{8..9})
- graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
- levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
- bcrypt? ( dev-python/bcrypt[$PYTHON_USEDEP] )
- argon2? ( dev-python/argon2-cffi[$PYTHON_USEDEP] )
- html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
- weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
- image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
- barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
- qrcode? (
- dev-python/qrcode[$PYTHON_USEDEP]
- dev-python/webcolors[$PYTHON_USEDEP]
- )
- bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
- email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )"
-DEPEND="${RDEPEND}
- test? (
- $(python_gen_impl_dep sqlite)
- dev-python/pillow[truetype,$PYTHON_USEDEP]
- )"
-RESTRICT="!test? ( test )"
-DOCS="CHANGELOG COPYRIGHT README.rst doc/*.rst"
-
-distutils_enable_tests unittest
-
-src_install() {
- distutils-r1_src_install
-
- newinitd "${FILESDIR}"/trytond-init.d-2 trytond
- newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
- newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
- keepdir /var/log/trytond
- keepdir /var/lib/trytond
- fperms 770 /var/lib/trytond
-}
-
-python_test() {
- DB_NAME=":memory:" eunittest -s trytond.tests
-}
-
-pkg_preinst() {
- fowners trytond:trytond /var/log/trytond
- fowners trytond:trytond /var/lib/trytond
-}
-
-pkg_postinst() {
- if use postgres; then
- elog "In order to setup the initial database, run:"
- elog " emerge --config =${CATEGORY}/${PF}"
- elog "Be sure the database is started before"
- fi
-}
-
-pquery() {
- psql -q -At -U postgres -d template1 -c "$@"
-}
-
-pkg_config() {
- einfo "In the following, the 'postgres' user will be used."
- if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
- ebegin "Creating database user trytond"
- createuser --username=postgres --createdb trytond
- eend $? || die "Failed to create database user"
- fi
-}
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-7.0.49.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-7.0.49.ebuild Sun May 03 16:59:00 2026 +0200
@@ -0,0 +1,99 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A three-tiers high-level general purpose business application
framework"
+HOMEPAGE="http://www.tryton.org/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graphviz +postgres sqlite levenshtein bcrypt argon2 html2text weasyprint
image barcode qrcode bash-completion email-validation test"
+
+RDEPEND="acct-group/trytond
+ acct-user/trytond
+ postgres? ( >=dev-python/psycopg-2.7.0:2[$PYTHON_USEDEP] )
+ sqlite? ( dev-lang/python:*[sqlite] )
+ dev-python/defusedxml[$PYTHON_USEDEP]
+ >=dev-python/lxml-2.0[$PYTHON_USEDEP]
+ >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
+ dev-python/genshi[$PYTHON_USEDEP]
+ dev-python/python-dateutil[$PYTHON_USEDEP]
+ dev-python/polib[$PYTHON_USEDEP]
+ >=dev-python/python-sql-1.3[$PYTHON_USEDEP]
+ >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
+ >=dev-python/passlib-1.7.0[$PYTHON_USEDEP]
+ $(python_gen_cond_dep 'dev-python/pytz[${PYTHON_USEDEP}]'
python3_{8..9})
+ $(python_gen_cond_dep 'dev-python/backports-entry-points-selectable'
python3_{8..9})
+ graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
+ levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
+ bcrypt? ( dev-python/bcrypt[$PYTHON_USEDEP] )
+ argon2? ( dev-python/argon2-cffi[$PYTHON_USEDEP] )
+ html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
+ weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
+ image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
+ barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
+ qrcode? (
+ dev-python/qrcode[$PYTHON_USEDEP]
+ dev-python/webcolors[$PYTHON_USEDEP]
+ )
+ bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
+ email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )"
+DEPEND="${RDEPEND}
+ test? (
+ $(python_gen_impl_dep sqlite)
+ dev-python/pillow[truetype,$PYTHON_USEDEP]
+ )"
+RESTRICT="!test? ( test )"
+DOCS="CHANGELOG COPYRIGHT README.rst doc/*.rst"
+
+distutils_enable_tests unittest
+
+src_install() {
+ distutils-r1_src_install
+
+ newinitd "${FILESDIR}"/trytond-init.d-2 trytond
+ newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
+ newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
+ keepdir /var/log/trytond
+ keepdir /var/lib/trytond
+ fperms 770 /var/lib/trytond
+}
+
+python_test() {
+ DB_NAME=":memory:" eunittest -s trytond.tests
+}
+
+pkg_preinst() {
+ fowners trytond:trytond /var/log/trytond
+ fowners trytond:trytond /var/lib/trytond
+}
+
+pkg_postinst() {
+ if use postgres; then
+ elog "In order to setup the initial database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "Be sure the database is started before"
+ fi
+}
+
+pquery() {
+ psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+ einfo "In the following, the 'postgres' user will be used."
+ if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
+ ebegin "Creating database user trytond"
+ createuser --username=postgres --createdb trytond
+ eend $? || die "Failed to create database user"
+ fi
+}
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-7.6.19.ebuild
--- a/app-office/trytond/trytond-7.6.19.ebuild Sun May 03 09:49:08 2026 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,98 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..13} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A three-tiers high-level general purpose business application
framework"
-HOMEPAGE="http://www.tryton.org/"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="graphviz +postgres sqlite levenshtein html2text weasyprint image barcode
qrcode bash-completion email-validation test"
-
-RDEPEND="acct-group/trytond
- acct-user/trytond
- postgres? ( >=dev-python/psycopg-2.7.0:2[$PYTHON_USEDEP] )
- sqlite? ( dev-lang/python:*[sqlite] )
- dev-python/defusedxml[$PYTHON_USEDEP]
- >=dev-python/lxml-2.0[$PYTHON_USEDEP]
- >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
- dev-python/genshi[$PYTHON_USEDEP]
- dev-python/python-dateutil[$PYTHON_USEDEP]
- dev-python/polib[$PYTHON_USEDEP]
- >=dev-python/python-sql-1.5[$PYTHON_USEDEP]
- dev-python/simpleeval[$PYTHON_USEDEP]
- >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
- >=dev-python/pwdlib-0.2[argon2,$PYTHON_USEDEP]
- $(python_gen_cond_dep 'dev-python/pytz[${PYTHON_USEDEP}]'
python3_{8..9})
- $(python_gen_cond_dep 'dev-python/backports-entry-points-selectable'
python3_{8..9})
- graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
- levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
- html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
- weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
- image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
- barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
- qrcode? (
- dev-python/qrcode[$PYTHON_USEDEP]
- dev-python/webcolors[$PYTHON_USEDEP]
- )
- bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
- email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )"
-DEPEND="${RDEPEND}
- test? (
- $(python_gen_impl_dep sqlite)
- dev-python/pillow[truetype,$PYTHON_USEDEP]
- )"
-RESTRICT="!test? ( test )"
-DOCS="CHANGELOG COPYRIGHT README.rst doc/*.rst"
-
-distutils_enable_tests unittest
-
-src_install() {
- distutils-r1_src_install
-
- newinitd "${FILESDIR}"/trytond-init.d-2 trytond
- newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
- newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
- keepdir /var/log/trytond
- keepdir /var/lib/trytond
- fperms 770 /var/lib/trytond
-}
-
-python_test() {
- DB_NAME=":memory:" TEST_NETWORK=0 eunittest -s trytond.tests
-}
-
-pkg_preinst() {
- fowners trytond:trytond /var/log/trytond
- fowners trytond:trytond /var/lib/trytond
-}
-
-pkg_postinst() {
- if use postgres; then
- elog "In order to setup the initial database, run:"
- elog " emerge --config =${CATEGORY}/${PF}"
- elog "Be sure the database is started before"
- fi
-}
-
-pquery() {
- psql -q -At -U postgres -d template1 -c "$@"
-}
-
-pkg_config() {
- einfo "In the following, the 'postgres' user will be used."
- if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
- ebegin "Creating database user trytond"
- createuser --username=postgres --createdb trytond
- eend $? || die "Failed to create database user"
- fi
-}
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-7.6.20.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-7.6.20.ebuild Sun May 03 16:59:00 2026 +0200
@@ -0,0 +1,98 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A three-tiers high-level general purpose business application
framework"
+HOMEPAGE="http://www.tryton.org/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graphviz +postgres sqlite levenshtein html2text weasyprint image barcode
qrcode bash-completion email-validation test"
+
+RDEPEND="acct-group/trytond
+ acct-user/trytond
+ postgres? ( >=dev-python/psycopg-2.7.0:2[$PYTHON_USEDEP] )
+ sqlite? ( dev-lang/python:*[sqlite] )
+ dev-python/defusedxml[$PYTHON_USEDEP]
+ >=dev-python/lxml-2.0[$PYTHON_USEDEP]
+ >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
+ dev-python/genshi[$PYTHON_USEDEP]
+ dev-python/python-dateutil[$PYTHON_USEDEP]
+ dev-python/polib[$PYTHON_USEDEP]
+ >=dev-python/python-sql-1.5[$PYTHON_USEDEP]
+ dev-python/simpleeval[$PYTHON_USEDEP]
+ >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
+ >=dev-python/pwdlib-0.2[argon2,$PYTHON_USEDEP]
+ $(python_gen_cond_dep 'dev-python/pytz[${PYTHON_USEDEP}]'
python3_{8..9})
+ $(python_gen_cond_dep 'dev-python/backports-entry-points-selectable'
python3_{8..9})
+ graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
+ levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
+ html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
+ weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
+ image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
+ barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
+ qrcode? (
+ dev-python/qrcode[$PYTHON_USEDEP]
+ dev-python/webcolors[$PYTHON_USEDEP]
+ )
+ bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
+ email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )"
+DEPEND="${RDEPEND}
+ test? (
+ $(python_gen_impl_dep sqlite)
+ dev-python/pillow[truetype,$PYTHON_USEDEP]
+ )"
+RESTRICT="!test? ( test )"
+DOCS="CHANGELOG COPYRIGHT README.rst doc/*.rst"
+
+distutils_enable_tests unittest
+
+src_install() {
+ distutils-r1_src_install
+
+ newinitd "${FILESDIR}"/trytond-init.d-2 trytond
+ newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
+ newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
+ keepdir /var/log/trytond
+ keepdir /var/lib/trytond
+ fperms 770 /var/lib/trytond
+}
+
+python_test() {
+ DB_NAME=":memory:" TEST_NETWORK=0 eunittest -s trytond.tests
+}
+
+pkg_preinst() {
+ fowners trytond:trytond /var/log/trytond
+ fowners trytond:trytond /var/lib/trytond
+}
+
+pkg_postinst() {
+ if use postgres; then
+ elog "In order to setup the initial database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "Be sure the database is started before"
+ fi
+}
+
+pquery() {
+ psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+ einfo "In the following, the 'postgres' user will be used."
+ if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
+ ebegin "Creating database user trytond"
+ createuser --username=postgres --createdb trytond
+ eend $? || die "Failed to create database user"
+ fi
+}
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-7.8.7.ebuild
--- a/app-office/trytond/trytond-7.8.7.ebuild Sun May 03 09:49:08 2026 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,98 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..13} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A three-tiers high-level general purpose business application
framework"
-HOMEPAGE="http://www.tryton.org/"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="graphviz +postgres sqlite levenshtein html2text weasyprint image barcode
qrcode bash-completion email-validation test"
-
-RDEPEND="acct-group/trytond
- acct-user/trytond
- postgres? ( >=dev-python/psycopg-2.7.0:2[$PYTHON_USEDEP] )
- sqlite? ( dev-lang/python:*[sqlite] )
- dev-python/defusedxml[$PYTHON_USEDEP]
- >=dev-python/lxml-2.0[$PYTHON_USEDEP]
- >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
- dev-python/genshi[$PYTHON_USEDEP]
- dev-python/python-dateutil[$PYTHON_USEDEP]
- dev-python/polib[$PYTHON_USEDEP]
- >=dev-python/python-sql-1.5[$PYTHON_USEDEP]
- dev-python/simpleeval[$PYTHON_USEDEP]
- >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
- >=dev-python/pwdlib-0.2[argon2,$PYTHON_USEDEP]
- $(python_gen_cond_dep 'dev-python/pytz[${PYTHON_USEDEP}]'
python3_{8..9})
- $(python_gen_cond_dep 'dev-python/backports-entry-points-selectable'
python3_{8..9})
- graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
- levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
- html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
- weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
- image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
- barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
- qrcode? (
- dev-python/qrcode[$PYTHON_USEDEP]
- dev-python/webcolors[$PYTHON_USEDEP]
- )
- bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
- email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )"
-DEPEND="${RDEPEND}
- test? (
- $(python_gen_impl_dep sqlite)
- dev-python/pillow[truetype,$PYTHON_USEDEP]
- )"
-RESTRICT="!test? ( test )"
-DOCS="CHANGELOG COPYRIGHT README.rst doc/*.rst"
-
-distutils_enable_tests unittest
-
-src_install() {
- distutils-r1_src_install
-
- newinitd "${FILESDIR}"/trytond-init.d-2 trytond
- newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
- newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
- keepdir /var/log/trytond
- keepdir /var/lib/trytond
- fperms 770 /var/lib/trytond
-}
-
-python_test() {
- DB_NAME=":memory:" TEST_NETWORK=0 eunittest -s trytond.tests
-}
-
-pkg_preinst() {
- fowners trytond:trytond /var/log/trytond
- fowners trytond:trytond /var/lib/trytond
-}
-
-pkg_postinst() {
- if use postgres; then
- elog "In order to setup the initial database, run:"
- elog " emerge --config =${CATEGORY}/${PF}"
- elog "Be sure the database is started before"
- fi
-}
-
-pquery() {
- psql -q -At -U postgres -d template1 -c "$@"
-}
-
-pkg_config() {
- einfo "In the following, the 'postgres' user will be used."
- if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
- ebegin "Creating database user trytond"
- createuser --username=postgres --createdb trytond
- eend $? || die "Failed to create database user"
- fi
-}
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-7.8.8.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-7.8.8.ebuild Sun May 03 16:59:00 2026 +0200
@@ -0,0 +1,98 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A three-tiers high-level general purpose business application
framework"
+HOMEPAGE="http://www.tryton.org/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graphviz +postgres sqlite levenshtein html2text weasyprint image barcode
qrcode bash-completion email-validation test"
+
+RDEPEND="acct-group/trytond
+ acct-user/trytond
+ postgres? ( >=dev-python/psycopg-2.7.0:2[$PYTHON_USEDEP] )
+ sqlite? ( dev-lang/python:*[sqlite] )
+ dev-python/defusedxml[$PYTHON_USEDEP]
+ >=dev-python/lxml-2.0[$PYTHON_USEDEP]
+ >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
+ dev-python/genshi[$PYTHON_USEDEP]
+ dev-python/python-dateutil[$PYTHON_USEDEP]
+ dev-python/polib[$PYTHON_USEDEP]
+ >=dev-python/python-sql-1.5[$PYTHON_USEDEP]
+ dev-python/simpleeval[$PYTHON_USEDEP]
+ >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
+ >=dev-python/pwdlib-0.2[argon2,$PYTHON_USEDEP]
+ $(python_gen_cond_dep 'dev-python/pytz[${PYTHON_USEDEP}]'
python3_{8..9})
+ $(python_gen_cond_dep 'dev-python/backports-entry-points-selectable'
python3_{8..9})
+ graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
+ levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
+ html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
+ weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
+ image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
+ barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
+ qrcode? (
+ dev-python/qrcode[$PYTHON_USEDEP]
+ dev-python/webcolors[$PYTHON_USEDEP]
+ )
+ bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
+ email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )"
+DEPEND="${RDEPEND}
+ test? (
+ $(python_gen_impl_dep sqlite)
+ dev-python/pillow[truetype,$PYTHON_USEDEP]
+ )"
+RESTRICT="!test? ( test )"
+DOCS="CHANGELOG COPYRIGHT README.rst doc/*.rst"
+
+distutils_enable_tests unittest
+
+src_install() {
+ distutils-r1_src_install
+
+ newinitd "${FILESDIR}"/trytond-init.d-2 trytond
+ newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
+ newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
+ keepdir /var/log/trytond
+ keepdir /var/lib/trytond
+ fperms 770 /var/lib/trytond
+}
+
+python_test() {
+ DB_NAME=":memory:" TEST_NETWORK=0 eunittest -s trytond.tests
+}
+
+pkg_preinst() {
+ fowners trytond:trytond /var/log/trytond
+ fowners trytond:trytond /var/lib/trytond
+}
+
+pkg_postinst() {
+ if use postgres; then
+ elog "In order to setup the initial database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "Be sure the database is started before"
+ fi
+}
+
+pquery() {
+ psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+ einfo "In the following, the 'postgres' user will be used."
+ if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
+ ebegin "Creating database user trytond"
+ createuser --username=postgres --createdb trytond
+ eend $? || die "Failed to create database user"
+ fi
+}
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-8.0.1.ebuild
--- a/app-office/trytond/trytond-8.0.1.ebuild Sun May 03 09:49:08 2026 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..14} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A three-tiers high-level general purpose business application
framework"
-HOMEPAGE="http://www.tryton.org/"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="levenshtein +postgres sqlite barcode bash-completion email-validation
graphviz html2text image qrcode test weasyprint"
-
-RDEPEND="acct-group/trytond
- acct-user/trytond
- dev-python/genshi[$PYTHON_USEDEP]
- dev-python/defusedxml[$PYTHON_USEDEP]
- >=dev-python/lxml-2.0[$PYTHON_USEDEP]
- dev-python/polib[$PYTHON_USEDEP]
- >=dev-python/pwdlib-0.2[argon2,$PYTHON_USEDEP]
- dev-python/python-dateutil[$PYTHON_USEDEP]
- >=dev-python/python-sql-1.5[$PYTHON_USEDEP]
- >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
- dev-python/simpleeval[$PYTHON_USEDEP]
- >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
- levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
- postgres? (
- >=dev-python/psycopg-3[$PYTHON_USEDEP]
- >=dev-python/psycopg-pool-3[$PYTHON_USEDEP]
- )
- sqlite? ( dev-lang/python:*[sqlite] )
- barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
- bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
- email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )
- graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
- html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
- image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
- qrcode? (
- dev-python/qrcode[$PYTHON_USEDEP]
- dev-python/webcolors[$PYTHON_USEDEP]
- )
- weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )"
-DEPEND="${RDEPEND}
- test? (
- $(python_gen_impl_dep sqlite)
- dev-python/html2text[$PYTHON_USEDEP]
- dev-python/pillow[truetype,$PYTHON_USEDEP]
- dev-python/pydot[$PYTHON_USEDEP]
- )"
-BDEPEND="dev-python/hatch-tryton[$PYTHON_USEDEP]"
-RESTRICT="!test? ( test )"
-DOCS=( LICENSE COPYRIGHT )
-
-distutils_enable_tests unittest
-
-src_install() {
- distutils-r1_src_install
-
- newinitd "${FILESDIR}"/trytond-init.d-2 trytond
- newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
- newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
- newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
- keepdir /var/log/trytond
- keepdir /var/lib/trytond
- fperms 770 /var/lib/trytond
-}
-
-python_test() {
- DB_NAME=":memory:" TEST_NETWORK=0 eunittest -s trytond.tests
-}
-
-pkg_preinst() {
- fowners trytond:trytond /var/log/trytond
- fowners trytond:trytond /var/lib/trytond
-}
-
-pkg_postinst() {
- if use postgres; then
- elog "In order to setup the initial database, run:"
- elog " emerge --config =${CATEGORY}/${PF}"
- elog "Be sure the database is started before"
- fi
-}
-
-pquery() {
- psql -q -At -U postgres -d template1 -c "$@"
-}
-
-pkg_config() {
- einfo "In the following, the 'postgres' user will be used."
- if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
- ebegin "Creating database user trytond"
- createuser --username=postgres --createdb trytond
- eend $? || die "Failed to create database user"
- fi
-}
diff -r bf2ef8378e64 -r cd695ebc65b6 app-office/trytond/trytond-8.0.2.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-8.0.2.ebuild Sun May 03 16:59:00 2026 +0200
@@ -0,0 +1,102 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{10..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A three-tiers high-level general purpose business application
framework"
+HOMEPAGE="http://www.tryton.org/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="levenshtein +postgres sqlite barcode bash-completion email-validation
graphviz html2text image qrcode test weasyprint"
+
+RDEPEND="acct-group/trytond
+ acct-user/trytond
+ dev-python/genshi[$PYTHON_USEDEP]
+ dev-python/defusedxml[$PYTHON_USEDEP]
+ >=dev-python/lxml-2.0[$PYTHON_USEDEP]
+ dev-python/polib[$PYTHON_USEDEP]
+ >=dev-python/pwdlib-0.2[argon2,$PYTHON_USEDEP]
+ dev-python/python-dateutil[$PYTHON_USEDEP]
+ >=dev-python/python-sql-1.5[$PYTHON_USEDEP]
+ >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
+ dev-python/simpleeval[$PYTHON_USEDEP]
+ >=dev-python/werkzeug-0.12[$PYTHON_USEDEP]
+ levenshtein? ( dev-python/levenshtein[$PYTHON_USEDEP] )
+ postgres? (
+ >=dev-python/psycopg-3[$PYTHON_USEDEP]
+ >=dev-python/psycopg-pool-3[$PYTHON_USEDEP]
+ )
+ sqlite? ( dev-lang/python:*[sqlite] )
+ barcode? ( dev-python/python-barcode[image,$PYTHON_USEDEP] )
+ bash-completion? ( dev-python/argcomplete[$PYTHON_USEDEP] )
+ email-validation? ( dev-python/email-validator[$PYTHON_USEDEP] )
+ graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
+ html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
+ image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )
+ qrcode? (
+ dev-python/qrcode[$PYTHON_USEDEP]
+ dev-python/webcolors[$PYTHON_USEDEP]
+ )
+ weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )"
+DEPEND="${RDEPEND}
+ test? (
+ $(python_gen_impl_dep sqlite)
+ dev-python/html2text[$PYTHON_USEDEP]
+ dev-python/pillow[truetype,$PYTHON_USEDEP]
+ dev-python/pydot[$PYTHON_USEDEP]
+ )"
+BDEPEND="dev-python/hatch-tryton[$PYTHON_USEDEP]"
+RESTRICT="!test? ( test )"
+DOCS=( LICENSE COPYRIGHT )
+
+distutils_enable_tests unittest
+
+src_install() {
+ distutils-r1_src_install
+
+ newinitd "${FILESDIR}"/trytond-init.d-2 trytond
+ newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
+ newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
+ newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
+ keepdir /var/log/trytond
+ keepdir /var/lib/trytond
+ fperms 770 /var/lib/trytond
+}
+
+python_test() {
+ DB_NAME=":memory:" TEST_NETWORK=0 eunittest -s trytond.tests
+}
+
+pkg_preinst() {
+ fowners trytond:trytond /var/log/trytond
+ fowners trytond:trytond /var/lib/trytond
+}
+
+pkg_postinst() {
+ if use postgres; then
+ elog "In order to setup the initial database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "Be sure the database is started before"
+ fi
+}
+
+pquery() {
+ psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+ einfo "In the following, the 'postgres' user will be used."
+ if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" |
grep -q trytond; then
+ ebegin "Creating database user trytond"
+ createuser --username=postgres --createdb trytond
+ eend $? || die "Failed to create database user"
+ fi
+}