Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33950 Details for
Bug 41508
Zope-2.7.0 is the latest STABLE release
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
zope-2.7.1.ebuild
zope-2.7.1.ebuild (text/plain), 3.83 KB, created by
Andy Dustman
on 2004-06-23 08:03:16 UTC
(
hide
)
Description:
zope-2.7.1.ebuild
Filename:
MIME Type:
Creator:
Andy Dustman
Created:
2004-06-23 08:03:16 UTC
Size:
3.83 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.6.4-r1.ebuild,v 1.6 2004/05/24 14:42:49 kloeri Exp $ > >inherit eutils > >SFPV="$(echo ${PV} | sed -e 's/_beta/-b/')" >SDPV="$(echo ${PV} | sed -e 's/_beta/b/')" >DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites." >HOMEPAGE="http://www.zope.org" >SRC_URI="http://www.zope.org/Products/Zope/${SDPV}/Zope-${SFPV}.tgz" >LICENSE="ZPL" >SLOT="${PV}" > >KEYWORDS="~x86 ~sparc ~ppc ~alpha" >IUSE="unicode" > >RDEPEND="=dev-lang/python-2.3*" >python='python2.3' > >RDEPEND="${RDEPEND} >!net-zope/verbosesecurity" > >DEPEND="${RDEPEND} >virtual/glibc >>=sys-apps/sed-4.0.5 >>=app-admin/zope-config-0.3" > >S="${WORKDIR}/Zope-${SFPV}-0" > >ZUID=zope >ZGID=zope >ZS_DIR=${ROOT}/usr/share/zope/ >ZI_DIR=${ROOT}/var/lib/zope/ >ZSERVDIR=${ZS_DIR}${PF}/ >RCNAME=zope.initd > ># Narrow the scope of ownership/permissions. ># Security plan: ># * ZUID is the superuser for all zope instances. ># * ZGID is for a single instance's administration. ># * Other's should not have any access to ${ZSERVDIR}, ># because they can work through the Zope web interface. ># This should protect our code/data better. > ># Parameters: ># $1 = instance directory ># $2 = group > >setup_security() { > # The old version made everything owned by zope:${DEFAULT_INSTANCE_GID}, > # and group-writable. This is like making everything in net-www/apache2 > # owned by apache! The zope instance runs as the zope user, so the zope > # user should not own any files. However, we make everything group-owned > # by the zope group, of which the zope user is a member, so that running > # zope instances will be able to read everything. > # -- Andy Dustman > chown -R root:${2} ${1} > chmod -R g+r,g-w,o-rwx ${1} >} > >install_help() { > einfo "Run zope-config to set up an instance before trying to start zope." >} > >pkg_setup() { > enewgroup ${ZGID} 261 > enewuser ${ZUID} 261 /bin/bash ${ZS_DIR} zope >} > >src_compile() { > ./configure --ignore-largefile --prefix=${ZOPE_DIR} || die "Failed to configure." > emake || die "Failed to compile." >} > >src_install() { > dodoc README.txt > dodoc doc/*.txt > docinto PLATFORMS ; dodoc doc/PLATFORMS/* > > # Patched StructuredText will accept source text formatted in utf-8 encoding, > # apply all formattings and output utf-8 encoded text. > # if you want to use this option you need to set your > # system python encoding to utf-8 (create the file sitecusomize.py inside > # your site-packages, add the following lines > # import sys > # sys.setdefaultencoding('utf-8') > # If this is a problem, let me know right away. --batlogg@solution2u.net > # I wondering if we need a USE flag for this and wheter we can set the > # sys.encoding automtically > # so i defined a use flag > > if use unicode; then > einfo "Patching structured text" > einfo "make sure you have set the system python encoding to utf-8" > einfo "create the file sitecustomize.py inside your site-packages" > einfo "import sys" > einfo "sys.setdefaultencoding('utf8')" > cd ${S}/lib/python/StructuredText/ > epatch ${FILESDIR}/i18n-1.0.0.patch > cd ${S} > fi > > make install PREFIX=${D}/${ZSERVDIR} > rm -rf ${D}${ZSERVDIR}/doc > dosym ${DOCDESTTREE} ${D}${ZSERVDIR}/doc > > skel=${D}${ZSERVDIR}/skel > dodir /etc/init.d > cp ${FILESDIR}/${PV}/zope.initd ${skel}/zope.initd > > setup_security ${D}${ZSERVDIR} ${ZGID} >} > >pkg_postinst() { > # Here we add our default zope instance. > # I strongly believe a default instance should not be installed. > # -- Andy Dustman > #/usr/sbin/zope-config --zserv=${ZSERVDIR} --zinst=${ZINSTDIR} \ > # --zgid=${ZGID} > install_help >} > >pkg_postrm() { > # rcscripts and conf.d files will remain. i.e. /etc protection. > > # Delete .default if this ebuild is the default. zprod-manager will > # have to handle a missing default; > rm -f ${ZI_DIR}/.default >} > >pkg_config() { > install_help >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 41508
:
28323
|
30905
|
30906
|
30907
|
30909
|
30910
|
33521
|
33950
|
33951
|
33952
|
34055
|
34059
|
34078
|
35340
|
35399
|
35770
|
35771
|
35865