# ChangeLog for app-office/tinyerp-server
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.2 2006/12/09 01:24:00 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.3 2006/12/23 17:07:00 cedk Exp $
+
+*tinyerp-server-4.0.1 (23 Dec 2006)
+
+ 23 Dec 2006; Cedric Krier <cedk@gentoo.org>
+ +files/tinyerp-server-4.0.1-setup.patch, +tinyerp-server-4.0.1.ebuild:
+ Version bump
09 Dec 2006; Sven Wegener <swegener@gentoo.org>
tinyerp-server-4.0.0.ebuild:
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX tinyerp-conf.d 737 RMD160 fd8104a61a071cba679882fa5a96842716245909 SHA1 efbf304fc259cb7d04f308fcfc88c0fb41586572 SHA256 f683d85b5ec1b85d48cdbfbc89484a6236cc0084ca833c4bf2f349ee7a866b65
MD5 4fc48955ad294ad4a0d32b4269457cfd files/tinyerp-conf.d 737
RMD160 fd8104a61a071cba679882fa5a96842716245909 files/tinyerp-conf.d 737
MD5 5c3774fd905acc54d1bff263e5faaaf9 files/tinyerp-server-4.0.0-setup.patch 816
RMD160 4e68502570823e167d59f3026754eda26d02aacd files/tinyerp-server-4.0.0-setup.patch 816
SHA256 c457f9353bd59dbd0109faef4f4069a14f91f0862b10914bd8c94c2f8c9afbd6 files/tinyerp-server-4.0.0-setup.patch 816
+AUX tinyerp-server-4.0.1-setup.patch 1029 RMD160 6b78222bba4be1fadb726a57aaf073a993806422 SHA1 b0d93bbb992c9404fdbab6e4a53ade91ff765086 SHA256 2d80babf933a46e981d5f30dfe63e977d3afc0709a1efb8461625dc33456e97e
+MD5 ee59655f48bb2b147c78ea5cac78e05b files/tinyerp-server-4.0.1-setup.patch 1029
+RMD160 6b78222bba4be1fadb726a57aaf073a993806422 files/tinyerp-server-4.0.1-setup.patch 1029
+SHA256 2d80babf933a46e981d5f30dfe63e977d3afc0709a1efb8461625dc33456e97e files/tinyerp-server-4.0.1-setup.patch 1029
DIST tinyerp-server-4.0.0.tar.gz 2984163 RMD160 caab72f15577b49acdae45da9e37f68994ae3694 SHA1 187aa1c98d1da84f836ac4a90c053615b574c4ce SHA256 a742072c718f741914c607e717dbcb1c9c82a478f5d54cf23c3b454f21b22f0f
+DIST tinyerp-server-4.0.1.tar.gz 2995164 RMD160 f1c396b68eb31363f64118551b993930d3c54203 SHA1 f865b1e25a2f8c6542f7d789ef656bf02cb2d133 SHA256 4527f90c06bfca823feb18cf76ec63cd08c86e5fb2775ddada0a2df443b03181
EBUILD tinyerp-server-4.0.0.ebuild 1936 RMD160 d563e6bf7a6d0698756ab07e18def1d4ff70d6b6 SHA1 0c61e9904f5853295e836d6ed5ff1f1ed24bd5cf SHA256 bedf22d73e7a4bfc181de72483afe90ce75a0d0d024a84d38f8ab947b2676b81
MD5 17ec22bc9cb144515380ecf9cf703101 tinyerp-server-4.0.0.ebuild 1936
RMD160 d563e6bf7a6d0698756ab07e18def1d4ff70d6b6 tinyerp-server-4.0.0.ebuild 1936
SHA256 bedf22d73e7a4bfc181de72483afe90ce75a0d0d024a84d38f8ab947b2676b81 tinyerp-server-4.0.0.ebuild 1936
-MISC ChangeLog 656 RMD160 2d39e733dd6940e8bd040cbd67f64f547574f629 SHA1 c1671d3f0334aa8890e2e1c22be19a0cf1a25632 SHA256 b76b8661a25ffbe720604813c7ffe257f7dc3d4fbad62fe76e95fca055c9909a
-MD5 b26358864fd37274709af15c46e7739a ChangeLog 656
-RMD160 2d39e733dd6940e8bd040cbd67f64f547574f629 ChangeLog 656
-SHA256 b76b8661a25ffbe720604813c7ffe257f7dc3d4fbad62fe76e95fca055c9909a ChangeLog 656
+EBUILD tinyerp-server-4.0.1.ebuild 1931 RMD160 1d40fe26d9dd056f38178e7ffcc53dc84db78019 SHA1 a0688e97539fe997b47bbab196af7aff112cffde SHA256 48d7268270e8de0d97c06e5ae162446260c355fd109545606d47332f7905da28
+MD5 336f4fc138f782a11b76f14c813ea656 tinyerp-server-4.0.1.ebuild 1931
+RMD160 1d40fe26d9dd056f38178e7ffcc53dc84db78019 tinyerp-server-4.0.1.ebuild 1931
+SHA256 48d7268270e8de0d97c06e5ae162446260c355fd109545606d47332f7905da28 tinyerp-server-4.0.1.ebuild 1931
+MISC ChangeLog 824 RMD160 355a24dac01cfec8947bfaec81cddf00d2785f72 SHA1 687f34f00b29753a66e3396a70a028da8fe35df6 SHA256 1fb848ea64738c337db382810d275c4e9b76af39cb58e8a3ad680624737f1b8d
+MD5 3942d0e40acf82eb1446ae291f0a27e5 ChangeLog 824
+RMD160 355a24dac01cfec8947bfaec81cddf00d2785f72 ChangeLog 824
+SHA256 1fb848ea64738c337db382810d275c4e9b76af39cb58e8a3ad680624737f1b8d ChangeLog 824
MISC metadata.xml 284 RMD160 ac769fb0d742e57e331042699926a209194189c6 SHA1 adf5999b09847fd8a7b82aa1b8d0f78296b676a5 SHA256 fcb9a8a44ce9ce002637c2e430ae9f6ee90468eed6aad3b6306c200f1dc233b8
MD5 7b5e8018fb81b89379122a48a5620125 metadata.xml 284
RMD160 ac769fb0d742e57e331042699926a209194189c6 metadata.xml 284
MD5 a8efd53b6b577e43231bb406362ebd2c files/digest-tinyerp-server-4.0.0 265
RMD160 dfb6dd371a241d5cc8e935c6ce4e21d106574465 files/digest-tinyerp-server-4.0.0 265
SHA256 223ac30b0227a25f5c01281917912013650421523acb381754ceb98c6fed400d files/digest-tinyerp-server-4.0.0 265
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFFehA7I1lqEGTUzyQRAuxOAKCKK9heqnkdBm/6WVUmtzX6pWdAUwCbBPJ+
-1DzneT8CUEOfcqNEiDNBkI4=
-=ndEm
------END PGP SIGNATURE-----
+MD5 7fc79e5ff4e7c8d8b4e9ca424e143aea files/digest-tinyerp-server-4.0.1 265
+RMD160 0f8b3d952d216bfc720bb3d6cc287413ab58caf7 files/digest-tinyerp-server-4.0.1 265
+SHA256 70779fd33307cb1655b0d90e3c9b0828ef6406255a57221c4650048ff4e20dd6 files/digest-tinyerp-server-4.0.1 265
--- /dev/null
+MD5 2fc7ab2d7b5789eb3f19fda0c1c5567b tinyerp-server-4.0.1.tar.gz 2995164
+RMD160 f1c396b68eb31363f64118551b993930d3c54203 tinyerp-server-4.0.1.tar.gz 2995164
+SHA256 4527f90c06bfca823feb18cf76ec63cd08c86e5fb2775ddada0a2df443b03181 tinyerp-server-4.0.1.tar.gz 2995164
--- /dev/null
+diff -ru tinyerp-server-4.0.1~/setup.py tinyerp-server-4.0.1/setup.py
+--- tinyerp-server-4.0.1~/setup.py 2006-12-23 17:42:08.000000000 +0100
++++ tinyerp-server-4.0.1/setup.py 2006-12-23 17:47:59.000000000 +0100
+@@ -89,6 +89,10 @@
+ ['man/terp_serverrc.5']),
+ (opj('share','doc', 'tinyerp-server-%s' % version),
+ [f for f in glob.glob('doc/*') if os.path.isfile(f)]),
++ (opj('share','doc', 'tinyerp-server-%s' % version, 'migrate', '3.3.0-3.4.0'),
++ [f for f in glob.glob('doc/migrate/3.3.0-3.4.0/*') if os.path.isfile(f)]),
++ (opj('share','doc', 'tinyerp-server-%s' % version, 'migrate', '3.4.0-4.0.0'),
++ [f for f in glob.glob('doc/migrate/3.4.0-4.0.0/*') if os.path.isfile(f)]),
+ (opj('lib','python%s' % py_short_version, 'site-packages', 'tinyerp-server', 'i18n'),
+ glob.glob('bin/i18n/*')),
+ (opj('lib', 'python%s' % py_short_version, 'site-packages', 'tinyerp-server', 'addons', 'custom'),
--- /dev/null
+# Copyright 1999-2006 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.1.ebuild,v 1.1 2006/12/23 17:07:00 cedk Exp $
+
+inherit eutils distutils
+
+DESCRIPTION="Open Source ERP & CRM"
+HOMEPAGE="http://tinyerp.org/"
+SRC_URI="mirro://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_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
+ 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
+}