diff options
author | Radoslaw Stachowiak <radek@gentoo.org> | 2005-12-24 16:35:35 +0000 |
---|---|---|
committer | Radoslaw Stachowiak <radek@gentoo.org> | 2005-12-24 16:35:35 +0000 |
commit | 356d33c1e69e96a2a410e15cc40b8d4638f425c5 (patch) | |
tree | 78c3c233888c9097733186989063a9f553ded42d /net-zope | |
parent | Version bumped. (diff) | |
download | gentoo-2-356d33c1e69e96a2a410e15cc40b8d4638f425c5.tar.gz gentoo-2-356d33c1e69e96a2a410e15cc40b8d4638f425c5.tar.bz2 gentoo-2-356d33c1e69e96a2a410e15cc40b8d4638f425c5.zip |
new version, net-zope/zopex3 will be no longer maintained
(Portage version: 2.1_pre1)
Diffstat (limited to 'net-zope')
-rw-r--r-- | net-zope/zope/ChangeLog | 8 | ||||
-rw-r--r-- | net-zope/zope/Manifest | 4 | ||||
-rw-r--r-- | net-zope/zope/files/digest-zope-3.1.0 | 1 | ||||
-rw-r--r-- | net-zope/zope/files/zope.initd | 17 | ||||
-rw-r--r-- | net-zope/zope/zope-3.1.0.ebuild | 119 |
5 files changed, 142 insertions, 7 deletions
diff --git a/net-zope/zope/ChangeLog b/net-zope/zope/ChangeLog index e1b398f87649..638485583feb 100644 --- a/net-zope/zope/ChangeLog +++ b/net-zope/zope/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-zope/zope # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.87 2005/12/11 20:54:54 radek Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.88 2005/12/24 16:35:35 radek Exp $ + +*zope-3.1.0 (24 Dec 2005) + + 24 Dec 2005; Radoslaw Stachowiak <radek@gentoo.org> files/zope.initd, + +zope-3.1.0.ebuild: + new version, net-zope/zopex3 will be no longer maintained *zope-2.8.4 (11 Dec 2005) diff --git a/net-zope/zope/Manifest b/net-zope/zope/Manifest index 7f9ae1c55519..885a2100ecc3 100644 --- a/net-zope/zope/Manifest +++ b/net-zope/zope/Manifest @@ -16,8 +16,9 @@ MD5 47255f0bd3319908dc8ee081f6c8cf17 files/digest-zope-2.8.1 66 MD5 e1516616e08b645a062860a4903fa4fe files/digest-zope-2.8.2 69 MD5 f26477bbd15c975a265ea05f285e728e files/digest-zope-2.8.3 66 MD5 d1db47dc244cba7522bfb1babe93f3f0 files/digest-zope-2.8.4 66 +MD5 af9f7a9e66ce59bf1a8a901402f6ed5e files/digest-zope-3.1.0 60 MD5 037cf91a5b4d60efe166f90210c837ed files/i18n-1.0.0.patch 8080 -MD5 28b31acf9b00b4388850af2acd90b2e3 files/zope.initd 1232 +MD5 7b785f68832f5307c6514915c7379914 files/zope.initd 1322 MD5 7890d88c5c6d189fbe6b187a3ebb6532 metadata.xml 161 MD5 5416407eff85546578bb4e7c61f45d5e zope-2.6.4-r1.ebuild 5629 MD5 42625ed029875b4d13c9af34f02aa7ed zope-2.7.5.ebuild 3334 @@ -29,3 +30,4 @@ MD5 a51712c4e56687605942d3c914c60d31 zope-2.8.1.ebuild 3512 MD5 6e4ba5b7bd92b20ad3f28cb7e3158deb zope-2.8.2.ebuild 3515 MD5 0ce3afe5cd3f944a3fa984afa74a43af zope-2.8.3.ebuild 3512 MD5 38de27b03b7128af70fed16cee33afd0 zope-2.8.4.ebuild 3512 +MD5 86da12ec27b1554523f9994c0c6b0c56 zope-3.1.0.ebuild 3144 diff --git a/net-zope/zope/files/digest-zope-3.1.0 b/net-zope/zope/files/digest-zope-3.1.0 new file mode 100644 index 000000000000..da477df5cb53 --- /dev/null +++ b/net-zope/zope/files/digest-zope-3.1.0 @@ -0,0 +1 @@ +MD5 7e4c383479753639cddb14e2914582eb Zope-3.1.0.tgz 4048336 diff --git a/net-zope/zope/files/zope.initd b/net-zope/zope/files/zope.initd index 191ef17c6c8e..bb796d47aa30 100644 --- a/net-zope/zope/files/zope.initd +++ b/net-zope/zope/files/zope.initd @@ -1,9 +1,9 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/files/zope.initd,v 1.1 2005/01/14 21:16:20 radek Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/files/zope.initd,v 1.2 2005/12/24 16:35:35 radek Exp $ -opts="start stop reload kill quit status help" +opts="start stop reload restart kill quit status help" depend() { need net @@ -21,10 +21,10 @@ stop() { eend $? } -reload() { - # note: reload calls zope restart, runscript restart stops and starts +restart() { ebegin "Restarting Zope in INSTANCE_HOME" - INSTANCE_HOME/bin/zopectl restart + svc_stop + svc_start eend $? } @@ -40,6 +40,13 @@ quit() { eend $? } +reload() { + # throws an error, dunno why + ebegin "Reloading Zope config in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl reload + eend $? +} + status() { ebegin "Status of Zope in INSTANCE_HOME" INSTANCE_HOME/bin/zopectl status diff --git a/net-zope/zope/zope-3.1.0.ebuild b/net-zope/zope/zope-3.1.0.ebuild new file mode 100644 index 000000000000..e6d0a029879b --- /dev/null +++ b/net-zope/zope/zope-3.1.0.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-3.1.0.ebuild,v 1.1 2005/12/24 16:35:35 radek Exp $ + +inherit eutils multilib + +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/Zope3/${PV}final/Zope-${PV}.tgz" + +LICENSE="ZPL" +SLOT="${PV}" +IUSE="" + +KEYWORDS="~x86" + +RDEPEND="=dev-lang/python-2.4*" + +DEPEND="${RDEPEND} + >=app-shells/bash-2.0 + >=sys-apps/sed-4.0.5" + +S="${WORKDIR}/Zope-${PV}" + +ZUNAME=zope +ZGNAME=zope + +ZS_DIR=${ROOT%/}/usr/$(get_libdir) +ZSERVDIR=${ZS_DIR}/${P} +ZSKELDIR=${ZSERVDIR}/zopeskel +ZINSTDIR=/var/lib/zope/${PN} + +src_compile() { + + cd ${S} + + ./configure --prefix=${D}${ZSERVDIR} --with-python=/usr/bin/python2.4 || die "Failed to configure." + emake || die "Failed to compile." +} + +src_install() { + + cd ${S} + + dodoc README.txt + dodoc Zope/doc/*.txt + for DIR in schema security skins style zcml zsync + do + docinto ${DIR} + dodoc Zope/doc/${DIR}/* + done + + make install prefix=${D}${ZSERVDIR} + + dosym ../../share/doc/${PF} ${ZSERVDIR}/doc + + # copy the init script skeleton to zopeskel directory of our installation + cp ${FILESDIR}/zope.initd ${D}${ZSKELDIR}/zope.initd +} + +pkg_postinst() { + # create the zope user and group for backward compatibility + enewgroup ${ZGNAME} 261 + usermod -g ${ZGNAME} -c "Zope Admin User" -d /var/lib/zope -s /bin/bash ${ZUNAME} 2>&1 >/dev/null || \ + enewuser ${ZUNAME} 261 /bin/bash /var/lib/zope ${ZGNAME} "Zope Admin User" + + einfo "This release can create a default but *SIMPLIFIED** instance using the command: " + einfo " emerge --config =${PF}" + einfo "Instance will be named zope, and will use /var/lib/zope/zope as its instance home." + einfo + ewarn "Current gentoo zope gotchas:" + ewarn ".. Zope ${PV} is not yet fully supported by zope-config-0.*" + ewarn ".. We use python2.4 to simplify packages managability" +} + +pkg_prerm() { + + find ${ZSERVDIR}/lib/python -name \*.py[co] -exec rm -f {} \; +} + +pkg_postrm() { + + rmdir /usr/$(get_libdir)/${ZSERVDIR} 2>/dev/null +} + +pkg_config() { + + if [ -f /etc/init.d/${PN} -o -d ${ZINSTDIR} ] + then + ewarn "Default instance already exists, aborting.." + ewarn "Please delete first /etc/init.d/${PN} and ${ZINSTDIR}" + die "Failed to create default instance." + fi + + mkdir -p ${ZINSTDIR} + ${ZSERVDIR}/bin/mkzopeinstance -d ${ZINSTDIR} -u admin:admin + + # remove unnecessary zope.initd + rm -f ${ZINSTDIR}/zope.initd + + # log symlink + rm -rf ${ZINSTDIR}/log + mkdir -p /var/log/zope/${PN} + ln -s /var/log/zope/${PN} ${ZINSTDIR}/log + + # permissions changes + chmod go-rwx -R ${ZINSTDIR} + chown ${ZUNAME}:${ZGNAME} -R ${ZINSTDIR} /var/log/zope/${PN} + + cp ${ZSKELDIR}/zope.initd /etc/init.d/${PN} + chmod 755 /etc/init.d/${PN} + sed -i -e "s|INSTANCE_HOME|${ZINSTDIR}|" /etc/init.d/${PN} + sed -i -e "s|zopectl|zopectl -u ${ZUNAME}|" /etc/init.d/${PN} + + einfo "Default instance created at ${ZINSTDIR}" + einfo "Created default zope user 'admin' with password 'admin'." + einfo "Be warned that this instance is prepared to run as zope user only." + einfo "To start instance (ports 8080,8021,) use: /etc/init.d/${PN} start" +} |