Skip to content

Commit

Permalink
sec-policy/selinux-base-policy: Add systemd useflag and module
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
perfinion committed Jun 4, 2016
1 parent 6499a53 commit b65c47d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
Expand All @@ -20,9 +20,9 @@ fi
HOMEPAGE="https://www.gentoo.org/proj/en/hardened/selinux/"
DESCRIPTION="SELinux policy for core modules"

IUSE="+unconfined"
IUSE="systemd +unconfined"

RDEPEND="=sec-policy/selinux-base-${PVR}"
RDEPEND="=sec-policy/selinux-base-${PVR}[systemd?]"
PDEPEND="unconfined? ( sec-policy/selinux-unconfined )"
DEPEND=""

Expand All @@ -35,6 +35,12 @@ S="${WORKDIR}/"
# itself), when reworked reinclude it. Only postinstall (where -b base.pp is
# added) needs to remain then.

pkg_setup() {
if use systemd; then
MODS="${MODS} systemd"
fi
}

pkg_pretend() {
for i in ${POLICY_TYPES}; do
if [[ "${i}" == "targeted" ]] && ! use unconfined; then
Expand Down

0 comments on commit b65c47d

Please sign in to comment.