diff --git a/Zope-2.6.4-RPM-README b/Zope-2.6.4-RPM-README deleted file mode 100644 index 8aac15e..0000000 --- a/Zope-2.6.4-RPM-README +++ /dev/null @@ -1,80 +0,0 @@ -Zope Post-Installation Notes: 18-May-02 - -Credit where credit is due: ---------------------------- - -This package is based on the Zope 2.4.3 RPMs Packaged by: -Jeff Rush - -Thanks Jeff! - - -Initial Administrator Username and Password: -------------------------------------------- - -The default administrator username is 'admin' and password is '123'. -These are set in the /var/zope/inituser file. Zope imports this -user account into the ZODB and then deletes the inituser file on -startup. - -The old /var/zope/access method is not implemented by this package. - - -Starting and Stopping Zope: --------------------------- - -Upon installing the Zope RPMs, your system is configured to start -Zope web service automatically upon system bootup. If you wish to -start manually, enter the command: - - /etc/rc.d/init.d/zope start - -To stop web service, enter the command: - - /etc/rc.d/init.d/zope stop - - -Log Files: ----------- - -Zserver logs to /var/log/zope directly by default. If you wish to -use syslog you'll need to edit /var/zope/zserver.sh and uncomment: -#export ZSYSLOG="/dev/log" - -By default, zserver logs errors and web hits via syslog using -facility USER, priority INFO. - - -Accessing Zope from your Browser: --------------------------------- - -The default setting of the Zope-zserver RPM is to begin listening -for HTTP requests on port 8080, and FTP requests on port 8021. -The monitor service is initially disabled, for security reasons. -To alter these port assignments or enable the monitor service, -edit the Zope startup script /var/zope/zserver.sh, changing the -arguments passed to the z2.py python program. For the specific -arguments to change, see the source for /var/zope/z2.py. - -To begin using Zope with the default settings for ZServer, point -your browser to: - - http://localhost:8080/ - - -PCGI Support ------------- - -PCGI support is not installed by this package. There are some -nasty circular dependancy problems that come up if you try to -package a PCGI build with rpm. (contributed solutions welcome!) - -As this package effectively "wraps up" the default install, it -should still be possible to build and install PCGI if you need it. -A README that may be of some help appears at: /usr/share/zope/pcgi/ - - - - -RPM-Packaged by Adam Manock -Based on the Zope 2.4.3 Package by Jeff Rush diff --git a/Zope-2.6.4-src.tgz b/Zope-2.6.4-src.tgz deleted file mode 100644 index f2d0d2a..0000000 --- a/Zope-2.6.4-src.tgz +++ /dev/null Binary files differ diff --git a/Zope-2.6.4-zope b/Zope-2.6.4-zope deleted file mode 100755 index 1375c2f..0000000 --- a/Zope-2.6.4-zope +++ /dev/null @@ -1,147 +0,0 @@ -#!/bin/sh -# -# zope Start/Stop the Zope web-application server. -# -# chkconfig: 2345 72 72 -# description: zope is a web server specifically for handling \ -# HTTP requests to the Zope web-application service. -# -# Source function library. -. /etc/rc.d/init.d/functions - -INSTANCE_HOME=/var/zope -INSTANCE_NAME=`basename ${INSTANCE_HOME}` - -# make sure starter script exists -[ -f ${INSTANCE_HOME}/zserver.sh ] || exit 0 - -RETVAL=0 - -# Source function library does not help us with the pid -# so we find get the pid from the file here *only* -pidfile=/var/zope/var/Z2.pid -pid= -if [ -f $pidfile ]; then - pid=`cat $pidfile` -fi - -# Modified version of killproc() from source function library - -killproc() { - RC=0 - # Test syntax. - if [ "$#" -eq 0 ]; then - echo $"Usage: killproc {program} [signal]" - return 1 - fi - - notset=0 - # check for second arg to be kill level - if [ -n "$2" ]; then - killlevel=$2 - else - notset=1 - killlevel="-9" - fi - - # Save basename. - base=${1##*/} - - # Kill it. - if [ -n "${pid:-}" ] ; then - [ "$BOOTUP" = "verbose" -a -z "$LSB" ] && echo -n "$base " - if [ "$notset" -eq "1" ] ; then - if checkpid $pid 2>&1; then - # TERM first, then KILL if not dead - kill -TERM $pid - usleep 100000 - if checkpid $pid && sleep 1 && - checkpid $pid && sleep 3 && - checkpid $pid ; then - kill -KILL $pid - usleep 100000 - fi - fi - checkpid $pid - RC=$? - [ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown" - RC=$((! $RC)) - # use specified level only - else - if checkpid $pid; then - kill $killlevel $pid - RC=$? - [ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel" - fi - fi - else - failure $"$base shutdown" - RC=1 - fi - - # Remove pid file if any. - if [ "$notset" = "1" ]; then - rm -f $pidfile - fi - return $RC -} - -# Modified version of status() from source function library - -status() { - local base=${1##*/} - - # Test syntax. - if [ "$#" = 0 ] ; then - echo $"Usage: status {program}" - return 1 - fi - - # First and only try "$pid" - if [ -n "$pid" ]; then - echo $"${base} (pid $pid) is running..." - return 0 - fi - - # See if /var/lock/subsys/${base} exists - if [ -f /var/lock/subsys/${base} ]; then - echo $"${base} dead but subsys locked" - return 2 - fi - echo $"${base} is stopped" - return 3 -} - -# See how we were called. -case "$1" in - start) - echo -n "Starting zope: " - cd ${INSTANCE_HOME} - [ "$pid" != "" ] && ps h $pid >/dev/null 2>&1 && echo && exit $RETVAL - rm -f ${INSTANCE_HOME}/var/Z2.pid - daemon ${INSTANCE_HOME}/zserver.sh - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/${INSTANCE_NAME} - ;; - stop) - echo -n "Shutting down zope: " - killproc zope - echo - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/${INSTANCE_NAME} ${INSTANCE_HOME}/var/Z2.pid - ;; - restart|reload) - $0 stop - $0 start - RETVAL=$? - ;; - status) - status zope - [ $RETVAL -ne 0 ] && RETVAL=$? - ;; - *) - echo "Usage: zope {start|stop|restart|status}" - exit 1 -esac - -exit $RETVAL diff --git a/Zope-2.6.4-zserver-wo-pcgi.sh b/Zope-2.6.4-zserver-wo-pcgi.sh deleted file mode 100755 index d200d61..0000000 --- a/Zope-2.6.4-zserver-wo-pcgi.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -export INSTANCE_HOME=/var/zope - -# Now that we have fixed syslog.syslog_client to handle RH 6.1's changes, we -# can use syslogd for logging. Logging to a remote server using syslogd can -# be done by using ZSYSLOG_SERVER instead if ZYSLOG. If you do not define -# either of the ZSYSLOG* env vars, logging goes to the file specified by -# the -l command argument instead. - -# Note: For syslog logging to work from the ZServer/medusa subsystem, the -# ZSYSLOG variable must now contain the name of the socket to log to, -# usually /dev/log on Unix machines. JM 19991104. - -#export ZSYSLOG="/dev/log" -#export ZSYSLOG_SERVER="localhost:514" - -# -# We disable the Medusa monitor port, for security reasons, since many -# people won't need it. -# -# -z /usr/share/zope {specify directory of installed Zope software} -# -u zope {run as user 'zope'} -# -Z 0 or 1 {don't or do use a management process, no pid file written} -# -w 8080 {port on which to listen for HTTP requests} -# -f 8021 {port on which to listen for FTP requests} -# -m '' {port on which to listen for Medusa monitor requests} -# -L 'locale' {specify desired international locale} -# -l /var/log/zope {specify logfile} -# - - -cd $INSTANCE_HOME -/usr/bin/env /usr/bin/python2.1 z2.py \ - -u zope \ - -z /usr/share/zope \ - -Z 1 \ - -w 8080 \ - -f 8021 \ - -m '' \ - -l /var/log/zope \ - >> /var/log/zope 2>&1 \ - & - - diff --git a/Zope-2.6.4.spec b/Zope-2.6.4.spec deleted file mode 100644 index 2a5904b..0000000 --- a/Zope-2.6.4.spec +++ /dev/null @@ -1,449 +0,0 @@ -# File: Zope-2.6.4.spec -# -# Zope Corporation Z-Object Programming Environment (ZOPE) -# -# "Zope is an Open Source application server and portal -# toolkit used for building high-performance, dynamic Web sites." -# -# An independent 'BuildRoot:' directive is used so that that this package -# can be built in the /var/tmp directory, for the case where the existing -# software on the build host would be disrupted by installing-after-build- -# to-package onto that system. -# -# Sample Package Names: -# Zope-2.6.4.i386.rpm -# Zope-zserver-2.6.4.i386.rpm -# -# NOTE to Future ZOPE RPM Maintainers: -# -# Zope is installed to /usr/share/zope/ read only. -# /var/zope/ is the read-write INSTANCE_HOME -# -#### - -#### -# Section: Preamble (Items Displayed When Users Request Info About Package) -# -# The order of the entries below is unimportant. -# -#### - -%define PYTHONAPP /usr/bin/python2.1 -%define PYTHONDIR python2.1 - -Name: Zope -Version: 2.6.4 -Release: 1 -Copyright: Zope Public License (ZPL) -Vendor: Zope Corporation -URL: http://www.zope.org/ -Packager: Alex Tucker -BuildRoot: /var/tmp/Zope-%{version}-rootdir -Prereq: python2.1 python2.1-devel /sbin/chkconfig /usr/sbin/useradd - -Source0: http://www.zope.org/Download/Releases/Zope-%{version}/Zope-%{version}-src.tgz -Source1: Zope-%{version}-zope -Source2: Zope-%{version}-RPM-README -Source3: Zope-%{version}-zserver-wo-pcgi.sh - -#---------------------------------------------------------------------- -Summary: An application server and portal toolkit for building Web sites. -Group: Development/Web Applications -Requires: python2.1 >= 2.1.3 -%description -The Z Object Programming Environment (Zope) is a free, Open Source[tm] -Python-based application server for building high-performance, dynamic -web sites, using a powerful and simple scripting object model and -high-performance, integrated object database. - -For a fully functional installation of Zope, install this single huge -package and then the Zope-zserver RPM - -#---------------------------------------------------------------------- -%package zserver -Summary: Initial Object Database/Standalone HTTP Server -Group: Development/Web Applications -Requires: Zope -Conflicts: Zope-pcgi -Provides: Zope-webserver -Prereq: /etc/init.d - -%description zserver -The Zope-zserver package contains the files needed for setting up a -Zope website, including an empty object database. Zope is an application -server and portal toolkit. - -Also included is the ZServer, which is a small, standalone web server -written in Python. The ZServer uses the very fast Medusa technology -and is multithreaded. This package comes preconfigured to serve -web pages on port 8080 and ftp access on 8021. The programmer's port -interface comes disabled for security reasons but can be reenabled. - - -#---------------------------------------------------------------------- - -#### -# Section: Prep Script (Prepare to Build; Usually Just Unpacking the Sources) -#### -%prep -# Create Build Subdirectory and Unpack the Main Tar Ball -%setup -q -n %{name}-%{version}-src - -# Reset RPM's Concept of "-n" Back to the Top-Level Package Dir Name -%setup -q -T -D -n %{name}-%{version}-src - -#### -# Section: Build Script (Actually Perform the Build; Usually Just 'make') -#### -%build - - echo Building Zope... - -%{PYTHONAPP} wo_pcgi.py - -#### -# Section: Install-After-Build Script (Often Just 'make install') -#### -%install - rm -rf $RPM_BUILD_ROOT - - # Directory Structure for SOFTWARE_HOME=/usr/share/zope/ - install -m0755 --directory $RPM_BUILD_ROOT/usr/bin - install -m0755 --directory $RPM_BUILD_ROOT/usr/share/zope - - # Directory Structure for INSTANCE_HOME=/var/zope/ - install -m0755 --directory $RPM_BUILD_ROOT/etc/rc.d/init.d - install -m0775 --directory $RPM_BUILD_ROOT/var/zope - install -m0775 --directory $RPM_BUILD_ROOT/var/zope/Extensions - install -m1711 --directory $RPM_BUILD_ROOT/var/zope/var - install -m0775 --directory $RPM_BUILD_ROOT/var/zope/Products - install -m0775 --directory $RPM_BUILD_ROOT/var/log - - cp -Rdp * $RPM_BUILD_ROOT/usr/share/zope/ - - install -m 0755 zpasswd.py $RPM_BUILD_ROOT/usr/bin/zpasswd - install -m 0755 zpasswd.py $RPM_BUILD_ROOT/usr/share/zope/utilities/ - - # Establish an Empty Zope Object Database - install -m 0600 var/Data.fs.in $RPM_BUILD_ROOT/var/zope/var/Data.fs - - # Create a Safe Preowned Zope Logfile, for ZServer - # (Otherwise a symlink-redirect attack may be possible!) - touch $RPM_BUILD_ROOT/var/log/zope - - # Declare the Superuser of the Default Zope Project - rm $RPM_BUILD_ROOT/usr/share/zope/inituser - %{PYTHONAPP} $RPM_BUILD_ROOT/usr/bin/zpasswd -u admin -p 123 $RPM_BUILD_ROOT/var/zope/inituser - chmod 0640 $RPM_BUILD_ROOT/var/zope/inituser - - install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/zope - install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/zope/RPM-README - install -m 0755 %{SOURCE3} $RPM_BUILD_ROOT/var/zope/zserver_wo_pcgi.sh - install -m 0755 z2.py $RPM_BUILD_ROOT/var/zope/z2.py - -#### -# Section: Delivery Install/Uninstall Scripts (Pre/Post Install/Erase Scripts) -#### - -%pre zserver - /usr/sbin/useradd -M -r -s /bin/bash -d /var/zope -c "Zope Server" zope >/dev/null 2>&1 || : - -%post zserver - /sbin/chkconfig --add zope - ln -sf /var/zope/zserver_wo_pcgi.sh /var/zope/zserver.sh - ln -sf /usr/share/zope/import /var/zope/import - -%preun zserver - if [ "$1" = 0 ] ; then - if [ /var/zope/zserver_wo_pcgi.sh -ef /var/zope/zserver.sh ]; then - rm /var/zope/zserver.sh - fi - if [ /usr/share/zope/import -ef /var/zope/import ]; then - rm /var/zope/import - fi - /etc/rc.d/init.d/zope stop > /dev/null 2>&1 - /sbin/chkconfig --del zope - fi - -%postun zserver - if [ $1 = 0 ] ; then - userdel zope >/dev/null 2>&1 || : - fi - if [ "$1" -ge "1" ]; then - /etc/rc.d/init.d/zope condrestart > /dev/null 2>&1 - fi - -#### -# Section: Verify Script (Check for Proper Installation of Package) -#### - -%verifyscript zserver - if [ ! /var/zope/zserver_wo_pcgi.sh -ef /var/zope/zserver.sh ]; then - echo "/var/zope/zserver_wo_pcgi.sh should be linked to /var/zope/zserver.sh" >&2 - fi - - if [ ! /usr/share/zope/import -ef /var/zope/import ]; then - echo "/usr/share/zope/import should be linked to /var/zope/import" >&2 - fi - -#### -# Section: Clean Script (Tidy Up Build Area After a Build Completes) -#### -%clean - - rm -rf $RPM_BUILD_ROOT - -#### -# Section: Files (List of Files w/Attributes Making Up Package) -#### - -%files - %defattr(-, root, root) - - %config /usr/share/zope - %config /usr/bin/zpasswd - -%files zserver - %defattr(-, root, root) - - %config /etc/rc.d/init.d/zope - %config(noreplace) %attr(640, root, zope) /var/zope/inituser - %config /var/zope/z2.py - %config /var/zope/zserver_wo_pcgi.sh - - %defattr(-, root, root) - %dir /var/zope/ - %dir /var/zope/Products - %dir /var/zope/var/ - /var/zope/Extensions/ - %config(noreplace) %verify(not size md5 mtime) /var/zope/var/Data.fs - %verify(not size md5 mtime) /var/log/zope - -%changelog -* Mon Apr 12 2004 Alex Tucker 2.6.4-1 -- Updated for Zope 2.6.4 - -* Thu Oct 02 2003 Alex Tucker -- Updated for Zope 2.6.2 - -* Tue May 27 2003 Alex Tucker - Changed bogus reference to lpd - -* Wed May 21 2003 Alex Tucker - Updated for Zope 2.6.2b1 - -* Wed May 07 2003 Alex Tucker - Tweaked spec file for Zope 2.6.1 - -* Fri Dec 13 2002 Adam Manock - Updated the spec for Zope 2.6.1b1 - The /var/zope tree now owned by root.root with the sticky bit - set on /var/zope/var to securely allow zope to write to files after - dropping root privs. (see doc/SETUID.txt) - init.d script completely reworked to handle all functions through the - single pid file now used in 2.6+ - -* Sat May 18 2002 Adam Manock - Completely reworked the spec for Zope 2.5.1 - PCGI is no longer built by default. - Build now simply wraps up the default "wo_pcgi" build, creating 2 packages. - (This will make it trivial to upgrade the spec for new Zope versions.) - Logging via syslog is now turned off by default. See the RPM-README - -* Wed Nov 14 2001 Jeff Rush - bumped to zope 2.4.3. - -* Sat Nov 10 2001 Jeff Rush - changed args to useradd, to work with Red Hat 7.2. - -* Sun Oct 21 2001 Jeff Rush - bumped to zope 2.4.2, removed Hotfix 2001-09-28. - -* Thu Oct 18 2001 Jeff Rush - Fixed broken syslogging facility and added Hotfix 2001-09-28. - -* Mon Sep 04 2001 Jeff Rush - bumped to zope 2.4.1, removed Hotfix 2001-08-04. - -* Mon Aug 15 2001 Jeff Rush - bumped to zope 2.4.0, changed to use python2.1, added Hotfix 2001-08-04. - - Merged in Jun 29 2001 patch from Durval Menezes re support for ZPatterns: - "No longer removes cPersistence.h from lib/python/ZODB before installing - (this is needed to compile DynPersist, as part of the ZPatterns - installation. Installs ExtensionClass.h into /usr/include/python2.1 - (it too is needed to compile DynPersist, as part of the ZPatterns install)" - - Merged in Jun 12 2001 additions from Jared Kelsey - to make more compatible with future releases of python. - -* Mon Aug 14 2001 Jeff Rush - bumped to zope 2.3.3, added Hotfix 2001-08-04. - -* Mon May 07 2001 Jeff Rush - bumped to zope 2.3.2, added Hotfix 2001-05-01, revised access - file permissions (600->640) and ownership (root.root->root.zope) - to fix the "can't log in" bug under ZServer subpackage. - -* Sat Mar 31 2001 Jeff Rush - bumped to zope 2.3.1 - -* Mon Jan 29 2001 Jeff Rush - bumped to zope 2.3.0; removed obsolete Hotfixes. - -* Fri Dec 08 2000 Jeff Rush - bumped to zope 2.2.4; removed obsolete Hotfixes. - -* Fri Nov 03 2000 Jeff Rush - fixed misplaced SiteAccess, where dirs in tar moved btw v1 and v2. - -* Sun Oct 16 2000 Jeff Rush - bumped to zope 2.2.2; added Hotfixes 2000-10-02 and 2000-10-11. - -* Sun Aug 27 2000 Jeff Rush - bumped to zope 2.2.1; removed no-longer-needed Hotfix_2000-08-17 - -* Tue Aug 22 2000 Jeff Rush -- added Hotfix_2000-08-17 -- temporarily removed /etc/init.d (RH7.0) until I figure out how - to support both RH6.x *and* RH7.0 in the same RPM. -- removed troublesome/obsolete ComputedAttribute.py - -* Sun Jul 16 2000 Jeff Rush -- bumped to zope 2.2.0; removed no-longer-needed Hotfix-06_16_2000 - -* Thu Jul 06 2000 Tim Powers -- fixed PreReq to PreReq /etc/init.d -- added Hotfix-06_16_2000 - -* Thu Jun 15 2000 Preston Brown -- moved init script, added condrestart directive -- auto stop/restart service on upgrades - -* Thu Jun 1 2000 Tim Powers -- fixed so that it's no longer putting files into /home, instead they are - going into /var/www (FHS compliant). - -* Mon May 22 2000 Tim Powers -- built for 7.0, thanks Jeff! - -* Fri Apr 28 2000 Jeff Rush -- bumped to zope 2.1.6 - -* Sun Mar 12 2000 Jeff Rush -- added zpasswd.py back in, since my rename to just zpasswd confused some. - both are now present in the RPM, for all audiences. -- modified the README.RPM re the section about Apache rewrite rules; I - discussed and removed the trailing slash, the presence of which causes - Zope to reject attempts to delete objects in the root folder. - -* Thu Feb 26 2000 Jeff Rush -- 2.1.4-1 Release on Zope.org site -- bumped to zope 2.1.4 -- changed Zope-core to provide 'Zope', to satisfy zserver and pcgi subpkgs. - -* Fri Jan 14 2000 Tim Powers -- added Provides lines to Zope-pcgi and Zope-zserver so that addon packages - such as Squishdot have something useful to require. - -* Thu Jan 13 2000 Tim Powers -- built for Powertools 6.2 - -* Thu Jan 11 2000 Jeff Rush -- bumped to zope 2.1.2 -- folded in Jonathan Marsden Changes (many below) -- used zpasswd.py to generate initial pw in encrypted form. -- fixed syslog logging in various ways, and re-enabled it, for both -- ZServer AND pcgi-wrapper. -- fixed /etc/rc.d/init.d/zope to be consistent about pid file. -- fixed /etc/rc.d/init.d/zope to use RH killproc function. -- added 'noreplace' so that Zope database and access file are retained -- on an RPM upgrade. -- patched PCGI to support syslog logging, and then default to it. -- patched ZServer/Medusa to properly support syslog logging. -- added a user 'zope' and made many zope files/dirs owned by it. -- cleaned up pcgi-wrapper's msg about can't find ZServer, since it is -- one of the most common errors. It now explains what it is doing. -- moved all *.{pid,soc} files into /var/run, to cleanly separate ownership -- issues in /var/zope hierarchy for user 'zope' and user 'nobody'. - -* Mon Jan 03 2000 Jeff Rush -- bumped to zope 2.1.1 -- added to /etc/rc.d/init.d/zope code to correctly kill the process specified -- in /var/zope/pcgi.pid -- changed permissions on /var/zope/access such that only root can read/write -- it, to protect the Zope superuser password. - -* Sat Nov 29 1999 Jeff Rush -- changed ownership on /var/zope/access from nobody.nobody to root.root. - -* Sat Nov 20 1999 Jeff Rush -- updated to zope 2.1.0beta2 -- fixed permissions/ownership on /var/zope/access to be more secure (600). -- removed pypath.patch, as those changes got into the zope distribution. - -* Tue Nov 2 1999 Jeff Rush -- added accidentally omitted /usr/bin/zpasswd to the RPM output. -- clarified wording re use of zpasswd in README.RPM file. -- added "-u nobody" to both zserver_*.sh files, for clarity of intent; -- it already ran as nobody by default, but some people worried. - -* Wed Oct 27 1999 Jeff Rush -- fixed /etc/rc.d/init.d/zope file to *NOT* delete /var/zope/zserver.pid -- fixed /var/zope/Zope.cgi to use PCGI_PUBLISHER=/var/zope/pcgi_nullpublisher.py, -- so that when the PCGI wrapper can't find ZServer, it won't try to start one -- and generate bogus error messages, because PCGI doesn't do it right. -- fixed /var/zope/zserver.sh to NOT specify syslog-style logging, since under -- Red Hat 6.1, the syslog daemon no longer listens to the port we expected. - -* Sat Sep 25 1999 Jeff Rush -- updated documents ZCMG, ZSQL and ZDTML to Sep 24th 1999 versions -- added empty directories /var/zope/{import,Extensions} -- relocated zope from /usr/lib/python1.5/site-packages/ZopeWorld/ -- to /usr/share/zope/ -- added user zope, for better security control - -* Fri Sep 17 1999 Jeff Rush -- updated sources to minor (security fix) release 2.0.1 - -* Fri Sep 10 1999 Jeff Rush -- heavily reworked spec file for 2.0.0 - -* Thu Sep 9 1999 Tim Powers -- updated sources to 2.0.0 -- _major_ spec file cleanups -- merged patch from src.rpm authored by Andreas Kostyrka -- borrowed some things from Andreas Kostyrka's spec file - -* Mon Aug 30 1999 Tim Powers -- changed groups - -* Tue Aug 17 1999 Tim Powers -- chown permissions on some files in /var/local for the pcgi package - -* Mon Aug 2 1999 Tim Powers -- changed buildroot to be in /var/tmp instead of /tmp -- rebuilt for 6.1 - -* Mon Jul 21 1999 Jeff Rush -- Added in accidently omitted SearchIndex/{Query,Splitter}.so - -* Tue Jul 6 1999 Tim Powers -- started changelog -- cleaned up spec file -- built for powertools - -* Mon Jun 24 1999 Jeff Rush -- Updated to 1.10.3 - -* Mon Jun 23 1999 Jeff Rush -- Added /etc/rc.d/init.d/zope and reworked scripts - -* Tue Mar 1 1999 Jeff Rush -- Updated to 1.10.2 - -* Wed Jan 29 1999 Jeff Rush -- Updated to 1.9.0 Final Release - -* Wed Dec 9 1998 Jeff Rush -- Original 1.9beta1 Release diff --git a/Zope-2.7.1.tgz b/Zope-2.7.1.tgz deleted file mode 100644 index 52be2a9..0000000 --- a/Zope-2.7.1.tgz +++ /dev/null Binary files differ diff --git a/Zope-2.8.5-final.tgz b/Zope-2.8.5-final.tgz new file mode 100644 index 0000000..4e09e85 --- /dev/null +++ b/Zope-2.8.5-final.tgz Binary files differ diff --git a/zope-README.CentOS b/zope-README.CentOS new file mode 100644 index 0000000..97f9881 --- /dev/null +++ b/zope-README.CentOS @@ -0,0 +1,12 @@ + ==== Concerning the CentOS package ==== + +A default instance has been installed in <>/lib/zope. +You can create additional instances using the mkzopeinstance.py script + +Add your instances to <>/sysconfig/zope to make the zopectl script +aware of them. Every operation run by <>/zopectl will affect all +your instances, you can control them independently using the zopectl +script in the bin/ directory inside your instance. + +When you create a new instance, remember to change the default listening +ports and to chown the directory to the zope user. diff --git a/zope.init.in b/zope.init.in new file mode 100644 index 0000000..ccb9549 --- /dev/null +++ b/zope.init.in @@ -0,0 +1,77 @@ +#!/bin/sh +# Startup script for Zope +# +# chkconfig: - 80 20 +# description: Zope, a web application server +# +# config: $instance/etc/zope.conf + +# Source function library. +. /etc/init.d/functions + +RETVAL=0 +zopectl="<>/zopectl" +user="<>" +prog="zope" + +start() { + output=`$zopectl -u $user start` + # the return status of zopectl is not reliable, we need to parse + # its output via substring match + if echo $output | grep -q "started"; then + # success + action $"Starting $prog: " /bin/true + touch /var/lock/subsys/$prog + RETVAL=0 + else + # failed + action $"Starting $prog: " /bin/false + RETVAL=1 + fi + return $RETVAL +} + +stop() { + output=`$zopectl -u $user stop` + # the return status of zopectl is not reliable, we need to parse + # its output via substring match + if echo $output | grep -q "stopped"; then + # success + action $"Stopping $prog: " /bin/true + rm -f /var/lock/subsys/$prog + RETVAL=0 + else + # failed + action $"Stopping $prog: " /bin/false + RETVAL=1 + fi + return $RETVAL +} + +restart() { + stop + start +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + $zopectl status + ;; + restart) + restart + ;; + condrestart) + [ -e /var/lock/subsys/$prog ] && restart + ;; + *) + echo $"Usage: $0 {start|stop|status|restart|condrestart}" + RETVAL=1 +esac + +exit $REVAL diff --git a/zope.logrotate.cron.in b/zope.logrotate.cron.in new file mode 100644 index 0000000..b5ae585 --- /dev/null +++ b/zope.logrotate.cron.in @@ -0,0 +1,6 @@ +#!/bin/bash + +. <>/sysconfig/zope +for instance in $ZOPE_INSTANCES; do + logrotate $instance/etc/logrotate.conf +done diff --git a/zope.logrotate.in b/zope.logrotate.in new file mode 100644 index 0000000..38d8656 --- /dev/null +++ b/zope.logrotate.in @@ -0,0 +1,10 @@ +<>/log/*.log { + missingok + sharedscripts + rotate 4 + weekly + compress + postrotate + <>/bin/zopectl logreopen >/dev/null 2>&1 + endscript +} diff --git a/zope.spec b/zope.spec new file mode 100644 index 0000000..0596530 --- /dev/null +++ b/zope.spec @@ -0,0 +1,310 @@ +%define python_minver 2.3.4 + +%define zope_user zope +%define zope_group %{zope_user} + +%define zope_home %{_libdir}/zope +%define software_home %{zope_home}/lib/python +%define instance_home %{_localstatedir}/lib/zope + +%define zopectl %{_bindir}/zopectl +%define runzope %{_bindir}/runzope + +Name: zope +Summary: Web application server for flexible content management applications +Version: 2.8.5 +Release: 1%{?dist} +License: ZPL +Group: System Environment/Daemons +URL: http://www.zope.org/ +Source0: http://zope.org/Products/Zope/2.8.5/Zope-2.8.5-final.tgz +#Source10: http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-20050405/Hotfix_20050405.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source1: zope.init.in +Source2: zope.sysconfig.in +Source3: zope.zopectl.in +Source4: zope-README.CentOS +Source5: zope.logrotate.in +Source6: zope.logrotate.cron.in +Patch0: zope-2.7.3-config.patch + +BuildRequires: python-devel >= %{python_minver} +BuildRequires: python >= %{python_minver} +Requires: python >= %{python_minver} + +Requires(pre): /usr/sbin/useradd +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig, /sbin/service + +%description +Zope is an application server framework that enables developers to quickly +build web applications such as intranets, portals, and content management +systems. + +After starting Zope, you can access it by pointing your browser to +http://localhost:8080 + +WARNING: this zope package has been built on python 2.4.X, which is not +supported ! Do not file bugreports or ask for support on zope.org if you +choose to use this package. + + +%prep +%setup -q -n Zope-%{version}-final #-a 10 +%patch0 -p1 -b .config +# remove the backup, or we'll install it too... +rm -f skel/etc/zope.conf.in.config + +chmod -x skel/import/README.txt +cp -p %{SOURCE4} README.CentOS +cp -p %{SOURCE5} skel/etc/logrotate.conf.in + + +%build +./configure \ + --with-python=%{__python} \ + --prefix=$RPM_BUILD_ROOT%{zope_home} \ + --optimize + +# --no-compile + +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +rm -f docs + +# Create all required additional directories +for dir in %{zope_home} %{software_home} %{instance_home}/{Products,bin,var} \ + %{_sysconfdir}/sysconfig %{_bindir}; do + mkdir -p $RPM_BUILD_ROOT$dir +done + + +install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/zope +install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/zope +install -D -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/zopectl +install -D -m 755 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/zope-logrotate +perl -pi -e 's,<>,%{_sysconfdir},g; + s,<>,%{_bindir},g; + s,<>,%{_localstatedir},g; + s,<>,%{zope_user},g' \ + $RPM_BUILD_ROOT%{_initrddir}/zope \ + $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/zope \ + $RPM_BUILD_ROOT%{_bindir}/zopectl \ + $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/zope-logrotate \ + README.CentOS skel/etc/zope.conf.in + +# Install the skel, translating paths, into the build root +%{__python} "utilities/copyzopeskel.py" \ + --sourcedir="skel" \ + --targetdir="$RPM_BUILD_ROOT%{instance_home}" \ + --replace="INSTANCE_HOME:%{instance_home}" \ + --replace="SOFTWARE_HOME:%{software_home}" \ + --replace="ZOPE_HOME:%{zope_home}" \ + --replace="PYTHON:%{__python}" \ + +# Actually copy all the other files over +make install + +# Hotfix +#cp -a Hotfix_20050405 $RPM_BUILD_ROOT%{zope_home}/lib/python/Products + +chmod 700 $RPM_BUILD_ROOT%{instance_home} +chmod 755 $RPM_BUILD_ROOT%{zope_home} + +# Symlink to include in the docs +ln -sf %{zope_home}/doc docs + +# write version.txt +echo "Zope %{version}-%{release}" > \ + "$RPM_BUILD_ROOT%{zope_home}/lib/python/version.txt" + +# Compile .pyc +%{__python} -c "import compileall; \ + compileall.compile_dir(\"$RPM_BUILD_ROOT%{zope_home}\", \ + ddir=\"%{zope_home}\", force=1)" + + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%pre +/usr/sbin/useradd -c "Zope user" -s /bin/false -r -d %{zope_home} \ + %{zope_user} 2>/dev/null || : + + +%post +# add zope init to runlevels +/sbin/chkconfig --add zope + + +%preun +if [ $1 -eq 0 ]; then + /sbin/service zope stop >/dev/null 2>&1 + /sbin/chkconfig --del zope +fi + + + +%files +%defattr(-, root, root, -) +%doc %{zope_home}/doc +%doc docs README.CentOS +%config(noreplace) %{_sysconfdir}/sysconfig/zope +%config %{_initrddir}/zope +%config %{_sysconfdir}/cron.daily/zope-logrotate +%attr(0755, root, root) %{_bindir}/zopectl +%dir %{zope_home} +%{zope_home}/bin +%{zope_home}/import +%{zope_home}/lib +%dir %{zope_home}/skel +%{zope_home}/skel/bin +%{zope_home}/skel/Extensions +%{zope_home}/skel/import +%{zope_home}/skel/log +%{zope_home}/skel/Products +%{zope_home}/skel/README.txt +%{zope_home}/skel/var +%config %{zope_home}/skel/etc +%attr(-, %{zope_user}, %{zope_group}) %dir %{instance_home} +%attr(-, %{zope_user}, %{zope_group}) %{instance_home}/bin +%attr(-, %{zope_user}, %{zope_group}) %{instance_home}/Extensions +%attr(-, %{zope_user}, %{zope_group}) %{instance_home}/import +%attr(-, %{zope_user}, %{zope_group}) %{instance_home}/log +%attr(-, %{zope_user}, %{zope_group}) %{instance_home}/Products +%attr(-, %{zope_user}, %{zope_group}) %{instance_home}/README.txt +%attr(-, %{zope_user}, %{zope_group}) %{instance_home}/var +%attr(-, %{zope_user}, %{zope_group}) %config %{instance_home}/etc + + + +%changelog +* Wed Jan 25 2006 Alex Tucker - 2.8.5 +- Upgraded to 2.8.5, reworked for CentOS4 + +* Tue Oct 25 2005 Aurelien Bompard 2.8.3-3 +- rebuild + +* Tue Oct 25 2005 Aurelien Bompard 2.8.3-2 +- add warning about zope 2.8 & python 2.4 (bug 171681) + +* Sat Oct 22 2005 Aurelien Bompard 2.8.3-1 +- version 2.8.3 + +* Sat Oct 15 2005 Aurelien Bompard 2.8.2-1 +- version 2.8.2 + +* Sat Sep 10 2005 Aurelien Bompard 2.8.1-1 +- version 2.8.1 + +* Sun Jun 12 2005 Aurelien Bompard 2.8.0-2 +- rebuild + +* Sat Jun 11 2005 Aurelien Bompard 2.8.0-1 +- version 2.8.0 + +* Sun Jun 05 2005 Aurelien Bompard 2.7.6-2 +- don't remove the zope user un postun (to keep the Data.fs to the + correct owner after removal) + +* Sun May 08 2005 Aurelien Bompard 2.7.6-1%{?dist} +- version 2.7.6 +- use disttag + +* Thu Apr 07 2005 Aurelien Bompard 2.7.5-2.fc4 +- add hotfix + +* Thu Mar 24 2005 Aurelien Bompard 2.7.5-1.fc4 +- version 2.7.5 +- drop Epoch +- change release tag for FC4 +- convert some tabs into spaces + +* Wed Jan 26 2005 Aurelien Bompard 2.7.4-1 +- version 2.7.4 +- flag the documentation as %%doc +- make %%zope_home go+rx to allow users to create instances and to allow + access to docs +- add a logrotate cron job +- flag config files as %%config even in %%zope_home and %%instance_home + +* Fri Dec 10 2004 Aurelien Bompard 2.7.3-0.fdr.6 +- activate "security-policy-implementation python" in zope.conf + +* Sun Nov 21 2004 Aurelien Bompard 2.7.3-0.fdr.5 +- revert to zope's default directory tree to allow multiple instances +- make the zopectl script multiple-instaces-aware. +- add README.Fedora + +* Fri Nov 12 2004 Aurelien Bompard 2.7.3-0.fdr.4 +- compile scripts in %zope_home/bin too +- keep skel dir in %zope_home to fix mkzopeinstance +- BuildRequire python, since python-devel doesn't require it. + +* Fri Nov 12 2004 Aurelien Bompard 2.7.3-0.fdr.3 +- compile .pyc instead of just touch-ing them + +* Thu Nov 11 2004 Aurelien Bompard 2.7.3-0.fdr.2 +- deal with leftover .pyc files +- minor spec cleanups + +* Thu Nov 11 2004 Aurelien Bompard 2.7.3-0.fdr.1 +- fix scriptlets requirements +- use standard buildroot +- replace %%buildroot by RPM_BUILD_ROOT +- update to 2.7.3 +- drop Hotfix +- drop patch 1, fixed upstream + +* Tue Aug 10 2004 Aurelien Bompard 2.7.2-0.fdr.3 +- add hotfix from Zope.org: + http://zope.org/Products/Zope/Hotfix-200400807/Hotfix-20040807-alert + +* Wed Aug 04 2004 Aurelien Bompard 2.7.2-0.fdr.2 +- add patch to warn the user that the initial user cannot be added while + Zope is running (from Chris McDonough) + +* Wed Aug 04 2004 Aurelien Bompard 2.7.2-0.fdr.1 +- version 2.7.2 +- remove leftover byte-compilation in %%post +- Zope 2.7.x really requires python >= 2.3.3 + +* Wed Jul 14 2004 Rex Dieter 2.7.1-0.fdr.1 +- 2.7.1 +- move files created in %%post back into rpm. Unowned files are bad. +- make (theoretically) buildable for all rh73-rh90,fc1/2,el3 + NOTE: lowerred python_minver to 2.2.2 to test builds, though (most) + docs claim 2.3.3 is required. (??) +- don't use Requires(preun,postun) +- use %%_smp_mflags + +* Tue Apr 28 2004 Chris McDonough 2.7.0-0.fdr.1 +- Prep for submission to Fedora.us by revising work done by Matthias +- Refer to source files by URL instead of by name +- Write version.txt into software home in post +- Don't ship byte-compiled files, instead compile them in post +- Add patch for inverted P_WAIT/P_NOWAIT in zdctl (fixes startup) +- Add patch for objectmanager bug that could effect sites that depend + on userid/username separation +- Improved init script (OK and FAILED now are printed at the appropriate + times) +- Remove runzope workaround by adding a stanza to the + config file. +- Start in runlevels 345. +- Known issues: + - zopectl is started and runs as the root user at boot time, + (although Zope itself runs as the zope user) + - no distro-specific docs telling people which port the software + runs on or how to add a user via zopectl adduser. + +* Wed Feb 18 2004 Matthias Saou 2.7.0-0.6.fr +- Initial RPM release. +- The startup/stop needs to be modified further. +- Currently "zopectl" returns an error although Zope does start... + diff --git a/zope.sysconfig.in b/zope.sysconfig.in new file mode 100644 index 0000000..f7f68b7 --- /dev/null +++ b/zope.sysconfig.in @@ -0,0 +1,7 @@ +# List here the paths to your Zope instances, space separated. +# +# Example : ZOPE_INSTANCES="/var/lib/zope-test /var/lib/zope-prod" +# +# This file is used by the generic zopectl script. +# +ZOPE_INSTANCES="<>/lib/zope" diff --git a/zope.zopectl.in b/zope.zopectl.in new file mode 100644 index 0000000..7168263 --- /dev/null +++ b/zope.zopectl.in @@ -0,0 +1,6 @@ +#!/bin/bash + +. <>/sysconfig/zope +for instance in $ZOPE_INSTANCES; do + $instance/bin/zopectl "$@" +done