diff options
author | Jean-Noël Rivasseau <elvanor@gentoo.org> | 2010-12-13 11:02:20 +0000 |
---|---|---|
committer | Jean-Noël Rivasseau <elvanor@gentoo.org> | 2010-12-13 11:02:20 +0000 |
commit | 34445e6060b62bca37081384fd54d1402a39c5e6 (patch) | |
tree | 0ac9b7e128e8d137bd0e713d24b2e3573d0f55ad /app-office/openerp-server | |
parent | Revision bump to bump passenger to 3.0.1 (currently p.masked for testing). Re... (diff) | |
download | historical-34445e6060b62bca37081384fd54d1402a39c5e6.tar.gz historical-34445e6060b62bca37081384fd54d1402a39c5e6.tar.bz2 historical-34445e6060b62bca37081384fd54d1402a39c5e6.zip |
Bug #267886.
Package-Manager: portage-2.1.9.24/cvs/Linux i686
Diffstat (limited to 'app-office/openerp-server')
-rw-r--r-- | app-office/openerp-server/ChangeLog | 10 | ||||
-rw-r--r-- | app-office/openerp-server/Manifest | 6 | ||||
-rwxr-xr-x | app-office/openerp-server/files/openerp-server | 23 | ||||
-rwxr-xr-x | app-office/openerp-server/files/openerp-server-confd | 3 | ||||
-rw-r--r-- | app-office/openerp-server/metadata.xml | 9 | ||||
-rw-r--r-- | app-office/openerp-server/openerp-server-5.0.6.ebuild | 70 |
6 files changed, 121 insertions, 0 deletions
diff --git a/app-office/openerp-server/ChangeLog b/app-office/openerp-server/ChangeLog new file mode 100644 index 000000000000..0ffbecc220da --- /dev/null +++ b/app-office/openerp-server/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-office/openerp-server +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/openerp-server/ChangeLog,v 1.1 2010/12/13 11:02:20 elvanor Exp $ + +*openerp-server-5.0.6 (13 Dec 2010) + + 13 Dec 2010; <elvanor@gentoo.org> +openerp-server-5.0.6.ebuild, + +files/openerp-server, +files/openerp-server-confd, +metadata.xml: + Initial import, bug #267886. + diff --git a/app-office/openerp-server/Manifest b/app-office/openerp-server/Manifest new file mode 100644 index 000000000000..a617c373f5e1 --- /dev/null +++ b/app-office/openerp-server/Manifest @@ -0,0 +1,6 @@ +AUX openerp-server 670 RMD160 b4bdc5f638ec77789f8a1bc2ab896afa19ca7f2c SHA1 d5e19d3ca2de1cbc8d53fd78ff3f41f1c3579645 SHA256 b220b298328062a899f6358c479f72feb1d9404a3fad6de9059c2c9e8bc4aab8 +AUX openerp-server-confd 105 RMD160 a43bebb092ae8b5ba7f24abe735cbb7b0879ab30 SHA1 6a3a0c2c7f7e0e6215a379a523387188237bb2bd SHA256 d2a001ed22e104eaf68c64f0fecb18d50a6aa6439050fe7da2ba6def584135bf +DIST openerp-server-5.0.6.tar.gz 8733610 RMD160 1feffe5db442d503744fcf2e8c7eacf8b9fe670e SHA1 8f9a180d560c3d0f612663f09348923a22644c0d SHA256 5812b3199e2ecc473a265af0fc33626079351f3d119281e84df4edba5b5a0df4 +EBUILD openerp-server-5.0.6.ebuild 1776 RMD160 b7c2e5fbf11402b8b84322ba197a793b68d53cde SHA1 2db127f8d6c3ab1334b1406bb2c22c1f23100047 SHA256 ef70d73d80525b94b8cc5ba3128b3d63361479393855510aa121191462438e3e +MISC ChangeLog 428 RMD160 9edbd59ee5b333a869755b7e76456599db0a1204 SHA1 06f179f2bf5ba3e1e3dfcafa14aad9b489f8c261 SHA256 443d867a8b60b977c2c2f2c37bc34c75d3739569b6e10c6d5aba1831e251316c +MISC metadata.xml 323 RMD160 e814c8bef9e7078c47c44aa8492bcd984cae8f79 SHA1 fa18189f20b8118eab7498fa5ab94b5a5984bb76 SHA256 439632562128324755ba89695bf93de377c64c3e7a81c6819c7694d5b3d78c39 diff --git a/app-office/openerp-server/files/openerp-server b/app-office/openerp-server/files/openerp-server new file mode 100755 index 000000000000..e67ac2ba1b91 --- /dev/null +++ b/app-office/openerp-server/files/openerp-server @@ -0,0 +1,23 @@ +#!/sbin/runscript + +# Additional options that are passed to the daemon. +DAEMON_OPTS="-c ${CONFIGFILE}" + +depend() { + need postgresql +} + +start() { + ebegin "Starting openerp-server" + PYTHONDIR=$(python -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LIBP"))') + start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/bin/python2.6 --startas /usr/bin/python \ + --chuid "${USER}" --chdir "${PYTHONDIR}/site-packages/openerp-server/" --background -- "openerp-server.py" ${DAEMON_OPTS} + eend $? +} + +stop() { + ebegin "Stopping openerp-server" + start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --oknodo + rm -f "${PIDFILE}" + eend $? +} diff --git a/app-office/openerp-server/files/openerp-server-confd b/app-office/openerp-server/files/openerp-server-confd new file mode 100755 index 000000000000..0db31ea54849 --- /dev/null +++ b/app-office/openerp-server/files/openerp-server-confd @@ -0,0 +1,3 @@ +USER="openerp" +CONFIGFILE="/etc/openerp/openerp-server.cfg" +PIDFILE="/var/run/openerp/openerp-server.pid"
\ No newline at end of file diff --git a/app-office/openerp-server/metadata.xml b/app-office/openerp-server/metadata.xml new file mode 100644 index 000000000000..e25663ef74c4 --- /dev/null +++ b/app-office/openerp-server/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>elvanor@gentoo.org</email> +</maintainer> +<longdescription>An Open Source ERP & CRM. This is the main server component.</longdescription> +</pkgmetadata> diff --git a/app-office/openerp-server/openerp-server-5.0.6.ebuild b/app-office/openerp-server/openerp-server-5.0.6.ebuild new file mode 100644 index 000000000000..71d034f9f1a5 --- /dev/null +++ b/app-office/openerp-server/openerp-server-5.0.6.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/openerp-server/openerp-server-5.0.6.ebuild,v 1.1 2010/12/13 11:02:20 elvanor Exp $ + +EAPI="2" + +inherit eutils distutils + +DESCRIPTION="Open Source ERP & CRM" +HOMEPAGE="http://www.openerp.com/" +SRC_URI="http://www.openerp.com/download/stable/source/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND="dev-db/postgresql-server + dev-python/lxml + dev-python/psycopg + dev-python/pychart + dev-python/pytz + dev-python/pyxml + dev-python/pyopenssl + dev-python/reportlab + media-gfx/pydot" + +RDEPEND="${CDEPEND}" +DEPEND="${CDEPEND}" + +OPENERP_USER="openerp" +OPENERP_GROUP="openerp" + +src_install() { + distutils_src_install + + doinitd "${FILESDIR}/${PN}" + newconfd "${FILESDIR}/openerp-server-confd" "${PN}" + keepdir /var/run/openerp + keepdir /var/log/openerp + + rm "${D}/usr/bin/openerp-server" +} + +pkg_preinst() { + enewgroup ${OPENERP_GROUP} + enewuser ${OPENERP_USER} -1 -1 -1 ${OPENERP_GROUP} + + fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/run/openerp + fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp +} + +pkg_postinst() { + elog "In order to setup the initial database, run:" + elog " emerge --config =${CATEGORY}/${PF}" + elog "Be sure the database is started before" +} + +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 = '${OPENERP_USER}'" | grep -q ${OPENERP_USER}; then + ebegin "Creating database user ${OPENERP_USER}" + createuser --quiet --username=postgres --createdb --no-adduser ${OPENERP_USER} + eend $? || die "Failed to create database user" + fi +} |