summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-01-20 19:21:39 +0000
committerCédric Krier <cedk@gentoo.org>2007-01-20 19:21:39 +0000
commit607848d4df83f742a9d86a71365b1893c05a1fb1 (patch)
treed40b9dbf3ca41c28976ffdbcc777f541a62e7d5c /app-office/tinyerp-server
parentRemove redundant eclass calls. (diff)
downloadgentoo-2-607848d4df83f742a9d86a71365b1893c05a1fb1.tar.gz
gentoo-2-607848d4df83f742a9d86a71365b1893c05a1fb1.tar.bz2
gentoo-2-607848d4df83f742a9d86a71365b1893c05a1fb1.zip
Version bump
(Portage version: 2.1.1-r2)
Diffstat (limited to 'app-office/tinyerp-server')
-rw-r--r--app-office/tinyerp-server/ChangeLog7
-rw-r--r--app-office/tinyerp-server/files/digest-tinyerp-server-4.0.23
-rw-r--r--app-office/tinyerp-server/tinyerp-server-4.0.2.ebuild71
3 files changed, 80 insertions, 1 deletions
diff --git a/app-office/tinyerp-server/ChangeLog b/app-office/tinyerp-server/ChangeLog
index 943d8b32a5c9..ce3c8b973e10 100644
--- a/app-office/tinyerp-server/ChangeLog
+++ b/app-office/tinyerp-server/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-office/tinyerp-server
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.4 2007/01/01 22:11:54 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.5 2007/01/20 19:21:39 cedk Exp $
+
+*tinyerp-server-4.0.2 (20 Jan 2007)
+
+ 20 Jan 2007; Cedric Krier <cedk@gentoo.org> +tinyerp-server-4.0.2.ebuild:
+ Version bump
01 Jan 2007; Sven Wegener <swegener@gentoo.org>
tinyerp-server-4.0.1.ebuild:
diff --git a/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.2 b/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.2
new file mode 100644
index 000000000000..9aa4199f78ac
--- /dev/null
+++ b/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.2
@@ -0,0 +1,3 @@
+MD5 be68a31b958b7160c5e4ff3f0c616e43 tinyerp-server-4.0.2.tar.gz 2997803
+RMD160 ca691744a8599fd104c64390340977a989b9f1ff tinyerp-server-4.0.2.tar.gz 2997803
+SHA256 38efc47defd1470e053dbc8a772678a03e7940a9dc4ca397bafc8e6216eb6847 tinyerp-server-4.0.2.tar.gz 2997803
diff --git a/app-office/tinyerp-server/tinyerp-server-4.0.2.ebuild b/app-office/tinyerp-server/tinyerp-server-4.0.2.ebuild
new file mode 100644
index 000000000000..5aad5e39c545
--- /dev/null
+++ b/app-office/tinyerp-server/tinyerp-server-4.0.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/tinyerp-server-4.0.2.ebuild,v 1.1 2007/01/20 19:21:39 cedk Exp $
+
+inherit eutils distutils
+
+DESCRIPTION="Open Source ERP & CRM"
+HOMEPAGE="http://tinyerp.org/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=dev-db/postgresql-7.4
+ dev-python/pypgsql
+ dev-python/reportlab
+ dev-python/pyparsing
+ media-gfx/pydot
+ =dev-python/psycopg-1*
+ dev-libs/libxml2
+ dev-libs/libxslt"
+RDEPEND=${DEPEND}
+
+TINYERP_USER=terp
+TINYERP_GROUP=terp
+
+pkg_setup() {
+ if ! built_with_use dev-libs/libxslt python ; then
+ eerror "dev-libs/libxslt must be built with python"
+ die "${PN} requires dev-libs/libxslt with USE=python"
+ fi
+}
+
+src_install() {
+ distutils_src_install
+
+ newinitd "${FILESDIR}"/tinyerp-init.d tinyerp
+ newconfd "${FILESDIR}"/tinyerp-conf.d tinyerp
+
+ keepdir /var/run/tinyerp
+ keepdir /var/log/tinyerp
+}
+
+pkg_preinst() {
+ enewgroup ${TINYERP_GROUP}
+ enewuser ${TINYERP_USER} -1 -1 -1 ${TINYERP_GROUP}
+
+ fowners ${TINYERP_USER}:${TINYERP_GROUP} /var/run/tinyerp
+ fowners ${TINYERP_USER}:${TINYERP_GROUP} /var/log/tinyerp
+}
+
+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 = '${TINYERP_USER}'" | grep -q ${TINYERP_USER}; then
+ ebegin "Creating database user ${TINYERP_USER}"
+ createuser --quiet --username=postgres --createdb --no-adduser --no-createrole ${TINYERP_USER}
+ eend $? || die "Failed to create database user"
+ fi
+}