commit:     cb0ca61319ecb831a5c87f0e2d09dbbe5bd9c319
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  3 22:53:39 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Apr  3 23:10:02 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0ca613

sys-apps/util-linux: support libaudit usage

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 sys-apps/util-linux/metadata.xml                | 1 +
 sys-apps/util-linux/util-linux-2.35.1-r1.ebuild | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-apps/util-linux/metadata.xml b/sys-apps/util-linux/metadata.xml
index d707189c1c8..121dd51cf54 100644
--- a/sys-apps/util-linux/metadata.xml
+++ b/sys-apps/util-linux/metadata.xml
@@ -6,6 +6,7 @@
        <name>Gentoo Base System</name>
 </maintainer>
 <use>
+       <flag name="audit">Use <pkg>sys-process/audit</pkg> to emit audit 
messages about system changes</flag>
        <flag name="caps">build setpriv helper (run programs with diff 
capabilities)</flag>
        <flag name="cramfs">build mkfs/fsck helpers for cramfs 
filesystems</flag>
        <flag name="cryptsetup">Use <pkg>sys-fs/cryptsetup</pkg> to have 
built-in dm-verity in libmount</flag>

diff --git a/sys-apps/util-linux/util-linux-2.35.1-r1.ebuild 
b/sys-apps/util-linux/util-linux-2.35.1-r1.ebuild
index 9abd2b066aa..aeb4cff8ef2 100644
--- a/sys-apps/util-linux/util-linux-2.35.1-r1.ebuild
+++ b/sys-apps/util-linux/util-linux-2.35.1-r1.ebuild
@@ -25,12 +25,13 @@ 
HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/
 
 LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
 SLOT="0"
-IUSE="build caps +cramfs cryptsetup fdformat hardlink kill +logger ncurses nls 
pam python +readline selinux slang static-libs su +suid systemd test 
tty-helpers udev unicode userland_GNU"
+IUSE="audit build caps +cramfs cryptsetup fdformat hardlink kill +logger 
ncurses nls pam python +readline selinux slang static-libs su +suid systemd 
test tty-helpers udev unicode userland_GNU"
 
 # Most lib deps here are related to programs rather than our libs,
 # so we rarely need to specify ${MULTILIB_USEDEP}.
 RDEPEND="
        virtual/libcrypt:=
+       audit? ( >=sys-process/audit-2.6:= )
        caps? ( sys-libs/libcap-ng )
        cramfs? ( sys-libs/zlib:= )
        cryptsetup? ( sys-fs/cryptsetup )
@@ -171,6 +172,7 @@ multilib_src_configure() {
                $(multilib_native_use_with udev)
                $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" 
'--without-ncursesw')
                $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" 
'--without-ncurses')
+               $(multilib_native_use_with audit)
                $(tc-has-tls || echo --disable-tls)
                $(use_enable nls)
                $(use_enable unicode widechar)

Reply via email to