summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJodok Batlogg <batlogg@gentoo.org>2004-09-18 16:01:22 +0000
committerJodok Batlogg <batlogg@gentoo.org>2004-09-18 16:01:22 +0000
commit1032c2243f89e51a29be4b5c297504762a26e2e9 (patch)
treebe727d10d777ab17dd87724758c13371bc7dca93 /eclass/zproduct.eclass
parentStable on sparc. (diff)
downloadhistorical-1032c2243f89e51a29be4b5c297504762a26e2e9.tar.gz
historical-1032c2243f89e51a29be4b5c297504762a26e2e9.tar.bz2
historical-1032c2243f89e51a29be4b5c297504762a26e2e9.zip
permissions of the products dir are set like a lib, owned by root
Diffstat (limited to 'eclass/zproduct.eclass')
-rw-r--r--eclass/zproduct.eclass12
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/zproduct.eclass b/eclass/zproduct.eclass
index 0174bf7fe770..10b4f25db345 100644
--- a/eclass/zproduct.eclass
+++ b/eclass/zproduct.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/zproduct.eclass,v 1.12 2004/06/25 00:39:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/zproduct.eclass,v 1.13 2004/09/18 16:01:22 batlogg Exp $
# Author: Jason Shoemaker <kutsuya@gentoo.org>
# This eclass is designed to streamline the construction of
@@ -92,7 +92,15 @@ zproduct_pkg_postinst()
#*Use zprod-update to install this zproduct to the default zinstance.
debug-print-function ${FUNCNAME} ${*}
- chown -R zope:root ${ZP_DIR}/${PF}
+
+ # this is a shared directory, so root should be owner;
+ # zprod-manager or whatever is used to copy products into the
+ # instances has to take care of setting the right permissions in
+ # the target directory
+
+ chown -R root:root ${ZP_DIR}/${PF}
+ # make shure there is nothing writable in the new dir
+ chmod -R go-w ${ZP_DIR}/${PF}
einfo ">>> Installing ${PF} into the \"$(zope-config --zidef-get)\" zinstance..."
${ROOT}/usr/sbin/zprod-manager add ${ZP_DIR}/${PF}
}