diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-08-27 17:42:55 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-08-27 17:42:55 +0000 |
commit | 3c79d46b5687356e07b4c77bc91d51bcf5e44e0c (patch) | |
tree | 16fcf4ad7339abc1f9084d9c538da19ce7f3955f /sys-apps | |
parent | alpha/ia64/sparc stable wrt #378815 (diff) | |
download | gentoo-2-3c79d46b5687356e07b4c77bc91d51bcf5e44e0c.tar.gz gentoo-2-3c79d46b5687356e07b4c77bc91d51bcf5e44e0c.tar.bz2 gentoo-2-3c79d46b5687356e07b4c77bc91d51bcf5e44e0c.zip |
Initialize /var/log/portage permissions for bug #378451 and bug #377177.
(Portage version: 2.2.0_alpha51_p28/cvs/Linux i686)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/portage/ChangeLog | 5 | ||||
-rw-r--r-- | sys-apps/portage/portage-2.1.10.11.ebuild | 13 |
2 files changed, 16 insertions, 2 deletions
diff --git a/sys-apps/portage/ChangeLog b/sys-apps/portage/ChangeLog index 304881d15e09..54f17279017f 100644 --- a/sys-apps/portage/ChangeLog +++ b/sys-apps/portage/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/portage # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.864 2011/08/27 11:29:59 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.865 2011/08/27 17:42:55 zmedico Exp $ + + 27 Aug 2011; Zac Medico <zmedico@gentoo.org> portage-2.1.10.11.ebuild: + Initialize /var/log/portage permissions for bug #378451 and bug #377177. 27 Aug 2011; Raúl Porcel <armin76@gentoo.org> portage-2.1.10.11.ebuild: alpha/arm/ia64/m68k/s390/sh/sparc/x86 stable wrt #380677 diff --git a/sys-apps/portage/portage-2.1.10.11.ebuild b/sys-apps/portage/portage-2.1.10.11.ebuild index 93151c0aca7b..c908dabb13e0 100644 --- a/sys-apps/portage/portage-2.1.10.11.ebuild +++ b/sys-apps/portage/portage-2.1.10.11.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.10.11.ebuild,v 1.3 2011/08/27 11:29:59 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.10.11.ebuild,v 1.4 2011/08/27 17:42:55 zmedico Exp $ # Require EAPI 2 since we now require at least python-2.6 (for python 3 # syntax support) which also requires EAPI 2. @@ -319,6 +319,17 @@ pkg_preinst() { rm "${ROOT}/etc/make.globals" fi + if [[ -d ${ROOT}var/log/portage && \ + $(ls -ld "${ROOT}var/log/portage") != *" portage portage "* ]] && \ + has_version '<sys-apps/portage-2.1.10.11' ; then + # Initialize permissions for bug #378451 and bug #377177, since older + # portage does not create /var/log/portage with the desired default + # permissions. + einfo "Applying portage group permission to ${ROOT}var/log/portage for bug #378451" + chown portage:portage "${ROOT}var/log/portage" + chmod g+ws "${ROOT}var/log/portage" + fi + [[ -n $PORTDIR_OVERLAY ]] && has_version "<${CATEGORY}/${PN}-2.1.6.12" REPO_LAYOUT_CONF_WARN=$? } |