/[gentoo-x86]/eclass/selinux-policy-2.eclass
Gentoo

Diff of /eclass/selinux-policy-2.eclass

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

Revision 1.9 Revision 1.10
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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/selinux-policy-2.eclass,v 1.9 2011/08/22 04:46:32 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.10 2011/08/22 19:51:33 swift Exp $
4 4
5# Eclass for installing SELinux policy, and optionally 5# Eclass for installing SELinux policy, and optionally
6# reloading the reference-policy based modules. 6# reloading the reference-policy based modules.
7 7
8# @ECLASS: selinux-policy-2.eclass 8# @ECLASS: selinux-policy-2.eclass
115 115
116 # Patch the sources with the base patchbundle 116 # Patch the sources with the base patchbundle
117 if [[ -n ${BASEPOL} ]]; 117 if [[ -n ${BASEPOL} ]];
118 then 118 then
119 cd "${S}" 119 cd "${S}"
120 epatch "${PATCHBUNDLE}" 120 EPATCH_MULTI_MSG="Applying SELinux policy updates ... " \
121 EPATCH_SUFFIX="patch" \
122 EPATCH_SOURCE="${WORKDIR}" \
123 EPATCH_FORCE="yes" \
124 epatch
121 fi 125 fi
122 126
123 # Apply the additional patches refered to by the module ebuild. 127 # Apply the additional patches refered to by the module ebuild.
124 # But first some magic to differentiate between bash arrays and strings 128 # But first some magic to differentiate between bash arrays and strings
125 if [[ "$(declare -p POLICY_PATCH 2>/dev/null 2>&1)" == "declare -a"* ]]; 129 if [[ "$(declare -p POLICY_PATCH 2>/dev/null 2>&1)" == "declare -a"* ]];

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20