summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2006-11-04 19:52:34 +0000
committerCédric Krier <cedk@gentoo.org>2006-11-04 19:52:34 +0000
commitfef2cd6c5fa4b6710ddc280eff71c1b52b5e7bfd (patch)
treeb6044e70cfe4d9874950ed261e8c90b3a2694820
parentVersion bump: dabo-0.6.6.ebuild (diff)
downloadsunrise-fef2cd6c5fa4b6710ddc280eff71c1b52b5e7bfd.tar.gz
sunrise-fef2cd6c5fa4b6710ddc280eff71c1b52b5e7bfd.tar.bz2
sunrise-fef2cd6c5fa4b6710ddc280eff71c1b52b5e7bfd.zip
app-office/tinyerp-server: Version bump
svn path=/sunrise/; revision=1827
-rw-r--r--app-office/tinyerp-server/ChangeLog5
-rw-r--r--app-office/tinyerp-server/Manifest36
-rw-r--r--app-office/tinyerp-server/files/digest-tinyerp-server-3.5.03
-rw-r--r--app-office/tinyerp-server/files/tinyerp-init.d2
-rw-r--r--app-office/tinyerp-server/files/tinyerp-server-3.5.0-setup.patch18
-rw-r--r--app-office/tinyerp-server/tinyerp-server-3.4.2.ebuild5
-rw-r--r--app-office/tinyerp-server/tinyerp-server-3.5.0.ebuild92
7 files changed, 147 insertions, 14 deletions
diff --git a/app-office/tinyerp-server/ChangeLog b/app-office/tinyerp-server/ChangeLog
index bbef5c696..470b588f0 100644
--- a/app-office/tinyerp-server/ChangeLog
+++ b/app-office/tinyerp-server/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 04 Nov 2006; Cedric Krier <ced@ced.homedns.org>
+ tinyerp-server-3.4.2.ebuild, +tinyerp-server-3.5.0.ebuild,
+ +files/tinyerp-server-3.5.0-setup.patch, files/tinyerp-init.d:
+ Version bump
+
18 Oct 2006; Cedric Krier <ced@ced.homedns.org>
+tinyerp-server-3.4.2.ebuild, +files/tinyerp-conf.d,
+files/tinyerp-init.d, +metadata.xml:
diff --git a/app-office/tinyerp-server/Manifest b/app-office/tinyerp-server/Manifest
index 35cf1489d..33a12b8c0 100644
--- a/app-office/tinyerp-server/Manifest
+++ b/app-office/tinyerp-server/Manifest
@@ -2,19 +2,28 @@ AUX tinyerp-conf.d 756 RMD160 8ee5dc9d4cf643740be2816895d7ff14aa9eaf50 SHA1 4be5
MD5 fa3c40259b6e3ace849a75e40769fc03 files/tinyerp-conf.d 756
RMD160 8ee5dc9d4cf643740be2816895d7ff14aa9eaf50 files/tinyerp-conf.d 756
SHA256 8db051cddce0feff592402f3761bcb7a249166d73a3fa3afc324d4528fe0d50c files/tinyerp-conf.d 756
-AUX tinyerp-init.d 873 RMD160 fae4cc43e66640b8b9fbbd7ab4b6d5dd58a2c45a SHA1 588de8c2e1829abf119ad32fb8625148289e6b3a SHA256 5a86d5ad4fba62753ddcff2419c346767c4c7b3274f772116d8b2c9c8e2b8a71
-MD5 4d4ec90b0bfc109595e6d3cb2687cb67 files/tinyerp-init.d 873
-RMD160 fae4cc43e66640b8b9fbbd7ab4b6d5dd58a2c45a files/tinyerp-init.d 873
-SHA256 5a86d5ad4fba62753ddcff2419c346767c4c7b3274f772116d8b2c9c8e2b8a71 files/tinyerp-init.d 873
+AUX tinyerp-init.d 873 RMD160 940b80498a845977ecd63768c281b36f7480908d SHA1 85ef53d19d2ffaea5506fb11acc402542a5943a7 SHA256 dadf03f153dd93652075849549b7723a7f0d8be1f8b7acba68175b1f38f953de
+MD5 e5dc85c5561e0dee5394a6c8d03be320 files/tinyerp-init.d 873
+RMD160 940b80498a845977ecd63768c281b36f7480908d files/tinyerp-init.d 873
+SHA256 dadf03f153dd93652075849549b7723a7f0d8be1f8b7acba68175b1f38f953de files/tinyerp-init.d 873
+AUX tinyerp-server-3.5.0-setup.patch 1115 RMD160 497fc1b0984dfbb009ccd441b46c65019865fe68 SHA1 aa641481f671bbac03563108319eb5df5cfd68a7 SHA256 425ad9a5df56c317c5bfb9bcb93cc789f0ebf4334a6c3ecf02147679e69c0223
+MD5 671215a5f500731d07b5b5ea7a376c33 files/tinyerp-server-3.5.0-setup.patch 1115
+RMD160 497fc1b0984dfbb009ccd441b46c65019865fe68 files/tinyerp-server-3.5.0-setup.patch 1115
+SHA256 425ad9a5df56c317c5bfb9bcb93cc789f0ebf4334a6c3ecf02147679e69c0223 files/tinyerp-server-3.5.0-setup.patch 1115
DIST tinyerp-server-3.4.2.tar.gz 1066916 RMD160 4b758920cba092b0f6b48fcebfa362ee16feb393 SHA1 ae32f25c3710c6926761acccfe03002e050cf75a SHA256 3b0ec0e2c651d5b4ea20ec749bf2cce5ed792e97b71e5b2de5a52b3ed5b2db44
-EBUILD tinyerp-server-3.4.2.ebuild 2267 RMD160 6b29275a686e3e2cff62fc29b2c8dc98fbf1143b SHA1 4082c8dd101b1ad2b9535756fce6fd7a0853993b SHA256 582b51e4e9d2cf077cf56de78e6fa06aaec1032b0c9ef9bce2e5f3ec63884606
-MD5 6fd1c84171687f8ce98923dedaf69102 tinyerp-server-3.4.2.ebuild 2267
-RMD160 6b29275a686e3e2cff62fc29b2c8dc98fbf1143b tinyerp-server-3.4.2.ebuild 2267
-SHA256 582b51e4e9d2cf077cf56de78e6fa06aaec1032b0c9ef9bce2e5f3ec63884606 tinyerp-server-3.4.2.ebuild 2267
-MISC ChangeLog 368 RMD160 09b3b50c520b0f6e6ba7f709db6129fb7bad9240 SHA1 8851e916830277cf9529ffc3743a5c93feb88bf9 SHA256 2875bd10614ee134998658b8360d18956a08f4dbe4fa578f0e8c04288f6b66df
-MD5 b6ec39071d9dc874990ac469b208486b ChangeLog 368
-RMD160 09b3b50c520b0f6e6ba7f709db6129fb7bad9240 ChangeLog 368
-SHA256 2875bd10614ee134998658b8360d18956a08f4dbe4fa578f0e8c04288f6b66df ChangeLog 368
+DIST tinyerp-server-3.5.0.tar.gz 1127747 RMD160 b4203c2657e36b02fb175a2661de0ce93ea9b682 SHA1 93872d2bec01041c0eefeb273aefa6c602003a90 SHA256 5cb6e6b0e350f9aa800d0c91762d4967f67b362a11d863d988e10bfe53df7ce2
+EBUILD tinyerp-server-3.4.2.ebuild 2355 RMD160 2cd3e53dfc5e707f2f3d822a207915ef5f1e49c5 SHA1 faae1e05cc8d9e6b11f3dadb76df0e1dec4117be SHA256 b64c4c3b720279b24737eb95e608f6e18f18093ba29b77a88c4805bf4dbd9d9f
+MD5 e8b712786e5d351662327d4437e28bc9 tinyerp-server-3.4.2.ebuild 2355
+RMD160 2cd3e53dfc5e707f2f3d822a207915ef5f1e49c5 tinyerp-server-3.4.2.ebuild 2355
+SHA256 b64c4c3b720279b24737eb95e608f6e18f18093ba29b77a88c4805bf4dbd9d9f tinyerp-server-3.4.2.ebuild 2355
+EBUILD tinyerp-server-3.5.0.ebuild 2436 RMD160 12c100159cba9cc1e04057fde0b69f044340b0ad SHA1 2d1b305f85e3f97ac0e11e61ec57f5bdb3f4c23b SHA256 5817d5312ac5be5620c36beead64b518a64539b36bfbebd0c738f52665be2a6e
+MD5 085579a95e6d477870c09f6cbcab47c5 tinyerp-server-3.5.0.ebuild 2436
+RMD160 12c100159cba9cc1e04057fde0b69f044340b0ad tinyerp-server-3.5.0.ebuild 2436
+SHA256 5817d5312ac5be5620c36beead64b518a64539b36bfbebd0c738f52665be2a6e tinyerp-server-3.5.0.ebuild 2436
+MISC ChangeLog 560 RMD160 6199a945131277734de9ba3ca0e68a8d1d5ca067 SHA1 52c43dcabc1344783e581d427093115d83b6d9d7 SHA256 e23dc4d12b97edbc444898882aff4533d563e885435c795200896e6172ac471d
+MD5 909cde58cf5855a2094daebeb94b2513 ChangeLog 560
+RMD160 6199a945131277734de9ba3ca0e68a8d1d5ca067 ChangeLog 560
+SHA256 e23dc4d12b97edbc444898882aff4533d563e885435c795200896e6172ac471d ChangeLog 560
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
@@ -22,3 +31,6 @@ SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata
MD5 c070b33c03e27b390ed7fe3449df4d9d files/digest-tinyerp-server-3.4.2 265
RMD160 8d558b834f473342484858df1e3f310a678d7ce7 files/digest-tinyerp-server-3.4.2 265
SHA256 fc3919ea79b561682fdec9f286f3f6278deed93e481bae27a6513baf3d52d320 files/digest-tinyerp-server-3.4.2 265
+MD5 3eb470d54fd6093b322536565fa3b132 files/digest-tinyerp-server-3.5.0 265
+RMD160 c71fd7cb13c665eafe129b565b6420c98059b25f files/digest-tinyerp-server-3.5.0 265
+SHA256 14b60db4a1dfb66778c22c95529d316219b90e7c511f893efea77ceec4e9a54a files/digest-tinyerp-server-3.5.0 265
diff --git a/app-office/tinyerp-server/files/digest-tinyerp-server-3.5.0 b/app-office/tinyerp-server/files/digest-tinyerp-server-3.5.0
new file mode 100644
index 000000000..81ef840a1
--- /dev/null
+++ b/app-office/tinyerp-server/files/digest-tinyerp-server-3.5.0
@@ -0,0 +1,3 @@
+MD5 aeb6a5d33b855f6468d41ed2da8812e2 tinyerp-server-3.5.0.tar.gz 1127747
+RMD160 b4203c2657e36b02fb175a2661de0ce93ea9b682 tinyerp-server-3.5.0.tar.gz 1127747
+SHA256 5cb6e6b0e350f9aa800d0c91762d4967f67b362a11d863d988e10bfe53df7ce2 tinyerp-server-3.5.0.tar.gz 1127747
diff --git a/app-office/tinyerp-server/files/tinyerp-init.d b/app-office/tinyerp-server/files/tinyerp-init.d
index 7e4e38732..04eed8a45 100644
--- a/app-office/tinyerp-server/files/tinyerp-init.d
+++ b/app-office/tinyerp-server/files/tinyerp-init.d
@@ -14,7 +14,7 @@ start() {
[ -n "${SERVER_PORT}" ] && SERVER_OPTS="${SERVER_OPTS} --db_port=${SERVER_PORT}"
ebegin "Starting TinyERP"
- start-stop-daemon --start --quiet --background --chuid terp:terp --pidfile=/var/run/tinyerp/tinyerp.pid --startas /usr/bin/tinyerp-server --exec /usr/bin/python -- ${SERVER_OPTS} --pidfile=/var/run/tinyerp/tinyerp.pid
+ start-stop-daemon --start --quiet --background --chuid terp:terp --startas /usr/bin/tinyerp-server --exec /usr/bin/python -- ${SERVER_OPTS} --pidfile=/var/run/tinyerp/tinyerp.pid --logfile=/var/log/tinyerp/tinyerp.log
eend $?
}
diff --git a/app-office/tinyerp-server/files/tinyerp-server-3.5.0-setup.patch b/app-office/tinyerp-server/files/tinyerp-server-3.5.0-setup.patch
new file mode 100644
index 000000000..3a673a4d1
--- /dev/null
+++ b/app-office/tinyerp-server/files/tinyerp-server-3.5.0-setup.patch
@@ -0,0 +1,18 @@
+--- tinyerp-server-3.5.0~/setup.py 2006-11-04 20:16:08.000000000 +0100
++++ tinyerp-server-3.5.0/setup.py 2006-11-04 20:43:30.000000000 +0100
+@@ -78,6 +78,7 @@
+ pathfiles = [(opj('lib', 'python%s' % py_short_version, 'site-packages',
+ add_path.replace('bin', 'tinyerp-server', 1)),
+ glob.glob(opj(add_path, '*xml')) +
++ glob.glob(opj(add_path, '*csv')) +
+ glob.glob(opj(add_path, '*sql'))),
+ (opj('lib', 'python%s' % py_short_version, 'site-packages',
+ add_path.replace('bin', 'tinyerp-server', 1), 'data'),
+@@ -133,6 +134,7 @@
+ 'tinyerp-server.report.render',
+ 'tinyerp-server.report.render.rml2pdf',
+ 'tinyerp-server.report.render.rml2html',
++ 'tinyerp-server.report.printscreen',
+ 'tinyerp-server.wizard', 'tinyerp-server.workflow'] + \
+ list(find_addons()),
+ package_dir = {'tinyerp-server': 'bin'},
diff --git a/app-office/tinyerp-server/tinyerp-server-3.4.2.ebuild b/app-office/tinyerp-server/tinyerp-server-3.4.2.ebuild
index 576a2c0f2..4e6f58eeb 100644
--- a/app-office/tinyerp-server/tinyerp-server-3.4.2.ebuild
+++ b/app-office/tinyerp-server/tinyerp-server-3.4.2.ebuild
@@ -48,8 +48,11 @@ src_install() {
newinitd "${FILESDIR}"/tinyerp-init.d tinyerp
newconfd "${FILESDIR}"/tinyerp-conf.d tinyerp
- dodir /var/run/tinyerp
+ keepdir /var/run/tinyerp
fowners ${TINYERP_USER} ${TINYERP_GROUP} /var/run/tinyerp
+
+ keepdir /var/log/tinyerp
+ fowners ${TINYERP_USER} ${TINYERP_GROUP} /var/log/tinyerp
}
pkg_postinst() {
diff --git a/app-office/tinyerp-server/tinyerp-server-3.5.0.ebuild b/app-office/tinyerp-server/tinyerp-server-3.5.0.ebuild
new file mode 100644
index 000000000..8ca990ada
--- /dev/null
+++ b/app-office/tinyerp-server/tinyerp-server-3.5.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils distutils
+
+DESCRIPTION="Open Source ERP & CRM"
+HOMEPAGE="http://tinyerp.org/"
+SRC_URI="${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RESTRICT="fetch"
+
+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
+TINYERP_DATABASE=terp
+
+DOWNLOAD_URL="http://tinyerp.com/component/option,com_vfm/Itemid,61/do,download/file,stable|source|${P}.tar.gz/"
+pkg_nofetch() {
+ einfo "Please donwload ${SRC_URI} from:"
+ einfo ${DOWNLOAD_URL}
+ einfo "and move it to ${DISTDIR}"
+}
+
+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_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-setup.patch"
+}
+
+src_install() {
+ distutils_src_install
+
+ newinitd "${FILESDIR}"/tinyerp-init.d tinyerp
+ newconfd "${FILESDIR}"/tinyerp-conf.d tinyerp
+
+ keepdir /var/run/tinyerp
+ fowners ${TINYERP_USER}:${TINYERP_GROUP} /var/run/tinyerp
+
+ keepdir /var/log/tinyerp
+ fowners ${TINYERP_USER}:${TINYERP_GROUP} /var/log/tinyerp
+}
+
+pkg_postinst() {
+ enewgroup ${TINYERP_GROUP}
+ enewuser ${TINYERP_USER} -1 -1 -1 ${TINYERP_GROUP}
+
+ einfo "In order to setup the initial database, run:"
+ einfo " emerge --config =${CATEGORY}/${PF}"
+ einfo "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 --no-createdb --no-adduser --no-createrole ${TINYERP_USER}
+ eend $? || die "Failed to create database user"
+ fi
+
+ if ! pquery "SELECT datname FROM pg_database WHERE datname = '${TINYERP_DATABASE}'" |grep -q terp; then
+ ebegin "Creating database ${TINYERP_DATABASE}"
+ createdb --quiet --username=postgres --owner=terp --encoding=UNICODE ${TINYERP_DATABASE}
+ eend $? || die "Failed to create database"
+ fi
+
+ einfo "The first time tinyerp-server is run it will initialize the database"
+}