commit:     07c3932854eace4d4970c3845c3213d075097868
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  2 19:14:51 2020 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Wed Dec  2 19:19:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07c39328

sys-apps/systemd-tmpfiles: add selinux useflag

Bug: https://bugs.gentoo.org/757810
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild 
b/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild
index 99967bb1278..2714d762153 100644
--- a/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild
+++ b/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> systemd-${P
 LICENSE="BSD-2 GPL-2 LGPL-2.1 MIT public-domain"
 SLOT="0"
 KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 sparc x86"
-IUSE="test"
+IUSE="selinux test"
 RESTRICT="!test? ( test )"
 
 DEPEND="
@@ -23,6 +23,7 @@ DEPEND="
        >=sys-apps/util-linux-2.30:0=
        >=sys-kernel/linux-headers-${MINKV}
        sys-libs/libcap:0=
+       selinux? ( sys-libs/libselinux:0= )
 "
 RDEPEND="${DEPEND}
        !sys-apps/opentmpfiles
@@ -117,7 +118,6 @@ src_configure() {
                resolve
                rfkill
                seccomp
-               selinux
                smack
                sysusers
                timedated
@@ -147,6 +147,7 @@ src_configure() {
                -Dstatic-libsystemd=true
                -Dsysvinit-path=''
                ${systemd_disable_options[@]}
+               $(meson_use selinux)
        )
        meson_src_configure
 }

Reply via email to