From: | "Sven Vermeulen (swift)" <swift@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sec-policy/selinux-base-policy: selinux-base-policy-9999.ebuild |
Date: | Sat, 23 Aug 2014 10:49:15 |
Message-Id: | 20140823104912.32E123C2B@oystercatcher.gentoo.org |
1 | swift 14/08/23 10:49:12 |
2 | |
3 | Modified: selinux-base-policy-9999.ebuild |
4 | Log: |
5 | Enable package relabeling for selinux-base-policy |
6 | |
7 | Revision Changes Path |
8 | 1.11 sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild?rev=1.11&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild?rev=1.11&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild?r1=1.10&r2=1.11 |
13 | |
14 | Index: selinux-base-policy-9999.ebuild |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild,v |
17 | retrieving revision 1.10 |
18 | retrieving revision 1.11 |
19 | diff -u -r1.10 -r1.11 |
20 | --- selinux-base-policy-9999.ebuild 9 Aug 2014 19:34:19 -0000 1.10 |
21 | +++ selinux-base-policy-9999.ebuild 23 Aug 2014 10:49:12 -0000 1.11 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2014 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild,v 1.10 2014/08/09 19:34:19 swift Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild,v 1.11 2014/08/23 10:49:12 swift Exp $ |
27 | EAPI="5" |
28 | |
29 | inherit eutils |
30 | @@ -131,4 +131,16 @@ |
31 | |
32 | semodule -s ${i} -b base.pp ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store" |
33 | done |
34 | + |
35 | + # Relabel depending packages |
36 | + PKGSET=""; |
37 | + if [ -x /usr/bin/qdepends ] ; then |
38 | + PKGSET=$(/usr/bin/qdepends -Cq -Q ${CATEGORY}/${PN}); |
39 | + elif [ -x /usr/bin/equery ] ; then |
40 | + PKGSET=$(/usr/bin/equery -Cq depends ${CATEGORY}/${PN}); |
41 | + fi |
42 | + for PKG in ${PKGSET}; |
43 | + do |
44 | + rlpkg ${PKG}; |
45 | + done |
46 | } |