diff options
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/zope/ChangeLog | 10 | ||||
-rw-r--r-- | net-www/zope/files/digest-zope-2.5.1 | 2 | ||||
-rw-r--r-- | net-www/zope/zope-2.4.0-r6.ebuild | 5 | ||||
-rw-r--r-- | net-www/zope/zope-2.5.1.ebuild | 118 |
4 files changed, 132 insertions, 3 deletions
diff --git a/net-www/zope/ChangeLog b/net-www/zope/ChangeLog index 73bba9c2ec7d..d613e532b9b9 100644 --- a/net-www/zope/ChangeLog +++ b/net-www/zope/ChangeLog @@ -1,10 +1,16 @@ # ChangeLog for net-www/zope # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-www/zope/ChangeLog,v 1.2 2002/07/03 03:07:58 jnelson Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/zope/ChangeLog,v 1.3 2002/07/08 23:37:04 jnelson Exp $ +*zope-2.5.1 (2 Jul 2002) + 2 Jul 2002; Jon Nelson <jnelson@gentoo.org> zope-2.5.1.ebuild: + Use python 2.1.3 ebuild explicitly + Thanks for Matt Behrens <matt@zigg.com> + Hopefully closes #468 + *unreleased-as-yet-still-using-masked-zope-2.4.0-r6 - 1 Jul 2002; Jon Nelson <jnelson@gentoo.org> zope-2.4.0-r6 + 1 Jul 2002; Jon Nelson <jnelson@gentoo.org> zope-2.4.0-r6: Use new python2.1 ebuild explicitly Will probably update to zope 2.5.0 when I get some time, but 2.4.0-r6 will build. diff --git a/net-www/zope/files/digest-zope-2.5.1 b/net-www/zope/files/digest-zope-2.5.1 new file mode 100644 index 000000000000..96e862d6ce6c --- /dev/null +++ b/net-www/zope/files/digest-zope-2.5.1 @@ -0,0 +1,2 @@ +MD5 65d502b2acf986693576decad6b837cf Zope-2.5.1-src.tgz 2165141 +MD5 ba57ebf203f77b7d92510bc06f9d0c0d ZEO-1.0.tgz 44203 diff --git a/net-www/zope/zope-2.4.0-r6.ebuild b/net-www/zope/zope-2.4.0-r6.ebuild index f8a2e9783a53..98b9610c9712 100644 --- a/net-www/zope/zope-2.4.0-r6.ebuild +++ b/net-www/zope/zope-2.4.0-r6.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Holger Brueckner <darks@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/net-www/zope/zope-2.4.0-r6.ebuild,v 1.2 2002/07/03 03:06:19 jnelson Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/zope/zope-2.4.0-r6.ebuild,v 1.3 2002/07/08 23:37:04 jnelson Exp $ A="Zope-${PV}-src.tgz ZEO-1.0b3.tgz" S=${WORKDIR}/Zope-${PV}-src @@ -13,6 +13,9 @@ HOMEPAGE="http://www.zope.org" DEPEND="virtual/glibc =dev-lang/python-2.1*" RDEPEND="=dev-lang/python-2.1*" +KEYWORDS="x86 ppc" +SLOT="0" +LICENSE="as-is" src_unpack() { diff --git a/net-www/zope/zope-2.5.1.ebuild b/net-www/zope/zope-2.5.1.ebuild new file mode 100644 index 000000000000..e01e78c2cb60 --- /dev/null +++ b/net-www/zope/zope-2.5.1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Holger Brueckner <darks@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-www/zope/zope-2.5.1.ebuild,v 1.1 2002/07/08 23:37:04 jnelson Exp $ + +A="Zope-${PV}-src.tgz ZEO-1.0.tgz" +S=${WORKDIR}/Zope-${PV}-src +DESCRIPTION="Zope is web application platform used for building high-performance, dynamic web sites." +SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-src.tgz + http://www.zope.org/Products/ZEO/ZEO-1.0.tgz" +HOMEPAGE="http://www.zope.org" + +DEPEND="virtual/glibc + =dev-lang/python-2.1.3*" +RDEPEND="${DEPEND}" +SLOT="0" +LICENSE="as-is" +KEYWORDS="x86 ppc" + +src_unpack() { + + unpack Zope-${PV}-src.tgz + + if [ "`use zeo`" ]; then + cd ${S}/lib/python + unpack ZEO-1.0.tgz + mv ZEO-1.0/ZEO ${S}/lib/python + rm -rf ZEO-1.0 + fi +} + +src_compile() { + python2.1 w_pcgi.py || die +} + +src_install () { + + ZDIR=/usr/share/zope + ZVAR=/var/lib/zope + + + dodir ${ZDIR}/var + insinto ${ZDIR} + doins w_pcgi.py wo_pcgi.py + + dodir ${ZDIR}/lib + cp -a lib/* ${D}${ZDIR}/lib/ + cp -a ZServer utilities ${D}${ZDIR} + rm ${D}${ZDIR}/ZServer/*.txt + exeinto ${ZDIR}/pcgi + doexe pcgi/pcgi-wrapper pcgi/pcgi_publisher.py + + dodir ${ZDIR}/inst + cp -a inst/* ${D}${ZDIR}/inst + + dodir ${ZDIR}/pcgi + cp -a pcgi/* ${D}${ZDIR}/pcgi + + cd ${S} + fperms a+x ${ZDIR}/lib/python/zdaemon.py + fperms a+x ${ZDIR}/lib/python/StructuredText/StructuredText.py + fperms a+x ${ZDIR}/lib/python/ZPublisher/Client.py + + dodir ${ZVAR} + insinto ${ZVAR} + doins z2.py + insinto ${ZVAR}/var + insopts -m644 + doins var/Data.fs.in + dodir ${ZVAR}/Extensions + dodir ${ZVAR}/import + dodir ${ZVAR}/Products + + if [ "`use zeo`" ]; then + insinto ${ZVAR} + doins ${FILESDIR}/zctl.py ${FILESDIR}/zope ${FILESDIR}/zope.conf ${FILESDIR}/custom_zodb.py + fi + + exeinto ${ZDIR} + doexe zpasswd.py Zope.cgi + + cd ${D}${ZDIR} + sed -e "s:${WORKDIR}:${ZDIR}:g" Zope.cgi > Zope.cgi.tmp + mv Zope.cgi.tmp Zope.cgi + sed -e "s:${WORKDIR}:${ZVAR}:g" stop > stop.tmp + mv stop.tmp stop + + dodir /etc/init.d + exeinto /etc/init.d + newexe ${FILESDIR}/zope.rc6 zope + chown nobody.users ${D}/${ZVAR}/var/* +} + +pkg_postinst() { + if [ ! -f ${ROOT}/var/lib/zope/var/Data.fs ] + then + echo "Installing Data.fs from template..." + cd ${ROOT}/var/lib/zope/var + cp Data.fs.in Data.fs + echo + echo "Fixing permissions..." + chown nobody.nogroup -R ${ROOT}/var/lib/zope/var + chmod 600 ${ROOT}/var/lib/zope/var/Data.fs + echo + fi + if [ ! -f ${ROOT}/var/lib/zope/access ] + then + echo "You must run" + echo + echo /usr/share/zope/zpasswd.py /var/lib/zope/inituser + if [ "`use zeo`" ]; then + echo and edit /var/lib/zope/zope.conf + fi + + echo + echo before you can start zope + fi +} |