[Pkg-zope-developers] Re: Duplicate debconf templates in zope-* packages

Luca - De Whiskey's - De Vitis luca@debian.org
Tue, 18 Nov 2003 09:22:40 -0600


--qMm9M+Fa2AknHoGS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 14, 2003 at 07:57:47AM -0600, Luca - De Whiskey's - De Vitis wr=
ote:
> On Thu, Nov 13, 2003 at 06:14:07PM +0100, Nicolas Ledez wrote:
[ wishlist about dh_zope ]

I'd like to rewrite my wishlist about dh_zope.

1) instead of adding snippets to template file, you could add postinst-zope
   autoscript to postinst file:
--8<-------------------------------------------------------------------->8--
if [ "$1" =3D "configure" ] ; then
    . /usr/share/debconf/confmodule
    db_version 2.0
    # Get the common answer.
    db_get "shared/zope/restart" || true
    case "$RET" in
        configuring)
            invoke-rc.d zope restart
        ;;
        end)
            touch /var/run/zope.restart
        ;;
    esac
fi
--8<-------------------------------------------------------------------->8--
2) eventually add a ${zope:Depends} to substvar file with the right zope
   dependency
3) find and replace the interpreter line with the right one in each python
   file.
4) Automatically add prerm-python autoscript

The first is because of recent discussion about templates files. I'm not su=
re
about the fourth, but i find it the most interesting feature of dh_python
which is worth of being used (depending on the right zope imply the right
python version, so no use of ${python:Depends}; dh_python -V seems not to be
useful as well)

You can start adding dh_zope and autoscripts to zope/debian/dev, or
zope/debian/debhelper (I would prefer the first). As soon as it will be rea=
dy
to be released i'll create the zope-dev package from the zope source. In the
mean while, it will be shipped as a zope example. I meant zope-dev to also
ship header and development files that now are all in the zope binary packa=
ge.

ciao,
--=20
Luca - De Whiskey's - De Vitis              | Elegant or ugly code as well
aliases: Luca ^De [A-Z][A-Za-z\-]*[iy]'\?s$ | as fine or rude sentences have
Luca, a wannabe ``Good guy''.               | something in common: they
local LANG=3D"it_IT@euro"                     | don't depend on the languag=
e.

--qMm9M+Fa2AknHoGS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE/ujk9hbmQdcKRDkERAnMHAJ95HiW0cl5n1gaPkW6DTc9vGQJiPQCggHuh
slWuJlkR/HBNWQT9PFC6tjo=
=IKgR
-----END PGP SIGNATURE-----

--qMm9M+Fa2AknHoGS--