[Pkg-zope-developers] Re: Packaging zms form zope2.x

Uwe Steinmann uwe at steinmann.cx
Thu Aug 31 18:34:25 UTC 2006


On Thu, Aug 31, 2006 at 09:24:31AM +0200, Andreas Tille wrote:
> On Thu, 31 Aug 2006, Uwe Steinmann wrote:
> 
> >I naively thought that this is somehow taken care of by some
> >magic. But as I said before, my zope knowledge is just increasing.
> >On the other hand, how do system administrators know what to do?
> >There is no reference to dzhandle in /usr/share/doc/zope2.9.
> >Should I add a note to README.debian of zope-zms?
> 
> I would definitley be in favour of mentioning it in this file.
> I belong to the group of people who tend to forget this kind
> of things that have to be done but look into README.Debian
> for any useful information first.  So I would be happy to exactly
> find what to do to get ZMS working.  BTW - I would mention
> it also in NEWS.Debian to leave administrators a note about
> the change that they have something todo.
Added all that to README.Debian and NEWS.Debian

> >Has there been any thoughts about asking for installation of
> >a zope product in postinst? Maybe in the manner it is done for
> >pecl extensions, which have to be activated in several php.ini
> >files.
> 
> I do not know how it is done there but I could imagine the
> following general approach: A standardized debconf
> question that asks for
> 
>   1. Version of Zope (in case more than one version is installed)
>   2. instance name (and location)
> 
> Do the necessary dzhandle stuff according to the answers of these
> questions.  In case a new zope version is installed after zope-zms
> (opr packages like that) you should use dpkg-reconfigure to change
> the settings done above.
This is basically what pecl extensions do. They first check which
php.ini files exists and ask for each php.ini file if the extension
shall be enabled. The default is not to enable an extension and the
question has priority low. So most administrators do not even see
the question. pecl extensions can also be disabled this way.

Your approach is similar but ask for a specific zope
(version, instance) and adds zms to just this combination of
version and instance. If one wants to add the product to serveral
instances dpkg-reconfigure has to be called several times.
Either way has its advantages/disadvantages.

  Uwe

-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  Uwe.Steinmann at mmk-hagen.de
  Tel: +2331 840446    Fax: +2331 843920
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-zope-developers/attachments/20060831/81fe3c70/attachment.pgp


More information about the pkg-zope-developers mailing list