/[gentoo-x86]/eclass/kde4-functions.eclass
Gentoo

Diff of /eclass/kde4-functions.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.16 2009/04/17 10:41:29 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.17 2009/04/19 10:23:07 scarabeus Exp $
4 4
5# @ECLASS: kde4-functions.eclass 5# @ECLASS: kde4-functions.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: Common ebuild functions for KDE 4 packages 8# @BLURB: Common ebuild functions for KDE 4 packages
74 eend $? 74 eend $?
75 fi 75 fi
76 76
77 # fix permission for some directories 77 # fix permission for some directories
78 for x in share/config share/kde4; do 78 for x in share/config share/kde4; do
79 if [[ $(stat --format=%a /usr/${x}) != 755 || $(stat --format=%a ${KDEDIR}/${x}) != 755 ]]; then 79 [[ ${KDEDIR} = /usr ]] && DIRS=/usr || DIRS="/usr ${KDEDIR}"
80 for y in ${DIRS}; do
81 [[ -d "${y}/${x}" ]] || break # nothing to do if directory does not exist
82 if [[ $(stat --format=%a "${y}/${x}") != 755 ]]; then
80 ewarn "QA Notice:" 83 ewarn "QA Notice:"
81 ewarn "Package ${PN} is breaking ${KDEDIR}/${x} permissions." 84 ewarn "Package ${PN} is breaking ${y}/${x} permissions."
82 ewarn "Please report this issue to gentoo bugzilla." 85 ewarn "Please report this issue to gentoo bugzilla."
83 einfo "Permissions will get adjusted automatically now." 86 einfo "Permissions will get adjusted automatically now."
84 find /usr/${x} -type d -print0 | xargs -0 chmod 755 87 find "${y}/${x}" -type d -print0 | xargs -0 chmod 755
85 [[ ${KDEDIR} = /usr ]] || find ${KDEDIR}/${x} -type d -print0 | xargs -0 chmod 755
86 fi 88 fi
89 done
87 done 90 done
88} 91}
89 92
90# @FUNCTION: comment_all_add_subdirectory 93# @FUNCTION: comment_all_add_subdirectory
91# @USAGE: [list of directory names] 94# @USAGE: [list of directory names]

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20