summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Vermeulen <swift@gentoo.org>2014-08-23 10:37:18 +0000
committerSven Vermeulen <swift@gentoo.org>2014-08-23 10:37:18 +0000
commit556c9362c16e79f47c2825efe3637846986ebd29 (patch)
tree1f11a063fe6df721d4fc29453aa708b4cdbe4773
parentVersion bump. (diff)
downloadhistorical-556c9362c16e79f47c2825efe3637846986ebd29.tar.gz
historical-556c9362c16e79f47c2825efe3637846986ebd29.tar.bz2
historical-556c9362c16e79f47c2825efe3637846986ebd29.zip
Relabel depending packages so we no longer need DEPEND calls for pure policy dependencies in SELinux
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/selinux-policy-2.eclass14
2 files changed, 17 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index bd8222c3b19a..7d964aca0784 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1354 2014/08/18 08:56:06 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1355 2014/08/23 10:37:18 swift Exp $
+
+ 23 Aug 2014; Sven Vermeulen <swift@gentoo.org> selinux-policy-2.eclass:
+ Adding relabeling support for SELinux depending packages
18 Aug 2014; Michał Górny <mgorny@gentoo.org> python-r1.eclass:
Add extra quoting to prevent accidental globbing.
diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass
index 5f28b1db58aa..51e0115505e4 100644
--- a/eclass/selinux-policy-2.eclass
+++ b/eclass/selinux-policy-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 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.23 2014/08/08 18:35:11 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/selinux-policy-2.eclass,v 1.24 2014/08/23 10:37:18 swift Exp $
# Eclass for installing SELinux policy, and optionally
# reloading the reference-policy based modules.
@@ -314,6 +314,18 @@ selinux-policy-2_pkg_postinst() {
einfo "SELinux modules loaded succesfully."
fi
done
+
+ # Relabel depending packages
+ PKGSET="";
+ if [ -x /usr/bin/qdepends ] ; then
+ PKGSET=$(/usr/bin/qdepends -Cq -Q ${CATEGORY}/${PN});
+ elif [ -x /usr/bin/equery ] ; then
+ PKGSET=$(/usr/bin/equery -Cq depends ${CATEGORY}/${PN});
+ fi
+ for PKG in ${PKGSET};
+ do
+ rlpkg ${PKG};
+ done
}
# @FUNCTION: selinux-policy-2_pkg_postrm