r385 - / zope2.10 zope2.10/branches zope2.10/branches/upstream zope2.10/branches/upstream/2.10.0 zope2.10/trunk zope2.10/trunk/debian zope2.10/trunk/debian/patches

Jonas Meurer mejo at alioth.debian.org
Wed Nov 1 14:03:56 CET 2006


Author: mejo
Date: 2006-11-01 14:01:46 +0100 (Wed, 01 Nov 2006)
New Revision: 385

Added:
   zope2.10/
   zope2.10/branches/
   zope2.10/branches/upstream/
   zope2.10/branches/upstream/2.10.0/
   zope2.10/branches/upstream/2.10.0/Zope-2.10.0-final.tgz
   zope2.10/branches/upstream/current/
   zope2.10/tags/
   zope2.10/trunk/
   zope2.10/trunk/debian/
   zope2.10/trunk/debian/changelog
   zope2.10/trunk/debian/compat
   zope2.10/trunk/debian/control
   zope2.10/trunk/debian/copyright
   zope2.10/trunk/debian/patches/
   zope2.10/trunk/debian/patches/00list
   zope2.10/trunk/debian/patches/DPATCH
   zope2.10/trunk/debian/patches/deb-zopeconf.dpatch
   zope2.10/trunk/debian/pycompat
   zope2.10/trunk/debian/rules
   zope2.10/trunk/debian/zopeZVER-sandbox.README.Debian.in
   zope2.10/trunk/debian/zopeZVER-sandbox.copyright.in
   zope2.10/trunk/debian/zopeZVER-sandbox.dzinstance.in
   zope2.10/trunk/debian/zopeZVER-sandbox.postinst.in
   zope2.10/trunk/debian/zopeZVER-sandbox.templates.in
   zope2.10/trunk/debian/zopeZVER.NEWS.Debian.in
   zope2.10/trunk/debian/zopeZVER.default.in
   zope2.10/trunk/debian/zopeZVER.init.in
   zope2.10/trunk/debian/zopeZVER.linda-overrides.in
   zope2.10/trunk/debian/zopeZVER.lintian-overrides.in
   zope2.10/trunk/debian/zopeZVER.logrotate.in
   zope2.10/trunk/debian/zopeZVER.postinst.in
   zope2.10/trunk/debian/zopeZVER.postrm.in
   zope2.10/trunk/debian/zopeZVER.preinst.in
   zope2.10/trunk/debian/zopeZVER.prerm.in
Log:
initial zope2.10 upload

Added: zope2.10/branches/upstream/2.10.0/Zope-2.10.0-final.tgz
===================================================================
(Binary files differ)


