Zope, M2Crypto, and Gentoo
John Hunter
jdhunter at ace.bsd.uchicago.edu
Sun Sep 26 12:21:53 EDT 2004
>>>>> "jsmilan" == jsmilan <jsmilan at tiny.net> writes:
jsmilan> However, there IS no z2.py on my system. Instead, my
jsmilan> /etc/init.d/myzopeserver file calls zopectl, which in
jsmilan> turn calls a configuration file that resides underneath
jsmilan> /var/lib/zope/myzopeserver.
jsmilan> Has anyone out there gotten this particular combination
jsmilan> to work? Is there an easy way to pull this off? Am I
jsmilan> just being incredibly dense and looking in the wrong
jsmilan> place?
You're not being dense but you are looking in the wrong place. Check
out the demo/Zope27 sub-directory of the mycrypto src distro.
Here are my condensed install notes, which basically summarize the
instructions from the Zope27 directory
Install m2crypto
You'll need SWIG 1.3.21 :
http://aleron.dl.sourceforge.net/sourceforge/swig/swig-1.3.22.tar.gz):
./configure; make; sudo make install
Get the m2 src
http://sandbox.rulemaker.net/ngps/Dist/m2crypto-0.13.zip
I had to edit setup.py and add the following to the include_dirs
for posix systems (on or around line 75
include_dirs = [my_inc, '/usr/include', '/usr/kerberos/include/']
> python setup.py build
> sudo python setup.py install
Installing ZServer
cd /var/tmp/build/m2crypto-0.13/
cd demo/Zope27/
cp install_dir/lib/python/ZServer/HTTPS_Server.py /usr/local/Zope-2.7.2/lib/python/ZServer/
cp install_dir/lib/python/ZServer/medusa/https_server.py /usr/local/Zope-2.7.2/lib/python/ZServer/medusa/
less install_dir/lib/python/ZServer/__init__.py.patch
cd /usr/local/Zope-2.7.2/lib/python/ZServer/
mkdir /var/tmp/back
rm -rf /var/tmp/back
cp -a * /var/tmp/back/
patch -p0 < /var/tmp/build/m2crypto-0.13/demo/Zope27/install_dir/lib/python/ZServer/__init__.py.patch
patch -p0 < /var/tmp/build/m2crypto-0.13/demo/Zope27/install_dir/lib/python/ZServer/component.xml.patch
patch -p0 < /var/tmp/build/m2crypto-0.13/demo/Zope27/install_dir/lib/python/ZServer/datatypes.py.patch
# now patch instance home
cd /var/tmp/build/m2crypto-0.13/demo/Zope27/
mkdir /usr/local/Zope-2.7.2/zope_instance/ssl
cp instance_home/ssl/*.pem /usr/local/Zope-2.7.2/zope_instance/ssl/
cd /usr/local/Zope-2.7.2/zope_instance/
cp README.txt etc/zope.conf /var/tmp/back/
patch -p0 < /var/tmp/build/m2crypto-0.13/demo/Zope27/instance_home/README.txt.patch
cd etc/
patch -p0 < /var/tmp/build/m2crypto-0.13/demo/Zope27/instance_home/etc/zope.conf.patch
# symlink ssl
cd /usr/local/Zope-2.7.2/
ln -s zope_instance/ssl
JDH
More information about the Python-list
mailing list