Package: zope-externaleditor Severity: wishlist Tags: patch As you already know (I hope), the Debian Zope team is implementing a new way to handle zope packages inside our distributions (Debian and Ubuntu).
This is being achieved using zope-common, which provides the utility dzhandle, and zope-debhelper, which provides dh_installzope and dh_installzopeinstance debhelper scripts. In order to migrate all the zope packages to this new layout, the maintainers are invited to upload to experimental their modified packages. When almost all the zope packages are ready in experimental, we will migrate them to unstable. I'm attaching a patch that modify your package to use zope-common and zope-debhelper. Please, apply it and upload your package into experimental. If you need help, please don't hesitate to contact me. Thanks in advance, -- System Information: Debian Release: testing/unstable APT prefers experimental APT policy: (500, 'experimental'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-1-686-smp Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: LC_ALL set to [EMAIL PROTECTED])
diff -urN original/zope-externaleditor-0.8/debian/changelog zope-externaleditor-0.8/debian/changelog --- original/zope-externaleditor-0.8/debian/changelog 2005-08-15 08:45:51.000000000 +0000 +++ zope-externaleditor-0.8/debian/changelog 2005-08-12 13:46:12.000000000 +0000 @@ -1,3 +1,10 @@ +zope-externaleditor (0.8-3) experimental; urgency=low + + * Make use of dh_installzope from zope-debhelper. (Closes: #298862, #316533) + * We don't need the templates anymore. (Closes: #199538, #200749) + + -- Fabio Tranchitella <[EMAIL PROTECTED]> Thu, 11 Aug 2005 18:40:35 +0000 + zope-externaleditor (0.8-2) unstable; urgency=low * Depend explicitly on zope2.7 as an alternative for versioned dependency on diff -urN original/zope-externaleditor-0.8/debian/compat zope-externaleditor-0.8/debian/compat --- original/zope-externaleditor-0.8/debian/compat 1970-01-01 00:00:00.000000000 +0000 +++ zope-externaleditor-0.8/debian/compat 2005-08-11 18:10:03.000000000 +0000 @@ -0,0 +1 @@ +4 diff -urN original/zope-externaleditor-0.8/debian/control zope-externaleditor-0.8/debian/control --- original/zope-externaleditor-0.8/debian/control 2005-08-15 08:45:51.000000000 +0000 +++ zope-externaleditor-0.8/debian/control 2005-08-11 18:34:04.000000000 +0000 @@ -2,13 +2,13 @@ Section: web Priority: extra Maintainer: Federico Sevilla III <[EMAIL PROTECTED]> -Standards-Version: 3.6.1.1 +Standards-Version: 3.6.2 Build-Depends-Indep: debhelper (>= 4.1.16) XBCS-URL: http://www.zope.org/Members/Caseman/ExternalEditor Package: zope-externaleditor Architecture: all -Depends: debconf, zope (>= 2.5.1-2.7) | zope2.7 +Depends: ${zope:Depends}, python Description: Zope External Editor The Zope External Editor is a new way to integrate Zope more seamlessly with client-side tools. It has the following features: diff -urN original/zope-externaleditor-0.8/debian/dzproduct zope-externaleditor-0.8/debian/dzproduct --- original/zope-externaleditor-0.8/debian/dzproduct 1970-01-01 00:00:00.000000000 +0000 +++ zope-externaleditor-0.8/debian/dzproduct 2005-08-11 18:19:07.000000000 +0000 @@ -0,0 +1,2 @@ +Name: ExternalEditor +Package: zope-externaleditor diff -urN original/zope-externaleditor-0.8/debian/postinst zope-externaleditor-0.8/debian/postinst --- original/zope-externaleditor-0.8/debian/postinst 2005-08-15 08:45:51.000000000 +0000 +++ zope-externaleditor-0.8/debian/postinst 1970-01-01 00:00:00.000000000 +0000 @@ -1,56 +0,0 @@ -#! /bin/sh -#---------------------------------------------------------------- -# Simple `.postinst' script for zope-* packages. -# First coded by Luca - De Whiskey's - De Vitis <[EMAIL PROTECTED]> -#---------------------------------------------------------------- - -set -e - -# summary of how this script can be called: -# * <postinst> `configure' <most-recently-configured-version> -# * <old-postinst> `abort-upgrade' <new version> -# * <conflictor's-postinst> `abort-remove' `in-favour' <package> -# <new-version> -# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' -# <failed-install-package> <version> `removing' -# <conflicting-package> <version> -# for details, see /usr/doc/packaging-manual/ -# -# quoting from the policy: -# Any necessary prompting should almost always be confined to the -# post-installation script, and should be protected with a conditional -# so that unnecessary prompting doesn't happen if a package's -# installation fails and the `postinst' is called with `abort-upgrade', -# `abort-remove' or `abort-deconfigure'. - -# Load confmodule. -. /usr/share/debconf/confmodule - -case "$1" in - configure) - # Get the answer. - db_get "shared/zope/restart" || true - case "$RET" in - configuring) - invoke-rc.d zope restart - ;; - end) - touch /var/run/zope.restart - ;; - esac - ;; - abort-upgrade|abort-remove|abort-deconfigure) - ;; - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 0 - ;; -esac - -# Stop the communication with the db. -db_stop - -#DEBHELPER# - -# That's all folks! -exit 0 diff -urN original/zope-externaleditor-0.8/debian/postrm zope-externaleditor-0.8/debian/postrm --- original/zope-externaleditor-0.8/debian/postrm 2005-08-15 08:45:51.000000000 +0000 +++ zope-externaleditor-0.8/debian/postrm 1970-01-01 00:00:00.000000000 +0000 @@ -1,38 +0,0 @@ -#! /bin/bash -# postrm script for zope-externaleditor -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * <postrm> `remove' -# * <postrm> `purge' -# * <old-postrm> `upgrade' <new-version> -# * <new-postrm> `failed-upgrade' <old-version> -# * <new-postrm> `abort-install' -# * <new-postrm> `abort-install' <old-version> -# * <new-postrm> `abort-upgrade' <old-version> -# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> -# for details, see /usr/share/doc/packaging-manual/ - -case "$1" in - remove) - /etc/init.d/zope restart - ;; - purge) - ;; - upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 0 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff -urN original/zope-externaleditor-0.8/debian/prerm zope-externaleditor-0.8/debian/prerm --- original/zope-externaleditor-0.8/debian/prerm 2005-08-15 08:45:51.000000000 +0000 +++ zope-externaleditor-0.8/debian/prerm 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -#! /bin/sh -# prerm script for zope-externaleditor -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * <prerm> `remove' -# * <old-prerm> `upgrade' <new-version> -# * <new-prerm> `failed-upgrade' <old-version> -# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> -# * <deconfigured's-prerm> `deconfigure' `in-favour' -# <package-being-installed> <version> `removing' -# <conflicting-package> <version> -# for details, see /usr/share/doc/packaging-manual/ - -PACKAGE=zope-externaleditor - -dpkg --listfiles $PACKAGE | - awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | - xargs rm -f >&2 - -# if there is something left be prepared to remove remaining files - -case "$1" in - remove|upgrade|deconfigure) - # install-info --quiet --remove /usr/info/#PACKAGE#.info.gz - ;; - failed-upgrade) - ;; - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 0 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 diff -urN original/zope-externaleditor-0.8/debian/rules zope-externaleditor-0.8/debian/rules --- original/zope-externaleditor-0.8/debian/rules 2005-08-15 08:45:51.000000000 +0000 +++ zope-externaleditor-0.8/debian/rules 2005-08-15 08:51:33.000000000 +0000 @@ -9,9 +9,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=3 -NAME=ExternalEditor -INSTDIR=usr/lib/zope/lib/python/Products -IMGDIR=usr/share/zope/Products +distribution := debian build: build-stamp build-stamp: @@ -30,9 +28,9 @@ dh_testroot dh_clean -k dh_installdirs - cp -a ExternalEditor.py __init__.py *.dtml version.txt `pwd`/debian/tmp/$(INSTDIR)/$(NAME) - cp -a *.gif `pwd`/debian/tmp/$(IMGDIR)/$(NAME) -# dh_install + dh_installzope -X CHANGES.txt -X INSTALL-UNIX.txt -X Python-License.txt -X Pythonwin-License.txt \ + -X INSTALL-WIN32.txt -X LICENSE.txt -X README.txt . + chmod 755 debian/zope-externaleditor/usr/share/zope/Products/ExternalEditor/zopeedit.py # Build architecture-independent files here. binary-indep: build install @@ -40,6 +38,10 @@ dh_testroot -i dh_installchangelogs -i CHANGES.txt dh_installdocs -i +ifeq ($(distribution),ubuntu) + mv debian/zope-externaleditor/usr/share/doc/zope-externaleditor/README.Debian \ + debian/zope-externaleditor/usr/share/doc/zope-externaleditor/README.Ubuntu +endif dh_installdebconf -i dh_installman -i dh_link -i