diff options
author | Radoslaw Stachowiak <radek@gentoo.org> | 2004-09-27 19:45:56 +0000 |
---|---|---|
committer | Radoslaw Stachowiak <radek@gentoo.org> | 2004-09-27 19:45:56 +0000 |
commit | dd14e11925cf7adbfb6d34a0877bed592b02e09c (patch) | |
tree | 89fafa0024cde5ac3d9f7844a18dabf9e9de68d1 /net-zope/zopex3 | |
parent | Removing obsolete package (Manifest recommit) (diff) | |
download | gentoo-2-dd14e11925cf7adbfb6d34a0877bed592b02e09c.tar.gz gentoo-2-dd14e11925cf7adbfb6d34a0877bed592b02e09c.tar.bz2 gentoo-2-dd14e11925cf7adbfb6d34a0877bed592b02e09c.zip |
Initial release.
Diffstat (limited to 'net-zope/zopex3')
-rw-r--r-- | net-zope/zopex3/ChangeLog | 10 | ||||
-rw-r--r-- | net-zope/zopex3/Manifest | 4 | ||||
-rw-r--r-- | net-zope/zopex3/files/digest-zopex3-3.0.0_rc1 | 1 | ||||
-rw-r--r-- | net-zope/zopex3/files/zope.initd | 61 | ||||
-rw-r--r-- | net-zope/zopex3/metadata.xml | 5 | ||||
-rw-r--r-- | net-zope/zopex3/zopex3-3.0.0_rc1.ebuild | 112 |
6 files changed, 193 insertions, 0 deletions
diff --git a/net-zope/zopex3/ChangeLog b/net-zope/zopex3/ChangeLog new file mode 100644 index 000000000000..5fc442e13d2b --- /dev/null +++ b/net-zope/zopex3/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-zope/zopex3 +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zopex3/ChangeLog,v 1.1 2004/09/27 19:45:56 radek Exp $ + +*zopex3-3.0.0_rc1 (27 Sep 2004) + + 27 Sep 2004; Radoslaw Stachowiak <radek@gentoo.org> +metadata.xml, + +files/zope.initd, +zopex3-3.0.0_rc1.ebuild: + Initial release, running as root and no zope-config support. + diff --git a/net-zope/zopex3/Manifest b/net-zope/zopex3/Manifest new file mode 100644 index 000000000000..e302a17fa65d --- /dev/null +++ b/net-zope/zopex3/Manifest @@ -0,0 +1,4 @@ +MD5 2f521e1279f221dbc05d3793757fba13 zopex3-3.0.0_rc1.ebuild 2714 +MD5 7890d88c5c6d189fbe6b187a3ebb6532 metadata.xml 161 +MD5 89f6d421e38a89b2ea414facc3a78a26 files/digest-zopex3-3.0.0_rc1 64 +MD5 877fd78114387f2f237d3ca67effd0d7 files/zope.initd 1327 diff --git a/net-zope/zopex3/files/digest-zopex3-3.0.0_rc1 b/net-zope/zopex3/files/digest-zopex3-3.0.0_rc1 new file mode 100644 index 000000000000..5ff5f8a06f3c --- /dev/null +++ b/net-zope/zopex3/files/digest-zopex3-3.0.0_rc1 @@ -0,0 +1 @@ +MD5 76068f24cce8ddda9429fde66bafb1ba ZopeX3-3.0.0c1.tgz 3216655 diff --git a/net-zope/zopex3/files/zope.initd b/net-zope/zopex3/files/zope.initd new file mode 100644 index 000000000000..f08d28ac3255 --- /dev/null +++ b/net-zope/zopex3/files/zope.initd @@ -0,0 +1,61 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zopex3/files/zope.initd,v 1.1 2004/09/27 19:45:56 radek Exp $ + +opts="start stop restart kill quit status help" + +depend() { + need net +} + +start() { + ebegin "Starting Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl start + eend $? +} + +stop() { + ebegin "Stopping Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl stop + eend $? +} + +restart() { + ebegin "Restarting Zope in INSTANCE_HOME" + svc_stop + svc_start + eend $? +} + +kill() { + ebegin "Killing Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl kill + eend $? +} + +quit() { + ebegin "Quitting Zope Daemon Manager INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl 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 + eend $? +} + +help() { + ebegin "Help for Zope Daemon Manager in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl help + eend $? +} + diff --git a/net-zope/zopex3/metadata.xml b/net-zope/zopex3/metadata.xml new file mode 100644 index 000000000000..46c8eea1b318 --- /dev/null +++ b/net-zope/zopex3/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-zope</herd> +</pkgmetadata> diff --git a/net-zope/zopex3/zopex3-3.0.0_rc1.ebuild b/net-zope/zopex3/zopex3-3.0.0_rc1.ebuild new file mode 100644 index 000000000000..8c9dea8c4c9c --- /dev/null +++ b/net-zope/zopex3/zopex3-3.0.0_rc1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zopex3/zopex3-3.0.0_rc1.ebuild,v 1.1 2004/09/27 19:45:56 radek Exp $ + +inherit eutils + +MYPV="${PV/_r/}" +MYPN="ZopeX3" + +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/${MYPN}/${MYPV}/${MYPN}-${MYPV}.tgz" +LICENSE="ZPL" +SLOT="${PV}" +IUSE="" + +KEYWORDS="~x86" + +RDEPEND="=dev-lang/python-2.3*" +python='python2.3' + +DEPEND="${RDEPEND} +virtual/libc +>=sys-apps/sed-4.0.5" + +S="${WORKDIR}/${MYPN}-${MYPV}" +ZS_DIR=${ROOT%/}/usr/lib +ZSERVDIR=${ZS_DIR}/${PN}-${PV} +ZSKELDIR=${ZSERVDIR}/zopeskel +ZINSTDIR=/var/lib/zope/${PN} + +src_unpack() { + unpack ${A} + cd ${S} +} + +src_compile() { + ./configure --prefix=${D}${ZSERVDIR} || die "Failed to configure." + emake || die "Failed to compile." +} + +src_install() { + + dodoc README.txt + dodoc ZopeX3/doc/*.txt + docinto schema + dodoc ZopeX3/doc/schema/* + docinto security + dodoc ZopeX3/doc/security/* + docinto skins + dodoc ZopeX3/doc/skins/* + docinto style + dodoc ZopeX3/doc/style/* + docinto zcml + dodoc ZopeX3/doc/zcml/* + + 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() { + + einfo "Be warned that this release is able to create default instance for You." + einfo "Please use 'ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config' for instance creation" +} + +pkg_prerm() { + + find ${ZSERVDIR}/lib/python -name \*.py[co] -exec rm -f {} \; +} + +pkg_postrm() { + + rmdir /usr/lib/${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 + + ${ZSERVDIR}/bin/mkzopeinstance -d ${ZINSTDIR} -u admin:admin + mkdir -p ${ZINSTDIR} + + # 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 + + # draconian permissions :) + chmod go-rwx -R ${ZINSTDIR} + + 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} + + einfo "Default instance created at ${ZINSTDIR}" + einfo "Created default user 'admin' with password 'admin'." + einfo "Be warned that this instance is prepared to run as root only." + einfo "To start instance (ports 8080,8021,) use: /etc/init.d/${PN} start" +} |