sec-policy/selinux-base: Add @selinux-rebuild portage set
authorJason Zaman <perfinion@gentoo.org>
Tue, 8 Sep 2015 14:41:16 +0000 (22:41 +0800)
committerJason Zaman <perfinion@gentoo.org>
Tue, 8 Sep 2015 15:10:08 +0000 (23:10 +0800)
Package-Manager: portage-2.2.20.1

sec-policy/selinux-base/files/selinux.conf [new file with mode: 0644]
sec-policy/selinux-base/selinux-base-9999.ebuild

diff --git a/sec-policy/selinux-base/files/selinux.conf b/sec-policy/selinux-base/files/selinux.conf
new file mode 100644 (file)
index 0000000..77d379e
--- /dev/null
@@ -0,0 +1,4 @@
+# Rebuild all selinux policy modules
+[selinux-rebuild]
+class = portage.sets.dbapi.OwnerSet
+files = /usr/share/selinux/
index 8eacaee71c4d0608464e21e6e2efe7a718399bd3..3fd50ec7b803e1c2eadfef600cfb4d83b0f3d8b7 100644 (file)
@@ -162,6 +162,9 @@ src_install() {
 
        insinto /etc/selinux
        doins "${FILESDIR}/config"
+
+       insinto /usr/share/portage/config/sets
+       doins "${FILESDIR}/selinux.conf" || die "failed to install selinux-rebuild portage set"
 }
 
 pkg_preinst() {