r818 - in zope-debhelper/trunk: . autoscripts debian
Bernd Zeimetz
bzed-guest at alioth.debian.org
Wed Apr 18 20:50:07 UTC 2007
Author: bzed-guest
Date: 2007-04-18 20:50:06 +0000 (Wed, 18 Apr 2007)
New Revision: 818
Modified:
zope-debhelper/trunk/autoscripts/postinst-dzinstance
zope-debhelper/trunk/debian/copyright
zope-debhelper/trunk/dh_installzopeinstance
Log:
adding Skeleton support do dh_installzopeinstance.
please note that this is *NOT* well tested yet.
Modified: zope-debhelper/trunk/autoscripts/postinst-dzinstance
===================================================================
--- zope-debhelper/trunk/autoscripts/postinst-dzinstance 2007-04-18 17:00:52 UTC (rev 817)
+++ zope-debhelper/trunk/autoscripts/postinst-dzinstance 2007-04-18 20:50:06 UTC (rev 818)
@@ -49,7 +49,7 @@
# set the install policy to manual
if dzhandle -z $ZVER make-instance -u "$user:$password" $INSTANCE \
--addon-mode=#DZ-ADDON-MODE# --restart=#DZ-RESTARTPOLICY# -t #DZ-ADDON-TECHNIQUE# \
- --service-port "$port"
+ --service-port "$port" #DZ-SKELETON#
then
# overwrite password in debconf database
db_set $PKG/admin-password ""
Modified: zope-debhelper/trunk/debian/copyright
===================================================================
--- zope-debhelper/trunk/debian/copyright 2007-04-18 17:00:52 UTC (rev 817)
+++ zope-debhelper/trunk/debian/copyright 2007-04-18 20:50:06 UTC (rev 818)
@@ -1,4 +1,4 @@
-This package has been put togheter by Matthias Klose <doko at debian.org>
+This package has been put together by Matthias Klose <doko at debian.org>
on Sun, 13 Feb 2005 23:31:07 +0100.
Copyright: Debian Zope team <pkg-zope-developers at lists.alioth.debian.org>
@@ -6,6 +6,7 @@
Upstream Authors: Matthias Klose <doko at debian.org>
martin f. krafft <madduck at debian.org>
Fabio Tranchitella <kobold at debian.org>
+ Bernd Zeimetz <bernd at bzed.de>
License:
Modified: zope-debhelper/trunk/dh_installzopeinstance
===================================================================
--- zope-debhelper/trunk/dh_installzopeinstance 2007-04-18 17:00:52 UTC (rev 817)
+++ zope-debhelper/trunk/dh_installzopeinstance 2007-04-18 20:50:06 UTC (rev 818)
@@ -51,16 +51,19 @@
This is an example of a debian/package.dzinstance file:
Package: plone-site
- ZopeVersion: 2.7
+ ZopeVersion: 2.9
Name: plone-site
Addon-Mode: manual
Addon-Technique: tree-linked
Restart-Policy: end
Products: CMFPlone
+ Skeleton: /usr/lib/zope2.9/skel-with-magic
The Products field specify a list of comma separated products that will
be automatically installed into the instance. Obviously, it has no sense
if the Addon-Mode field contains 'all'.
+The optional Skeleton field specifies a path which is used as skeleton for
+the new zope instance.
=head1 NOTES
@@ -177,6 +180,12 @@
$dzinstance{'RestartPolicy'} = 'end' if (!$dzinstance{'RestartPolicy'});
$dzinstance{'Products'} = '' if (!$dzinstance{'Products'});
$dzinstance{'Port'} = '9673' if (!$dzinstance{'Port'});
+ if ($dzinstance{'Skeleton'}) {
+ $dzinstance{'Skeleton'} = '--skelsrc ' . $dzinstance{'Skeleton'};
+ } else {
+ $dzinstance{'Skeleton'} = '';
+ }
+
if (!$dh{NOSCRIPTS}) {
foreach my $script (@autoscripts) {
@@ -188,7 +197,8 @@
"s,#DZ-ADDON-MODE#,$dzinstance{'Addon-Mode'},;" .
"s,#DZ-ADDON-TECHNIQUE#,$dzinstance{'Addon-Technique'},;" .
"s,#DZ-RESTARTPOLICY#,$dzinstance{'RestartPolicy'},;" .
- "s,#DZ-PRODUCTS#,$dzinstance{'Products'},;",
+ "s,#DZ-PRODUCTS#,$dzinstance{'Products'},;" .
+ "s,#DZ-SKELETON#,$dzinstance{'Skeleton'},;",
);
}
}
More information about the pkg-zope-commits
mailing list