1 |
patrick 12/10/30 13:42:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openerp-6.2_pre20121029.ebuild |
5 |
Log: |
6 |
Adding 6.2 / 7.0 prerelease snapshot goodness |
7 |
|
8 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 app-office/openerp/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openerp/ChangeLog?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openerp/ChangeLog?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openerp/ChangeLog?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openerp/ChangeLog,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- ChangeLog 30 Oct 2012 09:27:35 -0000 1.1 |
24 |
+++ ChangeLog 30 Oct 2012 13:42:07 -0000 1.2 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-office/openerp |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openerp/ChangeLog,v 1.1 2012/10/30 09:27:35 patrick Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openerp/ChangeLog,v 1.2 2012/10/30 13:42:07 patrick Exp $ |
30 |
+ |
31 |
+*openerp-6.2_pre20121029 (30 Oct 2012) |
32 |
+ |
33 |
+ 30 Oct 2012; Patrick Lauer <patrick@g.o> |
34 |
+ +openerp-6.2_pre20121029.ebuild: |
35 |
+ Adding 6.2 / 7.0 prerelease snapshot goodness |
36 |
|
37 |
*openerp-6.1.1 (30 Oct 2012) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-office/openerp/openerp-6.2_pre20121029.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openerp/openerp-6.2_pre20121029.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/openerp/openerp-6.2_pre20121029.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: openerp-6.2_pre20121029.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openerp/openerp-6.2_pre20121029.ebuild,v 1.1 2012/10/30 13:42:07 patrick Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
PYTHON_DEPEND="2" |
55 |
|
56 |
inherit eutils distutils |
57 |
|
58 |
DESCRIPTION="Open Source ERP & CRM" |
59 |
HOMEPAGE="http://www.openerp.com/" |
60 |
#yes, this is definitely a horrible URI |
61 |
FNAME="${PN}-${PV/_*/}dev-${PV/*_pre/}-000101" |
62 |
SRC_URI="http://nightly.openerp.com/trunk/nightly/src/${FNAME}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="" |
67 |
IUSE="postgres ldap ssl" |
68 |
|
69 |
CDEPEND="postgres? ( dev-db/postgresql-server ) |
70 |
dev-python/psutil |
71 |
dev-python/docutils |
72 |
dev-python/lxml |
73 |
dev-python/psycopg:2 |
74 |
dev-python/pychart |
75 |
dev-python/reportlab |
76 |
media-gfx/pydot |
77 |
dev-python/vobject |
78 |
dev-python/mako |
79 |
dev-python/pyyaml |
80 |
dev-python/Babel |
81 |
dev-python/gdata |
82 |
ldap? ( dev-python/python-ldap ) |
83 |
dev-python/python-openid |
84 |
dev-python/werkzeug |
85 |
dev-python/xlwt |
86 |
dev-python/feedparser |
87 |
dev-python/python-dateutil |
88 |
dev-python/pywebdav |
89 |
ssl? ( dev-python/pyopenssl ) |
90 |
dev-python/vatnumber |
91 |
dev-python/zsi" |
92 |
|
93 |
RDEPEND="${CDEPEND}" |
94 |
DEPEND="${CDEPEND}" |
95 |
|
96 |
OPENERP_USER="openerp" |
97 |
OPENERP_GROUP="openerp" |
98 |
|
99 |
S="${WORKDIR}/${FNAME}" |
100 |
|
101 |
pkg_setup() { |
102 |
python_set_active_version 2 |
103 |
python_pkg_setup |
104 |
} |
105 |
|
106 |
src_prepare() { |
107 |
epatch "${FILESDIR}/${PN}-6.1-setup.py.patch" |
108 |
} |
109 |
|
110 |
src_install() { |
111 |
distutils_src_install |
112 |
|
113 |
doinitd "${FILESDIR}/${PN}" |
114 |
newconfd "${FILESDIR}/openerp-confd" "${PN}" |
115 |
keepdir /var/run/openerp |
116 |
keepdir /var/log/openerp |
117 |
|
118 |
insinto /etc/logrotate.d |
119 |
newins "${FILESDIR}"/openerp.logrotate openerp || die |
120 |
dodir /etc/openerp |
121 |
insinto /etc/openerp |
122 |
newins "${FILESDIR}"/openerp.cfg openerp.cfg || die |
123 |
} |
124 |
|
125 |
pkg_preinst() { |
126 |
enewgroup ${OPENERP_GROUP} |
127 |
enewuser ${OPENERP_USER} -1 -1 -1 ${OPENERP_GROUP} |
128 |
|
129 |
fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/run/openerp |
130 |
fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp |
131 |
fowners -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/" |
132 |
|
133 |
use postgres || sed -i '6,8d' "${D}/etc/init.d/openerp" || die "sed failed" |
134 |
} |
135 |
|
136 |
pkg_postinst() { |
137 |
chown ${OPENERP_USER}:${OPENERP_GROUP} /var/run/openerp |
138 |
chown ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp |
139 |
chown -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/" |
140 |
|
141 |
elog "In order to setup the initial database, run:" |
142 |
elog " emerge --config =${CATEGORY}/${PF}" |
143 |
elog "Be sure the database is started before" |
144 |
} |
145 |
|
146 |
pquery() { |
147 |
psql -q -At -U postgres -d template1 -c "$@" |
148 |
} |
149 |
|
150 |
pkg_config() { |
151 |
einfo "In the following, the 'postgres' user will be used." |
152 |
if ! pquery "SELECT usename FROM pg_user WHERE usename = '${OPENERP_USER}'" | grep -q ${OPENERP_USER}; then |
153 |
ebegin "Creating database user ${OPENERP_USER}" |
154 |
createuser --username=postgres --createdb --no-adduser ${OPENERP_USER} |
155 |
eend $? || die "Failed to create database user" |
156 |
fi |
157 |
} |