net-dialup/freeradius: Add samba USE flag.
authorHerb Miller Jr <herbert.miller@industryweapon.com>
Mon, 11 Jun 2018 21:50:02 +0000 (17:50 -0400)
committerMichał Górny <mgorny@gentoo.org>
Sun, 17 Jun 2018 11:14:38 +0000 (13:14 +0200)
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

index 4ba47a9caa3bd8e0bcd1a2d139723d9a105794eb..59c9dfd3515e040578ec62bb302360a375d78f17 100644 (file)
@@ -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