1 |
swift 14/03/30 09:14:56 |
2 |
|
3 |
Modified: ChangeLog selinux-policy-2.eclass |
4 |
Log: |
5 |
Add support for USE triggered policy decisions in SELinux eclass |
6 |
|
7 |
Revision Changes Path |
8 |
1.1189 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1189&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1189&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1188&r2=1.1189 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.1188 |
18 |
retrieving revision 1.1189 |
19 |
diff -u -r1.1188 -r1.1189 |
20 |
--- ChangeLog 30 Mar 2014 09:13:52 -0000 1.1188 |
21 |
+++ ChangeLog 30 Mar 2014 09:14:56 -0000 1.1189 |
22 |
@@ -1,6 +1,9 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1188 2014/03/30 09:13:52 johu Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1189 2014/03/30 09:14:56 swift Exp $ |
27 |
+ |
28 |
+ 30 Mar 2014; Sven Vermeulen <swift@g.o> selinux-policy-2.eclass: |
29 |
+ Add support for USE triggered policy decisions |
30 |
|
31 |
30 Mar 2014; Johannes Huber <johu@g.o> kde4-base.eclass: |
32 |
Sync with kde overlay. Raise QT_MINIMAL to latest stable and simplify Qt deps |
33 |
|
34 |
|
35 |
|
36 |
1.21 eclass/selinux-policy-2.eclass |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.21&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?rev=1.21&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/selinux-policy-2.eclass?r1=1.20&r2=1.21 |
41 |
|
42 |
Index: selinux-policy-2.eclass |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v |
45 |
retrieving revision 1.20 |
46 |
retrieving revision 1.21 |
47 |
diff -u -r1.20 -r1.21 |
48 |
--- selinux-policy-2.eclass 16 Dec 2013 14:31:04 -0000 1.20 |
49 |
+++ selinux-policy-2.eclass 30 Mar 2014 09:14:56 -0000 1.21 |
50 |
@@ -1,6 +1,6 @@ |
51 |
-# Copyright 1999-2013 Gentoo Foundation |
52 |
+# Copyright 1999-2014 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.20 2013/12/16 14:31:04 swift Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.21 2014/03/30 09:14:56 swift Exp $ |
56 |
|
57 |
# Eclass for installing SELinux policy, and optionally |
58 |
# reloading the reference-policy based modules. |
59 |
@@ -205,7 +205,14 @@ |
60 |
# Build the SELinux policy module (.pp file) for just the selected module, and |
61 |
# this for each SELinux policy mentioned in POLICY_TYPES |
62 |
selinux-policy-2_src_compile() { |
63 |
+ local makeuse="" |
64 |
+ for useflag in ${IUSE}; |
65 |
+ do |
66 |
+ use ${useflag} && makeuse="${makeuse} -D use_${useflag}" |
67 |
+ done |
68 |
for i in ${POLICY_TYPES}; do |
69 |
+ # Support USE flags in builds |
70 |
+ export M4PARAM="${makeuse}" |
71 |
# Parallel builds are broken, so we need to force -j1 here |
72 |
emake -j1 NAME=$i -C "${S}"/${i} || die "${i} compile failed" |
73 |
done |