commit:     b955066a2726c734664fe8d000c4b05675557707
Author:     Herb Miller Jr <herbert.miller <AT> industryweapon <DOT> com>
AuthorDate: Mon Jun 11 21:50:02 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 17 11:14:38 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b955066a

net-dialup/freeradius: Add samba USE flag.

The rlm_mschap module autodetects existence of samba. This
changes the behavior a little to only build the module if
the samba USE flag is specified.

Bug: https://bugs.gentoo.org/638396
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 net-dialup/freeradius/freeradius-3.0.17.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-dialup/freeradius/freeradius-3.0.17.ebuild 
b/net-dialup/freeradius/freeradius-3.0.17.ebuild
index 4ba47a9caa3..59c9dfd3515 100644
--- a/net-dialup/freeradius/freeradius-3.0.17.ebuild
+++ b/net-dialup/freeradius/freeradius-3.0.17.ebuild
@@ -21,7 +21,7 @@ SLOT="0"
 
 IUSE="
        debug firebird iodbc kerberos ldap libressl memcached mysql odbc oracle 
pam
-       pcap postgres python readline rest sqlite ssl
+       pcap postgres python readline rest samba sqlite ssl
 "
 RESTRICT="test firebird? ( bindist )"
 
@@ -40,6 +40,7 @@ RDEPEND="!net-dialup/cistronradius
        firebird? ( dev-db/firebird )
        pam? ( virtual/pam )
        rest? ( dev-libs/json-c:= )
+       samba? ( net-fs/samba )
        ssl? (
                !libressl? ( dev-libs/openssl:0=[-bindist] )
                libressl? ( dev-libs/libressl:0= )
@@ -79,6 +80,8 @@ src_prepare() {
        use pam || { rm -r src/modules/rlm_pam || die ; }
        use python || { rm -r src/modules/rlm_python || die ; }
        use rest || { rm -r src/modules/rlm_rest || die ; }
+       # can't just nuke rlm_mschap because many modules rely on smbdes.h
+       use samba || { rm -r src/modules/rlm_mschap/{configure,*.mk} || die ; }
        # Do not install ruby rlm module, bug #483108
        rm -r src/modules/rlm_ruby || die
 

Reply via email to