From: Daniel Ahlberg Date: Thu, 24 Oct 2002 12:44:03 +0000 (+0000) Subject: Security update + added license X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=bee494061b4bbb6cfd52174224f2c625787a8957;p=gentoo.git Security update + added license --- diff --git a/licenses/ZPL b/licenses/ZPL new file mode 100644 index 000000000000..44e0648b3123 --- /dev/null +++ b/licenses/ZPL @@ -0,0 +1,59 @@ +Zope Public License (ZPL) Version 2.0 +----------------------------------------------- + +This software is Copyright (c) Zope Corporation (tm) and +Contributors. All rights reserved. + +This license has been certified as open source. It has also +been designated as GPL compatible by the Free Software +Foundation (FSF). + +Redistribution and use in source and binary forms, with or +without modification, are permitted provided that the +following conditions are met: + +1. Redistributions in source code must retain the above + copyright notice, this list of conditions, and the following + disclaimer. + +2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + +3. The name Zope Corporation (tm) must not be used to + endorse or promote products derived from this software + without prior written permission from Zope Corporation. + +4. The right to distribute this software or to use it for + any purpose does not give you the right to use Servicemarks + (sm) or Trademarks (tm) of Zope Corporation. Use of them is + covered in a separate agreement (see + http://www.zope.com/Marks). + +5. If any files are modified, you must cause the modified + files to carry prominent notices stating that you changed + the files and the date of any change. + +Disclaimer + + THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS'' + AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN + NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. + + +This software consists of contributions made by Zope +Corporation and many individuals on behalf of Zope +Corporation. Specific attributions are listed in the +accompanying credits file. diff --git a/net-www/zope/ChangeLog b/net-www/zope/ChangeLog index d613e532b9b9..c1d2a5ecef00 100644 --- a/net-www/zope/ChangeLog +++ b/net-www/zope/ChangeLog @@ -1,6 +1,11 @@ # 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.3 2002/07/08 23:37:04 jnelson Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/zope/ChangeLog,v 1.4 2002/10/24 12:44:03 aliz Exp $ + +*zope-2.6.0 (24 Oct 2002) + + 24 Oct 2002; Daniel Ahlberg zope-2.6.0.ebuild : + Security update. Ebuild contributed by Jason S in #9474. *zope-2.5.1 (2 Jul 2002) 2 Jul 2002; Jon Nelson zope-2.5.1.ebuild: diff --git a/net-www/zope/files/2.6.0/zope.envd b/net-www/zope/files/2.6.0/zope.envd new file mode 100644 index 000000000000..947139c625c3 --- /dev/null +++ b/net-www/zope/files/2.6.0/zope.envd @@ -0,0 +1,79 @@ +#-- Zope installation + +#INSTANCE_HOME= +#SOFTWARE_HOME= +#ZOPE_HOME= +#FORCE_PRODUCT_LOAD= + +#-- Profiling + +#PROFILE_PUBLISHER= + +#-- SiteAccess + +#SUPPRESS_ACCESSRULE= +#SUPPRESS_SITEROOT= + +#-- ZEO + +#CLIENT_HOME= +#ZEO_CLIENT= + +#-- Debugging and Logging + +#EVENT_LOG_FORMAT= +#EVENT_LOG_FILE= +#EVENT_LOG_SEVERITY= +#ZSYSLOG= +#ZSYSLOG_FACILITY= +#ZSYSLOG_SERVER= +#ZSYSLOG_ACCESS= +#ZSYSLOG_ACCESS_FACILITY= +#ZSYSLOG_ACCESS_SERVER= +#Z_DEBUG_MODE= + +#-- Misc. + +#Z_REALM + +#-- Security related + +#NO_SECURITY= +#ZOPE_SECURITY_POLICY= +#ZSP_OWNEROUS_SKIP= +#ZSP_AUTHENTICATED_SKIP= +#DISALLOW_LOCAL_PRODUCTS= + +#-- ZODB related + +#ZOPE_DATABASE_QUOTA= +#ZOPE_READ_ONLY= + +#-- Session related + +#ZSESSION_ADD_NOTIFY= +#ZSESSION_DEL_NOTIFY= +#ZSESSION_TIMEOUT_MINS= +#ZSESSION_OBJECT_LIMIT= + +#-- WebDAV + +#WEBDAV_SOURCE_PORT_CLIENTS= + +#-- Structured Text + +#STX_DEFAULT_LEVEL= + +#-- DTML + +#ZOPE_DTML_REQUEST_AUTOQUOTE= + +#-- Esoteric + +#Z_MAX_STACK_SIZE +#FORCE_PRODUCT_RELOAD + + + + + diff --git a/net-www/zope/files/2.6.0/zope.initd b/net-www/zope/files/2.6.0/zope.initd new file mode 100644 index 000000000000..5d3ce573eeb1 --- /dev/null +++ b/net-www/zope/files/2.6.0/zope.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/zope/files/2.6.0/zope.initd,v 1.1 2002/10/24 12:44:03 aliz Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting zope" + start-stop-daemon -S -q --pidfile ${ZOPE_HOME}var/Z2.pid \ + --startas /usr/bin/python2.1 -- ${ZOPE_HOME}z2.py ${ZOPE_OPTS} + eend $? "Failed to start zope" +} + +stop() { + ebegin "Stopping zope" + start-stop-daemon -o -q -K --pidfile ${ZOPE_HOME}var/Z2.pid + RESULT=${?} + + # In case we have to kill zope by hand. + mv ${ZOPE_HOME}var/Z2.pid ${ZOPE_HOME}var/Z2.pid.old + eend $RESULT "Failed to stop zope" +} + + + + + diff --git a/net-www/zope/files/digest-zope-2.6.0 b/net-www/zope/files/digest-zope-2.6.0 new file mode 100644 index 000000000000..c2e2d34bcace --- /dev/null +++ b/net-www/zope/files/digest-zope-2.6.0 @@ -0,0 +1 @@ +MD5 a0bb91ca1df775aebfc8ff8c46afa3a9 Zope-2.6.0-src.tgz 2291282 diff --git a/net-www/zope/zope-2.6.0.ebuild b/net-www/zope/zope-2.6.0.ebuild new file mode 100644 index 000000000000..a89233809039 --- /dev/null +++ b/net-www/zope/zope-2.6.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/zope/zope-2.6.0.ebuild,v 1.1 2002/10/24 12:44:03 aliz Exp $ + +S="${WORKDIR}/Zope-${PV}-src" + +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/${PV}/Zope-${PV}-src.tgz" +LICENSE="ZPL" +SLOT="0" + +# TODO: needs to be confirmed on other platforms. +KEYWORDS="x86" + +DEPEND="virtual/glibc + dev-lang/python" + +ZOPEDIR="${DESTTREE}/share/zope/${PV}/" + +src_compile() { + python w_pcgi.py || die +} + +src_install() { + ENVD_DIR=etc/env.d/ + CONFD_DIR=etc/conf.d/ + + # move the main docs and compress them. + dodoc LICENSE.txt README.txt + + docinto doc + dodoc doc/*.txt + + docinto doc/PLATFORMS + dodoc doc/PLATFORMS/* + + docinto doc/changenotes + dodoc doc/changenotes/* + + #rm -fr LICENSE.txt README.txt doc/ + + # patch some paths. + sed -e "s:${S}:${ZOPEDIR}:" Zope.cgi > Zope.cgi.tmp + mv Zope.cgi.tmp Zope.cgi + chmod 755 Zope.cgi # restoring permissions + + # using '/etc/init.d/zope' instead + rm -f start stop + + # Keep others from overwritting PID files + chmod o+t var/ + + # copy the remaining contents of ${S} into the ${D}. + dodir ${ZOPEDIR} + cp -a . ${D}${ZOPEDIR} + + # Add a rc-script. + into /etc/init.d + doins ${FILESDIR}/${PV}/zope.initd + + # Add a env.d script. + into /etc/env.d + doins ${FILESDIR}/${PV}/zope.envd + + # Fill in an env.d variable. + sed -e "/ZOPE_HOME/ c\\ZOPE_HOME=${ZOPEDIR}\\" ${D}${ENVD_DIR}zope.envd \ + > ${D}${ENVD_DIR}zope.tmp + mv ${D}${ENVD_DIR}zope.tmp ${D}${ENVD_DIR}50zope + + # Add a conf.d script. + dodir ${CONFD_DIR} + echo -e "ZOPE_OPTS='-u root'\nZOPE_HOME=${ZOPEDIR}" > ${D}${CONFD_DIR}zope +} + +pkg_postinst() { + einfo "To get zope running you must execure the following:" + einfo "\tebuild /var/db/pkg/net-www/${PF}/${P}.ebuild config" +} + +pkg_config() { + einfo ">>> Create inital user...${ROOT}\n" + python ${ROOT}${ZOPEDIR}zpasswd.py ${ROOT}${ZOPEDIR}inituser +} +