Package: zope-epoz
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-epoz-2.0.1/debian/changelog 
zope-epoz-2.0.1/debian/changelog
--- original/zope-epoz-2.0.1/debian/changelog   2005-08-15 08:45:41.000000000 
+0000
+++ zope-epoz-2.0.1/debian/changelog    2005-08-12 13:47:13.000000000 +0000
@@ -1,3 +1,9 @@
+zope-epoz (2.0.1-2) experimental; urgency=low
+
+  * Make use of dh_installzope from zope-debhelper
+
+ -- Fabio Tranchitella <[EMAIL PROTECTED]>  Fri, 12 Aug 2005 13:47:05 +0000
+
 zope-epoz (2.0.1-1) unstable; urgency=low
 
   * New upstream version
diff -urN original/zope-epoz-2.0.1/debian/control zope-epoz-2.0.1/debian/control
--- original/zope-epoz-2.0.1/debian/control     2005-08-15 08:45:41.000000000 
+0000
+++ zope-epoz-2.0.1/debian/control      2005-08-11 18:01:22.000000000 +0000
@@ -3,12 +3,12 @@
 Priority: extra
 Maintainer: Andreas Tille <[EMAIL PROTECTED]>
 Standards-Version: 3.6.2.1
-Build-Depends-Indep: debhelper (>= 4.0)
+Build-Depends-Indep: debhelper (>= 4.0), zope-debhelper (>= 0.3.2.3)
 XBCS-URL: http://www.zope.org/Members/mjablonski/Epoz
 
 Package: zope-epoz
 Architecture: all
-Depends: debconf | debconf-2.0, zope (>= 2.5.1) | zope2.7
+Depends: ${zope:Depends}
 Suggests: python-utidylib
 Description: cross-browser WYSIWYG editor for Zope
  Zope-epoz provides a web-based WYSIWYG editor for editing Zope, CMF
diff -urN original/zope-epoz-2.0.1/debian/dzproduct 
zope-epoz-2.0.1/debian/dzproduct
--- original/zope-epoz-2.0.1/debian/dzproduct   1970-01-01 00:00:00.000000000 
+0000
+++ zope-epoz-2.0.1/debian/dzproduct    2005-08-15 08:49:51.000000000 +0000
@@ -0,0 +1,3 @@
+Name: Epoz
+Package: zope-epoz
+ZopeVersions: 2.7 2.8 2.6
diff -urN original/zope-epoz-2.0.1/debian/install zope-epoz-2.0.1/debian/install
--- original/zope-epoz-2.0.1/debian/install     2005-08-15 08:45:41.000000000 
+0000
+++ zope-epoz-2.0.1/debian/install      1970-01-01 00:00:00.000000000 +0000
@@ -1,4 +0,0 @@
-version.txt  usr/lib/zope/lib/python/Products/Epoz
-*.py         usr/lib/zope/lib/python/Products/Epoz
-Extensions   usr/lib/zope/lib/python/Products/Epoz
-epoz         usr/share/zope/Products/Epoz
diff -urN original/zope-epoz-2.0.1/debian/postinst 
zope-epoz-2.0.1/debian/postinst
--- original/zope-epoz-2.0.1/debian/postinst    2005-08-15 08:45:41.000000000 
+0000
+++ zope-epoz-2.0.1/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-epoz-2.0.1/debian/preinst zope-epoz-2.0.1/debian/preinst
--- original/zope-epoz-2.0.1/debian/preinst     2005-08-15 08:45:41.000000000 
+0000
+++ zope-epoz-2.0.1/debian/preinst      1970-01-01 00:00:00.000000000 +0000
@@ -1,24 +0,0 @@
-#! /bin/sh
-# preinst script for #PACKAGE#
-
-# Former non FHS compatible packages installed images under /usr/lib
-# Those packages leave the directory around which is replaced by the
-# new packages ba a symlink.  This does not seem to be handled
-# correctly and thus we remove the relevant directories first ...
-BASE=/usr/lib/zope/lib/python/Products/Epoz
-SHARE=/usr/share/zope/Products/Epoz
-DIRSTOREMOVE="skins"
-
-for dir in $DIRSTOREMOVE ; do
-   if [ -d ${BASE}/${dir} ] ; then
-      # do nothing if we have the new packaging system
-      if [ ! -d ${SHARE}/${dir} ] ; then
-         rm -fr ${BASE}/${dir}/*
-         rmdir ${BASE}/${dir}
-      fi
-   fi
-done
-
-#DEBHELPER#
-
-exit 0
diff -urN original/zope-epoz-2.0.1/debian/rules zope-epoz-2.0.1/debian/rules
--- original/zope-epoz-2.0.1/debian/rules       2005-08-15 08:45:41.000000000 
+0000
+++ zope-epoz-2.0.1/debian/rules        2005-08-15 08:48:19.000000000 +0000
@@ -3,22 +3,18 @@
 # Andreas Tille <[EMAIL PROTECTED]>  Tue,  1 Apr 2003 10:43:55 +0200
 # GPL
 
-upstreamname=Epoz
-INSTDIR=usr/lib/zope/lib/python/Products/$(upstreamname)
-IMGDIR:=share/zope/Products/$(upstreamname)/epoz
+distribution := debian
 pkg=`dh_listpackages`
 
 build: build-stamp
 build-stamp:
        dh_testdir
-
        touch build-stamp
 
 clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp install-stamp
-
        dh_clean
 
 install: install-stamp
@@ -27,8 +23,8 @@
        dh_testroot
        dh_clean -k
        dh_install
-       ln -s ../../../../../../$(IMGDIR) debian/$(pkg)/$(INSTDIR)
-
+       dh_installzope -X CHANGES.txt -X FAQ.txt -X HISTORY.txt -X LICENSE.txt \
+                      -X mxTidyHowTo.txt -X README.txt -X TODO.txt .
        touch install-stamp
 
 binary-arch: build install
@@ -41,7 +37,10 @@
        dh_installdebconf
        dh_installdocs
        cat LICENSE.txt >> debian/$(pkg)/usr/share/doc/$(pkg)/copyright
-
+ifeq ($(distribution),ubuntu)
+       mv debian/zope-epoz/usr/share/doc/zope-epoz/README.Debian \
+          debian/zope-epoz/usr/share/doc/zope-epoz/README.Ubuntu
+endif
 #      dh_installexamples
        dh_installchangelogs -k CHANGES.txt
        dh_link

Reply via email to