Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-zope/zope: ChangeLog zope-2.10.5.ebuild
Date: Mon, 05 May 2008 20:42:04
Message-Id: E1Jt7Va-0007UQ-45@stork.gentoo.org
1 tupone 08/05/05 20:42:02
2
3 Modified: ChangeLog
4 Added: zope-2.10.5.ebuild
5 Log:
6 Version bump to 2.10.5
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.133 net-zope/zope/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/ChangeLog?rev=1.133&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/ChangeLog?rev=1.133&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/ChangeLog?r1=1.132&r2=1.133
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v
19 retrieving revision 1.132
20 retrieving revision 1.133
21 diff -u -r1.132 -r1.133
22 --- ChangeLog 20 Mar 2008 21:42:09 -0000 1.132
23 +++ ChangeLog 5 May 2008 20:42:01 -0000 1.133
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-zope/zope
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.132 2008/03/20 21:42:09 tupone Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.133 2008/05/05 20:42:01 tupone Exp $
29 +
30 +*zope-2.10.5 (05 May 2008)
31 +
32 + 05 May 2008; Tupone Alfredo <tupone@g.o> +zope-2.10.5.ebuild:
33 + Version bump to 2.10.5
34
35 *zope-2.9.8 (20 Mar 2008)
36
37
38
39
40 1.1 net-zope/zope/zope-2.10.5.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/zope-2.10.5.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/zope-2.10.5.ebuild?rev=1.1&content-type=text/plain
44
45 Index: zope-2.10.5.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.10.5.ebuild,v 1.1 2008/05/05 20:42:01 tupone Exp $
50
51 inherit eutils multilib
52
53 DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites"
54 HOMEPAGE="http://www.zope.org"
55 SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-final.tgz"
56
57 LICENSE="ZPL"
58 SLOT="${PV}"
59 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
60 IUSE=""
61
62 DEPEND="=dev-lang/python-2.4*"
63
64 S="${WORKDIR}/Zope-${PV}-final"
65 ZUID=zope
66 ZGID=zope
67 ZS_DIR=${ROOT%/}/usr/$(get_libdir)
68 ZSERVDIR=${ZS_DIR}/${P}
69
70 # Narrow the scope of ownership/permissions.
71 # Security plan:
72 # * ZUID is the superuser for all zope instances.
73 # * ZGID is for a single instance's administration.
74 # * Other' should not have any access to ${ZSERVDIR},
75 # because they can work through the Zope web interface.
76 # This should protect our code/data better.
77 #
78 # UPDATE: ${ZSERVDIR} is a lib directory and should be world readable
79 # like e.g /usr/lib/python we do not store any user data there,
80 # currently removed all custom permission stuff, for ${ZSERVDIR}
81
82 src_compile() {
83 ./configure --prefix="${D}${ZSERVDIR}" --with-python=/usr/bin/python2.4 || die "Failed to execute ./configure ..."
84 emake || die "Failed to compile."
85 }
86
87 src_install() {
88 dodoc README.txt
89 dodoc doc/*.txt
90 docinto PLATFORMS ; dodoc doc/PLATFORMS/*
91 docinto ZEO ; dodoc doc/ZEO/*
92
93 make install prefix="${D}${ZSERVDIR}" || die "Failed to install into ${D}${ZSERVDIR}"
94 rm -rf "${D}${ZSERVDIR}"/doc
95 dosym ../../share/doc/${PF} ${ZSERVDIR}/doc
96
97 # copy the init script skeleton to skel directory of our installation
98 insinto "${ZSERVDIR}"/skel
99 doins "${FILESDIR}"/zope.initd
100 }
101
102 src_test() {
103 einfo "Tests disabled by Gentoo team."
104 }
105
106 pkg_postinst() {
107 # create the zope user and group for backward compatibility
108 enewgroup ${ZGID} 261
109 usermod -g ${ZGID} ${ZUID} 2>&1 >/dev/null || \
110 enewuser ${ZUID} 261 -1 /var/$(get_libdir)/zope ${ZGID}
111
112 einfo "Be warned that you need at least one zope instance to run zope."
113 einfo "Please emerge zope-config for futher instance management."
114 }
115
116 pkg_prerm() {
117
118 #need to remove this symlink because portage keeps links to
119 #existing targets
120 rm ${ZSERVDIR}/bin/python
121 }
122
123
124
125 --
126 gentoo-commits@l.g.o mailing list