Property changes on: zope2.10/branches/upstream/2.10.0/Zope-2.10.0-final.tgz
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: zope2.10/trunk/debian/changelog
===================================================================
--- zope2.10/trunk/debian/changelog	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/changelog	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,153 @@
+zope2.10 (2.10.0-1) unstable; urgency=low
+
+  * New major upstream release, new source package.
+
+ -- Jonas Meurer <mejo at debian.org>  Wed,  1 Nov 2006 13:58:39 +0100
+
+zope2.9 (2.9.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Sun,  8 Oct 2006 15:31:20 +0200
+
+zope2.9 (2.9.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/patches/rst-docutils.dpatch: removed, applied upstream.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Fri, 21 Jul 2006 09:43:48 +0200
+
+zope2.9 (2.9.3-3) unstable; urgency=high
+
+  * Fixed an information disclosure vulnerability (CVE-2006-3458) applying
+    upstream patch: disable reStructuredText's 'raw' and 'include'
+    directives. (Closes: #377286)
+  * debian/control: use --home instead of --prefix when calling make install.
+    (Closes: #373710)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 11 Jul 2006 16:26:48 +0200
+
+zope2.9 (2.9.3-2) unstable; urgency=low
+
+  * debian/rules: zope2.9-sandbox should be created by binary-indep.
+    (Closes: #368614)
+  * debian/patches/deb-zopeconf.dpatch: patch mkzeoinstance to fix the
+    python library path.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 13 Jun 2006 09:57:20 +0200
+
+zope2.9 (2.9.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Standards-Version: 3.7.2, no changes necessary.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Fri, 12 May 2006 15:13:05 +0200
+
+zope2.9 (2.9.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 11 Apr 2006 10:32:16 +0200
+
+zope2.9 (2.9.1-1) unstable; urgency=low
+
+  * New major upstream release, new source package. (Closes: #344224, #355758)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Mon, 20 Mar 2006 21:18:58 +0000
+
+zope2.8 (2.8.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/zopeZVER.init.in: fixed a typo which prevents zeo instances
+    to be started by the init script. (Closes: #341527)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Sun, 15 Jan 2006 19:54:59 +0000
+
+zope2.8 (2.8.4-2) unstable; urgency=low
+
+  * debian/rules: remove RestrictedPython/tests/before_and_after24.py,
+    because contains a syntax error. (Closes: #340542)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Thu, 24 Nov 2005 13:34:47 +0000
+
+zope2.8 (2.8.4-1) unstable; urgency=low
+
+  * New upstream release (2.8.4).
+  * Don't remove /var/log/zope2.8/ on package removal. (Closes: #333855)
+  * debian/copyright: added a note about Medusa license, since some copyright
+    notices inside the upstream tarball are wrong. I think this is enough
+    to close the bugreport, and I'll ask upstream to change the license
+    statement, too. (Closes: #340164)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Wed, 23 Nov 2005 14:59:27 +0000
+
+zope2.8 (2.8.3-1) unstable; urgency=low
+
+  * New upstream release (2.8.3).
+
+ -- Fabio Tranchitella <kobold at debian.org>  Sun, 23 Oct 2005 14:15:23 +0000
+
+zope2.8 (2.8.1-7) unstable; urgency=medium
+
+  * Apply Hotfix 2005-10-09, resolving a security issue with docutils.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 15 Oct 2005 11:55:49 +0200
+
+zope2.8 (2.8.1-6) unstable; urgency=low
+
+  * Fix debconf dependency (closes: #332178).
+  * Fix error in mkzeoinst.py script (closes: #331061).
+
+ -- Matthias Klose <doko at debian.org>  Sat,  8 Oct 2005 16:38:48 +0200
+
+zope2.8 (2.8.1-5) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Wed,  7 Sep 2005 14:57:11 +0000
+
+zope2.8 (2.8.1-4) experimental; urgency=low
+
+  * debian/control: build-depends on lsb-release, and use it in debian/rules
+    to guess the distribution (Debian or Ubuntu).
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 23 Aug 2005 14:16:18 +0000
+
+zope2.8 (2.8.1-3) experimental; urgency=low
+
+  * debian/rules: do not remove tests, Five needs them.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Fri, 19 Aug 2005 12:19:59 +0000
+
+zope2.8 (2.8.1-2) experimental; urgency=low
+
+  * debian/patches/deb-zopeconf.dpatch: added --service-port argument to
+    makezopeinstance.py.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Thu, 18 Aug 2005 19:47:27 +0000
+
+zope2.8 (2.8.1-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Fri, 12 Aug 2005 06:56:48 +0000
+
+zope2.8 (2.8.0-2) experimental; urgency=low
+
+  * debian/control:
+     o provides zope
+     o build-deps on python
+     o depends on lsb-base
+  * debian/zopeZVER-sandbox.dzinstance.in: use @ZVER@ substitution.
+  * debian/zopeZVER.init.in: use lsb-base functions.
+  * debian/rules: use $(ZOPE) instead of zope2.8.
+  * debian/patches/deb-zopeconf.dpatch: allow to run instances with a 
+    custom user instead of zope.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Wed, 10 Aug 2005 17:49:57 +0000
+
+zope2.8 (2.8.0-1) experimental; urgency=low
+
+  * Initial Release. (Closes: #314589)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Wed, 13 Jul 2005 14:12:32 +0000

Added: zope2.10/trunk/debian/compat
===================================================================
--- zope2.10/trunk/debian/compat	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/compat	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1 @@
+4

Added: zope2.10/trunk/debian/control
===================================================================
--- zope2.10/trunk/debian/control	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/control	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,43 @@
+Source: zope2.10
+Section: web
+Priority: optional
+Maintainer: Debian/Ubuntu Zope Team <pkg-zope-developers at lists.alioth.debian.org>
+Uploaders: Fabio Tranchitella <kobold at debian.org>
+Build-Depends: debhelper (>= 4.2.32), python-central (>= 0.5.6), python2.4-dev (>= 2.4.3), python2.4, python, zope-debhelper (>= 0.3.2.15), lsb-release, dpatch
+Standards-Version: 3.7.2
+XS-Python-Version: 2.4
+
+Package: zope2.10
+Architecture: any
+Pre-Depends: zope-common (>= 0.5.21)
+Depends: python2.4 (>= 2.4.3), lsb-base, ${shlibs:Depends}, ${misc:Depends}, debconf | debconf-2.0
+Provides: zope
+Suggests: python-unit, zope-book, zope-devguide
+XB-Python-Version: 2.4
+Description: Open Source Web Application Server
+ Zope is an open source web application server primarily written in
+ the Python programming language. It features a transactional object
+ database which can store not only content and custom data, but also
+ dynamic HTML templates, scripts, a search engine, and relational
+ database (RDBMS) connections and code.
+ .
+ It features a strong through-the-web development model, allowing you
+ to update your web site from anywhere in the world. To allow for
+ this, Zope also features a tightly integrated security model. Built
+ around the concept of "safe delegation of control", Zope's security
+ architecture also allows you to turn control over parts of a web site
+ to other organizations or individuals.
+ .
+ This package contains the framework and libraries needed to run your
+ own Zope 2.10 instance.
+
+Package: zope2.10-sandbox
+Architecture: all
+Depends: ${zope:Depends}, ${misc:Depends}, debconf | debconf-2.0
+Suggests: zope-book, zope-devguide
+Description: sandbox instance for the zope2.10 web application server
+ Package which creates a "sandbox" instance, getting all Zope
+ products and packages available which are installed as Debian packages.
+ .
+ The sandbox is usable for development and testing. For production
+ please setup your own Zope 2.10 instance using dzhandle utility.

Added: zope2.10/trunk/debian/copyright
===================================================================
--- zope2.10/trunk/debian/copyright	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/copyright	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,141 @@
+This is the Debian package of Zope. Zope is an Open Source web application
+server, written in Python.
+
+This package was put together by the Debian Zope team from sources obtained 
+from:
+
+  http://www.zope.org/Download/
+
+Author: Zope Corporation <info at zope.com>
+
+Note about Medusa:
+
+  Zope/lib/python/ZServer/medusa/docs/README.html states that Medusa copyright 
+  is owned by Sam Rushing (rushing at nightmare.com) and it is provided free for 
+  all non-commercial use. This is not true, as agreeded by Zope Corp. and the
+  original author. 
+
+  Please, see http://mail.zope.org/pipermail/zope/1998-December/084122.html
+
+License:
+
+Zope Public License (ZPL) Version 2.1
+-----------------------------------------------
+
+A copyright notice accompanies this license document that
+identifies the copyright holders.
+
+This license has been certified as open source. It has also
+been designated as GPL compatible by the Free Software
+Foundation (FSF).
+
+Redistribution and use in source and binary forms, with or
+without modification, are permitted provided that the
+following conditions are met:
+
+1. Redistributions in source code must retain the
+   accompanying copyright notice, this list of conditions,
+   and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the accompanying
+   copyright notice, this list of conditions, and the
+   following disclaimer in the documentation and/or other
+   materials provided with the distribution.
+
+3. Names of the copyright holders must not be used to
+   endorse or promote products derived from this software
+   without prior written permission from the copyright
+   holders.
+
+4. The right to distribute this software or to use it for
+   any purpose does not give you the right to use
+   Servicemarks (sm) or Trademarks (tm) of the copyright
+   holders. Use of them is covered by separate agreement
+   with the copyright holders.
+
+5. If any files are modified, you must cause the modified
+   files to carry prominent notices stating that you changed
+   the files and the date of any change.
+
+Disclaimer
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS''
+  AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
+  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
+  NO EVENT SHALL THE COPYRIGHT HOLDERS BE
+  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+  DAMAGE.
+
+----------------------------------------------------------------------
+
+The XML files in locales directory in the zope.i18n package are
+made available under the ICU License:
+
+  ICU License - ICU 1.8.1 and later
+
+  COPYRIGHT AND PERMISSION NOTICE
+
+  Copyright (c) 1995-2002 International Business Machines Corporation
+  and others
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a
+  copy of this software and associated documentation files (the
+  "Software"), to deal in the Software without restriction, including
+  without limitation the rights to use, copy, modify, merge, publish,
+  distribute, and/or sell copies of the Software, and to permit persons
+  to whom the Software is furnished to do so, provided that the above
+  copyright notice(s) and this permission notice appear in all copies of
+  the Software and that both the above copyright notice(s) and this
+  permission notice appear in supporting documentation.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+  OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+  HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+  INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+  FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+  NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+  WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+  Except as contained in this notice, the name of a copyright holder
+  shall not be used in advertising or otherwise to promote the sale, use
+  or other dealings in this Software without prior written authorization
+  of the copyright holder.
+
+  -----------------------------------------------------------------------------
+
+  All trademarks and registered trademarks mentioned herein are the
+  property of their respective owners.
+
+----------------------------------------------------------------------
+
+The docutils package was implemented and placed in the public domain by
+David Goodger and others.
+
+We are rereleasing it under the terms of the Zope Public License 2.0.
+
+Exceptions to this are the following files within the docutils package:
+
+  roman.py, by Mark Pilgrim:
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the Python 2.1.1 license, available at
+    http://www.python.org/2.1.1/license.html
+
+----------------------------------------------------------------------
+
+The zope.testing.doctest module is a copy of the doctest module from
+the Python 2.4 standard library.  It if the property of the Python
+Software Foundation (PSF) and is covered by the PSF license agreement
+for Python 2.4.  We will no-longer distribute this module with Zope at
+some point on the future.

Added: zope2.10/trunk/debian/patches/00list
===================================================================
--- zope2.10/trunk/debian/patches/00list	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/patches/00list	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1 @@
+deb-zopeconf

Added: zope2.10/trunk/debian/patches/DPATCH
===================================================================
--- zope2.10/trunk/debian/patches/DPATCH	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/patches/DPATCH	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,16 @@
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
+
+if [ $# -ne 1 ]; then
+    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+    exit 1
+fi
+case "$1" in
+       -patch) patch $patch_opts -p1 < $0;;
+       -unpatch) patch $patch_opts -p1 -R < $0;;
+        *)
+                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+                exit 1;;
+esac
+
+exit 0

Added: zope2.10/trunk/debian/patches/deb-zopeconf.dpatch
===================================================================
--- zope2.10/trunk/debian/patches/deb-zopeconf.dpatch	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/patches/deb-zopeconf.dpatch	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,192 @@
+#! /bin/sh -e
+##
+## DP: Debian specific configuration;
+## DP: Author: Fabio Tranchitella
+
+. $(dirname $0)/DPATCH
+
+ at DPATCH@
+diff -urN zope2.9-2.9.5/z/skel/etc/zope.conf.in zope2.9-2.9.5.debian/z/skel/etc/zope.conf.in
+--- zope2.9-2.9.5/z/skel/etc/zope.conf.in	2006-07-20 07:31:24.000000000 +0200
++++ zope2.9-2.9.5.debian/z/skel/etc/zope.conf.in	2006-07-21 09:47:24.000000000 +0200
+@@ -24,6 +24,8 @@
+ 
+ %define INSTANCE <<INSTANCE_HOME>>
+ %define ZOPE <<ZOPE_HOME>>
++%define ZOPE_USER <<ZOPE_USER>>
++%define HTTPPORT <<ZOPE_HTTPPORT>>
+ 
+ # Directive: instancehome
+ #
+@@ -147,6 +149,7 @@
+ # Example:
+ #
+ #    effective-user chrism
++effective-user $ZOPE_USER
+ 
+ 
+ # Directive: enable-product-installation
+@@ -902,7 +905,7 @@
+ 
+ <http-server>
+   # valid keys are "address" and "force-connection-close"
+-  address 8080
++  address $HTTPPORT
+   # force-connection-close on
+ </http-server>
+ 
+diff -urN zope2.9-2.9.5/z/utilities/copyzopeskel.py zope2.9-2.9.5.debian/z/utilities/copyzopeskel.py
+--- zope2.9-2.9.5/z/utilities/copyzopeskel.py	2006-07-20 07:31:23.000000000 +0200
++++ zope2.9-2.9.5.debian/z/utilities/copyzopeskel.py	2006-07-21 09:47:24.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.4
++#!/usr/bin/python2.4
+ 
+ ##############################################################################
+ #
+@@ -164,7 +164,7 @@
+ 
+     copyskel(sourcedir, targetdir, uid, gid, **replacements)
+ 
+-def copyskel(sourcedir, targetdir, uid, gid, **replacements):
++def copyskel(sourcedir, targetdir, uid, gid, layout='zope', **replacements):
+     """ This is an independent function because we'd like to
+     import and call it from mkzopeinstance """
+     # Create the top of the instance:
+@@ -176,13 +176,22 @@
+     # with it.
+     pwd = os.getcwd()
+     os.chdir(sourcedir)
+-    try:
++    #try:
++    if True:
+         try:
+             os.path.walk(os.curdir, copydir,
+                          (targetdir, replacements, uid, gid))
++            if layout == 'fhs':
++                movedir(os.path.join(targetdir, 'etc'),
++                        os.path.join('/etc/zope2.9', os.path.basename(targetdir)),
++                        uid, gid)
++                movedir(os.path.join(targetdir, 'log'),
++                        os.path.join('/var/log/zope2.9', os.path.basename(targetdir)),
++                        uid, gid)
+         finally:
+             os.chdir(pwd)
+-    except (IOError, OSError), msg:
++    else:
++    #except (IOError, OSError), msg:
+         print >>sys.stderr, msg
+         sys.exit(1)
+ 
+@@ -235,6 +244,39 @@
+     if uid is not None:
+         os.chown(dst, uid, gid)
+ 
++def movedir(sourcedir, targetdir, uid, gid):
++    try:
++        os.makedirs(os.path.dirname(targetdir))
++        if uid is not None:
++            os.chown(os.path.dirname(targetdir), uid, gid)
++    except:
++        pass
++    if not os.path.isdir(targetdir):
++        shutil.move(sourcedir, targetdir)
++    elif os.path.islink(sourcedir):
++        return
++    else:
++        import glob
++        for src in glob.glob(sourcedir + '/*') + glob.glob(targetdir + '/.*'):
++            base = os.path.basename(src)
++            target = os.path.join(targetdir, base)
++            if os.path.exists(target):
++                backup = target + '.old'
++                if os.path.exists(backup):
++                    if os.path.isdir(backup):
++                        shutil.rmtree(backup, ignore_errors=True)
++                    else:
++                        os.unlink(backup)
++                os.rename(target, backup)
++            shutil.move(src, target)
++        shutil.rmtree(sourcedir, ignore_errors=True)
++    if uid is not None:
++        os.chown(targetdir, uid, gid)
++        for root, dirs, files in os.walk(targetdir):
++            for name in files + dirs:
++                os.chown(os.path.join(root, name), uid, gid)
++    os.symlink(targetdir, sourcedir)
++
+ def usage(stream, msg=None):
+     if msg:
+         print >>stream, msg
+diff -urN zope2.9-2.9.5/z/utilities/mkzopeinstance.py zope2.9-2.9.5.debian/z/utilities/mkzopeinstance.py
+--- zope2.9-2.9.5/z/utilities/mkzopeinstance.py	2006-07-20 07:31:23.000000000 +0200
++++ zope2.9-2.9.5.debian/z/utilities/mkzopeinstance.py	2006-07-21 09:47:24.000000000 +0200
+@@ -36,8 +36,8 @@
+ def main():
+     try:
+         opts, args = getopt.getopt(sys.argv[1:],
+-            "hu:d:s:",
+-            ["help", "user=", "dir=", "skelsrc="]
++            "hu:d:s:l:",
++            ["help", "user=", "dir=", "skelsrc=", "layout=", "service-user=", "service-port="]
+             )
+     except getopt.GetoptError, msg:
+         usage(sys.stderr, msg)
+@@ -48,6 +48,9 @@
+     password = None
+     skeltarget = None
+     skelsrc = None
++    srvport = 9673
++    srvuser = "zope:zope"
++    layout = "zope"
+ 
+     for opt, arg in opts:
+         if opt in ("-d", "--dir"):
+@@ -71,6 +74,28 @@
+                 usage(sys.stderr, "user must be specified as name:password")
+                 sys.exit(2)
+             user, password = arg.split(":", 1)
++        if opt in ("--layout"):
++            if not arg or arg not in ('fhs', 'zope'):
++                usage(sys.stderr, "layout to use while copying the skeleton files (`fhs' or `zope')")
++                sys.exit(2)
++            layout = arg
++        if opt in ("--service-user"):
++            if not arg:
++                usage(sys.stderr, "service user must not be empty")
++                sys.exit(2)
++            if not ":" in arg:
++                usage(sys.stderr, "service user must be specified as user:group")
++                sys.exit(2)
++            srvuser = arg
++        if opt in ("--service-port"):
++            if not arg:
++                usage(sys.stderr, "service port must not be empty")
++                sys.exit(2)
++            try:
++                srvport = int(arg)
++            except ValueError:
++                usage(sys.stderr, "service port must be an integer")
++                sys.exit(2)
+ 
+     if not skeltarget:
+         # interactively ask for skeltarget and initial user name/passwd.
+@@ -119,9 +144,17 @@
+         "INSTANCE_HOME": instancehome,
+         "SOFTWARE_HOME": softwarehome,
+         "ZOPE_HOME": zopehome,
++        "ZOPE_USER": srvuser.split(":")[0],
++        "ZOPE_HTTPPORT": str(srvport),
+         }
+ 
+-    copyzopeskel.copyskel(skelsrc, skeltarget, None, None, **kw)
++    import pwd, grp
++    uid = pwd.getpwnam(srvuser.split(":")[0])
++    if uid: uid = uid[2]
++    gid = grp.getgrnam(srvuser.split(":")[1])
++    if gid: gid = gid[2]
++
++    copyzopeskel.copyskel(skelsrc, skeltarget, uid, gid, layout, **kw)
+     if user and password:
+         write_inituser(inituser, user, password)
+ 


Property changes on: zope2.10/trunk/debian/patches/deb-zopeconf.dpatch
___________________________________________________________________
Name: svn:executable
   + 

Added: zope2.10/trunk/debian/pycompat
===================================================================
--- zope2.10/trunk/debian/pycompat	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/pycompat	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1 @@
+2

Added: zope2.10/trunk/debian/rules
===================================================================
--- zope2.10/trunk/debian/rules	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/rules	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,181 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ZVER	  := 2.9
+ZOPE	  := zope$(ZVER)
+PACKAGE	  := zope$(ZVER)
+DEBIAN    := $(shell pwd)/debian/$(PACKAGE)
+PYTHONVER := 2.4
+PYTHONBIN := /usr/bin/python$(PYTHONVER)
+ZBASE     := Zope-2.9.5-final
+
+distribution := $(shell lsb_release -is)
+
+unpack: unpack-stamp
+unpack-stamp:
+	tar xfz $(ZBASE).tgz
+	mv $(ZBASE) z
+	touch unpack-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	for f in debian/*.in; do \
+	  generated=`echo $$f | sed 's,.in$$,,;s,ZVER,$(ZVER),'`; \
+	  rm -f $$generated $$generated.tmp; \
+	done
+	rm -f build-arch-stamp build-indep-stamp unpack-stamp
+	rm -f -r build-base $(ZBASE) z
+	dh_clean
+
+build: build-arch build-indep
+
+build-arch: unpack-stamp patch-stamp build-arch-stamp
+build-arch-stamp:
+	cd z && ./configure \
+		--prefix=$(DEBIAN)/usr/lib/$(ZOPE) \
+		--with-python=$(PYTHONBIN)
+	cd z && make
+	touch build-arch-stamp
+
+build-indep: build-indep-stamp
+build-indep-stamp:
+	touch build-indep-stamp
+
+install: install-indep install-arch
+
+install-indep:
+	dh_testdir
+	dh_testroot
+	dh_installzopeinstance -pzope$(ZVER)-sandbox sandbox
+	dh_installdocs -i
+	dh_install -i
+ifeq ($(distribution),Ubuntu)
+	mv debian/zope$(ZVER)-sandbox/usr/share/doc/zope$(ZVER)-sandbox/README.Debian \
+       debian/zope$(ZVER)-sandbox/usr/share/doc/zope$(ZVER)-sandbox/README.Ubuntu
+endif
+
+install-arch:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -s
+	for f in debian/*.in; do \
+	  generated=`echo $$f | sed 's,.in$$,,;s,ZVER,$(ZVER),'`; \
+	  sed 's, at ZVER@,$(ZVER),g' $$f > $$generated.tmp; \
+	  if cmp --quiet "$$generated" "$$generated.tmp"; then \
+	    rm -f $$generated.tmp; \
+	  else \
+	    mv -f $$generated.tmp $$generated; \
+	  fi; \
+	done
+	dh_installdirs -s
+
+	# Install Zope and remove *.pyc
+	cd z && make install
+	find $(DEBIAN) -name '*.pyc' | xargs -r rm -r
+
+	# FHS enforcement
+	mkdir -p $(DEBIAN)/usr/sbin \
+	         $(DEBIAN)/etc/$(ZOPE) \
+	         $(DEBIAN)/var/log/$(ZOPE) \
+	         $(DEBIAN)/var/lib/$(ZOPE)/instance \
+	         $(DEBIAN)/var/lib/$(ZOPE)/zeo \
+	         $(DEBIAN)/usr/lib/$(ZOPE)/lib
+
+	echo "Zope$(ZVER) logs placeholder" > $(DEBIAN)/var/log/$(ZOPE)/.placeholder
+
+	mkdir -p  $(DEBIAN)/usr/share/doc/
+	#dh_link -p$(ZOPE) /usr/share/doc/$(ZOPE) /usr/lib/$(ZOPE)/doc
+
+	# Fix python interpreter where needed
+	for i in `find $(DEBIAN) -type f`; do \
+	  if sed '1s,#!.*python[^ ]*\(.*\),#!$(PYTHONBIN)\1,' \
+		$$i > $$i~ ; then \
+	  if cmp --quiet $$i $$i~ ; then \
+	    rm -f $$i~ ; \
+	  else \
+	    mv -f $$i~ $$i; \
+	    chmod 755 $$i; \
+	    echo "fixed interpreter: $$i"; \
+	  fi; else  rm -f $$i~ ; fi ; \
+	done
+
+	rm $(DEBIAN)/usr/lib/zope2.9/lib/python/zope/formlib/LICENSE.txt \
+	   $(DEBIAN)/usr/lib/zope2.9/lib/python/Products/Five/COPYING.txt \
+	   $(DEBIAN)/usr/lib/zope2.9/lib/python/Products/Five/doc/ZopePublicLicense.txt \
+	   $(DEBIAN)/usr/lib/zope2.9/lib/python/docutils/COPYING.txt \
+	   $(DEBIAN)/usr/lib/zope2.9/lib/python/pytz/LICENSE.txt \
+	   $(DEBIAN)/usr/lib/zope2.9/lib/python/ZConfig/LICENSE.txt
+
+	rm -fr $(DEBIAN)/usr/lib/zope2.9/doc
+
+	chmod 755 $(DEBIAN)/usr/lib/zope2.9/lib/python/DocumentTemplate/release.sh \
+	          $(DEBIAN)/usr/lib/zope2.9/lib/python/ZPublisher/Client.py \
+	          $(DEBIAN)/usr/lib/zope2.9/lib/python/ZPublisher/Test.py
+
+	find $(DEBIAN)/usr/lib/zope2.9/lib/python -type f -a \
+		\( -name *.gif -o -name *.html -o -name *.dtml -o -name *.txt -o -name *.bat -o -name *.jpg \) -exec chmod 644 {} \;
+
+	chmod 644 $(DEBIAN)/usr/lib/zope2.9/bin/reindex_catalog.py \
+	          $(DEBIAN)/usr/lib/zope2.9/skel/import/README.txt \
+			  $(DEBIAN)/usr/lib/zope2.9/lib/python/ImageFile.py \
+			  $(DEBIAN)/usr/lib/zope2.9/lib/python/Products/ZSQLMethods/Setup \
+			  $(DEBIAN)/usr/lib/zope2.9/lib/python/Products/ZGadflyDA/Setup
+
+	# Lintian and linda overrides (images in /usr/lib)
+	mkdir -p -m 0755 $(DEBIAN)/usr/share/lintian/overrides
+	install -m 0644 debian/$(ZOPE).lintian-overrides \
+	            $(DEBIAN)/usr/share/lintian/overrides/$(ZOPE)
+
+	mkdir -p -m 0755 $(DEBIAN)/usr/share/linda/overrides
+	install -m 0644 debian/$(ZOPE).linda-overrides \
+	        $(DEBIAN)/usr/share/linda/overrides/$(ZOPE)
+
+	dh_installdocs -p$(ZOPE) z/README.txt
+	cp debian/zope2.9.NEWS.Debian $(DEBIAN)/usr/share/doc/zope2.9/NEWS.Debian
+	dh_installexamples -p$(ZOPE) z/lib/python/Products/PageTemplates/examples/*
+	dh_pycentral -p$(ZOPE) /usr/lib/$(ZOPE) -V $(PYTHONVER)
+
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -k z/doc/CHANGES.txt
+	dh_installdocs -X INSTALL.txt z/doc/*
+	dh_installdocs
+	dh_installlogrotate
+	dh_installdebconf
+	dh_installinit
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress -X.zexp
+	dh_fixperms
+	dh_shlibdeps
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch
+
+include /usr/share/dpatch/dpatch.make


Property changes on: zope2.10/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + 

Added: zope2.10/trunk/debian/zopeZVER-sandbox.README.Debian.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER-sandbox.README.Debian.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER-sandbox.README.Debian.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,15 @@
+Notes about pre-packaged instances
+----------------------------------
+
+This is a pre-packaged instance of Zope at ZVER@, and it has been installed in
+/var/lib/zope at ZVER@/instance/sandbox. You can modify its configuration 
+editing the file /etc/zope at ZVER@/sandbox/zope.conf.
+
+During configuration, debconf is used to ask the system administrator the 
+user and password for initial user of the instance. If debconf had been 
+configured to not display these questions, a random password has been
+generated. In this case, you have to use zpasswd.py utility to specify a 
+new password for the initial user in order to have access to the Zope 
+Management Interface of this instance.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Thu, 18 Aug 2005 22:14:00 +0200

Added: zope2.10/trunk/debian/zopeZVER-sandbox.copyright.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER-sandbox.copyright.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER-sandbox.copyright.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,3 @@
+This package was created and released by the Debian Zope team, under 
+the terms of the Gnu General Public License, version 2 or later.  
+See /usr/share/common-licenses/GPL for the full text of that license.

Added: zope2.10/trunk/debian/zopeZVER-sandbox.dzinstance.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER-sandbox.dzinstance.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER-sandbox.dzinstance.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,7 @@
+Package: zope at ZVER@-sandbox
+ZopeVersion: @ZVER@
+Name: sandbox
+Addon-Mode: all
+Addon-Technique: tree-linked
+Restart-Policy: end
+Port: 8028

Added: zope2.10/trunk/debian/zopeZVER-sandbox.postinst.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER-sandbox.postinst.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER-sandbox.postinst.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
+
+db_stop

Added: zope2.10/trunk/debian/zopeZVER-sandbox.templates.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER-sandbox.templates.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER-sandbox.templates.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,3 @@
+Template: zope at ZVER@-sandbox/internal
+Type: note
+Description: Internal use

Added: zope2.10/trunk/debian/zopeZVER.NEWS.Debian.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.NEWS.Debian.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.NEWS.Debian.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,18 @@
+zope2.9 (2.9.3-3) unstable; urgency=high
+
+  There is a bug in the upstream Makefile which causes zope2.9 to be
+  installed under /usr/lib/zope2.9/lib/python2.4/site-packages instead of
+  /usr/lib/zope2.9/lib/python if you run the install target using --prefix
+  instead of --home.
+  
+  Starting from this release, we use the --home switch instead of --prefix
+  and this means that the base modules/packages are now installed under
+  /usr/lib/zope2.9/lib/python instead of
+  /usr/lib/zope2.9/lib/python2.4/site-packages.
+
+  If you have installed zope2.9 instances using older versions of zope2.9,
+  please modify the scripts contained in
+  /var/lib/zope2.9/instance/{instance-name}/bin/ to use the new path.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 11 Jul 2006 16:26:48 +0200
+

Added: zope2.10/trunk/debian/zopeZVER.default.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.default.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.default.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,23 @@
+# Zope default file
+# -----------------
+#
+# This file controls the start and the stop of ZEO servers and ZOPE instances
+# with the init script provided by zope at ZVER@ package.
+#
+# The following variables should contain a space sperated list of ZEO server
+# and ZOPE instance names which you want to start with the init script.
+# Note that ZEO servers will be started _before_ any instance, and that's
+# your responsability to check dependencies between ZEO servers and ZOPE
+# instances. The order of the variables doesn't matter.
+#
+# ZEO servers are searched in /var/lib/zope at ZVER@/zeo, while ZOPE instances
+# are searched in /var/lib/zope at ZVER@/instance.
+#
+# ALL means that you would like to start all servers/instances, NONE (or an 
+# empty value) means, well, none.
+
+# ZEO servers
+ZEOSERVERS="ALL"
+
+# ZOPE instances
+INSTANCES="ALL"

Added: zope2.10/trunk/debian/zopeZVER.init.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.init.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.init.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,90 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides:          zope2.9
+# Required-Start:    $syslog $local_fs
+# Required-Stop:     $syslog $syslog
+# Should-Start:      $local_fs
+# Should-Stop:       $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start zope2.9 instances
+# Description:       Start the instances defined in /etc/default/zope2.9
+### END INIT INFO
+
+ZVER=@ZVER@
+[ -d /var/lib/zope$ZVER/instance -a -d /var/lib/zope$ZVER/zeo -a -d /usr/lib/zope$ZVER ] || exit 0
+
+. /lib/lsb/init-functions
+. /etc/default/zope$ZVER
+
+if [ "$ZEOSERVERS" = "NONE" -o "$ZEOSERVERS" = "" ]; then
+    ZEOSERVERS=''
+    log_warning_msg "Zope$ZVER: ZEO servers have been disabled, edit /etc/default/zope$ZVER to enable them."
+elif [ "$ZEOSERVERS" = "ALL" ]; then
+    ZEOSERVERS='*'
+fi
+
+if [ "$INSTANCES" = "NONE" -o "$INSTANCES" = "" ]; then
+    INSTANCES=''
+    log_warning_msg "Zope$ZVER: instances have been disabled, edit /etc/default/zope$ZVER to enable them."
+elif [ "$INSTANCES" = "ALL" ]; then
+    INSTANCES='*'
+fi
+
+case "$1" in
+    start|stop|restart)
+        p=''; [ "$1" = "stop" ] && p='p'
+
+        if [ -n "$ZEOSERVERS" ]; then
+            cd /var/lib/zope$ZVER/zeo
+            for i in $ZEOSERVERS ; do
+                    if [ "$i" = "*" ]; then
+                        # log_success_msg "Zope$ZVER: no ZEO servers found."
+                        break
+                    elif [ ! -d "$i" ]; then
+                        continue
+                    fi
+        
+                    if [ -x $i/bin/zeoctl ] ; then
+                        log_begin_msg "Zope$ZVER: ${1}${p}ing $i ZEO server"
+                        dzhandle -z $ZVER zeoctl "$i" $1 >/dev/null 2>&1
+                        log_end_msg $?
+                    else 
+                        log_warning_msg "Zope$ZVER: skipping $i (old/purged)"
+                    fi
+            done
+        fi
+
+        if [ -n "$INSTANCES" ]; then
+            cd /var/lib/zope$ZVER/instance
+            for i in $INSTANCES ; do
+                    if [ "$i" = "*" ]; then
+                        log_success_msg "Zope$ZVER: no instances found."
+                        break
+                    elif [ ! -d "$i" ]; then
+                        continue
+                    fi
+
+                    if [ -x $i/bin/zopectl ] ; then
+                        log_begin_msg "Zope$ZVER: ${1}${p}ing $i instance"
+                        dzhandle -z $ZVER zopectl "$i" $1 >/dev/null 2>&1
+                        log_end_msg $?
+                    else 
+                        log_warning_msg "Zope$ZVER: skipping $i (old/purged)"
+                    fi
+            done
+        fi
+        ;;
+
+    force-reload)
+        echo "Zope$ZVER doesn't support force-reload, use restart instead."
+        ;;
+		
+    *)
+        echo "Usage: /etc/init.d/zope$ZVER {start|stop|restart|force-reload}"
+        exit 1
+        ;;
+esac
+
+exit 0

Added: zope2.10/trunk/debian/zopeZVER.linda-overrides.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.linda-overrides.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.linda-overrides.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,2 @@
+Tag: image-in-usr-lib
+Data: /usr/lib/zope at ZVER@/

Added: zope2.10/trunk/debian/zopeZVER.lintian-overrides.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.lintian-overrides.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.lintian-overrides.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1 @@
+zope at ZVER@: image-file-in-usr-lib

Added: zope2.10/trunk/debian/zopeZVER.logrotate.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.logrotate.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.logrotate.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,16 @@
+# Logrotate configuration file fo Zope Debian package
+
+"/var/log/zope at ZVER@/*/Z2.log" "/var/log/zope at ZVER@/*/event.log"{
+    weekly
+    missingok
+    rotate 52
+    copytruncate
+    compress                                                      
+    delaycompress
+    notifempty   
+    create 640 zope zope
+    sharedscripts
+    postrotate
+    sh -c 'for i in /var/lib/zope at ZVER@/instance/* ; do [ -d "$i/log" -a -x "$i/bin/zopectl" -a -r "$i/var/Z2.pid" ] && "$i"/bin/zopectl logreopen ; done'
+    endscript
+}

Added: zope2.10/trunk/debian/zopeZVER.postinst.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.postinst.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.postinst.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
+
+db_stop
+exit 0

Added: zope2.10/trunk/debian/zopeZVER.postrm.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.postrm.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.postrm.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,43 @@
+#!/bin/sh -e
+
+zope=zope at ZVER@
+
+delete_pyo_pyc () {
+	t=`tempfile -p zopedel `
+	[ -r /var/lib/$zope/_list_of_pyc_pyo_to_be_deleted_ ] && 
+	cat /var/lib/$zope/_list_of_pyc_pyo_to_be_deleted_ | \
+	    xargs rm -f 2>&1
+	rm -f /usr/lib/$zope/debian/*.py[co] 
+	rm -f /var/lib/$zope/_list_of_pyc_pyo_to_be_deleted_
+}
+
+case "$1" in
+    failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+    upgrade)
+	delete_pyo_pyc
+    ;;
+    remove)
+	delete_pyo_pyc
+    ;;
+    purge)
+	if [ -d /var/lib/$zope/instance ] ; then
+	 find /var/lib/$zope/instance  -maxdepth 3 -type f \
+            -path '*/var/Data.fs.*' -or -path '*/bin/*zope*' \
+            -or -path '*/log/*.log*' -or  -name README.txt \
+                 | xargs -r rm -f
+	fi
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: zope2.10/trunk/debian/zopeZVER.preinst.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.preinst.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.preinst.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,30 @@
+#! /bin/sh -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+
+case "$1" in
+    upgrade)
+	if [ -h /usr/share/doc/zope at ZVER@ ]; then
+	    rm -f /usr/share/doc/zope at ZVER@
+	fi
+    ;;
+
+    install)
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0

Added: zope2.10/trunk/debian/zopeZVER.prerm.in
===================================================================
--- zope2.10/trunk/debian/zopeZVER.prerm.in	2006-11-01 13:03:17 UTC (rev 384)
+++ zope2.10/trunk/debian/zopeZVER.prerm.in	2006-11-01 13:01:46 UTC (rev 385)
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+zope=zope at ZVER@
+
+dpkg -L zope at ZVER@ |
+        awk '$0~/\.py$/ {print $0"c\n" $0"o"}' \
+	> /var/lib/$zope/_list_of_pyc_pyo_to_be_deleted_
+
+case "$1" in
+    remove|failed-upgrade|upgrade|deconfigure)
+    ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0




More information about the pkg-zope-commits mailing list