/[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.2 Revision 1.3
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.2 2006/10/25 11:27:36 pebenito Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.3 2007/07/07 16:21:07 kaiowas 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
8inherit eutils 8inherit eutils
38 for i in ${POLICY_TYPES}; do 38 for i in ${POLICY_TYPES}; do
39 mkdir ${S}/${i} 39 mkdir ${S}/${i}
40 cp ${S}/refpolicy/doc/Makefile.example ${S}/${i}/Makefile 40 cp ${S}/refpolicy/doc/Makefile.example ${S}/${i}/Makefile
41 41
42 cp ${modfiles} ${S}/${i} 42 cp ${modfiles} ${S}/${i}
43
44 if [ -n "${POLICY_PATCH}" ]; then
45 cd ${S}/${i}
46 epatch "${POLICY_PATCH}" || die "failed patch ${i}"
47 fi
48
43 done 49 done
44} 50}
45 51
46selinux-policy-2_src_compile() { 52selinux-policy-2_src_compile() {
47 [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" 53 [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20