summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2014-01-25 14:16:23 +0000
committerYixun Lan <dlan@gentoo.org>2014-01-25 14:16:23 +0000
commitbe6eef880559da95077e5cd45805e6a966f3db8b (patch)
treefc6e38ab424e310a68d2eabdd52836acec1af896 /app-office
parentVersion bump (diff)
downloadhistorical-be6eef880559da95077e5cd45805e6a966f3db8b.tar.gz
historical-be6eef880559da95077e5cd45805e6a966f3db8b.tar.bz2
historical-be6eef880559da95077e5cd45805e6a966f3db8b.zip
version bump, stable and development version
Package-Manager: portage-2.2.8/cvs/Linux x86_64 Manifest-Sign-Key: 0xAABEFD55
Diffstat (limited to 'app-office')
-rw-r--r--app-office/openerp/ChangeLog11
-rw-r--r--app-office/openerp/Manifest28
-rw-r--r--app-office/openerp/metadata.xml5
-rw-r--r--app-office/openerp/openerp-7.0.20140125.ebuild120
-rw-r--r--app-office/openerp/openerp-8.0.20140125.ebuild120
5 files changed, 280 insertions, 4 deletions
diff --git a/app-office/openerp/ChangeLog b/app-office/openerp/ChangeLog
index 8600d22b6a06..f08bfa08f2c7 100644
--- a/app-office/openerp/ChangeLog
+++ b/app-office/openerp/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-office/openerp
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/openerp/ChangeLog,v 1.14 2013/04/11 03:22:34 patrick Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/openerp/ChangeLog,v 1.15 2014/01/25 14:16:09 dlan Exp $
+
+*openerp-8.0.20140125 (25 Jan 2014)
+*openerp-7.0.20140125 (25 Jan 2014)
+
+ 25 Jan 2014; Yixun Lan <dlan@gentoo.org> +openerp-7.0.20140125.ebuild,
+ +openerp-8.0.20140125.ebuild, metadata.xml:
+ version bump, stable and development
11 Apr 2013; Patrick Lauer <patrick@gentoo.org>
openerp-7.0.20130219-r5.ebuild:
diff --git a/app-office/openerp/Manifest b/app-office/openerp/Manifest
index 8c113e452a15..f0e9a5b85197 100644
--- a/app-office/openerp/Manifest
+++ b/app-office/openerp/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX openerp 489 SHA256 3a4cd680b3a4497f76e1c015e4ba36972f099e14f17cb04da3ff14cedb017618 SHA512 a57a4711dc1eb34ccc14aa32542f3e2093948556358bd00b04db6ab8cbb23b1e1a1bfc98ee05c6f8203958ca3af43f9044c097027d26592dd50f08effac45697 WHIRLPOOL acead075805334affc8ad4e46d8b4ec1ab8f7a5bd3f05970d04e4cdd71011b18d5553e3d4c771a1ca47c6a76976c353c05a26e5cd3c60be23880c8910e452012
AUX openerp-2 546 SHA256 a3fdd0b7292f957957eb02525a63786ec243403885d14e4332c1af88bba4abe6 SHA512 ce778a3aaae577dbb9fb23bef112181a82daafd79c2f52c28cd2faf6fbe84a6d28a7f7ff9e3a94f1485e785e48492849ec98df3fe2191b87fbf0b99d87c28ffe WHIRLPOOL 5eca9e98826989a1ed324bb9670948b16ed00c7af42d6f158d5976935be693ee549e5a26d39337eb236fa51a671efa049a3e3433c01011dbd5907007caddd4c2
AUX openerp-6.1-setup.py.patch 1009 SHA256 a4e47a30186ee12136a0506d9b087787def94ffc98eda257f8549838673319fe SHA512 9affa8e3a93257792f44607e0bdf4b81ad517e50d1abd2d9848fa27642c5ef21b3a737d4d05b530694154404939f61dea935b91b002fed92e33059de7e221864 WHIRLPOOL 8364bf04ea6fb957b7493adcf6fb6aeaba5462d1778059f225f7bc0b5896667ef701407eea9b07a29d756d9d44c6b5ecac69141848217e851e791e835e0c60b5
@@ -8,7 +11,28 @@ AUX openerp.cfg.2 1145 SHA256 06af3effd55c7029bc38ffb7f8b92688691d2794fed6f8ccf1
AUX openerp.logrotate 315 SHA256 5d411eb1f6feb5347f7c54c94dfd091d657a6b87a72b4d1c7cd69222ead49bd8 SHA512 64c9daeaac7cd47690434922767d8b8df8ee2454450e68d6a7aa7658b6e2f500d0f35367d058700360f1a97ec46b8887e07a245a27192019ed958419869c58d5 WHIRLPOOL 49f494ffa41a882062f6754ac9f4180f10b0c4dc4f1ce2d95e8ab3e2440067f96f4917ab04284789ae2ecfb8b6d53e0d6396c1d52b94006394cad760db6ce0fc
DIST openerp-6.1-1.tar.gz 73310629 SHA256 a89016d706f1693833590d2ce5cf7768fb3586213661014adad5ed16cdc77cd7 SHA512 0cf407fda4d7ce414b548310018609381157e656069b5224bb05ae6dbf7d534b9acbbb5be561ec1f9a26786ec6fc9b917fb78faff3c67340916f663ccb5297cf WHIRLPOOL 384ae795df9d23c07a6e06c0c468cb6d9af0c2625648bda5d895271f2d1e07d00b81e7da3d4255f709d5eed299166c65b29ec335a71307ea1a3f6775b590befe
DIST openerp-7.0-20130219-002614.tar.gz 60420142 SHA256 e4408348259fa8bf86909035a4f86417671f09ac6c4a9ec50c4a55a69e5a3674 SHA512 15cb43d1a698da751a0109c256dd8875b7a064541ee7550c66d70c03143aa6486eb39b05966b1ef77e4cf9b0d333101e84fb8508411a7acf9b0a44a0f8897f3a WHIRLPOOL c4a5840fa9d76840f0da645e4a107296750d32161f21d81b22ba579b35172d2abe2fb24126e2c69de18e0b13a4555a82e938291728f6c370451a150a218fbbeb
+DIST openerp-7.0-20140125-002455.tar.gz 64214375 SHA256 2bf832dda8f8e844476bb76cd60be84da1cc219e97be9da15b0a95b1e537bc4e SHA512 a923fe3240cf44f6384f18bd37853d15fe132aab97494e713f095253cd4b72d32a89e33ba3623a523b81b9863da6d5bca24c4020b20829975e4185d6e5093b3e WHIRLPOOL 5a4fcb37a6ea800e63294fe6b9dcbb3f82e91d1f0adfe412935b699b8e0c2901914dcfc5c0c62e2b289e057ecb4f30c5a4c06887c2d8e893ce1c1b03e6f5ce62
+DIST openerp-8.0dev-20140125-000101.tar.gz 82648176 SHA256 647c4a5ec28340f7c5a32dd50173b98bf62dd18ba00cc1929538a8803c704da0 SHA512 560f0cd9aadfb010dfba1a114ca17ed8dc7b63fffdd93325811b87530e97a8e629c46442e777bd0c53fb38b1a985e769e3fb5f5edf66b9b45f21be3e8973aedd WHIRLPOOL 1fb6e185250c08e948b11f2ca6581723055eefd0edb6a7999029b950b064c7aebf23a83bc014240c2d2d78284fcf8292761b6cc7733f270f14bfd4a98673a222
EBUILD openerp-6.1.1-r1.ebuild 2736 SHA256 5d88860f56560e4b03558376557e6219d95e2defaf5458db748fc5dbe47e1140 SHA512 916d94f9eb7583cfb579254c126c9ddd629d85bfbe9b3d5df05f2308af0b2fb42dedc22bbf984581fac4d139317ede6c200b9564394a31d4c8cc743d94a218f7 WHIRLPOOL 3d95b5abc6ba1bb16fd5aa37dd5b1dc1474eda0bfdc4711534ffde4b8d2b643150ecf54e3e1d60ae721de6deed837520a399e0c886eb9fb947a50a68488a1b04
EBUILD openerp-7.0.20130219-r5.ebuild 2792 SHA256 160a5c9701ecba160474c9eded03cce666a632f073df0a68487a2772a04e7fbf SHA512 3cc1371c3bab61d5fac2d847779deeeb74bad7b575ea2cd5417e079cd01427ede0e0d9b573d0b75add00eb41aa7523cc542792ad7aba82f52e9e71bb0b1f8656 WHIRLPOOL 55e3289c11284c2e38da47aca98cbbf410e14e1161e79c860434c0ea95a15a1f240b7a43750d018a11edc51c98c9bde1e39e8c1764049d0691f663d753003cd3
-MISC ChangeLog 2609 SHA256 07416e1daa7c07d34f5cbf4e276ca5b8f85af4a492aa7f27fd3757d7dd85d734 SHA512 54a0e6c95f45b3e09432b38a7ce0f20e23c815d421035ee44584fc7db1685de212aa9dc4ca7989e19633341a8b8c8ef38f804375b42cae9e34097276b8f489b7 WHIRLPOOL 5c28865b49eecf9226be6898aff91be19fff110ea797549bfc49bd3b0cceed5e140bedce9bca34040903abc6c9e2b37d7092c4224211d571b3e56a0283377b9a
-MISC metadata.xml 233 SHA256 65209e280ca6de32a92e1a57301ff69fb3472e55ba07848d6f80405d35e92d47 SHA512 0d30bfb39315a04767e07896409f5d3954f8e954e20fcbac7b92bb9a636c9f61c50b1b2cf55e6c1db9a199a0edc159b5c8cc8f541efb9c4adafa28e3652cff7b WHIRLPOOL 027c5101e1cbc665c9d2ef240f73a874c9f49a9b70175c5947e012df61de484585088a46b6ce9078816e548e6bcc326e7223539cc999159eee2757d0a2eb1480
+EBUILD openerp-7.0.20140125.ebuild 3831 SHA256 e4bef6ad157dd5e501d7296eff8abf82172952b9b562ec4254e68dbf05879290 SHA512 5e2a2b9f567c095cd46b61aef9a4c883a829a408b4bd18ca1bdd10e2c01e467079a617ebd01f914c45a136f6ff217a62e9cd8f74502007d7b23cef4bd7e33574 WHIRLPOOL f64ff8fc0af0b9fe33f41119672db8585d59e0bc20253782bd18a9ec82cad29f68c965ddcc45dbe5def2e772f814f2d4ec5798c679417ac1201bfdc8642f03bb
+EBUILD openerp-8.0.20140125.ebuild 3825 SHA256 6bd9a9b78aadc4e2a55ed1892c24ba0beaf5beb0b01fc7aea2a6496aaa96f8e3 SHA512 fb1e681dc942c2fb2d9e2f522e74c0d199fdf07d78643a28ec75786c1cde21b737c5036c2e60f670cfe0fb243e2ad67d246fe0ff544d6413b0c33acdef82ce51 WHIRLPOOL 74074d1c54d693aedcd876da6019e7659d4bca6247e59e3c084600df069e603336672cf5e00b85d7f7aa94e1734b22e7c358480368f8bf41648a97d742a7a3f4
+MISC ChangeLog 2838 SHA256 9d7d6a676a2b97f825d9845aaa2dc2337b0b1a9e17644ab8e34ecd1f58ba7d3c SHA512 0ab8e449d324aa2543e6350d047b95785599552314111d37767db3f26b33e3a991a92fce7ea2e9af88e83dc282688a7aab97a496b0dad0680b51f0a0fdd91a11 WHIRLPOOL 3f484736908e9b07c7e8da7d664c11c0eb14360678f1ad6d4267df28e38a98e5d461d4cf85474490b8e4d4d2ea2f7fc8d8b31c73e7ecc056ce133f020dfc5edd
+MISC metadata.xml 363 SHA256 68efabd134421d28a55eb47c2e7d7b46562cefcc497953988dec5d9b995b0ef1 SHA512 643cdd21959394cf3af8f8ec11925a81e99a8d2c1f60f0d6b2c263fa7cc850e06dd823c000936be8c0ff6d96530146ff14ed3861bf4bfad2374d96e798ccd014 WHIRLPOOL 0319053d479e9c8e38cf50f53a5f3595c8e79b282389441af777045784c515ba4adf2a9ab1dbbfaffb0f27895018cecece90b0e4a43cee930c571e7168b11619
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+iQIcBAEBCAAGBQJS48c1AAoJEJIMDbyqvv1V6VoP/345Wouu2PFi8KxGeJ0QGPZ/
+PgE4CPdQPcMno7z7tksqbQnB/XPIjtvhENHIYd7thqs2p7ilRjwxlG7a95AY4kUQ
+2xaDZ8gpPVUxJWyKjw4YLcRyRp4pslKhSHp9QDk2nwHI8J9cobccEmJff3gIvSvm
+I1/LvujeD/4fW316RPEuObgFV1Vib0YZ2aQCGOcpou1FNd82o4oLYJ8ufk+vIgLv
+EusvR9I3gHWWjVusRsiLgbtdEAalHXDPKSsZYCAkLsG8CzOFR6e+bo9SDjT7hG0C
+X0i+JMv1lnCHeOvi89Eg+ygmXbb3AIDZeLbZBC+GQit7+O6r+gt7ja5PPdJk5j2t
+gH6o9e1hDEpNj/4lFznsB/H/0SIbPkLP0kPun0f+ib391HbAT2QMBfneXZQlhe0j
+BZzGs+YaVkSpUTSBmEP9Ji+2ABF7cvMD51sAp5cxKJLYzY/BnOPZUZZ+TREdEprt
+JrOe5xbyNSI4MgjEtRyxoWOFd/ErS34qSy62rPpDxiU00mQLKK9259Fzrb8TgvIp
+O4MdEipcJcR3i/Sp2x44oahzaX0fz9mCv4Qo+5Ja/Bkjeus9HcQS0XtJaW4LWPSB
+A77V2MmnotAht5py6/gOsYxSTxR4lNmliose/2MPGs6QqAJaHRwKwCHzO6R3/ALW
+jWFmFwhDD6TB+Lz1P5H/
+=4hxs
+-----END PGP SIGNATURE-----
diff --git a/app-office/openerp/metadata.xml b/app-office/openerp/metadata.xml
index 24cbb90cf0c4..8dd197b469c7 100644
--- a/app-office/openerp/metadata.xml
+++ b/app-office/openerp/metadata.xml
@@ -5,4 +5,9 @@
<email>patrick@gentoo.org</email>
<name>Patrick Lauer</name>
</maintainer>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ <description>Co Maintainer</description>
+ </maintainer>
</pkgmetadata>
diff --git a/app-office/openerp/openerp-7.0.20140125.ebuild b/app-office/openerp/openerp-7.0.20140125.ebuild
new file mode 100644
index 000000000000..7864fb9dffc8
--- /dev/null
+++ b/app-office/openerp/openerp-7.0.20140125.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/openerp/openerp-7.0.20140125.ebuild,v 1.1 2014/01/25 14:16:09 dlan Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit eutils distutils-r1 user
+
+DESCRIPTION="Open Source ERP & CRM"
+HOMEPAGE="http://www.openerp.com/"
+MY_PV=${PV/7.0./7.0-}
+FNAME="${PN}-${MY_PV}-002455"
+SRC_URI="http://nightly.openerp.com/7.0/nightly/src/${FNAME}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="+postgres ldap ssl"
+
+CDEPEND="!app-office/openerp-web
+ postgres? ( dev-db/postgresql-server )
+ dev-python/psutil[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/psycopg:2[${PYTHON_USEDEP}]
+ dev-python/pychart[${PYTHON_USEDEP}]
+ dev-python/pyparsing[${PYTHON_USEDEP}]
+ dev-python/reportlab[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+ media-gfx/pydot
+ dev-python/vobject[${PYTHON_USEDEP}]
+ dev-python/mako[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/Babel[${PYTHON_USEDEP}]
+ dev-python/gdata[${PYTHON_USEDEP}]
+ ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
+ dev-python/python-openid[${PYTHON_USEDEP}]
+ dev-python/werkzeug[${PYTHON_USEDEP}]
+ dev-python/xlwt[${PYTHON_USEDEP}]
+ dev-python/feedparser[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pywebdav[${PYTHON_USEDEP}]
+ ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
+ dev-python/vatnumber[${PYTHON_USEDEP}]
+ dev-python/zsi[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/unittest2[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ virtual/python-imaging[jpeg,${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ "
+
+RDEPEND="${CDEPEND}"
+DEPEND="${CDEPEND}"
+
+OPENERP_USER="openerp"
+OPENERP_GROUP="openerp"
+
+S="${WORKDIR}/${FNAME}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ newinitd "${FILESDIR}/${PN}-2" "${PN}"
+ newconfd "${FILESDIR}/openerp-confd-2" "${PN}"
+ keepdir /var/log/openerp
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/openerp.logrotate openerp
+ dodir /etc/openerp
+ insinto /etc/openerp
+ newins "${FILESDIR}"/openerp.cfg.2 openerp.cfg
+
+ # #453424 Fix error on /usr/openerp/import_xml.rng
+ dosym /usr/${PN}/import_xml.rng $(python_get_sitedir)/${PN}/import_xml.rng
+
+ # #453424 Fix error on /usr/openerp/addons/base/res/res_company_logo.png
+ dosym /usr/${PN}/addons/base/res/res_company_logo.png $(python_get_sitedir)/${PN}/addons/base/res/res_company_logo.png
+}
+
+pkg_preinst() {
+ enewgroup ${OPENERP_GROUP}
+ enewuser ${OPENERP_USER} -1 -1 -1 ${OPENERP_GROUP}
+
+ fowners -R ${OPENERP_USER}:${OPENERP_GROUP} /etc/openerp
+ fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
+ fowners -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
+
+ fperms 0640 /etc/openerp/openerp.cfg
+
+ use postgres || sed -i '6,8d' "${D}/etc/init.d/openerp" || die "sed failed"
+}
+
+pkg_postinst() {
+ chown -R ${OPENERP_USER}:${OPENERP_GROUP} /etc/openerp
+ chown ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
+ chown -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
+
+ elog "In order to setup the initial database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "Be sure the database is started before"
+}
+
+psqlquery() {
+ psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+ einfo "In the following, the 'postgres' user will be used."
+ if ! psqlquery "SELECT usename FROM pg_user WHERE usename = '${OPENERP_USER}'" | grep -q ${OPENERP_USER}; then
+ ebegin "Creating database user ${OPENERP_USER}"
+ createuser --username=postgres --createdb --no-adduser ${OPENERP_USER}
+ eend $? || die "Failed to create database user"
+ fi
+}
diff --git a/app-office/openerp/openerp-8.0.20140125.ebuild b/app-office/openerp/openerp-8.0.20140125.ebuild
new file mode 100644
index 000000000000..98610e8ccc4c
--- /dev/null
+++ b/app-office/openerp/openerp-8.0.20140125.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/openerp/openerp-8.0.20140125.ebuild,v 1.1 2014/01/25 14:16:09 dlan Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit eutils distutils-r1 user
+
+DESCRIPTION="Open Source ERP & CRM"
+HOMEPAGE="http://www.openerp.com/"
+MY_PV=${PV/8.0./8.0dev-}
+FNAME="${PN}-${MY_PV}-000101"
+SRC_URI="http://nightly.openerp.com/trunk/nightly/src/${FNAME}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="+postgres ldap ssl"
+
+CDEPEND="!app-office/openerp-web
+ postgres? ( dev-db/postgresql-server )
+ dev-python/psutil[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/psycopg:2[${PYTHON_USEDEP}]
+ dev-python/pychart[${PYTHON_USEDEP}]
+ dev-python/pyparsing[${PYTHON_USEDEP}]
+ dev-python/reportlab[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+ media-gfx/pydot
+ dev-python/vobject[${PYTHON_USEDEP}]
+ dev-python/mako[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/Babel[${PYTHON_USEDEP}]
+ dev-python/gdata[${PYTHON_USEDEP}]
+ ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
+ dev-python/python-openid[${PYTHON_USEDEP}]
+ dev-python/werkzeug[${PYTHON_USEDEP}]
+ dev-python/xlwt[${PYTHON_USEDEP}]
+ dev-python/feedparser[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pywebdav[${PYTHON_USEDEP}]
+ ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
+ dev-python/vatnumber[${PYTHON_USEDEP}]
+ dev-python/zsi[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/unittest2[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ virtual/python-imaging[jpeg,${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ "
+
+RDEPEND="${CDEPEND}"
+DEPEND="${CDEPEND}"
+
+OPENERP_USER="openerp"
+OPENERP_GROUP="openerp"
+
+S="${WORKDIR}/${FNAME}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ newinitd "${FILESDIR}/${PN}-2" "${PN}"
+ newconfd "${FILESDIR}/openerp-confd-2" "${PN}"
+ keepdir /var/log/openerp
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/openerp.logrotate openerp
+ dodir /etc/openerp
+ insinto /etc/openerp
+ newins "${FILESDIR}"/openerp.cfg.2 openerp.cfg
+
+ # #453424 Fix error on /usr/openerp/import_xml.rng
+ dosym /usr/${PN}/import_xml.rng $(python_get_sitedir)/${PN}/import_xml.rng
+
+ # #453424 Fix error on /usr/openerp/addons/base/res/res_company_logo.png
+ dosym /usr/${PN}/addons/base/res/res_company_logo.png $(python_get_sitedir)/${PN}/addons/base/res/res_company_logo.png
+}
+
+pkg_preinst() {
+ enewgroup ${OPENERP_GROUP}
+ enewuser ${OPENERP_USER} -1 -1 -1 ${OPENERP_GROUP}
+
+ fowners -R ${OPENERP_USER}:${OPENERP_GROUP} /etc/openerp
+ fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
+ fowners -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
+
+ fperms 0640 /etc/openerp/openerp.cfg
+
+ use postgres || sed -i '6,8d' "${D}/etc/init.d/openerp" || die "sed failed"
+}
+
+pkg_postinst() {
+ chown -R ${OPENERP_USER}:${OPENERP_GROUP} /etc/openerp
+ chown ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
+ chown -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
+
+ elog "In order to setup the initial database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "Be sure the database is started before"
+}
+
+psqlquery() {
+ psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+ einfo "In the following, the 'postgres' user will be used."
+ if ! psqlquery "SELECT usename FROM pg_user WHERE usename = '${OPENERP_USER}'" | grep -q ${OPENERP_USER}; then
+ ebegin "Creating database user ${OPENERP_USER}"
+ createuser --username=postgres --createdb --no-adduser ${OPENERP_USER}
+ eend $? || die "Failed to create database user"
+ fi
+}