Obzervationz 16.3.2004

2004-03-16

Using Zope 2.7.0 and CMF 1.4.2 in OpenPKG 2.0

Installing Zope 2.7.0 in an OpenPKG Instance

I recently repackaged Zope for OpenPKG, upgrading it to version 2.7.0. I also packaged CMF, version 1.4.2. Here is how you can install them (note that Python 2.3.3 is a prereq, with make, binutils, and gcc as the "transitive" prereqs).

Fetch and build the OpenPKG Zope source RPM:

# su - cw
$ /opt/cw/bin/openpkg rpm --rebuild \
  ftp://ftp.openpkg.org/current/SRC/zope-2.7.0-20040314.src.rpm

Next, install the Zope binary pacakge as root (some ownership changes are required for the data and log directories):

# /opt/cw/bin/openpkg rpm -Uvh \
  /opt/cw/RPM/PKG/zope-2.7.0-20040314.ix86-rhl9-ocw.rpm

Then, edit the config file, and enable listening on all ports, plus other changes as appropriate:

$ vi /opt/cw/etc/zope/zope.conf

Finally, start the server from a shell belonging to OpenPKG's "restricted" user:

# su -c "/opt/cw/etc/rc zope start" cw-r

Installing CMF 1.4.2

Once Zope is up and running, you should be able to install CMF with no problem.

First, fetch, build, and install the OpenPKG CMF source RPM:

$ /opt/cw/bin/openpkg rpm --rebuild \
  ftp://ftp.openpkg.org/current/SRC/zope-cmf-1.4.2-20040315.src.rpm
$ /opt/cw/bin/openpkg rpm -Uvh \
  /opt/cw/RPM/PKG/zope-cmf-1.4.2-20040315.ix86-rhl9-ocw.rpm

Then, restart Zope:

# su -c "/opt/cw/etc/rc zope restart" cw-r

Voila!

Notes on the Packaging

Because OpenPKG allows creating multiple OpenPKG installations on a single machine, with each one a self-contained world, I don't try to make multiple instance homes work; instead, if you need multiple Zope instances, just create multiple OpenPKG installations!

  • N.B.: investigate the use of OpenPKG proxy packages to allow controlled sharing among installations.

posted at 19:38:24    #    comment []    trackback []
March 2004
MoTuWeThFrSaSu
1 2 3 4 5 6 7
8 91011121314
15161718192021
22232425262728
293031    
Feb
2004
 Apr
2004

Notes from a Zope addict.

XML-Image Letterimage

© 2004, Tres Seaver