summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-05-16 13:54:31 +0000
committerChristian Heim <phreak@gentoo.org>2007-05-16 13:54:31 +0000
commit80a9ecde61b85fc7939bd27f0851d0e5c731ec31 (patch)
treedd6cd786c7e1ade212122fcdcbf2fe0fec086569 /sys-cluster
parentVersion bump, thanks to Raul Porcel for the reminder. (diff)
downloadgentoo-2-80a9ecde61b85fc7939bd27f0851d0e5c731ec31.tar.gz
gentoo-2-80a9ecde61b85fc7939bd27f0851d0e5c731ec31.tar.bz2
gentoo-2-80a9ecde61b85fc7939bd27f0851d0e5c731ec31.zip
Silence mkdir ${VDIRBASE} and apply the barrier to ${VDIRBASE} in pkg_postinst.
(Portage version: 2.1.2.7)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/util-vserver/ChangeLog6
-rw-r--r--sys-cluster/util-vserver/util-vserver-0.30.213.ebuild7
2 files changed, 10 insertions, 3 deletions
diff --git a/sys-cluster/util-vserver/ChangeLog b/sys-cluster/util-vserver/ChangeLog
index d5e75b485464..ee90b39c9c4e 100644
--- a/sys-cluster/util-vserver/ChangeLog
+++ b/sys-cluster/util-vserver/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/util-vserver
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/ChangeLog,v 1.81 2007/05/16 09:50:50 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/ChangeLog,v 1.82 2007/05/16 13:54:31 phreak Exp $
+
+ 16 May 2007; Christian Heim <phreak@gentoo.org>
+ util-vserver-0.30.213.ebuild:
+ Silence mkdir ${VDIRBASE} and apply the barrier to ${VDIRBASE} in pkg_postinst.
16 May 2007; Christian Heim <phreak@gentoo.org>
+files/util-vserver-0.30.213-init-vserver.sh.patch,
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild
index 8a3764b3d602..6f7d939a266f 100644
--- a/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild
+++ b/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild,v 1.2 2007/05/16 09:50:50 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild,v 1.3 2007/05/16 13:54:31 phreak Exp $
WANT_AUTOMAKE="1.9"
@@ -80,7 +80,10 @@ src_install() {
pkg_postinst() {
# Create VDIRBASE in postinst, so it is (a) not unmerged and (b) also
# present when merging.
- mkdir "${VDIRBASE}"
+
+ [ ! -d "${VDIRBASE}" ] && mkdir -p "${VDIRBASE}" &> /dev/null
+ setattr --barrier "${VDIRBASE}" &> /dev/null
+
rm /etc/vservers/.defaults/vdirbase
ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase