summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-03-01 15:07:21 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-03-01 15:07:21 +0000
commit3c2eafe020b8de2645159179bd7d79db8b1e28df (patch)
treebfb2febe61cd02a8a1ff1fc2d5a306eefcd72f5b /app-admin
parentFold standard_configure_options() into qt4-build_src_configure(). (diff)
downloadgentoo-2-3c2eafe020b8de2645159179bd7d79db8b1e28df.tar.gz
gentoo-2-3c2eafe020b8de2645159179bd7d79db8b1e28df.tar.bz2
gentoo-2-3c2eafe020b8de2645159179bd7d79db8b1e28df.zip
Removing p.masked net-zope deps
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/zope-config/ChangeLog179
-rw-r--r--app-admin/zope-config/Manifest22
-rw-r--r--app-admin/zope-config/files/0.4/zope-config515
-rw-r--r--app-admin/zope-config/files/0.4/zope-config.conf30
-rw-r--r--app-admin/zope-config/files/0.5/zope-config520
-rw-r--r--app-admin/zope-config/files/0.5/zope-config-0.5.patch26
-rw-r--r--app-admin/zope-config/files/0.5/zope-config.conf30
-rwxr-xr-xapp-admin/zope-config/files/0.6/zope-config531
-rw-r--r--app-admin/zope-config/files/0.6/zope-config.conf30
-rw-r--r--app-admin/zope-config/metadata.xml5
-rw-r--r--app-admin/zope-config/zope-config-0.5-r1.ebuild37
-rw-r--r--app-admin/zope-config/zope-config-0.5.ebuild38
-rw-r--r--app-admin/zope-config/zope-config-0.6.ebuild38
-rw-r--r--app-admin/zprod-manager/ChangeLog122
-rw-r--r--app-admin/zprod-manager/Manifest30
-rw-r--r--app-admin/zprod-manager/files/0.3.1/zprod-manager349
-rw-r--r--app-admin/zprod-manager/files/0.3.2/zprod-manager379
-rw-r--r--app-admin/zprod-manager/files/0.3.3/zprod-manager385
-rw-r--r--app-admin/zprod-manager/files/0.3/zprod-manager345
-rw-r--r--app-admin/zprod-manager/metadata.xml5
-rw-r--r--app-admin/zprod-manager/zprod-manager-0.3.1.ebuild22
-rw-r--r--app-admin/zprod-manager/zprod-manager-0.3.2-r1.ebuild20
-rw-r--r--app-admin/zprod-manager/zprod-manager-0.3.3.ebuild20
-rw-r--r--app-admin/zprod-manager/zprod-manager-0.3.ebuild22
24 files changed, 0 insertions, 3700 deletions
diff --git a/app-admin/zope-config/ChangeLog b/app-admin/zope-config/ChangeLog
deleted file mode 100644
index be4420f76e5b..000000000000
--- a/app-admin/zope-config/ChangeLog
+++ /dev/null
@@ -1,179 +0,0 @@
-# ChangeLog for app-admin/zope-config
-# Copyright 2003-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/ChangeLog,v 1.41 2008/11/17 20:53:18 flameeyes Exp $
-
- 17 Nov 2008; Diego E. Pettenò <flameeyes@gentoo.org>
- files/0.5/zope-config-0.5.patch:
- Fix patch with absolute paths.
-
-*zope-config-0.6 (16 Nov 2008)
-
- 16 Nov 2008; Tupone Alfredo <tupone@gentoo.org> -files/0.1/zope-config,
- -files/0.3/zope-config, -files/0.3/zope-config.conf,
- +files/0.6/zope-config, +files/0.6/zope-config.conf,
- -zope-config-0.1-r1.ebuild, -zope-config-0.3.ebuild,
- -zope-config-0.4.ebuild, -zope-config-0.4-r1.ebuild,
- -zope-config-0.4-r2.ebuild, -zope-config-0.4-r3.ebuild,
- zope-config-0.5.ebuild, zope-config-0.5-r1.ebuild,
- +zope-config-0.6.ebuild:
- Fix dialog not finding tty. Bug #120471 by Francesco R. <vivo@gentoo.org>
- Clean old ebuild.
- Make repoman happy.
-
- 24 Jan 2007; Marius Mauch <genone@gentoo.org> zope-config-0.3.ebuild,
- zope-config-0.4.ebuild, zope-config-0.4-r1.ebuild,
- zope-config-0.4-r2.ebuild, zope-config-0.4-r3.ebuild,
- zope-config-0.5.ebuild, zope-config-0.5-r1.ebuild:
- Replacing einfo with elog
-
- 24 Dec 2005; Radoslaw Stachowiak <radek@gentoo.org> files/0.5/zope-config:
- simple fix to internal version number, #115256
-
- 11 Sep 2005; Aron Griffis <agriffis@gentoo.org> zope-config-0.1-r1.ebuild,
- zope-config-0.5.ebuild:
- Mark 0.5 stable on alpha. Add HOMEPAGE to zope-config-0.1-r1 to make repoman
- happy
-
- 21 Apr 2005; Simon Stelling <blubb@gentoo.org> zope-config-0.5.ebuild:
- stable on amd64
-
- 18 Apr 2005; Michael Hanselmann <hansmi@gentoo.org>
- zope-config-0.5.ebuild:
- Stable on ppc.
-
-*zope-config-0.5-r1 (02 Jan 2005)
-
- 02 Jan 2005; Jodok Batlogg <batlogg@gentoo.org>; +files/0.5/zope-config,
- +files/0.5/zope-config.conf, +zope-config-0.5-r1.ebuild:
- fix for #71569
-
- 28 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
- Change encoding to UTF-8 for GLEP 31 compliance
-
- 19 Oct 2004; Jason Wever <weeve@gentoo.org> zope-config-0.5.ebuild:
- Stable on sparc.
-
- 14 Oct 2004; Radoslaw Stachowiak <radek@gentoo.org>
- zope-config-0.5.ebuild:
- stable on x86 due to #65375
-
-*zope-config-0.5 (07 Oct 2004)
-
- 07 Oct 2004; Radoslaw Stachowiak <radek@gentoo.org>
- +files/0.5/zope-config-0.5.patch, +zope-config-0.5.ebuild:
- Now sets default instance if it wasnt set before (on instance creation).
- Released as a patch to 0.4 release !!!
-
- 05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
- zope-config-0.1-r1.ebuild, zope-config-0.4-r3.ebuild:
- Masked zope-config-0.4-r3.ebuild stable for ppc
-
- 05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
- zope-config-0.1-r1.ebuild:
- Masked zope-config-0.1-r1.ebuild stable for ppc
-
- 03 Oct 2004; Jason Wever <weeve@gentoo.org> zope-config-0.4-r3.ebuild:
- Stable on sparc.
-
- 24 Sep 2004; Heinrich Wendel <lanius@gentoo.org> zope-config-0.4-r3.ebuild:
- stable on x86
-
-*zope-config-0.4-r3 (18 Sep 2004)
-
- 18 Sep 2004; Jodok Batlogg <batlogg@gentoo.org>; files/0.4/zope-config,
- +zope-config-0.4-r3.ebuild:
- let users define the user additionaly to the group under which the instance
- should run. Thanks to Bernd Dorn for this.
-
-*zope-config-0.4-r2 (11 Sep 2004)
-
- 11 Sep 2004; Heinrich Wendel <lanius@gentoo.org> files/0.4/zope-config,
- +zope-config-0.4-r2.ebuild:
- fix grammar bugs, bug #63078
-
- 01 Aug 2004; Tom Martin <slarti@gentoo.org> zope-config-0.4-r1.ebuild:
- Marked ~amd64.
-
- 25 Jul 2004; Jodok Batlogg <batlogg@gentoo.org>; files/0.4/zope-config:
- sed expression didn't match new initscript
-
- 25 Jul 2004; Jodok Batlogg <batlogg@gentoo.org>; files/0.4/zope-config,
- files/0.4/zope-config.conf, -files/0.4-r1/zope-config,
- -files/0.4-r1/zope-config.conf:
- zope-config-0.4-r1 uses same file dir as zope-config-0.4
-
-*zope-config-0.4-r1 (24 Jul 2004)
-
- 24 Jul 2004; Jodok Batlogg <batlogg@gentoo.org>; +files/0.4-r1/zope-config,
- +files/0.4-r1/zope-config.conf, +zope-config-0.4-r1.ebuild:
- version bump (required by zope ebuild changes)
-
- 20 Jul 2004; Lars Weiler <pylon@gentoo.org> zope-config-0.3.ebuild:
- Stable on ppc.
-
-*zope-config-0.4 (14 Jul 2004)
-
- 14 Jul 2004; Jodok Batlogg <batlogg@gentoo.org>; zope-config-0.3.ebuild,
- zope-config-0.4.ebuild, files/0.4/zope-config, files/0.4/zope-config.conf:
- added changes necessary for zope 2.7.1, thanks to commits from #41508
-
- 24 May 2004; Bryan Østergaard <kloeri@gentoo.org> zope-config-0.3.ebuild:
- Keyworded ~alpha, requested in bug #51550.
-
- 11 Apr 2004; Jason Wever <weeve@gentoo.org> zope-config-0.3.ebuild:
- Stable on sparc.
-
- 03 Mar 2004; David Holm <dholm@gentoo.org> zope-config-0.3.ebuild:
- Added to ~ppc.
-
- 26 Jan 2004; Jason Wever <weeve@gentoo.org> zope-config-0.3.ebuild:
- Changed sparc keyword to ~sparc as this was mistakenly stabilized with broken
- dependencies.
-
- 26 Jan 2004; Heinrich Wendel <lanius@gentoo.org> zope-config-0.3.ebuild:
- fix PDEPEND on arch != x86
-
- 17 Jan 2004; Heinrich Wendel <lanius@gentoo.org> zope-config-0.2.ebuild,
- zope-config-0.3.ebuild:
- stable bump
-
- 22 Dec 2003; Heinrich Wendel <lanius@gentoo.org> zope-config-0.1-r1.ebuild,
- zope-config-0.2.ebuild, zope-config-0.3.ebuild:
- fixed circular dep with zope, bug #35918
-
- 12 Dec 2003; Heinrich Wendel <lanius@gentoo.org> files/0.3/zope-config:
- use mv instead of cp to avoid data loose when zope is still running
-
-*zope-config-0.3 (10 Dec 2003)
-
- 10 Dec 2003; Heinrich Wendel <lanius@gentoo.org> zope-config-0.3.ebuild,
- files/0.3/zope-config, files/0.3/zope-config.conf:
- fixed removal of Data.fs, bug #29705
-
- 15 Nov 2003; Robin H. Johnson <robbat2@gentoo.org> files/0.2/zope-config:
- forgot to put a variable in place!
-
-*zope-config-0.2 (15 Nov 2003)
-
- 15 Nov 2003; Robin H. Johnson <robbat2@gentoo.org> metadata.xml,
- zope-config-0.2.ebuild, files/0.2/zope-config, files/0.2/zope-config.conf:
- new 0.2 version with lots of changes, partially thanks to solutions2u.net gmbd
-
-*zope-config-0.1-r1 (25 Feb 2003)
-
- 24 Apr 2003; Jason Wever <weeve@gentoo.org> zope-config-0.1-r1.ebuild:
- Added ~sparc to keywords.
-
- 03 Apr 2003; Jason Shoemaker <kutsuya@gentoo.org> zope-config-0.1-r1.ebuild:
- ~x86 -> x86 and added ~ppc
-
- 03 Mar 2003; Jason Shoemaker <kutsuya@gentoo.org> zope-config-0.1-r1.ebuild:
- Changed dependencies to reflect the move of zope moved to net-zope.
-
- 25 Feb 2003; Jason Shoemaker <kutsuya@gentoo.org> zope-config-0.1-r1.ebuild
- zope-config : Fixed dependencies. When dialog ask for rcscript, added
- default of 'zope-' as suggested by a user. Added $Header to script.
-
-*zope-config-0.1 (16 Feb 2003)
-
- 16 Feb 2003; Jason Shoemaker <kutsuya@gentoo.org> : Initial import.
diff --git a/app-admin/zope-config/Manifest b/app-admin/zope-config/Manifest
deleted file mode 100644
index 0731035bb4b3..000000000000
--- a/app-admin/zope-config/Manifest
+++ /dev/null
@@ -1,22 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX 0.4/zope-config 14204 RMD160 8886e352ee0a4f7f5e6a8a00c7b5cf087096ed2f SHA1 9fc7c1f7bbbf27ad71107abd4144b4d482767c1e SHA256 31486268140870533ad14bde7a55206641a7ab25be5bcc958675ad4dec9c7014
-AUX 0.4/zope-config.conf 1079 RMD160 63d182362b0ffa6d62dde9efeb500f2efe2eee83 SHA1 dd943a4f894465bf3e9707cd93cf8b511d4ff84d SHA256 a6c73b7e5e4ca68247d264c80a1189e5577354ad7e5cd60f9fbc9ddac659de9d
-AUX 0.5/zope-config 14373 RMD160 5a731d4ca53707c76d596e0815975a6f71d6299f SHA1 a13a4baaa5ce6fa1331bf1c2292033467ab6c5a6 SHA256 508cccf31375fbe80a0af6376c21c32ac9a2c17018937050bb60f5f8e5964fa3
-AUX 0.5/zope-config-0.5.patch 878 RMD160 f53cbf81d8e2b304b5364e4680c52ae6339c95bf SHA1 f3f6894e378b1c153c01a20cce336fee7884f939 SHA256 aa4b82aa0d8e447a741214e3a54b9a6ef23238468649e3e8346599d63a560647
-AUX 0.5/zope-config.conf 1079 RMD160 4ff9408ea5688bd57ad07b951c110f857dc7f76a SHA1 89347390c80fb57335d9974784e00ccd86408be4 SHA256 116dba0046fb567aeb440670c2e21acb0422bbf6635627a229de5aebf2f899e9
-AUX 0.6/zope-config 14670 RMD160 1a6fad53bd48a8781058547327943c96e038e55e SHA1 a9431e32e0c02e508634ab1fb6e0b1e498eecc03 SHA256 a15d8a72436f90e9581cdc8a5a5260804eb47b09575d8e948133ee4701fc1aea
-AUX 0.6/zope-config.conf 1078 RMD160 f4b0ac46bea7b8305efc1e9f37e53662ae556ad8 SHA1 411ed2f35673056076dec8dc58e41d358e1862ae SHA256 b18576b6f6b0ead8c29f08cf04a288e23ff7e3467326d5de66b7667c30b10b52
-EBUILD zope-config-0.5-r1.ebuild 972 RMD160 b1a7b8f932c7a3324c3021a58ed3c8fe481b6a52 SHA1 d9a8cac5af6107aa89c2e86ab4d63a37be35e259 SHA256 d455b8abcfd683ece0cbd8554b2b9088ca56471c4107c9900e2bb6296d450283
-EBUILD zope-config-0.5.ebuild 1024 RMD160 23a821ae802053ec821f71a719db90713e6d5e6a SHA1 148b5c60a6733bb5e4416bb75e66799703296dbb SHA256 00b8aee5cdee5edbaaa48efb7ec981910cd54c56027cd7b313c80757bc4b94e1
-EBUILD zope-config-0.6.ebuild 975 RMD160 af5f917720f51f7d67fc3535ec0c9ad5ae6dfdf6 SHA1 bc1b49b8d27804c8d6c663514e849bca6f0d8fe8 SHA256 ae321638bf688800039557480b2aa6cb4166c45049d2ac8015443be0644875e1
-MISC ChangeLog 6686 RMD160 804e57190ed548947020cdc5e90189f558d573c6 SHA1 c0abf8186e11d8205d24740efa4fba6a6313f501 SHA256 224bd827f20d6ee0b3019b4dafe096b2e6b454f05160b067b0b8791d6739c316
-MISC metadata.xml 161 RMD160 5e136d45f811478292bd2ee1798a9b0229ffe468 SHA1 9755179a2dee0511818b1f6738ded28e335e1b9a SHA256 e69ac7205cbc2e42a297e20d8f08922003390a345bbf50ccf00d1158a1c97cc5
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkkh2cMACgkQAiZjviIA2XjqMQCfSA/5yayiDqSIrTvQQ+jLN12b
-A80AnA0GYysCUo17SKwhRah1y2MMYCyy
-=sZkO
------END PGP SIGNATURE-----
diff --git a/app-admin/zope-config/files/0.4/zope-config b/app-admin/zope-config/files/0.4/zope-config
deleted file mode 100644
index 5dfcbb3c4572..000000000000
--- a/app-admin/zope-config/files/0.4/zope-config
+++ /dev/null
@@ -1,515 +0,0 @@
-#!/bin/bash
-# vim: set noexpandtab ts=4:
-# Gentoo Zope Instance configure tool.
-#
-# Originally written by Jason Shoemaker <kutsuya@gentoo.org>
-# Portions by Jodok Batlogg <batlogg@gentoo.org> (Logging and some cleanups)
-# Portions by Robin Johnson <robbat2@gentoo.org> (Documentation and further cleanup)
-# Portions by Carter Smithhart <derheld42@derheld.net> (2.7.0 stuff)
-#
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/files/0.4/zope-config,v 1.6 2004/09/18 15:58:05 batlogg Exp $
-#
-#
-# Notes:
-# $ZI_DIR/.default holds name of default zope instance
-# $NEWZOPE is set to 1 if the zope server is 2.7.0 or newer
-#
-VERSION="0.4"
-
-CONFIGFILE=/etc/zope-config.conf
-if [ -e ${CONFIGFILE} ]; then
- source ${CONFIGFILE}
- EVENTLOGDIR=`dirname ${EVENTLOGDIR}`/`basename ${EVENTLOGDIR}`
-else
- echo "Unable to find config file: ${CONFIGFILE}" 1>&2
- exit 1
-fi
-
-
-
-# Return codes used in this program:
-E_SUCCESS=0
-E_FAILURE=1
-
-E_ZILIST=22
-E_PARAM=26
-E_ZSLIST=28
-E_ZIDEFAULT=30
-ZUID=''
-#Parameters:
-# $1 = instance directory
-# $2 = group
-# $3 = user
-zinst_security_setup()
-{
- if [ ${ZOPE27} ] ; then
- chown -R ${3}:${2} ${1}
- chmod -R o-rwx ${1}
- chmod -R g-w ${1}
- #chmod g+ws ${1}/{var,log}
- chmod g+rX -R ${1}
- #set owner and group on log dir
- chown -R ${ZUID}:${ZGID_NAME} ${EVENTLOGDIR}/${ZIRC_NAME}
- # permissions on log dir
- chmod -R 750 ${EVENTLOGDIR}/${ZIRC_NAME}
- else
- chown -R ${3}:${2} ${1}
- chmod -R g+u ${1}
- chmod -R o-rwx ${1}
- chown root ${1}/var/ # needed if $ZOPE_OPTS='-u root'
- chmod +t ${1}/var/
- fi
-}
-
-# params: $ZSERV_DIR
-# returns 1 if $ZSERV_DIR is a 2.7 or newer Zope. Also sets NEWZOPE to 1.
-zserv_is_2.7_or_newer()
-{
- TEXT=$(echo $1 | grep ${ZS_DIR2})
- if [ "$TEXT" = "" ] ; then
- NEWZOPE=0
- return 0;
- fi
- NEWZOPE=1
- return 1;
-}
-
-#Params:
-# $1 = zserv dir
-# $2 = zinst dir
-zinst_fs_setup()
-{
- local RESULT=${E_FAILURE}
- local USER=
- local PASS=
- local PASS2=
-
- if [ "${#}" -lt 2 ] ; then
- # need a param
- RESULT=${E_PARAM}
- elif [ ${ZOPE27} ] ; then
- if [ "x$3" == "xinituser" ] ; then
- ${BIN}/mkzopeinstance.py --user admin:admin --dir $2
- else
- ${BIN}/mkzopeinstance.py --dir $2
- fi
- # create the log directory
- mkdir ${EVENTLOGDIR}/${ZIRC_NAME}
- # remove log directory in skeltarget
- rm -r $2/log
- # symlink log directory
- ln -s ${EVENTLOGDIR}/${ZIRC_NAME} $2/log
- RESULT=$?
- else
- if [ $NEWZOPE = 1 ] ; then
- while : ; do
- USER=$(dialog --stdout \
- --backtitle "Please choose a username and password for the initial user." \
- --inputbox "Username:" 0 0 "admin")
- RESULT=$?
- if [ "$USER" != "" ] ; then
- break
- fi
- done
- while : ; do
- PASS=$(dialog --stdout \
- --backtitle "Please choose a username and password for the initial user." \
- --passwordbox "Password:" 0 0 "")
- RESULT=$?
- if [ "$PASS" = "" ] ; then
- continue
- fi
- PASS2=$(dialog --stdout \
- --backtitle "Please choose a username and password for the initial user." \
- --passwordbox "Reenter Password:" 0 0 "")
- RESULT=$?
- if [ "$PASS2" = "" ] ; then
- continue
- fi
- if [ $PASS = $PASS2 ] ; then
- break
- else
- dialog --msgbox "Passwords must be equal!" 0 0
- fi
- done
- su zope -c "$1/bin/mkzopeinstance.py --dir $2 --user $USER:$PASS"
- RESULT=${E_SUCCESS}
- else
- # prior to 2.7
- mkdir -p $2 || exit 1
- if [ $(zinst_default_get >/dev/null)$? -ne 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope:root ${ZI_DIR}/.default
- fi
-
- if [ -f $2/var/Data.fs ]; then
- mv $2/var/Data.fs $2/var/Data.fs.org
- fi
-
- cp -R $1/.templates/Extensions $2
- cp -R $1/.templates/import $2
- cp -R $1/.templates/var $2
- mkdir $2/Products
-
- if [ -f $2/var/Data.fs.org ]; then
- mv $2/var/Data.fs $2/var/Data.fs.dist
- mv $2/var/Data.fs.org $2/var/Data.fs
- fi
-
- RESULT=$?
- fi
- fi
-
- return ${RESULT}
-}
-
-#Params:
-# $1 = zserv dir
-# $2 = zinst dir
-# $3 = zinst name
-zinst_rc_setup()
-{
- local RESULT=${E_FAILURE}
-
- if [ "${#}" -lt 3 ] ; then
- # need a param
- RESULT=${E_PARAM}
- elif [ ${ZOPE27} ] ; then
- install $1/skel/zope.initd ${INITD}/${3}
- #echo "INSTANCE_HOME=${2}" >${CONFD}/$3
- #echo "EVENT_LOG_FILE=${EVENTLOGDIR}/${3}" >>${CONFD}/$3
- sed -i \
- -e "/^# *effective-user/ a\\effective-user ${ZUID}\\ " \
- ${2}/etc/zope.conf
- sed -i \
- -e "s|INSTANCE_HOME|${2}|" \
- ${INITD}/${3}
- RESULT=$?
- else
- if [ $NEWZOPE = 1 ] ; then
- install $1/.templates/zope.initd ${INITD}/${3}
- sed -i \
- -e "s|ZINST_DIR=|ZINST_DIR=${2}|" \
- -e "s|EVENT_LOG_FILE=|EVENT_LOG_FILE=${EVENTLOGDIR}\/${3}|" \
- ${INITD}/${3}
- RESULT=${E_SUCCESS}
- else
- install $1/.templates/zope.confd ${CONFD}/${3}
- install $1/.templates/zope.initd ${INITD}/${3}
- sed -i \
- -e "/INSTANCE_HOME=/ c\\INSTANCE_HOME=${2}\\ " \
- -e "/CLIENT_HOME=/ c\\CLIENT_HOME=${2}/var\\ " \
- -e "/EVENT_LOG_FILE=/ c\\EVENT_LOG_FILE=${EVENTLOGDIR}\/${3}\\ " \
- ${CONFD}/${3}
- RESULT=$?
- fi
- # make sure the directory exists
- mkdir -p ${EVENTLOGDIR} >/dev/null 2>&1
- fi
- return ${RESULT}
-}
-
-# Sets the variable: ZSERV_DIR and returns 0
-# or returns a non-zero error code
-zserv_dir_get()
-{
- local RESULT=${E_FAILURE}
- local LIST=$(ls -d ${ZS_DIR}* ; ls -d ${ZS_DIR2}*)
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- # Assume that LIST_TMP contains valid zserver dirs.
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZSERV_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- ZSERV_DIR=$(dialog --stdout \
- --title "Zope Server List" \
- --menu "Select desired zserver: " 0 40 ${LIST_CNT} ${DLIST})
- RESULT=$?
- else
- RESULT=${E_ZSLIST} # There are no zservers
- fi
-
- # set NEWZOPE to 1 if we are dealing with a "newer" zope version
- zserv_is_2.7_or_newer ${ZERV_DIR}
-
- return ${RESULT}
-}
-
-# Sets the variable: ZINST_DIR and returns 0
-# or returns a non-zero error code
-zinst_dir_set()
-{
- local RESULT=
-
- if [ ! -d ${ZI_DIR} ] ; then
- mkdir -p ${ZI_DIR}
- fi
-
- while : ; do
- ZINST_DIR=$(dialog --stdout \
- --backtitle "We need a unique name for the zinstance directory. (This will be the name of the rcscript.)" \
- --inputbox "Enter a new zinstance name:" 0 0 ${DEFAULT_ZINSTANCENAME} )
- RESULT=$?
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZINST_DIR} ] ; then
- dialog --msgbox "Error: need a name." 0 0
- continue
- elif echo ${ZINST_DIR} |grep "/" ; then
- dialog --msgbox "Error: ${ZINST_DIR} is a path, not a name." 0 0
- continue
- elif [[ -d "${ZI_DIR}${ZINST_DIR}" && \
- -f "${INITD}/${ZINST_DIR}" ]] ; then
- dialog --msgbox "Error: ${ZINST_DIR} zinstance already exists. Delete ${INITD}/${ZINST_DIR} to replace instance." 0 0
- continue
- fi
- ZINST_DIR=${ZI_DIR}${ZINST_DIR}
- break
- done
- return ${RESULT}
-}
-
-# sets the variable $ZINST_DIR and returns 0
-# or returns non-null error code
-zinst_dir_get()
-{
- local RESULT=1
- local LIST=$(ls ${ZI_DIR})
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- # Assume that LIST_TMP contains valid zinstance dirs.
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZINST_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- ZINST_DIR=$(dialog --stdout \
- --title "Zope Instance List" \
- --menu "Select desired zinstance:" 0 0 ${LIST_CNT} ${DLIST})
- RESULT=$?
- else
- RESULT=${E_ZILIST} # There are no zinstances
- fi
- ZINST_DIR="${ZI_DIR}${ZINST_DIR}"
- return ${RESULT}
-}
-
-# makes ZSERV_DIR the default zope version. if ZSERV_DIR
-zinst_default_set()
-{
- local RESULT=
-
- if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_get || { echo 'Cancelled: zinst_dir_get' ; exit 1 ; }
- fi
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope ${ZI_DIR}/.default
- fi
-
- return ${RESULT}
-}
-
-# Echos the default directory that this instance was created in
-zinst_default_get()
-{
- local RESULT=${E_ZIDEFAULT}
-
- if [ -s ${ZI_DIR}/.default ] ; then
- cat ${ZI_DIR}/.default
- RESULT=$? # use to be 0
- fi
- return ${RESULT}
-}
-
-# Gets a name for the group that owns the new zinstance and also creates the
-# group if nessicary
-zinst_zgid_set()
-{
- local RESULT=
- while : ; do
- ZGID_NAME=$(dialog --stdout \
- --backtitle "We need to create and/or assign a zinstance group name." \
- --inputbox "Enter a group name:" \
- 0 0 $(basename ${ZIRC_NAME}))
- RESULT=$?
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZGID_NAME} ] ; then
- dialog --msgbox "Error: empty string." 0 0
- continue
- elif groupmod ${ZGID_NAME} >/dev/null 2>&1 ; then
- dialog --yesno "The group ${ZGID_NAME} already exists. Do you want to use it?" 0 0
- RESULT=$?
- [ ${RESULT} -ne 0 ] && continue
- fi
- break
- done
- return ${RESULT}
-}
-
-# Gets a name for the user that owns the new zinstance and also creates the
-# group if nessicary, this is the user zope runs as
-zinst_zuid_set()
-{
- local RESULT=
- while : ; do
- ZUID=$(dialog --stdout \
- --backtitle "We need to create and/or assign a zinstance user name." \
- --inputbox "Enter a user name:" \
- 0 0 $(basename ${ZIRC_NAME}))
- RESULT=$?
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZUID} ] ; then
- dialog --msgbox "Error: empty string." 0 0
- continue
- elif egrep "^${ZUID}:" /etc/passwd >/dev/null 2>&1 ; then
- dialog --yesno "The user ${ZUID} already exists. Do you want to use it?" 0 0
- RESULT=$?
- [ ${RESULT} -ne 0 ] && continue
- fi
- break
- done
- return ${RESULT}
-}
-
-# Sets the inituser password for a given zinstance
-zinst_zpasswd_set()
-{
- if [ -z ${ZSERV_DIR} ] ; then
- zserv_dir_get || { exit $? ; }
- fi
- if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_get || exit $?
- fi
-
- zserv_is_2.7_or_newer ${ZSERV_DIR}
- if [ $NEWZOPE = 1 ] ; then
- echo ">>> Creating a Zope inituser for \"$(basename ${ZINST_DIR})\"..."
- /usr/bin/python ${BIN}/zpasswd.py ${ZINST_DIR}/inituser
- # If zpasswd is aborted it creates a blank inituser
- chown ${ZUID} ${ZINST_DIR}/inituser
- else
- echo ">>> Creating a Zope inituser for \"$(basename ${ZINST_DIR})\"..."
- /usr/bin/python ${ZSERV_DIR}/zpasswd.py ${ZINST_DIR}/inituser
- # If zpasswd is aborted it creates a blank inituser
- chown ${ZUID} ${ZINST_DIR}/inituser
- fi
-}
-
-# help!
-
-usage()
-{
- echo "$(basename $0) version ${VERSION}"
- echo "A Gentoo Zope instance configuration tool."
- echo
- echo "Interactive usage:"
- echo -e "\t$(basename $0)"
- echo "Partial interactive usage:"
- echo -e "\t$(basename $0) --[zserv=[dir] &| zinst=[dir] &| zgid=[name]]"
- echo "Non-interactive usage:"
- echo -e "\t$(basename $0) --[zidef-get | zidef-set | zpasswd | version | help]"
- echo -e "\t$(basename $0) --[zserv=[dir] & zinst=[di] & zgid=[name]]"
- exit ${E_SUCCESS}
-}
-
-zserv_version_detect()
-{
- if [ -d "${ZSERV_DIR}/bin" ] ; then
- ZOPE27=1
- BIN=${ZSERV_DIR}/bin
- else
- ZOPE27=0
- BIN=${ZSERV_DIR}
- fi
-}
-
-##### Process the commandline
-
-while [ "$#" -gt 0 ] ; do
- case "$1" in
- -*=*) OPTARG=$(echo "$1" | sed 's/[-_a-zA-Z0-9:]*=//') ;;
- *) OPTARG= ;;
- esac
-
- case "$1" in
- --zserv=*) ZSERV_DIR=${OPTARG} ; zserv_version_detect ;;
- --zinst=*) ZINST_DIR=${OPTARG} ;;
- --zgid=*) ZGID_NAME=${OPTARG} ;;
- --zuid=*) ZUID=${OPTARG} ;;
- --zinituser) ZINIT_USER=inituser ;;
- --zidef-set) zinst_default_set ; exit $? ;;
- --zidef-get) zinst_default_get ; exit $? ;;
- --zpasswd) zinst_zpasswd_set ; exit $? ;;
- --version) echo ${VERSION} ; exit 0 ;;
- -*) usage ; exit 0 ;;
- *) usage ; exit 0 ;;
- esac
- shift
-done
-
-# if ZSERV_DIR isn't set by command line, call zserv_dir_get to set it
-if [ -z ${ZSERV_DIR} ] ; then
- zserv_dir_get || { echo 'Cancelled: zserv_dir_get' ; exit 1 ; }
- zserv_version_detect
-else
- ZSERV_DIR=`dirname ${ZSERV_DIR}`/`basename ${ZSERV_DIR}`
-fi
-
-# if ZINST_DIR passed by command line, call zinst_dir_set to set it
-if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_set || { echo 'Cancelled: zinst_dir_set' ; exit 1 ; }
-else
- ZINST_DIR=`dirname ${ZINST_DIR}`/`basename ${ZINST_DIR}`
-fi
-
-# if ZIRC_NAME isn't set then use the base of the ZINST_DIR for ZIRC_NAME
-[ -z ${ZIRC_NAME} ] && ZIRC_NAME=$(basename ${ZINST_DIR})
-
-if [ -z ${ZUID} ] ; then
- zinst_zuid_set || { echo 'Cancelled: zinst_zuid_set' ; exit 1 ; }
-fi
-
-if [ -z ${ZGID_NAME} ] ; then
- zinst_zgid_set || { echo 'Cancelled: zinst_zgid_set' ; exit 1 ; }
-fi
-
-
-
-zserv_is_2.7_or_newer ${ZSERV_DIR}
-
-! groupmod ${ZGID_NAME} >/dev/null 2>&1 && groupadd ${ZGID_NAME}
-zinst_fs_setup ${ZSERV_DIR} ${ZINST_DIR} ${ZINIT_USER}
-zinst_rc_setup ${ZSERV_DIR} ${ZINST_DIR} ${ZIRC_NAME}
-
-# create user if needed
-useradd -g ${ZGID_NAME} ${ZUID}
-
-
-# add existing user to the new group
-gpasswd -a ${ZUID} ${ZGID_NAME}
-
-zinst_security_setup ${ZINST_DIR} ${ZGID_NAME} ${ZUID}
-# TODO: see about adding interactive configuration of ZOPE_OPTS
-if [ ${ZOPE27} ] ; then
- echo "Note: Review settings in ${ZINST_DIR}/etc/zope.conf."
- echo "Then you can start your new instance with:"
- echo " /etc/init.d/${ZIRC_NAME} start"
-else
- echo "Note: Don\'t forget to edit ZOPE_OPTS in ${CONFD}${ZIRC_NAME}"
- echo " (you might want to add -P 8{1,2,3,..}00 to set the zope ports offset)"
-fi
-
diff --git a/app-admin/zope-config/files/0.4/zope-config.conf b/app-admin/zope-config/files/0.4/zope-config.conf
deleted file mode 100644
index 312e5bdbbd22..000000000000
--- a/app-admin/zope-config/files/0.4/zope-config.conf
+++ /dev/null
@@ -1,30 +0,0 @@
-# vim: set noexpandtab ts=4 ft=sh:
-# Gentoo Zope Instance configure tool config file.
-#
-# Originally written by Jason Shoemaker <kutsuya@gentoo.org>
-# Portions by Jodok Batlogg <batlogg@gentoo.org> (Logging and some cleanups)
-# Portions by Robin Johnson <robbat2@gentoo.org> (Documentation and further cleanup)
-#
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/files/0.4/zope-config.conf,v 1.3 2004/07/24 22:19:46 batlogg Exp $
-
-# default name for new instances
-DEFAULT_ZINSTANCENAME="zope-"
-
-# Logging directory
-EVENTLOGDIR="/var/log/zope/"
-
-# you probably shouldn't change anything below this
-# -------------------------------------------------
-# Name of zope user on your system
-ZUID=zope
-# This is where the real zope lives
-ZS_DIR="/usr/share/zope/"
-ZS_DIR2="/usr/lib/zope-"
-# This is where we will put our new instance of zope
-ZI_DIR="/var/lib/zope/"
-# place for init script
-# and it's associated configuration file
-INITD="/etc/init.d/"
-CONFD="/etc/conf.d/"
diff --git a/app-admin/zope-config/files/0.5/zope-config b/app-admin/zope-config/files/0.5/zope-config
deleted file mode 100644
index 48a722313f82..000000000000
--- a/app-admin/zope-config/files/0.5/zope-config
+++ /dev/null
@@ -1,520 +0,0 @@
-#!/bin/bash
-# vim: set noexpandtab ts=4:
-# Gentoo Zope Instance configure tool.
-#
-# Originally written by Jason Shoemaker <kutsuya@gentoo.org>
-# Portions by Jodok Batlogg <batlogg@gentoo.org> (Logging and some cleanups)
-# Portions by Robin Johnson <robbat2@gentoo.org> (Documentation and further cleanup)
-# Portions by Carter Smithhart <derheld42@derheld.net> (2.7.0 stuff)
-#
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/files/0.5/zope-config,v 1.2 2005/12/24 13:12:42 radek Exp $
-#
-#
-# Notes:
-# $ZI_DIR/.default holds name of default zope instance
-# $NEWZOPE is set to 1 if the zope server is 2.7.0 or newer
-#
-VERSION="0.5"
-
-CONFIGFILE=/etc/zope-config.conf
-if [ -e ${CONFIGFILE} ]; then
- source ${CONFIGFILE}
- EVENTLOGDIR=`dirname ${EVENTLOGDIR}`/`basename ${EVENTLOGDIR}`
-else
- echo "Unable to find config file: ${CONFIGFILE}" 1>&2
- exit 1
-fi
-
-
-
-# Return codes used in this program:
-E_SUCCESS=0
-E_FAILURE=1
-
-E_ZILIST=22
-E_PARAM=26
-E_ZSLIST=28
-E_ZIDEFAULT=30
-ZUID=''
-#Parameters:
-# $1 = instance directory
-# $2 = group
-# $3 = user
-zinst_security_setup()
-{
- if [ ${ZOPE27} ] ; then
- chown -R ${3}:${2} ${1}
- chmod -R o-rwx ${1}
- chmod -R g-w ${1}
- #chmod g+ws ${1}/{var,log}
- chmod g+rX -R ${1}
- #set owner and group on log dir
- chown -R ${ZUID}:${ZGID_NAME} ${EVENTLOGDIR}/${ZIRC_NAME}
- # permissions on log dir
- chmod -R 750 ${EVENTLOGDIR}/${ZIRC_NAME}
- else
- chown -R ${3}:${2} ${1}
- chmod -R g+u ${1}
- chmod -R o-rwx ${1}
- chown root ${1}/var/ # needed if $ZOPE_OPTS='-u root'
- chmod +t ${1}/var/
- fi
-}
-
-# params: $ZSERV_DIR
-# returns 1 if $ZSERV_DIR is a 2.7 or newer Zope. Also sets NEWZOPE to 1.
-zserv_is_2.7_or_newer()
-{
- TEXT=$(echo $1 | grep ${ZS_DIR2})
- if [ "$TEXT" = "" ] ; then
- NEWZOPE=0
- return 0;
- fi
- NEWZOPE=1
- return 1;
-}
-
-#Params:
-# $1 = zserv dir
-# $2 = zinst dir
-zinst_fs_setup()
-{
- local RESULT=${E_FAILURE}
- local USER=
- local PASS=
- local PASS2=
-
- if [ "${#}" -lt 2 ] ; then
- # need a param
- RESULT=${E_PARAM}
- elif [ ${ZOPE27} ] ; then
- if [ "x$3" == "xinituser" ] ; then
- ${BIN}/mkzopeinstance.py --user admin:admin --dir $2
- else
- ${BIN}/mkzopeinstance.py --dir $2
- fi
- # sets default instance if just created is first one
- if [ $(zinst_default_get >/dev/null)$? -ne 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope:root ${ZI_DIR}/.default
- fi
- # create the log directory
- mkdir ${EVENTLOGDIR}/${ZIRC_NAME}
- # remove log directory in skeltarget
- rm -r $2/log
- # symlink log directory
- ln -s ${EVENTLOGDIR}/${ZIRC_NAME} $2/log
- RESULT=$?
- else
- if [ $NEWZOPE = 1 ] ; then
- while : ; do
- USER=$(dialog --stdout \
- --backtitle "Please choose a username and password for the initial user." \
- --inputbox "Username:" 0 0 "admin")
- RESULT=$?
- if [ "$USER" != "" ] ; then
- break
- fi
- done
- while : ; do
- PASS=$(dialog --stdout \
- --backtitle "Please choose a username and password for the initial user." \
- --passwordbox "Password:" 0 0 "")
- RESULT=$?
- if [ "$PASS" = "" ] ; then
- continue
- fi
- PASS2=$(dialog --stdout \
- --backtitle "Please choose a username and password for the initial user." \
- --passwordbox "Reenter Password:" 0 0 "")
- RESULT=$?
- if [ "$PASS2" = "" ] ; then
- continue
- fi
- if [ $PASS = $PASS2 ] ; then
- break
- else
- dialog --msgbox "Passwords must be equal!" 0 0
- fi
- done
- su zope -c "$1/bin/mkzopeinstance.py --dir $2 --user $USER:$PASS"
- RESULT=${E_SUCCESS}
- else
- # prior to 2.7
- mkdir -p $2 || exit 1
- if [ $(zinst_default_get >/dev/null)$? -ne 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope:root ${ZI_DIR}/.default
- fi
-
- if [ -f $2/var/Data.fs ]; then
- mv $2/var/Data.fs $2/var/Data.fs.org
- fi
-
- cp -R $1/.templates/Extensions $2
- cp -R $1/.templates/import $2
- cp -R $1/.templates/var $2
- mkdir $2/Products
-
- if [ -f $2/var/Data.fs.org ]; then
- mv $2/var/Data.fs $2/var/Data.fs.dist
- mv $2/var/Data.fs.org $2/var/Data.fs
- fi
-
- RESULT=$?
- fi
- fi
-
- return ${RESULT}
-}
-
-#Params:
-# $1 = zserv dir
-# $2 = zinst dir
-# $3 = zinst name
-zinst_rc_setup()
-{
- local RESULT=${E_FAILURE}
-
- if [ "${#}" -lt 3 ] ; then
- # need a param
- RESULT=${E_PARAM}
- elif [ ${ZOPE27} ] ; then
- install $1/skel/zope.initd ${INITD}/${3}
- #echo "INSTANCE_HOME=${2}" >${CONFD}/$3
- #echo "EVENT_LOG_FILE=${EVENTLOGDIR}/${3}" >>${CONFD}/$3
- sed -i \
- -e "/^# *effective-user/ a\\effective-user ${ZUID}\\ " \
- ${2}/etc/zope.conf
- sed -i \
- -e "s|INSTANCE_HOME|${2}|" \
- ${INITD}/${3}
- RESULT=$?
- else
- if [ $NEWZOPE = 1 ] ; then
- install $1/.templates/zope.initd ${INITD}/${3}
- sed -i \
- -e "s|ZINST_DIR=|ZINST_DIR=${2}|" \
- -e "s|EVENT_LOG_FILE=|EVENT_LOG_FILE=${EVENTLOGDIR}\/${3}|" \
- ${INITD}/${3}
- RESULT=${E_SUCCESS}
- else
- install $1/.templates/zope.confd ${CONFD}/${3}
- install $1/.templates/zope.initd ${INITD}/${3}
- sed -i \
- -e "/INSTANCE_HOME=/ c\\INSTANCE_HOME=${2}\\ " \
- -e "/CLIENT_HOME=/ c\\CLIENT_HOME=${2}/var\\ " \
- -e "/EVENT_LOG_FILE=/ c\\EVENT_LOG_FILE=${EVENTLOGDIR}\/${3}\\ " \
- ${CONFD}/${3}
- RESULT=$?
- fi
- # make sure the directory exists
- mkdir -p ${EVENTLOGDIR} >/dev/null 2>&1
- fi
- return ${RESULT}
-}
-
-# Sets the variable: ZSERV_DIR and returns 0
-# or returns a non-zero error code
-zserv_dir_get()
-{
- local RESULT=${E_FAILURE}
- local LIST=$(ls -d ${ZS_DIR}* ; ls -d ${ZS_DIR2}*)
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- # Assume that LIST_TMP contains valid zserver dirs.
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZSERV_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- ZSERV_DIR=$(dialog --stdout \
- --title "Zope Server List" \
- --menu "Select desired zserver: " 0 40 ${LIST_CNT} ${DLIST})
- RESULT=$?
- else
- RESULT=${E_ZSLIST} # There are no zservers
- fi
-
- # set NEWZOPE to 1 if we are dealing with a "newer" zope version
- zserv_is_2.7_or_newer ${ZERV_DIR}
-
- return ${RESULT}
-}
-
-# Sets the variable: ZINST_DIR and returns 0
-# or returns a non-zero error code
-zinst_dir_set()
-{
- local RESULT=
-
- if [ ! -d ${ZI_DIR} ] ; then
- mkdir -p ${ZI_DIR}
- fi
-
- while : ; do
- ZINST_DIR=$(dialog --stdout \
- --backtitle "We need a unique name for the zinstance directory. (This will be the name of the rcscript.)" \
- --inputbox "Enter a new zinstance name:" 0 0 ${DEFAULT_ZINSTANCENAME} )
- RESULT=$?
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZINST_DIR} ] ; then
- dialog --msgbox "Error: need a name." 0 0
- continue
- elif echo ${ZINST_DIR} |grep "/" ; then
- dialog --msgbox "Error: ${ZINST_DIR} is a path, not a name." 0 0
- continue
- elif [[ -d "${ZI_DIR}${ZINST_DIR}" && \
- -f "${INITD}/${ZINST_DIR}" ]] ; then
- dialog --msgbox "Error: ${ZINST_DIR} zinstance already exists. Delete ${INITD}/${ZINST_DIR} to replace instance." 0 0
- continue
- fi
- ZINST_DIR=${ZI_DIR}${ZINST_DIR}
- break
- done
- return ${RESULT}
-}
-
-# sets the variable $ZINST_DIR and returns 0
-# or returns non-null error code
-zinst_dir_get()
-{
- local RESULT=1
- local LIST=$(ls ${ZI_DIR})
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- # Assume that LIST_TMP contains valid zinstance dirs.
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZINST_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- ZINST_DIR=$(dialog --stdout \
- --title "Zope Instance List" \
- --menu "Select desired zinstance:" 0 0 ${LIST_CNT} ${DLIST})
- RESULT=$?
- else
- RESULT=${E_ZILIST} # There are no zinstances
- fi
- ZINST_DIR="${ZI_DIR}${ZINST_DIR}"
- return ${RESULT}
-}
-
-# makes ZSERV_DIR the default zope version. if ZSERV_DIR
-zinst_default_set()
-{
- local RESULT=
-
- if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_get || { echo 'Cancelled: zinst_dir_get' ; exit 1 ; }
- fi
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope ${ZI_DIR}/.default
- fi
-
- return ${RESULT}
-}
-
-# Echos the default directory that this instance was created in
-zinst_default_get()
-{
- local RESULT=${E_ZIDEFAULT}
-
- if [ -s ${ZI_DIR}/.default ] ; then
- cat ${ZI_DIR}/.default
- RESULT=$? # use to be 0
- fi
- return ${RESULT}
-}
-
-# Gets a name for the group that owns the new zinstance and also creates the
-# group if nessicary
-zinst_zgid_set()
-{
- local RESULT=
- while : ; do
- ZGID_NAME=$(dialog --stdout \
- --backtitle "We need to create and/or assign a zinstance group name." \
- --inputbox "Enter a group name:" \
- 0 0 $(basename ${ZIRC_NAME}))
- RESULT=$?
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZGID_NAME} ] ; then
- dialog --msgbox "Error: empty string." 0 0
- continue
- elif groupmod ${ZGID_NAME} >/dev/null 2>&1 ; then
- dialog --yesno "The group ${ZGID_NAME} already exists. Do you want to use it?" 0 0
- RESULT=$?
- [ ${RESULT} -ne 0 ] && continue
- fi
- break
- done
- return ${RESULT}
-}
-
-# Gets a name for the user that owns the new zinstance and also creates the
-# group if nessicary, this is the user zope runs as
-zinst_zuid_set()
-{
- local RESULT=
- while : ; do
- ZUID=$(dialog --stdout \
- --backtitle "We need to create and/or assign a zinstance user name." \
- --inputbox "Enter a user name:" \
- 0 0 $(basename ${ZIRC_NAME}))
- RESULT=$?
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZUID} ] ; then
- dialog --msgbox "Error: empty string." 0 0
- continue
- elif egrep "^${ZUID}:" /etc/passwd >/dev/null 2>&1 ; then
- dialog --yesno "The user ${ZUID} already exists. Do you want to use it?" 0 0
- RESULT=$?
- [ ${RESULT} -ne 0 ] && continue
- fi
- break
- done
- return ${RESULT}
-}
-
-# Sets the inituser password for a given zinstance
-zinst_zpasswd_set()
-{
- if [ -z ${ZSERV_DIR} ] ; then
- zserv_dir_get || { exit $? ; }
- fi
- if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_get || exit $?
- fi
-
- zserv_is_2.7_or_newer ${ZSERV_DIR}
- if [ $NEWZOPE = 1 ] ; then
- echo ">>> Creating a Zope inituser for \"$(basename ${ZINST_DIR})\"..."
- /usr/bin/python ${BIN}/zpasswd.py ${ZINST_DIR}/inituser
- # If zpasswd is aborted it creates a blank inituser
- chown ${ZUID} ${ZINST_DIR}/inituser
- else
- echo ">>> Creating a Zope inituser for \"$(basename ${ZINST_DIR})\"..."
- /usr/bin/python ${ZSERV_DIR}/zpasswd.py ${ZINST_DIR}/inituser
- # If zpasswd is aborted it creates a blank inituser
- chown ${ZUID} ${ZINST_DIR}/inituser
- fi
-}
-
-# help!
-
-usage()
-{
- echo "$(basename $0) version ${VERSION}"
- echo "A Gentoo Zope instance configuration tool."
- echo
- echo "Interactive usage:"
- echo -e "\t$(basename $0)"
- echo "Partial interactive usage:"
- echo -e "\t$(basename $0) --[zserv=[dir] &| zinst=[dir] &| zgid=[name]]"
- echo "Non-interactive usage:"
- echo -e "\t$(basename $0) --[zidef-get | zidef-set | zpasswd | version | help]"
- echo -e "\t$(basename $0) --[zserv=[dir] & zinst=[di] & zgid=[name]]"
- exit ${E_SUCCESS}
-}
-
-zserv_version_detect()
-{
- if [ -d "${ZSERV_DIR}/bin" ] ; then
- ZOPE27=1
- BIN=${ZSERV_DIR}/bin
- else
- ZOPE27=0
- BIN=${ZSERV_DIR}
- fi
-}
-
-##### Process the commandline
-
-while [ "$#" -gt 0 ] ; do
- case "$1" in
- -*=*) OPTARG=$(echo "$1" | sed 's/[-_a-zA-Z0-9:]*=//') ;;
- *) OPTARG= ;;
- esac
-
- case "$1" in
- --zserv=*) ZSERV_DIR=${OPTARG} ; zserv_version_detect ;;
- --zinst=*) ZINST_DIR=${OPTARG} ;;
- --zgid=*) ZGID_NAME=${OPTARG} ;;
- --zuid=*) ZUID=${OPTARG} ;;
- --zinituser) ZINIT_USER=inituser ;;
- --zidef-set) zinst_default_set ; exit $? ;;
- --zidef-get) zinst_default_get ; exit $? ;;
- --zpasswd) zinst_zpasswd_set ; exit $? ;;
- --version) echo ${VERSION} ; exit 0 ;;
- -*) usage ; exit 0 ;;
- *) usage ; exit 0 ;;
- esac
- shift
-done
-
-# if ZSERV_DIR isn't set by command line, call zserv_dir_get to set it
-if [ -z ${ZSERV_DIR} ] ; then
- zserv_dir_get || { echo 'Cancelled: zserv_dir_get' ; exit 1 ; }
- zserv_version_detect
-else
- ZSERV_DIR=`dirname ${ZSERV_DIR}`/`basename ${ZSERV_DIR}`
-fi
-
-# if ZINST_DIR passed by command line, call zinst_dir_set to set it
-if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_set || { echo 'Cancelled: zinst_dir_set' ; exit 1 ; }
-else
- ZINST_DIR=`dirname ${ZINST_DIR}`/`basename ${ZINST_DIR}`
-fi
-
-# if ZIRC_NAME isn't set then use the base of the ZINST_DIR for ZIRC_NAME
-[ -z ${ZIRC_NAME} ] && ZIRC_NAME=$(basename ${ZINST_DIR})
-
-if [ -z ${ZUID} ] ; then
- zinst_zuid_set || { echo 'Cancelled: zinst_zuid_set' ; exit 1 ; }
-fi
-
-if [ -z ${ZGID_NAME} ] ; then
- zinst_zgid_set || { echo 'Cancelled: zinst_zgid_set' ; exit 1 ; }
-fi
-
-
-
-zserv_is_2.7_or_newer ${ZSERV_DIR}
-
-! groupmod ${ZGID_NAME} >/dev/null 2>&1 && groupadd ${ZGID_NAME}
-zinst_fs_setup ${ZSERV_DIR} ${ZINST_DIR} ${ZINIT_USER}
-zinst_rc_setup ${ZSERV_DIR} ${ZINST_DIR} ${ZIRC_NAME}
-
-# create user if needed
-useradd -g ${ZGID_NAME} ${ZUID}
-
-
-# add existing user to the new group
-gpasswd -a ${ZUID} ${ZGID_NAME}
-
-zinst_security_setup ${ZINST_DIR} ${ZGID_NAME} ${ZUID}
-# TODO: see about adding interactive configuration of ZOPE_OPTS
-if [ ${ZOPE27} ] ; then
- echo "Note: Review settings in ${ZINST_DIR}/etc/zope.conf."
- echo "Then you can start your new instance with:"
- echo " /etc/init.d/${ZIRC_NAME} start"
-else
- echo "Note: Don\'t forget to edit ZOPE_OPTS in ${CONFD}${ZIRC_NAME}"
- echo " (you might want to add -P 8{1,2,3,..}00 to set the zope ports offset)"
-fi
-
diff --git a/app-admin/zope-config/files/0.5/zope-config-0.5.patch b/app-admin/zope-config/files/0.5/zope-config-0.5.patch
deleted file mode 100644
index 7d265e4cf1fa..000000000000
--- a/app-admin/zope-config/files/0.5/zope-config-0.5.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- a/zope-config 2004-10-07 22:50:21.213319592 +0200
-+++ b/zope-config 2004-10-07 22:45:46.249120504 +0200
-@@ -95,12 +95,17 @@
- else
- ${BIN}/mkzopeinstance.py --dir $2
- fi
-- # create the log directory
-- mkdir ${EVENTLOGDIR}/${ZIRC_NAME}
-- # remove log directory in skeltarget
-- rm -r $2/log
-- # symlink log directory
-- ln -s ${EVENTLOGDIR}/${ZIRC_NAME} $2/log
-+ # sets default instance if just created is first one
-+ if [ $(zinst_default_get >/dev/null)$? -ne 0 ] ; then
-+ echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
-+ chown zope:root ${ZI_DIR}/.default
-+ fi
-+ # create the log directory
-+ mkdir ${EVENTLOGDIR}/${ZIRC_NAME}
-+ # remove log directory in skeltarget
-+ rm -r $2/log
-+ # symlink log directory
-+ ln -s ${EVENTLOGDIR}/${ZIRC_NAME} $2/log
- RESULT=$?
- else
- if [ $NEWZOPE = 1 ] ; then
diff --git a/app-admin/zope-config/files/0.5/zope-config.conf b/app-admin/zope-config/files/0.5/zope-config.conf
deleted file mode 100644
index 753bd36b2b37..000000000000
--- a/app-admin/zope-config/files/0.5/zope-config.conf
+++ /dev/null
@@ -1,30 +0,0 @@
-# vim: set noexpandtab ts=4 ft=sh:
-# Gentoo Zope Instance configure tool config file.
-#
-# Originally written by Jason Shoemaker <kutsuya@gentoo.org>
-# Portions by Jodok Batlogg <batlogg@gentoo.org> (Logging and some cleanups)
-# Portions by Robin Johnson <robbat2@gentoo.org> (Documentation and further cleanup)
-#
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/files/0.5/zope-config.conf,v 1.1 2005/01/02 14:05:24 batlogg Exp $
-
-# default name for new instances
-DEFAULT_ZINSTANCENAME="zope-"
-
-# Logging directory
-EVENTLOGDIR="/var/log/zope/"
-
-# you probably shouldn't change anything below this
-# -------------------------------------------------
-# Name of zope user on your system
-ZUID=zope
-# This is where the real zope lives
-ZS_DIR="/usr/share/zope/"
-ZS_DIR2="/usr/lib/zope-"
-# This is where we will put our new instance of zope
-ZI_DIR="/var/lib/zope/"
-# place for init script
-# and it's associated configuration file
-INITD="/etc/init.d/"
-CONFD="/etc/conf.d/"
diff --git a/app-admin/zope-config/files/0.6/zope-config b/app-admin/zope-config/files/0.6/zope-config
deleted file mode 100755
index e72605f693dc..000000000000
--- a/app-admin/zope-config/files/0.6/zope-config
+++ /dev/null
@@ -1,531 +0,0 @@
-#!/bin/bash
-# vim: set noexpandtab ts=4:
-# Gentoo Zope Instance configure tool.
-#
-# Originally written by Jason Shoemaker <kutsuya@gentoo.org>
-# Portions by Jodok Batlogg <batlogg@gentoo.org> (Logging and some cleanups)
-# Portions by Robin Johnson <robbat2@gentoo.org> (Documentation and further cleanup)
-# Portions by Carter Smithhart <derheld42@derheld.net> (2.7.0 stuff)
-#
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/files/0.6/zope-config,v 1.1 2008/11/16 15:11:23 tupone Exp $
-#
-#
-# Notes:
-# $ZI_DIR/.default holds name of default zope instance
-# $NEWZOPE is set to 1 if the zope server is 2.7.0 or newer
-#
-VERSION="0.6"
-
-CONFIGFILE=/etc/zope-config.conf
-if [ -e ${CONFIGFILE} ]; then
- source ${CONFIGFILE}
- EVENTLOGDIR=`dirname ${EVENTLOGDIR}`/`basename ${EVENTLOGDIR}`
-else
- echo "Unable to find config file: ${CONFIGFILE}" 1>&2
- exit 1
-fi
-
-
-
-# Return codes used in this program:
-E_SUCCESS=0
-E_FAILURE=1
-
-E_ZILIST=22
-E_PARAM=26
-E_ZSLIST=28
-E_ZIDEFAULT=30
-ZUID=''
-#Parameters:
-# $1 = instance directory
-# $2 = group
-# $3 = user
-zinst_security_setup()
-{
- if [ ${ZOPE27} ] ; then
- chown -R ${3}:${2} ${1}
- chmod -R o-rwx ${1}
- chmod -R g-w ${1}
- #chmod g+ws ${1}/{var,log}
- chmod g+rX -R ${1}
- #set owner and group on log dir
- chown -R ${ZUID}:${ZGID_NAME} ${EVENTLOGDIR}/${ZIRC_NAME}
- # permissions on log dir
- chmod -R 750 ${EVENTLOGDIR}/${ZIRC_NAME}
- else
- chown -R ${3}:${2} ${1}
- chmod -R g+u ${1}
- chmod -R o-rwx ${1}
- chown root ${1}/var/ # needed if $ZOPE_OPTS='-u root'
- chmod +t ${1}/var/
- fi
-}
-
-# params: $ZSERV_DIR
-# returns 1 if $ZSERV_DIR is a 2.7 or newer Zope. Also sets NEWZOPE to 1.
-zserv_is_2.7_or_newer()
-{
- TEXT=$(echo $1 | grep ${ZS_DIR2})
- if [ "$TEXT" = "" ] ; then
- NEWZOPE=0
- return 0;
- fi
- NEWZOPE=1
- return 1;
-}
-
-#Params:
-# $1 = zserv dir
-# $2 = zinst dir
-zinst_fs_setup()
-{
- local RESULT=${E_FAILURE}
- local USER=
- local PASS=
- local PASS2=
-
- if [ "${#}" -lt 2 ] ; then
- # need a param
- RESULT=${E_PARAM}
- elif [ ${ZOPE27} ] ; then
- if [ "x$3" == "xinituser" ] ; then
- ${BIN}/mkzopeinstance.py --user admin:admin --dir $2
- else
- ${BIN}/mkzopeinstance.py --dir $2
- fi
- # sets default instance if just created is first one
- if [ $(zinst_default_get >/dev/null)$? -ne 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope:root ${ZI_DIR}/.default
- fi
- # create the log directory
- mkdir ${EVENTLOGDIR}/${ZIRC_NAME}
- # remove log directory in skeltarget
- rm -r $2/log
- # symlink log directory
- ln -s ${EVENTLOGDIR}/${ZIRC_NAME} $2/log
- RESULT=$?
- else
- if [ $NEWZOPE = 1 ] ; then
- while : ; do
- dialog \
- --backtitle "Please choose a username and password for the initial user." \
- --inputbox "Username:" 0 0 "admin" 2> $tempfile
- RESULT=$?
- USER=$(cat $tempfile)
- if [ "$USER" != "" ] ; then
- break
- fi
- done
- while : ; do
- dialog \
- --backtitle "Please choose a username and password for the initial user." \
- --passwordbox "Password:" 0 0 "" 2> $tempfile
- RESULT=$?
- PASS=$(cat $tempfile)
- if [ "$PASS" = "" ] ; then
- continue
- fi
- dialog \
- --backtitle "Please choose a username and password for the initial user." \
- --passwordbox "Reenter Password:" 0 0 "" 2> $tempfile
- RESULT=$?
- PASS2=$(cat $tempfile)
- if [ "$PASS2" = "" ] ; then
- continue
- fi
- if [ $PASS = $PASS2 ] ; then
- break
- else
- dialog --msgbox "Passwords must be equal!" 0 0
- fi
- done
- su zope -c "$1/bin/mkzopeinstance.py --dir $2 --user $USER:$PASS"
- RESULT=${E_SUCCESS}
- else
- # prior to 2.7
- mkdir -p $2 || exit 1
- if [ $(zinst_default_get >/dev/null)$? -ne 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope:root ${ZI_DIR}/.default
- fi
-
- if [ -f $2/var/Data.fs ]; then
- mv $2/var/Data.fs $2/var/Data.fs.org
- fi
-
- cp -R $1/.templates/Extensions $2
- cp -R $1/.templates/import $2
- cp -R $1/.templates/var $2
- mkdir $2/Products
-
- if [ -f $2/var/Data.fs.org ]; then
- mv $2/var/Data.fs $2/var/Data.fs.dist
- mv $2/var/Data.fs.org $2/var/Data.fs
- fi
-
- RESULT=$?
- fi
- fi
-
- return ${RESULT}
-}
-
-#Params:
-# $1 = zserv dir
-# $2 = zinst dir
-# $3 = zinst name
-zinst_rc_setup()
-{
- local RESULT=${E_FAILURE}
-
- if [ "${#}" -lt 3 ] ; then
- # need a param
- RESULT=${E_PARAM}
- elif [ ${ZOPE27} ] ; then
- install $1/skel/zope.initd ${INITD}/${3}
- #echo "INSTANCE_HOME=${2}" >${CONFD}/$3
- #echo "EVENT_LOG_FILE=${EVENTLOGDIR}/${3}" >>${CONFD}/$3
- sed -i \
- -e "/^# *effective-user/ a\\effective-user ${ZUID}\\ " \
- ${2}/etc/zope.conf
- sed -i \
- -e "s|INSTANCE_HOME|${2}|" \
- ${INITD}/${3}
- RESULT=$?
- else
- if [ $NEWZOPE = 1 ] ; then
- install $1/.templates/zope.initd ${INITD}/${3}
- sed -i \
- -e "s|ZINST_DIR=|ZINST_DIR=${2}|" \
- -e "s|EVENT_LOG_FILE=|EVENT_LOG_FILE=${EVENTLOGDIR}\/${3}|" \
- ${INITD}/${3}
- RESULT=${E_SUCCESS}
- else
- install $1/.templates/zope.confd ${CONFD}/${3}
- install $1/.templates/zope.initd ${INITD}/${3}
- sed -i \
- -e "/INSTANCE_HOME=/ c\\INSTANCE_HOME=${2}\\ " \
- -e "/CLIENT_HOME=/ c\\CLIENT_HOME=${2}/var\\ " \
- -e "/EVENT_LOG_FILE=/ c\\EVENT_LOG_FILE=${EVENTLOGDIR}\/${3}\\ " \
- ${CONFD}/${3}
- RESULT=$?
- fi
- # make sure the directory exists
- mkdir -p ${EVENTLOGDIR} >/dev/null 2>&1
- fi
- return ${RESULT}
-}
-
-# Sets the variable: ZSERV_DIR and returns 0
-# or returns a non-zero error code
-zserv_dir_get()
-{
- local RESULT=${E_FAILURE}
- local LIST=$(ls -d ${ZS_DIR}* ; ls -d ${ZS_DIR2}*)
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- # Assume that LIST_TMP contains valid zserver dirs.
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZSERV_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- dialog \
- --title "Zope Server List" \
- --menu "Select desired zserver: " 0 40 ${LIST_CNT} ${DLIST} 2> $tempfile
- RESULT=$?
- ZSERV_DIR=$(cat $tempfile)
- else
- RESULT=${E_ZSLIST} # There are no zservers
- fi
-
- # set NEWZOPE to 1 if we are dealing with a "newer" zope version
- zserv_is_2.7_or_newer ${ZERV_DIR}
-
- return ${RESULT}
-}
-
-# Sets the variable: ZINST_DIR and returns 0
-# or returns a non-zero error code
-zinst_dir_set()
-{
- local RESULT=
-
- if [ ! -d ${ZI_DIR} ] ; then
- mkdir -p ${ZI_DIR}
- fi
-
- while : ; do
- dialog \
- --backtitle "We need a unique name for the zinstance directory. (This will be the name of the rcscript.)" \
- --inputbox "Enter a new zinstance name:" 0 0 ${DEFAULT_ZINSTANCENAME} 2> $tempfile
- RESULT=$?
- ZINST_DIR=$(cat $tempfile)
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZINST_DIR} ] ; then
- dialog --msgbox "Error: need a name." 0 0
- continue
- elif echo ${ZINST_DIR} |grep "/" ; then
- dialog --msgbox "Error: ${ZINST_DIR} is a path, not a name." 0 0
- continue
- elif [[ -d "${ZI_DIR}${ZINST_DIR}" && \
- -f "${INITD}/${ZINST_DIR}" ]] ; then
- dialog --msgbox "Error: ${ZINST_DIR} zinstance already exists. Delete ${INITD}/${ZINST_DIR} to replace instance." 0 0
- continue
- fi
- ZINST_DIR=${ZI_DIR}${ZINST_DIR}
- break
- done
- return ${RESULT}
-}
-
-# sets the variable $ZINST_DIR and returns 0
-# or returns non-null error code
-zinst_dir_get()
-{
- local RESULT=1
- local LIST=$(ls ${ZI_DIR})
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- # Assume that LIST_TMP contains valid zinstance dirs.
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZINST_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- dialog \
- --title "Zope Instance List" \
- --menu "Select desired zinstance:" 0 0 ${LIST_CNT} ${DLIST} 2> $tempfile
- RESULT=$?
- ZINST_DIR=$(cat $tempfile)
- else
- RESULT=${E_ZILIST} # There are no zinstances
- fi
- ZINST_DIR="${ZI_DIR}${ZINST_DIR}"
- return ${RESULT}
-}
-
-# makes ZSERV_DIR the default zope version. if ZSERV_DIR
-zinst_default_set()
-{
- local RESULT=
-
- if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_get || { echo 'Cancelled: zinst_dir_get' ; exit 1 ; }
- fi
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- echo $(basename ${ZINST_DIR}) >${ZI_DIR}/.default
- chown zope ${ZI_DIR}/.default
- fi
-
- return ${RESULT}
-}
-
-# Echos the default directory that this instance was created in
-zinst_default_get()
-{
- local RESULT=${E_ZIDEFAULT}
-
- if [ -s ${ZI_DIR}/.default ] ; then
- cat ${ZI_DIR}/.default
- RESULT=$? # use to be 0
- fi
- return ${RESULT}
-}
-
-# Gets a name for the group that owns the new zinstance and also creates the
-# group if nessicary
-zinst_zgid_set()
-{
- local RESULT=
- while : ; do
- dialog \
- --backtitle "We need to create and/or assign a zinstance group name." \
- --inputbox "Enter a group name:" \
- 0 0 $(basename ${ZIRC_NAME}) 2> $tempfile
- RESULT=$?
- ZGID_NAME=$(cat $tempfile)
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZGID_NAME} ] ; then
- dialog --msgbox "Error: empty string." 0 0
- continue
- elif groupmod ${ZGID_NAME} >/dev/null 2>&1 ; then
- dialog --yesno "The group ${ZGID_NAME} already exists. Do you want to use it?" 0 0
- RESULT=$?
- [ ${RESULT} -ne 0 ] && continue
- fi
- break
- done
- return ${RESULT}
-}
-
-# Gets a name for the user that owns the new zinstance and also creates the
-# group if nessicary, this is the user zope runs as
-zinst_zuid_set()
-{
- local RESULT=
- while : ; do
- dialog \
- --backtitle "We need to create and/or assign a zinstance user name." \
- --inputbox "Enter a user name:" \
- 0 0 $(basename ${ZIRC_NAME}) 2> $tempfile
- RESULT=$?
- ZUID=$(cat $tempfile)
- if [ ${RESULT} -ne 0 ] ; then
- break
- elif [ -z ${ZUID} ] ; then
- dialog --msgbox "Error: empty string." 0 0
- continue
- elif egrep "^${ZUID}:" /etc/passwd >/dev/null 2>&1 ; then
- dialog --yesno "The user ${ZUID} already exists. Do you want to use it?" 0 0
- RESULT=$?
- [ ${RESULT} -ne 0 ] && continue
- fi
- break
- done
- return ${RESULT}
-}
-
-# Sets the inituser password for a given zinstance
-zinst_zpasswd_set()
-{
- if [ -z ${ZSERV_DIR} ] ; then
- zserv_dir_get || { exit $? ; }
- fi
- if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_get || exit $?
- fi
-
- zserv_is_2.7_or_newer ${ZSERV_DIR}
- if [ $NEWZOPE = 1 ] ; then
- echo ">>> Creating a Zope inituser for \"$(basename ${ZINST_DIR})\"..."
- /usr/bin/python ${BIN}/zpasswd.py ${ZINST_DIR}/inituser
- # If zpasswd is aborted it creates a blank inituser
- chown ${ZUID} ${ZINST_DIR}/inituser
- else
- echo ">>> Creating a Zope inituser for \"$(basename ${ZINST_DIR})\"..."
- /usr/bin/python ${ZSERV_DIR}/zpasswd.py ${ZINST_DIR}/inituser
- # If zpasswd is aborted it creates a blank inituser
- chown ${ZUID} ${ZINST_DIR}/inituser
- fi
-}
-
-# help!
-
-usage()
-{
- echo "$(basename $0) version ${VERSION}"
- echo "A Gentoo Zope instance configuration tool."
- echo
- echo "Interactive usage:"
- echo -e "\t$(basename $0)"
- echo "Partial interactive usage:"
- echo -e "\t$(basename $0) --[zserv=[dir] &| zinst=[dir] &| zgid=[name]]"
- echo "Non-interactive usage:"
- echo -e "\t$(basename $0) --[zidef-get | zidef-set | zpasswd | version | help]"
- echo -e "\t$(basename $0) --[zserv=[dir] & zinst=[di] & zgid=[name]]"
- exit ${E_SUCCESS}
-}
-
-zserv_version_detect()
-{
- if [ -d "${ZSERV_DIR}/bin" ] ; then
- ZOPE27=1
- BIN=${ZSERV_DIR}/bin
- else
- ZOPE27=0
- BIN=${ZSERV_DIR}
- fi
-}
-
-##### Process the commandline
-
-while [ "$#" -gt 0 ] ; do
- case "$1" in
- -*=*) OPTARG=$(echo "$1" | sed 's/[-_a-zA-Z0-9:]*=//') ;;
- *) OPTARG= ;;
- esac
-
- case "$1" in
- --zserv=*) ZSERV_DIR=${OPTARG} ; zserv_version_detect ;;
- --zinst=*) ZINST_DIR=${OPTARG} ;;
- --zgid=*) ZGID_NAME=${OPTARG} ;;
- --zuid=*) ZUID=${OPTARG} ;;
- --zinituser) ZINIT_USER=inituser ;;
- --zidef-set) zinst_default_set ; exit $? ;;
- --zidef-get) zinst_default_get ; exit $? ;;
- --zpasswd) zinst_zpasswd_set ; exit $? ;;
- --version) echo ${VERSION} ; exit 0 ;;
- -*) usage ; exit 0 ;;
- *) usage ; exit 0 ;;
- esac
- shift
-done
-
-tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
-trap "rm -f $tempfile" 0 1 2 15
-
-# if ZSERV_DIR isn't set by command line, call zserv_dir_get to set it
-if [ -z ${ZSERV_DIR} ] ; then
- zserv_dir_get || { echo 'Cancelled: zserv_dir_get' ; exit 1 ; }
- zserv_version_detect
-else
- ZSERV_DIR=`dirname ${ZSERV_DIR}`/`basename ${ZSERV_DIR}`
-fi
-
-# if ZINST_DIR passed by command line, call zinst_dir_set to set it
-if [ -z ${ZINST_DIR} ] ; then
- zinst_dir_set || { echo 'Cancelled: zinst_dir_set' ; exit 1 ; }
-else
- ZINST_DIR=`dirname ${ZINST_DIR}`/`basename ${ZINST_DIR}`
-fi
-
-# if ZIRC_NAME isn't set then use the base of the ZINST_DIR for ZIRC_NAME
-[ -z ${ZIRC_NAME} ] && ZIRC_NAME=$(basename ${ZINST_DIR})
-
-if [ -z ${ZUID} ] ; then
- zinst_zuid_set || { echo 'Cancelled: zinst_zuid_set' ; exit 1 ; }
-fi
-
-if [ -z ${ZGID_NAME} ] ; then
- zinst_zgid_set || { echo 'Cancelled: zinst_zgid_set' ; exit 1 ; }
-fi
-
-
-
-zserv_is_2.7_or_newer ${ZSERV_DIR}
-
-! groupmod ${ZGID_NAME} >/dev/null 2>&1 && groupadd ${ZGID_NAME}
-zinst_fs_setup ${ZSERV_DIR} ${ZINST_DIR} ${ZINIT_USER}
-zinst_rc_setup ${ZSERV_DIR} ${ZINST_DIR} ${ZIRC_NAME}
-
-# create user if needed
-useradd -g ${ZGID_NAME} ${ZUID}
-
-
-# add existing user to the new group
-gpasswd -a ${ZUID} ${ZGID_NAME}
-
-zinst_security_setup ${ZINST_DIR} ${ZGID_NAME} ${ZUID}
-# TODO: see about adding interactive configuration of ZOPE_OPTS
-if [ ${ZOPE27} ] ; then
- echo "Note: Review settings in ${ZINST_DIR}/etc/zope.conf."
- echo "Then you can start your new instance with:"
- echo " /etc/init.d/${ZIRC_NAME} start"
-else
- echo "Note: Don\'t forget to edit ZOPE_OPTS in ${CONFD}${ZIRC_NAME}"
- echo " (you might want to add -P 8{1,2,3,..}00 to set the zope ports offset)"
-fi
-
diff --git a/app-admin/zope-config/files/0.6/zope-config.conf b/app-admin/zope-config/files/0.6/zope-config.conf
deleted file mode 100644
index 1a7ff04d3848..000000000000
--- a/app-admin/zope-config/files/0.6/zope-config.conf
+++ /dev/null
@@ -1,30 +0,0 @@
-# vim: set noexpandtab ts=4 ft=sh:
-# Gentoo Zope Instance configure tool config file.
-#
-# Originally written by Jason Shoemaker <kutsuya@gentoo.org>
-# Portions by Jodok Batlogg <batlogg@gentoo.org> (Logging and some cleanups)
-# Portions by Robin Johnson <robbat2@gentoo.org> (Documentation and further cleanup)
-#
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/files/0.6/zope-config.conf,v 1.1 2008/11/16 15:11:23 tupone Exp $
-
-# default name for new instances
-DEFAULT_ZINSTANCENAME="zope-"
-
-# Logging directory
-EVENTLOGDIR="/var/log/zope/"
-
-# you probably shouldn't change anything below this
-# -------------------------------------------------
-# Name of zope user on your system
-ZUID=zope
-# This is where the real zope lives
-ZS_DIR="/usr/share/zope/"
-ZS_DIR2="/usr/lib/zope-"
-# This is where we will put our new instance of zope
-ZI_DIR="/var/lib/zope/"
-# place for init script
-# and it's associated configuration file
-INITD="/etc/init.d/"
-CONFD="/etc/conf.d/"
diff --git a/app-admin/zope-config/metadata.xml b/app-admin/zope-config/metadata.xml
deleted file mode 100644
index 46c8eea1b318..000000000000
--- a/app-admin/zope-config/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>net-zope</herd>
-</pkgmetadata>
diff --git a/app-admin/zope-config/zope-config-0.5-r1.ebuild b/app-admin/zope-config/zope-config-0.5-r1.ebuild
deleted file mode 100644
index d297c2236ee5..000000000000
--- a/app-admin/zope-config/zope-config-0.5-r1.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/zope-config-0.5-r1.ebuild,v 1.3 2008/11/16 15:11:23 tupone Exp $
-
-DESCRIPTION="A Gentoo Zope multi-Instance configure tool"
-SRC_URI=""
-HOMEPAGE="http://www.gentoo.org/"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64"
-IUSE=""
-DEPEND=""
-RDEPEND=">=dev-util/dialog-0.7
- sys-apps/grep
- sys-apps/sed
- sys-apps/shadow
- dev-lang/python
- sys-apps/coreutils"
-
-PDEPEND=">=net-zope/zope-2.7.2-r2"
-
-src_install() {
- # the script
- dosbin "${FILESDIR}"/${PV}/zope-config
-
- # config file
- insinto /etc
- doins "${FILESDIR}"/${PV}/zope-config.conf
- # ensure this directory exists
- keepdir /var/log/zope
-}
-
-pkg_postinst() {
- source "${FILESDIR}"/${PV}/zope-config.conf
- elog "Please note that new instances now log into ${EVENTLOGDIR}"
- elog "Please see the configuration file /etc/zope-config.conf"
-}
diff --git a/app-admin/zope-config/zope-config-0.5.ebuild b/app-admin/zope-config/zope-config-0.5.ebuild
deleted file mode 100644
index 2a9ccc884972..000000000000
--- a/app-admin/zope-config/zope-config-0.5.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/zope-config-0.5.ebuild,v 1.9 2008/11/16 15:11:23 tupone Exp $
-
-DESCRIPTION="A Gentoo Zope multi-Instance configure tool"
-SRC_URI=""
-HOMEPAGE="http://www.gentoo.org/"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 ppc sparc x86"
-IUSE=""
-DEPEND=""
-RDEPEND=">=dev-util/dialog-0.7
- sys-apps/grep
- sys-apps/sed
- sys-apps/shadow
- dev-lang/python
- sys-apps/coreutils"
-
-PDEPEND=">=net-zope/zope-2.7.2-r2"
-
-src_install() {
- # the script
- dosbin "${FILESDIR}"/0.4/zope-config
- patch "${D}"/usr/sbin/zope-config "${FILESDIR}"/${PV}/${P}.patch
-
- # config file
- insinto /etc
- doins "${FILESDIR}"/0.4/zope-config.conf
- # ensure this directory exists
- keepdir /var/log/zope
-}
-
-pkg_postinst() {
- source "${FILESDIR}"/0.4/zope-config.conf
- elog "Please note that new instances now log into ${EVENTLOGDIR}"
- elog "Please see the configuration file /etc/zope-config.conf"
-}
diff --git a/app-admin/zope-config/zope-config-0.6.ebuild b/app-admin/zope-config/zope-config-0.6.ebuild
deleted file mode 100644
index 61a3525d0e80..000000000000
--- a/app-admin/zope-config/zope-config-0.6.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zope-config/zope-config-0.6.ebuild,v 1.1 2008/11/16 15:11:23 tupone Exp $
-
-DESCRIPTION="A Gentoo Zope multi-Instance configure tool"
-SRC_URI=""
-HOMEPAGE="http://www.gentoo.org/"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64"
-IUSE=""
-DEPEND=""
-RDEPEND="dev-util/dialog
- sys-apps/grep
- sys-apps/sed
- sys-apps/shadow
- dev-lang/python
- sys-apps/coreutils
- sys-apps/debianutils"
-
-PDEPEND="net-zope/zope"
-
-src_install() {
- # the script
- dosbin "${FILESDIR}"/${PV}/zope-config
-
- # config file
- insinto /etc
- doins "${FILESDIR}"/${PV}/zope-config.conf
- # ensure this directory exists
- keepdir /var/log/zope
-}
-
-pkg_postinst() {
- source "${FILESDIR}"/${PV}/zope-config.conf
- elog "Please note that new instances now log into ${EVENTLOGDIR}"
- elog "Please see the configuration file /etc/zope-config.conf"
-}
diff --git a/app-admin/zprod-manager/ChangeLog b/app-admin/zprod-manager/ChangeLog
deleted file mode 100644
index f1f6bd19c9b8..000000000000
--- a/app-admin/zprod-manager/ChangeLog
+++ /dev/null
@@ -1,122 +0,0 @@
-# ChangeLog for app-admin/zprod-manager
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/ChangeLog,v 1.30 2011/08/19 17:20:53 hwoarang Exp $
-
- 19 Aug 2011; Markos Chandras <hwoarang@gentoo.org> metadata.xml:
- remove radek from metadata.xml
-
- 28 Apr 2011; Mark Loeser <halcy0n@gentoo.org> metadata.xml:
- Non-existant herd: zope -> net-zope
-
- 30 Nov 2008; Raúl Porcel <armin76@gentoo.org>
- zprod-manager-0.3.2-r1.ebuild:
- sparc stable wrt #245785
-
-*zprod-manager-0.3.3 (16 Nov 2008)
-
- 16 Nov 2008; Tupone Alfredo <tupone@gentoo.org>
- +files/0.3.3/zprod-manager, +zprod-manager-0.3.3.ebuild:
- Fix dialog not finding tty.
-
- 09 Nov 2008; Markus Meier <maekke@gentoo.org>
- zprod-manager-0.3.2-r1.ebuild:
- amd64/x86 stable, bug #245785
-
- 08 Nov 2008; nixnut <nixnut@gentoo.org> zprod-manager-0.3.2-r1.ebuild:
- Stable on ppc wrt bug 245785
-
- 06 Jun 2008; Tupone Alfredo <tupone@gentoo.org> zprod-manager-0.3.ebuild:
- Stable on amd64
-
-*zprod-manager-0.3.2-r1 (24 May 2008)
-
- 24 May 2008; Tupone Alfredo <tupone@gentoo.org> -files/0.1/zprod-manager,
- files/0.3.2/zprod-manager, -files/0.2/zprod-manager,
- -zprod-manager-0.3.2.ebuild, +zprod-manager-0.3.2-r1.ebuild:
- Removing unused files. Removed warning when product does not use lib/python
-
-*zprod-manager-0.3.2 (06 May 2008)
-
- 06 May 2008; Tupone Alfredo <tupone@gentoo.org>
- +files/0.3.2/zprod-manager, +zprod-manager-0.3.2.ebuild:
- New version, bug #220311
-
- 06 May 2008; Tupone Alfredo <tupone@gentoo.org> zprod-manager-0.3.ebuild:
- Some Q&A to make repoman happy.
-
- 07 Jul 2007; Radoslaw Stachowiak <radek@gentoo.org> metadata.xml:
- added herd and maintainer
-
- 05 Jan 2007; Danny van Dyk <kugelfang@gentoo.org>
- -zprod-manager-0.1.ebuild, -zprod-manager-0.1-r1.ebuild,
- -zprod-manager-0.2.ebuild:
- -m QA: Removed unused versions.
-
-*zprod-manager-0.3.1 (06 Nov 2006)
-
- 06 Nov 2006; <aross@gentoo.org> files/0.2/zprod-manager,
- +files/0.3.1/zprod-manager, files/0.3/zprod-manager,
- +zprod-manager-0.3.1.ebuild:
- Add primitive support for "--help" option (bug #115153).
-
- 06 Sep 2005; Jason Wever <weeve@gentoo.org> zprod-manager-0.3.ebuild:
- Stable on SPARC.
-
- 18 Apr 2005; Michael Hanselmann <hansmi@gentoo.org>
- zprod-manager-0.3.ebuild:
- Stable on ppc.
-
- 21 Feb 2005; Simon Stelling <blubb@gentoo.org> zprod-manager-0.3.ebuild:
- added ~amd64
-
- 14 Oct 2004; Radoslaw Stachowiak <radek@gentoo.org>
- zprod-manager-0.3.ebuild:
- stable on x86 due to #65375 bug and possible data loss.
-
-*zprod-manager-0.3 (07 Oct 2004)
-
- 07 Oct 2004; Radoslaw Stachowiak <radek@gentoo.org>
- +files/0.3/zprod-manager, +zprod-manager-0.3.ebuild:
- Checks if installed products do not overwrite present ones.
-
- 05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
- zprod-manager-0.1.ebuild:
- Masked zprod-manager-0.1.ebuild stable for ppc
-
-*zprod-manager-0.2 (26 Sep 2004)
-
- 26 Sep 2004; Radoslaw Stachowiak <radek@gentoo.org>
- +files/0.2/zprod-manager, +zprod-manager-0.2.ebuild:
- small: remove unnecessary ZPROD_FLIST_FPATH.
- small: fixed interactive mode bug in list handling.
- small: fixed chown to operate only on selected products.
- BIG: changed chmod of installed products to 770/660 (other have no rights)
-
- 26 Sep 2004; Jodok Batlogg <batlogg@gentoo.org>;
- zprod-manager-0.1-r1.ebuild:
- marked as stable on ppc
-
-*zprod-manager-0.1-r1 (18 Sep 2004)
-
- 18 Sep 2004; Jodok Batlogg <batlogg@gentoo.org>; files/0.1/zprod-manager,
- +zprod-manager-0.1-r1.ebuild:
- on prod-add, owner and group is inherited from the target prod dir
-
- 07 Jun 2004; Daniel Black <dragonheart@gentoo.org> +metadata.xml,
- zprod-manager-0.1.ebuild:
- QA - IUSE fix
-
- 06 Apr 2004; Jason Wever <weeve@gentoo.org> zprod-manager-0.1.ebuild:
- Added ~sparc keyword wrt bug #46924.
-
-*zprod-manager-0.1 (25 Feb 2003)
-
- 03 Apr 2003; Jason Shoemaker <kutsuya@gentoo.org> zprod-manager-0.1.ebuild:
- ~x86 -> x86 and added ~ppc
-
- 03 Mar 2003; Jason Shoemaker <kutsuya@gentoo.org> zprod-manager-0.1.ebuild :
- Changed dependencies to reflex the move of zope to net-www.
-
- 25 Feb 2003; Jason Shoemaker <kutsuya@gentoo.org> : Imported from
- zprod-update. Hazmat from #plone suggested that zope-update be renamed to
- this. Fixed dependencies. Added $Header to script.
diff --git a/app-admin/zprod-manager/Manifest b/app-admin/zprod-manager/Manifest
deleted file mode 100644
index df043329e08d..000000000000
--- a/app-admin/zprod-manager/Manifest
+++ /dev/null
@@ -1,30 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
-
-AUX 0.3.1/zprod-manager 8424 RMD160 02261aec98cc4fb16254f052560b7622b4a857b2 SHA1 1ab27279f8b2b8abcba2340c986f38017bc36ccf SHA256 dc4f537b2c5e0c9135ae9594572d8b3200c8c468987f9a5e27688705fe3c7d40
-AUX 0.3.2/zprod-manager 9436 RMD160 e26b6a87ce1993dd5e8c2044826e6a6e41dc3a28 SHA1 39892604587ac8a0db949fa97577705e57ff67bd SHA256 094cbb9981c13f6f2e00f061529a2acc32361a52c2588119534cff5a43ab2c0b
-AUX 0.3.3/zprod-manager 9584 RMD160 077c5806284834cc0dc5d8c55dca024dcda93707 SHA1 9c20df3e504eb9b6fad9e1cc0c3563777ea70dd1 SHA256 8d4c01b5c87213cddab1c8ddc49eddf7d0f7a60513f2c7bb537b207bffc21ea1
-AUX 0.3/zprod-manager 8339 RMD160 5e890d2dbe362a645acde90b036e0272cf4db3ea SHA1 2a3c9aa7019a714c19edc1e8b2c6896671216e0f SHA256 56a7ecbf588fe3588643bebda857f7c4e43cc6c89914ce55a18601646b46f1e9
-EBUILD zprod-manager-0.3.1.ebuild 578 RMD160 e1048b8b60d5a2b363f0bfff78b5446c054f7bf3 SHA1 a488af2d2492ae8c467e12293ce5cacdfddaa537 SHA256 bfa3d3064836430900d35cc7cc2f08004901d7fabced7979e7621a1792b30cd7
-EBUILD zprod-manager-0.3.2-r1.ebuild 533 RMD160 b6fb81a79f07205799e5bd2f8d5471690009a1ad SHA1 07135de476041d50315bb3992b48d83914c3e6b4 SHA256 df1ce6b89cee9127b47c963ce61dd42bac565fc7baf767c9e6f9e2b9474d2130
-EBUILD zprod-manager-0.3.3.ebuild 533 RMD160 0c43888290bab828b3f47e66d53771f125665bfc SHA1 535ab2067d748f858b0d72f944fa7255a406a86e SHA256 7319192f261a32fe6f248a9e18199f4be6d5abb26a4d8735d9c0c959855788c8
-EBUILD zprod-manager-0.3.ebuild 549 RMD160 0a52d235cb922f23d6f8a46a443db0ca038971f9 SHA1 aaddbeed82ad51abccd8a2ae290ee2bff83e0819 SHA256 4e0407084fca792c2d494c7f107cb39425f3cebea99eec02013910ac3e261cbb
-MISC ChangeLog 4315 RMD160 74a58faac995be247420b59e8ba163e9a37f9d02 SHA1 8137c1f2844e855de7a81520189555d64b2ce9dc SHA256 18225638f4b8a6868b734a602c2b30419eae03d3d98c2becc402bb5368fd4917
-MISC metadata.xml 169 RMD160 f09a416b4004346a79906ba07989dfba84c5ece5 SHA1 23ddd27bb897ddd2ebc7cad56becc87c17218279 SHA256 4e813ac0b12981edab0b53c189bf21cdaa77e2f88c827c820d0c76778c49b4cf
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
-
-iQIcBAEBCgAGBQJOTpt0AAoJEPqDWhW0r/LC4h0P/0hEdMYnF2kPK/+mcM4I7+2U
-vRPV3RViXH1llrBF1/6I36RD64G+AbrBelUvF+RMdEoftxzJvCdkRcHXvurzY7GQ
-4Quu8dlgYcy4P8iuj5LIHONSbY04JdfN4pYFViPQFlM6n2HBjW4R7rWmHnhTBlDN
-zMDwm/I+T5clqOIMziD8kah1JX44qdQbMLDDrUNGYjNlodhNHqDlrPvQpJKuxC3W
-j1PkSfkqFK2xgpN2ZiNoWc8pn8Z1RTxygL9CyOTilHglMTTATFxmlXjVd3T6MCHa
-8+YU8DC/IFOBDIZCFNBlDPkTaZpPNd1TuzZqRfytCJIIOCb23HAPDk1lFnjWcAX7
-yaRXbvSom/D3hiXahzFprVPxCVrHTbl92rDG7qgcP2jdQJKRvJBODes7mgyDSiOi
-1VoCTMKeJOV5kyIkWbSMPmsKH/+hYOv2x+NgqC38dy97L58QrdJ92BWkA4IXJpe8
-mR/yh8OFlSeT/a5ts3DkWFPlMcl6o66+SvTe7+4QfTItm72AZnU0huGS6rOlGsjG
-Qs5Z6CyTQwU8CVvYm9v8ZPGnOnHUnvZi//nUXi7Og3QY4F9U3syC0D7XpsyKUEva
-k0JpiW925+Maom9dZpprGIemvsT8gmil9h4G1lrBlShZHCtqVfjzeCCmykf9bbho
-A13O+cgBYvjBTbLMIjMS
-=VCe+
------END PGP SIGNATURE-----
diff --git a/app-admin/zprod-manager/files/0.3.1/zprod-manager b/app-admin/zprod-manager/files/0.3.1/zprod-manager
deleted file mode 100644
index 1f7764325aa8..000000000000
--- a/app-admin/zprod-manager/files/0.3.1/zprod-manager
+++ /dev/null
@@ -1,349 +0,0 @@
-#!/bin/bash
-# Gentoo Zope Product selection tool.
-# Copyright 2003 Jason Shoemaker <kutsuya@gentoo.org>
-# Distributed under GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/files/0.3.1/zprod-manager,v 1.1 2006/11/06 05:28:09 aross Exp $
-
-VERSION="0.3.1"
-COMMAND_LIST="add del"
-ZS_DIR="/usr/share/zope/"
-ZI_DIR="/var/lib/zope/"
-ZPROD_DIR="/usr/share/zproduct/"
-
-ZINST_DEFAULT=".default"
-ZPROD_FLIST_FNAME=".zfolder.lst"
-ZPROD_PLIST_FNAME=".zproduct.lst"
-
-# Assume the standard dialog return codes
-#DIALOG_CANCEL=1
-#DIALOG_ERROR=-1
-#DIALOG_ESC=-255
-#DIALOG_OK=0
-#DIALOG_ERROR may equal #DIALOG_ESC
-
-# Return codes used in this program:
-E_SUCCESS=0
-E_FAILURE=1
-
-E_ZPLIST=20
-E_ZILIST=22
-E_COMMAND=24
-E_OVERWRITE=26
-
-## copied from zope-config
-
-zinst_dir_get()
-{
- local RESULT=${E_FAILURE}
- local LIST=$(ls ${ZI_DIR})
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZINST_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- ZINST_DIR=$(dialog --stdout \
- --title "Zope Instance List" \
- --menu "Select desired zinstance:" 0 0 ${LIST_CNT} ${DLIST})
- RESULT=$?
- else
- RESULT=${E_ZILIST} # There are no zinstances
- fi
- ZINST_DIR="${ZI_DIR}${ZINST_DIR}"
- return ${RESULT}
-}
-
-# params: none
-# TODO: Maybe try to break this function down some more.
-# TODO: verify items in ZP_PLIST and ZI_PLIST
-
-mode_interactive()
-{
- local RESULT=
- if [ $(is_command "${COMMAND_LIST}" ${1})${?} -ne 0 ] ; then
- RESULT=${?}
- return ${RESULT}
- fi
- ZP_PLIST=$(ls ${ZPROD_DIR})
- if [ "${ZP_PLIST}" ] ; then
- zinst_dir_get
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- ZI_PLIST=$(cat ${ZINST_DIR}/${ZPROD_PLIST_FNAME})
- # Create CLIST for --menu
- if [ "${ZI_PLIST}" ] ; then
- for N in ${ZP_PLIST} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -eq 0 ] ; then
- STATUS=ON
- else
- STATUS=OFF
- fi
- CLIST="${CLIST} ${N} - ${STATUS}"
- done
- CTAGS=$(dialog --stdout \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST})
- RESULT=$?
- CTAGS=$(echo ${CTAGS} | sed -e "s:\"::g")
- # Prepare to add and delete zproducts installed in zinstance
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${ZI_PLIST} ; do
- echo "$CTAGS" |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- for N in ${CTAGS} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- RESULT=$?
- elif [ ${RESULT} -eq 0 ] ; then # $CTAGS is empty
- for N in ${ZI_PLIST} ; do
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- RESULT=$?
- fi
- else # ZI_PLIST is empty
- for N in ${ZP_PLIST} ; do
- CLIST="${CLIST} ${N} - 0"
- done
- CTAGS=$(dialog --stdout \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST})
- RESULT=$?
- CTAGS=$(echo "${CTAGS}" | sed -e "s:\"::g")
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${CTAGS} ; do
- # as this is empty Products directory in instance if-case, we can safely ignore
- # RESULT returned from prod_add in case of overwrite error. It can not happen
- # when ZI_PLIST is empty, right? ;) <radek@gentoo.org>
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- fi
- fi
- fi
- else # ZP_PLIST is empty
- RESULT=${E_ZPLIST}
- fi
- return ${RESULT}
-}
-
-
-# Parameters:
-# $1 = command list
-# $2 = command received
-# Returns:
-# true or false
-
-is_command()
-{
- local RESULT=${E_COMMAND}
- local N=
-
- echo ${1} |grep ${2} >/dev/null
- if [ $? -eq 0 ] ; then
- RESULT=0
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinstance
-# Returns:
-# true or false
-
-is_zinstanceDir()
-{
- local RESULT=${E_ZILIST}
- # If can't find these, probably not a zinstance.
- if [[ -d "${1}/Products" && -d "${1}/var" && -d "${1}/import" && -d "${1}/Extensions" ]] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# Returns:
-# true or false
-
-is_zproductDir()
-{
- local RESULT=${E_ZPLIST}
- # look for something in .zproduct.lst in $1, if we can't find that...
- if [ -s "${1}/${ZPROD_FLIST_FNAME}" ] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinst_dir
-# Returns:
-# stdout = name of defautl zinstance, if any.
-
-zinst_default_get()
-{
- if [ -s ${1}/${ZINST_DEFAULT} ] ; then
- cat ${1}/${ZINST_DEFAULT}
- fi
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-# be warned, using this function you have to immediately fail if functionss returns error.
-
-prod_add()
-{
- local RESULT=
- local N=
-
- # checks if some products components are already installed,
- # if yes, we have to break with error, as overwrites are DANGEROUS!
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}")
- do
- if [ -d ${2}/Products/${N} ]
- then
- echo "ZPROD-MANAGER WARNING: Overwrite possiblity detected at ${N}"
- return ${E_OVERWRITE}
- fi
- done
-
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- # we do copy instead of link, because its much safer, and zope-development-way compliant
- cp -Ra ${1}/${N} ${2}/Products
- done
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- # basically adding ${PF} to .zproduct.lst
- echo $(basename $1) >> ${2}/${ZPROD_PLIST_FNAME}
- sort -u ${2}/${ZPROD_PLIST_FNAME} > ${2}/.tmp
- mv -f ${2}/.tmp ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
-
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- # setting owner and group as in Products folder, so we can compile
- # python scripts with the zope user
-
- chown -R `stat -c %U:%G ${2}/Products` ${2}/Products/${N}
-
- # gives group writing perms (very often need in development teams)
- # takes all perms from others to comply with 770 instance policy
- chmod -R g+rwX,o-rwx ${2}/Products/${N}
- done
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-prod_del()
-{
- local RESULT=
- local N=
- local PF=$(basename $1)
-
- grep "${PF}" "${2}/${ZPROD_PLIST_FNAME}" >/dev/null
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- for N in $(cat ${1}/${ZPROD_FLIST_FNAME}) ; do
- rm -rf ${2}/Products/${N}
- done
- # remove zproduct from .zproduct.lst
- sed -i -e "s/${PF}$//" -e "/^$/d" ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = (optional) error message
-
-mode_help()
-{
- echo "$(basename $0) version ${VERSION}"
- echo "A Gentoo Zope Product selection tool."
- echo
- echo "Interactive usage:"
- echo -e "\t$(basename $0) [add | del]"
- echo "Default zinstance usage:"
- echo -e "\t$(basename $0) [add |del] /path/of/zproduct"
- echo "Non-interactive usage:"
- echo -e "\t$(basename $0) [add | del] /path/of/zproduct /path/of/zinstance/"
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproductDir
-
-mode_defaultZinst()
-{
- local DEFAULT_ZINST=$(zinst_default_get ${ZI_DIR})
- local RESULT=$?
- if [ -n "${DEFAULT_ZINST}" ] ; then
- mode_explicit ${1} ${2} ${ZI_DIR}/${DEFAULT_ZINST}
- RESULT=${?}
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproduct
-# $3 = /path/to/zinstance
-
-mode_explicit()
-{
- local RESULT=
- if [[ $(is_command "${COMMAND_LIST}" ${1})${?} -eq 0 && \
- $(is_zproductDir ${2})${?} -eq 0 && \
- $(is_zinstanceDir ${3})${?} -eq 0 ]] ; then
- if [ ${1} = "add" ] ; then
- prod_add ${2} ${3}
- RESULT=$?
- elif [ ${1} = "del" ] ; then
- prod_del ${2} ${3}
- RESULT=$?
- else
- RESULT=${E_COMMAND}
- fi
- fi
- return ${RESULT}
-}
-
-### MAIN
-
-if [ ${!#} = "--help" ] ; then
- mode_help
-else
- case "${#}" in
- 0) mode_help ;;
- 1) mode_interactive ${1} ;;
- 2) mode_defaultZinst ${1} ${2} ;;
- 3) mode_explicit ${1} ${2} ${3} ;;
- *) mode_help "Error: Too many parameters" ;;
- esac
-fi
-
-RESULT=$?
-
-if [ ${RESULT} -ne 0 ] ; then
- echo "ERROR ${?}"
-fi
-
-
-# vim:ts=8
diff --git a/app-admin/zprod-manager/files/0.3.2/zprod-manager b/app-admin/zprod-manager/files/0.3.2/zprod-manager
deleted file mode 100644
index b5044d178298..000000000000
--- a/app-admin/zprod-manager/files/0.3.2/zprod-manager
+++ /dev/null
@@ -1,379 +0,0 @@
-#!/bin/bash
-# Gentoo Zope Product selection tool.
-# Copyright 2003 Jason Shoemaker <kutsuya@gentoo.org>
-# Distributed under GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/files/0.3.2/zprod-manager,v 1.2 2008/05/24 20:46:27 tupone Exp $
-
-VERSION="0.3.1"
-COMMAND_LIST="add del"
-ZS_DIR="/usr/share/zope/"
-ZI_DIR="/var/lib/zope/"
-ZPROD_DIR="/usr/share/zproduct/"
-
-ZINST_DEFAULT=".default"
-ZPROD_FLIST_FNAME=".zfolder.lst"
-ZPROD_LLIST_FNAME=".zlfolder.lst"
-ZPROD_PLIST_FNAME=".zproduct.lst"
-
-# Assume the standard dialog return codes
-#DIALOG_CANCEL=1
-#DIALOG_ERROR=-1
-#DIALOG_ESC=-255
-#DIALOG_OK=0
-#DIALOG_ERROR may equal #DIALOG_ESC
-
-# Return codes used in this program:
-E_SUCCESS=0
-E_FAILURE=1
-
-E_ZPLIST=20
-E_ZILIST=22
-E_COMMAND=24
-E_OVERWRITE=26
-
-## copied from zope-config
-
-zinst_dir_get()
-{
- local RESULT=${E_FAILURE}
- local LIST=$(ls ${ZI_DIR})
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZINST_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- ZINST_DIR=$(dialog --stdout \
- --title "Zope Instance List" \
- --menu "Select desired zinstance:" 0 0 ${LIST_CNT} ${DLIST})
- RESULT=$?
- else
- RESULT=${E_ZILIST} # There are no zinstances
- fi
- ZINST_DIR="${ZI_DIR}${ZINST_DIR}"
- return ${RESULT}
-}
-
-# params: none
-# TODO: Maybe try to break this function down some more.
-# TODO: verify items in ZP_PLIST and ZI_PLIST
-
-mode_interactive()
-{
- local RESULT=
- if [ $(is_command "${COMMAND_LIST}" ${1})${?} -ne 0 ] ; then
- RESULT=${?}
- return ${RESULT}
- fi
- ZP_PLIST=$(ls ${ZPROD_DIR})
- if [ "${ZP_PLIST}" ] ; then
- zinst_dir_get
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- ZI_PLIST=$(cat ${ZINST_DIR}/${ZPROD_PLIST_FNAME})
- # Create CLIST for --menu
- if [ "${ZI_PLIST}" ] ; then
- for N in ${ZP_PLIST} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -eq 0 ] ; then
- STATUS=ON
- else
- STATUS=OFF
- fi
- CLIST="${CLIST} ${N} - ${STATUS}"
- done
- CTAGS=$(dialog --stdout \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST})
- RESULT=$?
- CTAGS=$(echo ${CTAGS} | sed -e "s:\"::g")
- # Prepare to add and delete zproducts installed in zinstance
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${ZI_PLIST} ; do
- echo "$CTAGS" |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- for N in ${CTAGS} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- RESULT=$?
- elif [ ${RESULT} -eq 0 ] ; then # $CTAGS is empty
- for N in ${ZI_PLIST} ; do
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- RESULT=$?
- fi
- else # ZI_PLIST is empty
- for N in ${ZP_PLIST} ; do
- CLIST="${CLIST} ${N} - 0"
- done
- CTAGS=$(dialog --stdout \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST})
- RESULT=$?
- CTAGS=$(echo "${CTAGS}" | sed -e "s:\"::g")
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${CTAGS} ; do
- # as this is empty Products directory in instance if-case, we can safely ignore
- # RESULT returned from prod_add in case of overwrite error. It can not happen
- # when ZI_PLIST is empty, right? ;) <radek@gentoo.org>
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- fi
- fi
- fi
- else # ZP_PLIST is empty
- RESULT=${E_ZPLIST}
- fi
- return ${RESULT}
-}
-
-
-# Parameters:
-# $1 = command list
-# $2 = command received
-# Returns:
-# true or false
-
-is_command()
-{
- local RESULT=${E_COMMAND}
- local N=
-
- echo ${1} |grep ${2} >/dev/null
- if [ $? -eq 0 ] ; then
- RESULT=0
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinstance
-# Returns:
-# true or false
-
-is_zinstanceDir()
-{
- local RESULT=${E_ZILIST}
- # If can't find these, probably not a zinstance.
- if [[ -d "${1}/Products" && -d "${1}/var" && -d "${1}/import" && -d "${1}/Extensions" ]] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# Returns:
-# true or false
-
-is_zproductDir()
-{
- local RESULT=${E_ZPLIST}
- # look for something in .zproduct.lst in $1, if we can't find that...
- if [ -s "${1}/${ZPROD_FLIST_FNAME}" ] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinst_dir
-# Returns:
-# stdout = name of defautl zinstance, if any.
-
-zinst_default_get()
-{
- if [ -s ${1}/${ZINST_DEFAULT} ] ; then
- cat ${1}/${ZINST_DEFAULT}
- fi
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-# be warned, using this function you have to immediately fail if functionss returns error.
-
-prod_add()
-{
- local RESULT=
- local N=
-
- # checks if some products components are already installed,
- # if yes, we have to break with error, as overwrites are DANGEROUS!
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}")
- do
- if [ -d ${2}/Products/${N} ]
- then
- echo "ZPROD-MANAGER WARNING: Overwrite possiblity detected at ${N}"
- return ${E_OVERWRITE}
- fi
- done
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat "${1}/${ZPROD_LLIST_FNAME}"); do
- if [ -d ${2}/lib/python/${N} ]; then
- echo "ZPROD-MANAGER WARNING: Overwrite detected at ${N}"
- return ${E_OVERWRITE}
- fi
- done
- fi
-
- # we do copy instead of link, because its much safer,
- # and zope-development-way compliant
- if [ -e ${1}/Products ] ; then
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- cp -Ra ${1}/Products/${N} ${2}/Products
- done
- else
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- cp -Ra ${1}/${N} ${2}/Products
- done
- fi
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat "${1}/${ZPROD_LLIST_FNAME}") ; do
- cp -Ra ${1}/lib/python/${N} ${2}/lib/python
- done
- fi
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- # basically adding ${PF} to .zproduct.lst
- echo $(basename $1) >> ${2}/${ZPROD_PLIST_FNAME}
- sort -u ${2}/${ZPROD_PLIST_FNAME} > ${2}/.tmp
- mv -f ${2}/.tmp ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
-
- # setting owner and group as in Products folder, so we can compile
- # python scripts with the zope user
- # gives group writing perms (very often need in development teams)
- # takes all perms from others to comply with 770 instance policy
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- chown -R `stat -c %U:%G ${2}/Products` ${2}/Products/${N}
- chmod -R g+rwX,o-rwx ${2}/Products/${N}
- done
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat "${1}/${ZPROD_LLIST_FNAME}") ; do
- chown -R `stat -c %U:%G ${2}/Products` ${2}/lib/python/${N}
- chmod -R g+rwX,o-rwx ${2}/lib/python/${N}
- done
- fi
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-prod_del()
-{
- local RESULT=
- local N=
- local PF=$(basename $1)
-
- grep "${PF}" "${2}/${ZPROD_PLIST_FNAME}" >/dev/null
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- for N in $(cat ${1}/${ZPROD_FLIST_FNAME}) ; do
- rm -rf ${2}/Products/${N}
- done
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat ${1}/${ZPROD_LLIST_FNAME}) ; do
- rm -rf ${2}/lib/python/${N}
- done
- fi
- # remove zproduct from .zproduct.lst
- sed -i -e "s/${PF}$//" -e "/^$/d" ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = (optional) error message
-
-mode_help()
-{
- echo "$(basename $0) version ${VERSION}"
- echo "A Gentoo Zope Product selection tool."
- echo
- echo "Interactive usage:"
- echo -e "\t$(basename $0) [add | del]"
- echo "Default zinstance usage:"
- echo -e "\t$(basename $0) [add |del] /path/of/zproduct"
- echo "Non-interactive usage:"
- echo -e "\t$(basename $0) [add | del] /path/of/zproduct /path/of/zinstance/"
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproductDir
-
-mode_defaultZinst()
-{
- local DEFAULT_ZINST=$(zinst_default_get ${ZI_DIR})
- local RESULT=$?
- if [ -n "${DEFAULT_ZINST}" ] ; then
- mode_explicit ${1} ${2} ${ZI_DIR}/${DEFAULT_ZINST}
- RESULT=${?}
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproduct
-# $3 = /path/to/zinstance
-
-mode_explicit()
-{
- local RESULT=
- if [[ $(is_command "${COMMAND_LIST}" ${1})${?} -eq 0 && \
- $(is_zproductDir ${2})${?} -eq 0 && \
- $(is_zinstanceDir ${3})${?} -eq 0 ]] ; then
- if [ ${1} = "add" ] ; then
- prod_add ${2} ${3}
- RESULT=$?
- elif [ ${1} = "del" ] ; then
- prod_del ${2} ${3}
- RESULT=$?
- else
- RESULT=${E_COMMAND}
- fi
- fi
- return ${RESULT}
-}
-
-### MAIN
-
-if [ ${!#} = "--help" ] ; then
- mode_help
-else
- case "${#}" in
- 0) mode_help ;;
- 1) mode_interactive ${1} ;;
- 2) mode_defaultZinst ${1} ${2} ;;
- 3) mode_explicit ${1} ${2} ${3} ;;
- *) mode_help "Error: Too many parameters" ;;
- esac
-fi
-
-RESULT=$?
-
-if [ ${RESULT} -ne 0 ] ; then
- echo "ERROR ${?}"
-fi
-
-
-# vim:ts=8
diff --git a/app-admin/zprod-manager/files/0.3.3/zprod-manager b/app-admin/zprod-manager/files/0.3.3/zprod-manager
deleted file mode 100644
index 085447caaaba..000000000000
--- a/app-admin/zprod-manager/files/0.3.3/zprod-manager
+++ /dev/null
@@ -1,385 +0,0 @@
-#!/bin/bash
-# Gentoo Zope Product selection tool.
-# Copyright 2003 Jason Shoemaker <kutsuya@gentoo.org>
-# Distributed under GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/files/0.3.3/zprod-manager,v 1.1 2008/11/16 16:00:40 tupone Exp $
-
-VERSION="0.3.3"
-COMMAND_LIST="add del"
-ZS_DIR="/usr/share/zope/"
-ZI_DIR="/var/lib/zope/"
-ZPROD_DIR="/usr/share/zproduct/"
-
-ZINST_DEFAULT=".default"
-ZPROD_FLIST_FNAME=".zfolder.lst"
-ZPROD_LLIST_FNAME=".zlfolder.lst"
-ZPROD_PLIST_FNAME=".zproduct.lst"
-
-# Assume the standard dialog return codes
-#DIALOG_CANCEL=1
-#DIALOG_ERROR=-1
-#DIALOG_ESC=-255
-#DIALOG_OK=0
-#DIALOG_ERROR may equal #DIALOG_ESC
-
-# Return codes used in this program:
-E_SUCCESS=0
-E_FAILURE=1
-
-E_ZPLIST=20
-E_ZILIST=22
-E_COMMAND=24
-E_OVERWRITE=26
-
-## copied from zope-config
-
-zinst_dir_get()
-{
- local RESULT=${E_FAILURE}
- local LIST=$(ls ${ZI_DIR})
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZINST_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- dialog \
- --title "Zope Instance List" \
- --menu "Select desired zinstance:" 0 0 ${LIST_CNT} ${DLIST} 2> $tempfile
- RESULT=$?
- ZINST_DIR=$(cat $tempfile)
- else
- RESULT=${E_ZILIST} # There are no zinstances
- fi
- ZINST_DIR="${ZI_DIR}${ZINST_DIR}"
- return ${RESULT}
-}
-
-# params: none
-# TODO: Maybe try to break this function down some more.
-# TODO: verify items in ZP_PLIST and ZI_PLIST
-
-mode_interactive()
-{
- local RESULT=
- if [ $(is_command "${COMMAND_LIST}" ${1})${?} -ne 0 ] ; then
- RESULT=${?}
- return ${RESULT}
- fi
- ZP_PLIST=$(ls ${ZPROD_DIR})
- if [ "${ZP_PLIST}" ] ; then
- zinst_dir_get
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- ZI_PLIST=$(cat ${ZINST_DIR}/${ZPROD_PLIST_FNAME})
- # Create CLIST for --menu
- if [ "${ZI_PLIST}" ] ; then
- for N in ${ZP_PLIST} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -eq 0 ] ; then
- STATUS=ON
- else
- STATUS=OFF
- fi
- CLIST="${CLIST} ${N} - ${STATUS}"
- done
- dialog \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST} 2> $tempfile
- RESULT=$?
- CTAGS=$(cat $tempfile)
- CTAGS=$(echo ${CTAGS} | sed -e "s:\"::g")
- # Prepare to add and delete zproducts installed in zinstance
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${ZI_PLIST} ; do
- echo "$CTAGS" |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- for N in ${CTAGS} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- RESULT=$?
- elif [ ${RESULT} -eq 0 ] ; then # $CTAGS is empty
- for N in ${ZI_PLIST} ; do
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- RESULT=$?
- fi
- else # ZI_PLIST is empty
- for N in ${ZP_PLIST} ; do
- CLIST="${CLIST} ${N} - 0"
- done
- dialog \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST} 2> $tempfile
- RESULT=$?
- CTAGS=$(cat $tempfile)
- CTAGS=$(echo "${CTAGS}" | sed -e "s:\"::g")
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${CTAGS} ; do
- # as this is empty Products directory in instance if-case, we can safely ignore
- # RESULT returned from prod_add in case of overwrite error. It can not happen
- # when ZI_PLIST is empty, right? ;) <radek@gentoo.org>
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- fi
- fi
- fi
- else # ZP_PLIST is empty
- RESULT=${E_ZPLIST}
- fi
- return ${RESULT}
-}
-
-
-# Parameters:
-# $1 = command list
-# $2 = command received
-# Returns:
-# true or false
-
-is_command()
-{
- local RESULT=${E_COMMAND}
- local N=
-
- echo ${1} |grep ${2} >/dev/null
- if [ $? -eq 0 ] ; then
- RESULT=0
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinstance
-# Returns:
-# true or false
-
-is_zinstanceDir()
-{
- local RESULT=${E_ZILIST}
- # If can't find these, probably not a zinstance.
- if [[ -d "${1}/Products" && -d "${1}/var" && -d "${1}/import" && -d "${1}/Extensions" ]] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# Returns:
-# true or false
-
-is_zproductDir()
-{
- local RESULT=${E_ZPLIST}
- # look for something in .zproduct.lst in $1, if we can't find that...
- if [ -s "${1}/${ZPROD_FLIST_FNAME}" ] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinst_dir
-# Returns:
-# stdout = name of defautl zinstance, if any.
-
-zinst_default_get()
-{
- if [ -s ${1}/${ZINST_DEFAULT} ] ; then
- cat ${1}/${ZINST_DEFAULT}
- fi
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-# be warned, using this function you have to immediately fail if functionss returns error.
-
-prod_add()
-{
- local RESULT=
- local N=
-
- # checks if some products components are already installed,
- # if yes, we have to break with error, as overwrites are DANGEROUS!
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}")
- do
- if [ -d ${2}/Products/${N} ]
- then
- echo "ZPROD-MANAGER WARNING: Overwrite possiblity detected at ${N}"
- return ${E_OVERWRITE}
- fi
- done
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat "${1}/${ZPROD_LLIST_FNAME}"); do
- if [ -d ${2}/lib/python/${N} ]; then
- echo "ZPROD-MANAGER WARNING: Overwrite detected at ${N}"
- return ${E_OVERWRITE}
- fi
- done
- fi
-
- # we do copy instead of link, because its much safer,
- # and zope-development-way compliant
- if [ -e ${1}/Products ] ; then
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- cp -Ra ${1}/Products/${N} ${2}/Products
- done
- else
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- cp -Ra ${1}/${N} ${2}/Products
- done
- fi
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat "${1}/${ZPROD_LLIST_FNAME}") ; do
- cp -Ra ${1}/lib/python/${N} ${2}/lib/python
- done
- fi
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- # basically adding ${PF} to .zproduct.lst
- echo $(basename $1) >> ${2}/${ZPROD_PLIST_FNAME}
- sort -u ${2}/${ZPROD_PLIST_FNAME} > ${2}/.tmp
- mv -f ${2}/.tmp ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
-
- # setting owner and group as in Products folder, so we can compile
- # python scripts with the zope user
- # gives group writing perms (very often need in development teams)
- # takes all perms from others to comply with 770 instance policy
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- chown -R `stat -c %U:%G ${2}/Products` ${2}/Products/${N}
- chmod -R g+rwX,o-rwx ${2}/Products/${N}
- done
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat "${1}/${ZPROD_LLIST_FNAME}") ; do
- chown -R `stat -c %U:%G ${2}/Products` ${2}/lib/python/${N}
- chmod -R g+rwX,o-rwx ${2}/lib/python/${N}
- done
- fi
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-prod_del()
-{
- local RESULT=
- local N=
- local PF=$(basename $1)
-
- grep "${PF}" "${2}/${ZPROD_PLIST_FNAME}" >/dev/null
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- for N in $(cat ${1}/${ZPROD_FLIST_FNAME}) ; do
- rm -rf ${2}/Products/${N}
- done
- if [ -f "${1}/${ZPROD_LLIST_FNAME}" ]; then
- for N in $(cat ${1}/${ZPROD_LLIST_FNAME}) ; do
- rm -rf ${2}/lib/python/${N}
- done
- fi
- # remove zproduct from .zproduct.lst
- sed -i -e "s/${PF}$//" -e "/^$/d" ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = (optional) error message
-
-mode_help()
-{
- echo "$(basename $0) version ${VERSION}"
- echo "A Gentoo Zope Product selection tool."
- echo
- echo "Interactive usage:"
- echo -e "\t$(basename $0) [add | del]"
- echo "Default zinstance usage:"
- echo -e "\t$(basename $0) [add |del] /path/of/zproduct"
- echo "Non-interactive usage:"
- echo -e "\t$(basename $0) [add | del] /path/of/zproduct /path/of/zinstance/"
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproductDir
-
-mode_defaultZinst()
-{
- local DEFAULT_ZINST=$(zinst_default_get ${ZI_DIR})
- local RESULT=$?
- if [ -n "${DEFAULT_ZINST}" ] ; then
- mode_explicit ${1} ${2} ${ZI_DIR}/${DEFAULT_ZINST}
- RESULT=${?}
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproduct
-# $3 = /path/to/zinstance
-
-mode_explicit()
-{
- local RESULT=
- if [[ $(is_command "${COMMAND_LIST}" ${1})${?} -eq 0 && \
- $(is_zproductDir ${2})${?} -eq 0 && \
- $(is_zinstanceDir ${3})${?} -eq 0 ]] ; then
- if [ ${1} = "add" ] ; then
- prod_add ${2} ${3}
- RESULT=$?
- elif [ ${1} = "del" ] ; then
- prod_del ${2} ${3}
- RESULT=$?
- else
- RESULT=${E_COMMAND}
- fi
- fi
- return ${RESULT}
-}
-
-### MAIN
-
-tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
-trap "rm -f $tempfile" 0 1 2 15
-
-if [ ${!#} = "--help" ] ; then
- mode_help
-else
- case "${#}" in
- 0) mode_help ;;
- 1) mode_interactive ${1} ;;
- 2) mode_defaultZinst ${1} ${2} ;;
- 3) mode_explicit ${1} ${2} ${3} ;;
- *) mode_help "Error: Too many parameters" ;;
- esac
-fi
-
-RESULT=$?
-
-if [ ${RESULT} -ne 0 ] ; then
- echo "ERROR ${?}"
-fi
-
-
-# vim:ts=8
diff --git a/app-admin/zprod-manager/files/0.3/zprod-manager b/app-admin/zprod-manager/files/0.3/zprod-manager
deleted file mode 100644
index cc22dc784fd9..000000000000
--- a/app-admin/zprod-manager/files/0.3/zprod-manager
+++ /dev/null
@@ -1,345 +0,0 @@
-#!/bin/bash
-# Gentoo Zope Product selection tool.
-# Copyright 2003 Jason Shoemaker <kutsuya@gentoo.org>
-# Distributed under GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/files/0.3/zprod-manager,v 1.2 2006/11/06 05:28:09 aross Exp $
-
-VERSION="0.3"
-COMMAND_LIST="add del"
-ZS_DIR="/usr/share/zope/"
-ZI_DIR="/var/lib/zope/"
-ZPROD_DIR="/usr/share/zproduct/"
-
-ZINST_DEFAULT=".default"
-ZPROD_FLIST_FNAME=".zfolder.lst"
-ZPROD_PLIST_FNAME=".zproduct.lst"
-
-# Assume the standard dialog return codes
-#DIALOG_CANCEL=1
-#DIALOG_ERROR=-1
-#DIALOG_ESC=-255
-#DIALOG_OK=0
-#DIALOG_ERROR may equal #DIALOG_ESC
-
-# Return codes used in this program:
-E_SUCCESS=0
-E_FAILURE=1
-
-E_ZPLIST=20
-E_ZILIST=22
-E_COMMAND=24
-E_OVERWRITE=26
-
-## copied from zope-config
-
-zinst_dir_get()
-{
- local RESULT=${E_FAILURE}
- local LIST=$(ls ${ZI_DIR})
- local LIST_CNT=$(echo ${LIST} | wc -w)
- local DLIST=
-
- if [ ${LIST_CNT} -eq 1 ] ; then
- ZINST_DIR=${LIST}
- RESULT=${E_SUCCESS}
- elif [ ${LIST_CNT} -ne 0 ] ; then
- for N in ${LIST} ; do
- DLIST="${DLIST} $N -"
- done
- ZINST_DIR=$(dialog --stdout \
- --title "Zope Instance List" \
- --menu "Select desired zinstance:" 0 0 ${LIST_CNT} ${DLIST})
- RESULT=$?
- else
- RESULT=${E_ZILIST} # There are no zinstances
- fi
- ZINST_DIR="${ZI_DIR}${ZINST_DIR}"
- return ${RESULT}
-}
-
-# params: none
-# TODO: Maybe try to break this function down some more.
-# TODO: verify items in ZP_PLIST and ZI_PLIST
-
-mode_interactive()
-{
- local RESULT=
- if [ $(is_command "${COMMAND_LIST}" ${1})${?} -ne 0 ] ; then
- RESULT=${?}
- return ${RESULT}
- fi
- ZP_PLIST=$(ls ${ZPROD_DIR})
- if [ "${ZP_PLIST}" ] ; then
- zinst_dir_get
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- ZI_PLIST=$(cat ${ZINST_DIR}/${ZPROD_PLIST_FNAME})
- # Create CLIST for --menu
- if [ "${ZI_PLIST}" ] ; then
- for N in ${ZP_PLIST} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -eq 0 ] ; then
- STATUS=ON
- else
- STATUS=OFF
- fi
- CLIST="${CLIST} ${N} - ${STATUS}"
- done
- CTAGS=$(dialog --stdout \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST})
- RESULT=$?
- CTAGS=$(echo ${CTAGS} | sed -e "s:\"::g")
- # Prepare to add and delete zproducts installed in zinstance
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${ZI_PLIST} ; do
- echo "$CTAGS" |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- for N in ${CTAGS} ; do
- echo ${ZI_PLIST} |grep ${N} >/dev/null
- if [ $? -ne 0 ] ; then
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- fi
- done
- RESULT=$?
- elif [ ${RESULT} -eq 0 ] ; then # $CTAGS is empty
- for N in ${ZI_PLIST} ; do
- prod_del ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- RESULT=$?
- fi
- else # ZI_PLIST is empty
- for N in ${ZP_PLIST} ; do
- CLIST="${CLIST} ${N} - 0"
- done
- CTAGS=$(dialog --stdout \
- --backtitle "Select the zproducts you want installed for zinstance(${ZINST_DIR})." \
- --checklist "Select:" 0 0 0 ${CLIST})
- RESULT=$?
- CTAGS=$(echo "${CTAGS}" | sed -e "s:\"::g")
- if [[ ${RESULT} -eq 0 && "${CTAGS}" ]] ; then
- for N in ${CTAGS} ; do
- # as this is empty Products directory in instance if-case, we can safely ignore
- # RESULT returned from prod_add in case of overwrite error. It can not happen
- # when ZI_PLIST is empty, right? ;) <radek@gentoo.org>
- prod_add ${ZPROD_DIR}/${N} ${ZINST_DIR}
- done
- fi
- fi
- fi
- else # ZP_PLIST is empty
- RESULT=${E_ZPLIST}
- fi
- return ${RESULT}
-}
-
-
-# Parameters:
-# $1 = command list
-# $2 = command received
-# Returns:
-# true or false
-
-is_command()
-{
- local RESULT=${E_COMMAND}
- local N=
-
- echo ${1} |grep ${2} >/dev/null
- if [ $? -eq 0 ] ; then
- RESULT=0
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinstance
-# Returns:
-# true or false
-
-is_zinstanceDir()
-{
- local RESULT=${E_ZILIST}
- # If can't find these, probably not a zinstance.
- if [[ -d "${1}/Products" && -d "${1}/var" && -d "${1}/import" && -d "${1}/Extensions" ]] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# Returns:
-# true or false
-
-is_zproductDir()
-{
- local RESULT=${E_ZPLIST}
- # look for something in .zproduct.lst in $1, if we can't find that...
- if [ -s "${1}/${ZPROD_FLIST_FNAME}" ] ; then
- RESULT=0
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zinst_dir
-# Returns:
-# stdout = name of defautl zinstance, if any.
-
-zinst_default_get()
-{
- if [ -s ${1}/${ZINST_DEFAULT} ] ; then
- cat ${1}/${ZINST_DEFAULT}
- fi
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-# be warned, using this function you have to immediately fail if functionss returns error.
-
-prod_add()
-{
- local RESULT=
- local N=
-
- # checks if some products components are already installed,
- # if yes, we have to break with error, as overwrites are DANGEROUS!
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}")
- do
- if [ -d ${2}/Products/${N} ]
- then
- echo "ZPROD-MANAGER WARNING: Overwrite possiblity detected at ${N}"
- return ${E_OVERWRITE}
- fi
- done
-
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- # we do copy instead of link, because its much safer, and zope-development-way compliant
- cp -Ra ${1}/${N} ${2}/Products
- done
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- # basically adding ${PF} to .zproduct.lst
- echo $(basename $1) >> ${2}/${ZPROD_PLIST_FNAME}
- sort -u ${2}/${ZPROD_PLIST_FNAME} > ${2}/.tmp
- mv -f ${2}/.tmp ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
-
- for N in $(cat "${1}/${ZPROD_FLIST_FNAME}") ; do
- # setting owner and group as in Products folder, so we can compile
- # python scripts with the zope user
-
- chown -R `stat -c %U:%G ${2}/Products` ${2}/Products/${N}
-
- # gives group writing perms (very often need in development teams)
- # takes all perms from others to comply with 770 instance policy
- chmod -R g+rwX,o-rwx ${2}/Products/${N}
- done
- fi
-
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = /path/to/zproduct
-# $2 = /path/to/zinstance
-
-prod_del()
-{
- local RESULT=
- local N=
- local PF=$(basename $1)
-
- grep "${PF}" "${2}/${ZPROD_PLIST_FNAME}" >/dev/null
- RESULT=$?
- if [ ${RESULT} -eq 0 ] ; then
- for N in $(cat ${1}/${ZPROD_FLIST_FNAME}) ; do
- rm -rf ${2}/Products/${N}
- done
- # remove zproduct from .zproduct.lst
- sed -i -e "s/${PF}$//" -e "/^$/d" ${2}/${ZPROD_PLIST_FNAME}
- RESULT=$?
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = (optional) error message
-
-mode_help()
-{
- echo "$(basename $0) version ${VERSION}"
- echo "A Gentoo Zope Product selection tool."
- echo
- echo "Interactive usage:"
- echo -e "\t$(basename $0) [add | del]"
- echo "Default zinstance usage:"
- echo -e "\t$(basename $0) [add |del] /path/of/zproduct"
- echo "Non-interactive usage:"
- echo -e "\t$(basename $0) [add | del] /path/of/zproduct /path/of/zinstance/"
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproductDir
-
-mode_defaultZinst()
-{
- local DEFAULT_ZINST=$(zinst_default_get ${ZI_DIR})
- local RESULT=$?
- if [ -n "${DEFAULT_ZINST}" ] ; then
- mode_explicit ${1} ${2} ${ZI_DIR}/${DEFAULT_ZINST}
- RESULT=${?}
- fi
- return ${RESULT}
-}
-
-# Parameters:
-# $1 = command
-# $2 = /path/to/zproduct
-# $3 = /path/to/zinstance
-
-mode_explicit()
-{
- local RESULT=
- if [[ $(is_command "${COMMAND_LIST}" ${1})${?} -eq 0 && \
- $(is_zproductDir ${2})${?} -eq 0 && \
- $(is_zinstanceDir ${3})${?} -eq 0 ]] ; then
- if [ ${1} = "add" ] ; then
- prod_add ${2} ${3}
- RESULT=$?
- elif [ ${1} = "del" ] ; then
- prod_del ${2} ${3}
- RESULT=$?
- else
- RESULT=${E_COMMAND}
- fi
- fi
- return ${RESULT}
-}
-
-### MAIN
-
-case "${#}" in
- 0) mode_help ;;
- 1) mode_interactive ${1} ;;
- 2) mode_defaultZinst ${1} ${2} ;;
- 3) mode_explicit ${1} ${2} ${3} ;;
- *) mode_help "Error: Too many parameters" ;;
-esac
-
-RESULT=$?
-
-if [ ${RESULT} -ne 0 ] ; then
- echo "ERROR ${?}"
-fi
-
-
-# vim:ts=8
diff --git a/app-admin/zprod-manager/metadata.xml b/app-admin/zprod-manager/metadata.xml
deleted file mode 100644
index a71b6c10ddec..000000000000
--- a/app-admin/zprod-manager/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>net-zope</herd>
- </pkgmetadata>
diff --git a/app-admin/zprod-manager/zprod-manager-0.3.1.ebuild b/app-admin/zprod-manager/zprod-manager-0.3.1.ebuild
deleted file mode 100644
index cc667c9e73b2..000000000000
--- a/app-admin/zprod-manager/zprod-manager-0.3.1.ebuild
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/zprod-manager-0.3.1.ebuild,v 1.1 2006/11/06 05:28:09 aross Exp $
-
-DESCRIPTION="Gentoo Zope Product selection tool"
-SRC_URI=""
-HOMEPAGE="http://www.gentoo.org/"
-
-SLOT="0"
-LICENSE="GPL-2"
-IUSE=""
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-DEPEND=""
-RDEPEND=">=dev-util/dialog-0.7
- sys-apps/grep
- sys-apps/sed
- >=net-zope/zope-2.6.0-r2"
-
-src_install() {
- dosbin "${FILESDIR}/${PV}"/zprod-manager || die "install failed"
-}
diff --git a/app-admin/zprod-manager/zprod-manager-0.3.2-r1.ebuild b/app-admin/zprod-manager/zprod-manager-0.3.2-r1.ebuild
deleted file mode 100644
index c04658e72a2e..000000000000
--- a/app-admin/zprod-manager/zprod-manager-0.3.2-r1.ebuild
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/zprod-manager-0.3.2-r1.ebuild,v 1.4 2008/11/30 18:39:00 armin76 Exp $
-
-DESCRIPTION="Gentoo Zope Product selection tool"
-SRC_URI=""
-HOMEPAGE="http://www.gentoo.org/"
-
-SLOT="0"
-LICENSE="GPL-2"
-IUSE=""
-KEYWORDS="amd64 ppc sparc x86"
-
-DEPEND=""
-RDEPEND="dev-util/dialog
- net-zope/zope"
-
-src_install() {
- dosbin "${FILESDIR}/${PV}"/zprod-manager || die "install failed"
-}
diff --git a/app-admin/zprod-manager/zprod-manager-0.3.3.ebuild b/app-admin/zprod-manager/zprod-manager-0.3.3.ebuild
deleted file mode 100644
index 3e635e46769d..000000000000
--- a/app-admin/zprod-manager/zprod-manager-0.3.3.ebuild
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/zprod-manager-0.3.3.ebuild,v 1.1 2008/11/16 16:00:24 tupone Exp $
-
-DESCRIPTION="Gentoo Zope Product selection tool"
-SRC_URI=""
-HOMEPAGE="http://www.gentoo.org/"
-
-SLOT="0"
-LICENSE="GPL-2"
-IUSE=""
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-DEPEND=""
-RDEPEND="dev-util/dialog
- net-zope/zope"
-
-src_install() {
- dosbin "${FILESDIR}/${PV}"/zprod-manager || die "install failed"
-}
diff --git a/app-admin/zprod-manager/zprod-manager-0.3.ebuild b/app-admin/zprod-manager/zprod-manager-0.3.ebuild
deleted file mode 100644
index 948208a13a53..000000000000
--- a/app-admin/zprod-manager/zprod-manager-0.3.ebuild
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/zprod-manager/zprod-manager-0.3.ebuild,v 1.8 2008/06/06 23:28:58 tupone Exp $
-
-DESCRIPTION="Gentoo Zope Product selection tool"
-SRC_URI=""
-HOMEPAGE="http://www.gentoo.org/"
-
-SLOT="0"
-LICENSE="GPL-2"
-IUSE=""
-KEYWORDS="amd64 ppc sparc x86"
-
-DEPEND=""
-RDEPEND=">=dev-util/dialog-0.7
- sys-apps/grep
- sys-apps/sed
- >=net-zope/zope-2.6.0-r2"
-
-src_install() {
- dosbin "${FILESDIR}"/${PV}/zprod-manager
-}