fix annoying userpriv warnings, bug #76717
authorCiaran McCreesh <ciaranm@gentoo.org>
Wed, 5 Jan 2005 04:09:34 +0000 (04:09 +0000)
committerCiaran McCreesh <ciaranm@gentoo.org>
Wed, 5 Jan 2005 04:09:34 +0000 (04:09 +0000)
eclass/vim-plugin.eclass

index 5b33e9421c8db6f04c81edfa836e7c1535e6d731..e9bee246513c598a697d6d66441f7af65c86afa9 100644 (file)
@@ -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/vim-plugin.eclass,v 1.9 2004/11/13 18:25:52 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.10 2005/01/05 04:09:34 ciaranm Exp $
 #
 # This eclass simplifies installation of app-vim plugins into
 # /usr/share/vim/vimfiles.  This is a version-independent directory
@@ -23,8 +23,12 @@ SLOT="0"
 vim-plugin_src_install() {
        local f
 
+       ebegin "Fixing file permissions"
        # Make sure perms are good
-       chmod -R a+rX ${S}
+       chmod -R a+rX ${S} || die "chmod failed"
+       find ${S} -user  'portage' -exec chown root '{}' \; || die "chown failed"
+       find ${S} -group 'portage' -exec chgrp root '{}' \; || die "chgrp failed"
+       eend $?
 
        # Install non-vim-help-docs
        cd ${S}