net-misc/openssh: add USE=audit support #607408
authorMike Frysinger <vapier@gentoo.org>
Fri, 10 Feb 2017 01:48:29 +0000 (20:48 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 10 Feb 2017 01:48:45 +0000 (20:48 -0500)
net-misc/openssh/openssh-7.4_p1.ebuild

index a21ea916d4ba6d49f2d57cf3f09dd5d0826dc3b0..279169754d8d469a47c524cafa7c2fdc30f48010 100644 (file)
@@ -27,7 +27,7 @@ LICENSE="BSD GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 # Probably want to drop ssl defaulting to on in a future version.
-IUSE="abi_mips_n32 bindist debug ${HPN_PATCH:++}hpn kerberos kernel_linux ldap ldns libedit libressl livecd pam +pie sctp selinux skey ssh1 +ssl static test X X509"
+IUSE="abi_mips_n32 audit bindist debug ${HPN_PATCH:++}hpn kerberos kernel_linux ldap ldns libedit libressl livecd pam +pie sctp selinux skey ssh1 +ssl static test X X509"
 REQUIRED_USE="ldns? ( ssl )
        pie? ( !static )
        ssh1? ( ssl )
@@ -36,6 +36,7 @@ REQUIRED_USE="ldns? ( ssl )
        test? ( ssl )"
 
 LIB_DEPEND="
+       audit? ( sys-process/audit[static-libs(+)] )
        ldns? (
                net-libs/ldns[static-libs(+)]
                !bindist? ( net-libs/ldns[ecdsa,ssl] )
@@ -183,6 +184,7 @@ src_configure() {
                --datadir="${EPREFIX}"/usr/share/openssh
                --with-privsep-path="${EPREFIX}"/var/empty
                --with-privsep-user=sshd
+               $(use_with audit audit linux)
                $(use_with kerberos kerberos5 "${EPREFIX}"/usr)
                # We apply the ldap patch conditionally, so can't pass --without-ldap
                # unconditionally else we get unknown flag warnings.