From 47e278293d873cbe5f4d3ee3ce4b6140d4da8897 Mon Sep 17 00:00:00 2001 From: Petre Rodan Date: Sat, 7 Jul 2007 16:21:07 +0000 Subject: added support for POLICY_PATCH --- eclass/selinux-policy-2.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass index 2275a0a8c4e9..ae4d411a8658 100644 --- a/eclass/selinux-policy-2.eclass +++ b/eclass/selinux-policy-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.2 2006/10/25 11:27:36 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.3 2007/07/07 16:21:07 kaiowas Exp $ # Eclass for installing SELinux policy, and optionally # reloading the reference-policy based modules @@ -40,6 +40,12 @@ selinux-policy-2_src_unpack() { cp ${S}/refpolicy/doc/Makefile.example ${S}/${i}/Makefile cp ${modfiles} ${S}/${i} + + if [ -n "${POLICY_PATCH}" ]; then + cd ${S}/${i} + epatch "${POLICY_PATCH}" || die "failed patch ${i}" + fi + done } -- cgit v1.2.3-65-gdbad